@media (max-width: 991.98px) {
  .custom-hero-3-bg {
    min-height: 220px !important;
    background-size: cover !important;
    background-position: center center !important;
    width: 100vw !important;
  }
}
@media (max-width: 600px) {
  .custom-hero-3-bg {
    min-height: 140px !important;
    background-size: cover !important;
    background-position: center center !important;
    width: 100vw !important;
  }
}
/* Ensure hero buttons are centered with spacing on small screens */
@media (max-width: 576px) {
  .hero-btns {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex-wrap: wrap !important;
  }
  .hero-btns .btn { margin: 0 !important; }
}
/* Centered hero for events page to match blog styling */
.events-hero {
  position: relative;
  background-image: url('/img/hero_images/WBi_Tournament_Events.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 0;
  min-height: 360px;
  margin: 0 auto 1.5rem;
  max-width: 1140px;
  border-radius: 8px;
  overflow: hidden;
}
.events-hero::before { content: ''; position:absolute; left:0; right:0; top:0; bottom:0; background: rgba(0,0,0,0.35); z-index:0; }
.events-hero .container, .events-hero * { position: relative; z-index: 1; }
/* Breadcrumb colors for Events page */
.breadcrumb-nav .breadcrumb-item:first-child > a { color: var(--secondary) !important; font-weight: 400 !important; }
.breadcrumb-nav .breadcrumb-item.active { color: var(--primary) !important; font-weight: 700 !important; }
/* Hero features & stats */
.hero-features { display:flex; gap:1.25rem; justify-content:center; align-items:center; margin-top:.75rem; }
.hero-features .hf-item { text-align:center; min-width:110px; }
.hero-stats { display:flex; gap:1rem; justify-content:center; margin-top:1rem; }
.hero-stats .stat { background: rgba(255,255,255,0.04); padding:.5rem .9rem; border-radius:.5rem; min-width:110px; color:#fff; }
.hero-stats .num { font-weight:700; font-size:1.05rem; }
.hero-stats .label { font-size:.85rem; color: rgba(255,255,255,0.9); margin-top:.25rem; }
@media (max-width:576px){ .hero-features, .hero-stats { flex-direction:column; gap:.5rem; } .hero-features .hf-item, .hero-stats .stat { width:100%; min-width:auto; } }

/* Tournament Results Widgets */
.tournament-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1rem;
}
.tournament-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.widget-header {
    background: var(--bs-primary);
    color: #fff;
    padding: 1rem;
    text-align: center;
}
.widget-header h5 {
    margin: 0;
    font-weight: 600;
}
.widget-body {
    padding: 1rem;
    background: #f8f9fa;
}
.widget-body img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* Redesigned Event Boxes */
.event-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin-bottom: 2.5rem;
    align-items: flex-end;
}
.event-box {
    border-radius: 16px !important;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-bottom: 0 !important;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.event-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.event-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.02);
    z-index: 1;
}
.event-box * {
    position: relative;
    z-index: 2;
}
.event-box h4 {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.event-box p {
    color: #e9ecef;
}
.event-box img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.event-box .btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 0.3s;
}
.event-box .btn:hover {
    background: linear-gradient(135deg, #495057, #343a40);
}
@media (min-width: 992px) {
    .event-row {
        flex-direction: row;
        gap: 2.5rem;
        justify-content: center;
        align-items: stretch;
    }
    .event-row > .event-box {
        min-width: 0;
        max-width: 600px;
        width: 100%;
        flex: 1 1 0;
    }
}
@media (max-width: 991.98px) {
    .event-row {
        flex-direction: column;
        gap: 2rem;
    }
    .event-box {
        margin-bottom: 2rem !important;
    }
}