/* ===== BSS OVERRIDES (THEME CONFIGURATION) ===== */
:root, [data-bs-theme=light] {
  --bs-primary: #CC0000;
  --bs-primary-rgb: 204,0,0;
  --bs-primary-text-emphasis: #520000;
  --bs-primary-bg-subtle: #F5CCCC;
  --bs-primary-border-subtle: #EB9999;
  --bs-body-font-family: Roboto, sans-serif;
  --bs-link-color: #CC0000;
  --bs-link-color-rgb: 204,0,0;
  --bs-link-hover-color: #CC0000;
  --bs-link-hover-color-rgb: 204,0,0;

  /* Brand palette + contrast helpers */
  --ss-primary: #CC0000;
  --ss-primary-deep: #770000;
  --ss-primary-dark: #330000;
  --ss-accent: #FF9933;
  --ss-accent-soft: #E77639;
  --ss-text-on-dark: #f5f6f8;
  --ss-subtext-on-dark: #d7dbe6;
  --ss-surface-dark: #202534;
  --ss-surface-deep: #2b2f3a;
  --ss-focus-ring: #FF9933;
}

/* Universal focus states for accessibility */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.accordion-button:focus-visible {
  outline: 3px solid var(--ss-focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255,153,51,0.25);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #CC0000;
  --bs-btn-border-color: #CC0000;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #AD0000;
  --bs-btn-hover-border-color: #A30000;
  --bs-btn-focus-shadow-rgb: 247,217,217;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #A30000;
  --bs-btn-active-border-color: #990000;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #CC0000;
  --bs-btn-disabled-border-color: #CC0000;
}

.btn-outline-primary {
  --bs-btn-color: #CC0000;
  --bs-btn-border-color: #CC0000;
  --bs-btn-focus-shadow-rgb: 204,0,0;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #CC0000;
  --bs-btn-hover-border-color: #CC0000;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #CC0000;
  --bs-btn-active-border-color: #CC0000;
  --bs-btn-disabled-color: #CC0000;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #CC0000;
}

.btn-primary,
.btn-outline-primary,
.navbar .btn-primary,
.main-footer .btn-primary {
  border-radius: 999px;
  font-weight: 700;
}

[data-bs-theme=dark] {
  --bs-primary: #CC0000;
  --bs-primary-rgb: 204,0,0;
  --bs-primary-text-emphasis: #E06666;
  --bs-primary-bg-subtle: #290000;
  --bs-primary-border-subtle: #7A0000;
  --bs-link-color: #CC0000;
  --bs-link-color-rgb: 204,0,0;
  --bs-link-hover-color: #CC0000;
  --bs-link-hover-color-rgb: 204,0,0;
}

[data-bs-theme=dark] .btn-primary, .btn-primary[data-bs-theme=dark] {
  --bs-btn-color: #fff;
  --bs-btn-bg: #CC0000;
  --bs-btn-border-color: #CC0000;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #AD0000;
  --bs-btn-hover-border-color: #A30000;
  --bs-btn-focus-shadow-rgb: 247,217,217;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #A30000;
  --bs-btn-active-border-color: #990000;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #CC0000;
  --bs-btn-disabled-border-color: #CC0000;
}

[data-bs-theme=dark] .btn-outline-primary, .btn-outline-primary[data-bs-theme=dark] {
  --bs-btn-color: #CC0000;
  --bs-btn-border-color: #CC0000;
  --bs-btn-focus-shadow-rgb: 204,0,0;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #CC0000;
  --bs-btn-hover-border-color: #CC0000;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #CC0000;
  --bs-btn-active-border-color: #CC0000;
  --bs-btn-disabled-color: #CC0000;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #CC0000;
}

.m-0 {
  margin: 0 !important;
}

.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.mt-1 {
  margin-top: .25rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: .5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.p-0 {
  padding: 0 !important;
}

.px-3 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

@media (min-width: 992px) {
  .mb-lg-5 {
    margin-bottom: 3rem !important;
  }
}

@media (min-width: 1200px) {
  .py-xl-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* ===== STATS ICONS ===== */
.bs-icon {
  --bs-icon-size: .75rem;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: var(--bs-icon-size);
  width: calc(var(--bs-icon-size) * 2);
  height: calc(var(--bs-icon-size) * 2);
  color: var(--bs-primary);
}

.bs-icon-xs {
  --bs-icon-size: 1rem;
  width: calc(var(--bs-icon-size) * 1.5);
  height: calc(var(--bs-icon-size) * 1.5);
}

.bs-icon-sm {
  --bs-icon-size: 1rem;
}

.bs-icon-md {
  --bs-icon-size: 1.5rem;
}

.bs-icon-lg {
  --bs-icon-size: 2rem;
}

.bs-icon-xl {
  --bs-icon-size: 2.5rem;
}

.bs-icon.bs-icon-primary {
  color: var(--bs-white);
  background: var(--bs-primary);
}

.bs-icon.bs-icon-primary-light {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .2);
}

.bs-icon.bs-icon-semi-white {
  color: var(--bs-primary);
  background: rgba(255, 255, 255, .5);
}

.bs-icon.bs-icon-rounded {
  border-radius: .5rem;
}

.bs-icon.bs-icon-circle {
  border-radius: 50%;
}

/* ===== TEAM IMAGES ===== */
/* Ensure perfect circles for all images */
.fit-cover {
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Image wrapper for perfect circles */
img.rounded-circle {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown div {
  text-align: center;
  margin: 10px;
  width: 100px;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.countdown div h3 {
  font-weight: 700;
  font-size: 44px;
  margin-bottom: 15px;
}

.countdown div h4 {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 575px) {
  .countdown div {
    width: 70px;
    padding: 10px 0;
    margin: 10px 8px;
    border-radius: 8px;
  }

  .countdown div h3 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .countdown div h4 {
    font-size: 14px;
    font-weight: 500;
  }
}

/* ===== MOBILE NAVIGATION STYLES ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(28,28,36,0.98);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: visible; /* prevent clipping of link backgrounds when expanded */
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        background: rgba(204,0,0,0.2);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(111,66,193,0.3);
        transform: translateX(5px);
    }

}

/* Perfect circles at all breakpoints */
.card img.rounded-circle {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 992px) and (min-width: 768px) {
    .card img.rounded-circle {
        width: 180px !important;
        height: 180px !important;
        max-width: 180px !important;
        max-height: 180px !important;
    }
}

@media (max-width: 768px) {
    .card img.rounded-circle {
        width: 160px !important;
        height: 160px !important;
        max-width: 160px !important;
        max-height: 160px !important;
    }
}

@media (max-width: 576px) {
    .card img.rounded-circle {
        width: 140px !important;
        height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
    }
}

/* Uniform card sizing - more compact */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: auto;
}

.card-body {
    padding: 1rem !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 0;
    gap: 0.25rem;
}

.card-title {
    min-height: auto;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.card-text {
    min-height: auto;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Accordion styling for Judges/Chairs/Emcee */
.event-accordion .accordion-item {
    background: transparent;
    border: none;
    margin-bottom: 1px;
}

.event-accordion .accordion-button {
    background: var(--ss-surface-dark);
    color: #f4d9b1;
    border: 0;
    box-shadow: none;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  /* Use brand accent for caret icon */
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF9933'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}

.event-accordion .accordion-button::after {
  background-image: var(--bs-accordion-btn-icon) !important;
}

.event-accordion .accordion-button.collapsed {
  /* Clear differentiation for collapsed headers without outlines */
  background: #1f2330;
  color: #f4d9b1;
  box-shadow: inset 4px 0 0 rgba(255, 153, 51, 0.85);
}

.event-accordion .accordion-button.collapsed:hover {
  background: #23293a;
  box-shadow: inset 6px 0 0 rgba(255, 153, 51, 0.95);
}

.event-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
    color: #f4d9b1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.event-accordion .accordion-body {
  background: #1f2330;
  border: 0;
}

/* Rules section styling */
.rules-section {
    background: linear-gradient(135deg, rgba(204,0,0,0.08) 0%, rgba(255,153,51,0.05) 100%), var(--ss-surface-dark);
}

/* Page section utilities */
.page-section {
    padding: 120px 56px 64px 56px;
    margin-top: 0;
}

.page-section-alt {
    padding: 120px 56px 48px 56px;
    margin-top: 0;
}

/* Winner section background */
.winner-section-bg {
  background: linear-gradient(0deg, #1f222c 5%, rgba(32,37,52,0.82) 100%), url('../images/hero-area/bg2.jpg');
  background-size: 100%;
  background-position: center;
  background-repeat: repeat;
}

.rules-panel {
  background: var(--ss-surface-dark);
  border-radius: 16px;
  padding: 20px 22px;
  color: var(--ss-text-on-dark);
}

.rules-panel h4 {
    color: #f4d9b1;
    font-weight: 700;
    margin-bottom: 12px;
}

.rules-panel ul,
.rules-panel ol {
    margin-bottom: 0;
    padding-left: 20px;
  color: var(--ss-subtext-on-dark);
}

.rules-panel a {
  color: var(--ss-text-on-dark);
}

.rules-panel a:hover {
  color: var(--ss-accent);
}

.rules-accent {
    height: 4px;
    background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 40%, #ff9933 100%);
    border-radius: 999px;
    margin-bottom: 24px;
}

.rules-toggle {
    background: var(--ss-surface-dark);
    color: #f4d9b1;
    border: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    width: 100%;
    padding: 12px 20px;
}

.rules-toggle .label-text {
    flex-grow: 1;
    text-align: center;
}

.rules-toggle .chevron {
    transition: transform 0.2s ease;
    font-size: 1.2rem;
    color: #f4d9b1;
    flex-shrink: 0;
    margin-left: 12px;
}

.rules-toggle.collapsed .chevron {
    transform: rotate(180deg);
}

.rules-toggle:not(.collapsed) {
    background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
    color: #f4d9b1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.rules-toggle:hover {
    background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 35%, #ff9933 90%);
    color: #fff7e6;
}

/* Profile cards theme */
.profile-card {
  background: #2b2f3a;
  border-radius: 16px;
  border: 1px solid #3a3d4a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.profile-card .card-title {
  color: var(--ss-text-on-dark) !important;
    font-weight: 700;
}

.profile-card .card-text,
.profile-card .text-muted {
  color: var(--ss-subtext-on-dark) !important;
}

.profile-card a {
  color: var(--ss-text-on-dark);
    text-decoration: none;
}

.profile-card a .fa {
    color: #c5c8d4 !important;
    opacity: 0.75;
    transition: color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.profile-card a:hover .fa {
    opacity: 1;
    color: #ffffff !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

/* Brand hover colors */
.profile-card a:hover .fa-spotify {
    color: #1db954 !important;
}

.profile-card a:hover .fa-facebook {
    color: #1778f2 !important;
}

.profile-card a:hover .fa-instagram {
    color: #c13584 !important;
}

.profile-card a:hover .fa-youtube,
.profile-card a:hover .fa-youtube-play {
    color: #ff0000 !important;
}

.profile-card a:hover .fa-link {
    background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-card a:hover .fa-x-twitter {
    color: #000000 !important;
}

/* Body & Global Styles */
body {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  background-color: #0b0d12;
  color: #e9ecf5;
}

/* Navigation Bar */
.navbar {
  background: linear-gradient(180deg, rgba(28,28,36,0.92) 0%, rgba(28,28,36,0.86) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar-nav .nav-link.active {
  color: #FF9933 !important;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
}

.navbar-brand img {
    max-width: 250px;
}

/* Hamburger (navbar-toggler) focus styling: reduce thick ring but keep accessibility */
.navbar-toggler {
  border-width: 1px;
  border-color: rgba(255,255,255,0.35);
  border-radius: 12px;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.12rem rgba(255,255,255,0.35);
}

.navbar-toggler:hover {
  box-shadow: 0 0 0 0.12rem rgba(255,255,255,0.25);
}

/* Masthead / Header */
.masthead {
    background: 
        linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 80%),
        url('../images/logos/logo-icon.png'),
        url('../images/hero-area/bg2.jpg');
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center center, center center, center center;
    background-size: cover, cover, cover;
    background-blend-mode: normal, overlay, normal;
    padding-top: 120px;
    padding-bottom: 48px;
    filter: blur(0.15px);
}

.countdown {
    margin-bottom: 24px;
}

.countdown div h3 {
    font-size: 1.75rem;
    margin: 0;
}

.countdown div h4 {
    font-size: 0.9rem;
    margin: 0;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(0deg, #1c1c24 10%, rgba(33,37,41,0.75) 100%), url('../images/hero-area/bg2.jpg');
  background-size: cover;
  background-position: center;
  padding-bottom: 48px;
}

.stats-intro {
    padding-right: 24px;
    padding-left: 24px;
    margin-top: 48px;
    margin-bottom: 48px;
    color: white;
    font-size: 26px;
    text-align: center;
    margin-bottom: 0;
}

.stats-text {
    color: white;
    font-size: 26px;
    text-align: center;
    margin-bottom: 0;
}

/* Stats Icons */
.bs-icon-gradient {
    background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
}

.stat-icon {
  font-size: 56px;
    color: white;
}

.stat-value {
    color: #ffffff;
    font-family: Roboto, sans-serif;
    font-size: 26px;
}

.stat-label {
    color: #ffffff;
}

/* Social Media Section */
.social-section {
    background: linear-gradient(135deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%), var(--ss-surface-dark);
    padding: 48px 0;
}

.social-section .btn-outline-primary {
  color: #ffffff;
  border-color: rgba(255,255,255,0.8);
}

.social-section .btn-outline-primary:hover,
.social-section .btn-outline-primary:focus {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
}



.social-heading {
  color: white;
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0;
}

.section-heading,
.schedule-heading,
.judges-heading {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
}

/* Keep anchored sections clear of the fixed navbar when scrolling */
#rules,
#schedule,
#venue,
#judges,
#contact {
  scroll-margin-top: 96px;
}

.social-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 2px 6px; /* tighter so background doesn't look like trailing space */
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.social-link i { margin-right: .35rem; }

.social-link:hover {
  background: rgba(255,255,255,0.95);
}

.social-link.instagram:hover {
    color: #E1306C;
}

.social-link.facebook:hover {
    color: #1877F2;
}

.social-link.youtube:hover {
    color: #CC0000;
}

/* Rules Section */
.rules-section-wrapper {
    padding: 56px 0 48px;
}

.rules-toggle-button {
  font-size: 1.5rem;
  font-weight: 700;
}

.rules-question-text {
    color: #cfd3dd;
}

/* Judges Section */
.judges-section {
    background: var(--ss-surface-dark);
    padding: 56px 0 48px;
}

.judges-row {
    margin-bottom: 8px;
}

.profile-icon {
    font-size: 16px;
}

.profile-desc {
    text-align: center;
    color: rgb(255,255,255);
}

/* Schedule Section */
.schedule-section {
  background: linear-gradient(0deg, #1c1c24 10%, rgba(33,37,41,0.75) 100%), url('../images/hero-area/bg2.jpg');
  background-size: cover;
  background-position: center;
  padding: 56px 0 48px;
}

.schedule-date-title {
    color: #f4d9b1;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.schedule-listing {
  background: #202534;
  padding: 24px;
  margin-bottom: 16px;
  border-radius: 8px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.schedule-listing-alt {
  background: #202534;
}

/* Progressive shading for schedule list items */
.schedule-items > .schedule-listing:nth-child(1) { background: #3a3d4a; }
.schedule-items > .schedule-listing:nth-child(2) { background: #2b2f3a; }
.schedule-items > .schedule-listing:nth-child(3) { background: #24293a; }
.schedule-items > .schedule-listing:nth-child(4) { background: #202534; }
.schedule-items > .schedule-listing:nth-child(5) { background: #1f2330; }

/* Edge-to-edge dividers around schedule section */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, rgba(42,6,6,0.9) 0%, rgba(204,0,0,0.7) 100%);
}

.section-divider-alt {
    height: 4px;
    background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
}

/* Flipped variants for alternating sequences */
.section-divider-flip {
  height: 4px;
  background: linear-gradient(270deg, rgba(42,6,6,0.9) 0%, rgba(204,0,0,0.7) 100%);
}

.section-divider-alt-flip {
  height: 4px;
  background: linear-gradient(135deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
}

.schedule-slot-time {
    color: #f4d9b1;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 140px;
    text-align: right;
    padding-top: 2px;
}

.schedule-slot-info {
    flex-grow: 1;
}

.schedule-slot-info-content {
    width: 100%;
}

.schedule-slot-title {
    color: #f4d9b1;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.schedule-slot-desc {
    color: #d7dbe6;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Masthead Heading */
.masthead-heading {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    margin: 1rem 0;
}

.masthead-subheading {
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.small-caps {
    font-size: 0.65em;
    font-variant: small-caps;
    font-weight: 700;
    vertical-align: baseline;
}

/* Schedule: scroll-reveal animation */
.schedule-items > .schedule-listing {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease;
    will-change: opacity, transform;
}

.schedule-items > .schedule-listing.is-visible {
    opacity: 1;
    transform: none;
}

/* Lightweight stagger for first few items */
.schedule-items > .schedule-listing:nth-child(1) { transition-delay: .05s; }
.schedule-items > .schedule-listing:nth-child(2) { transition-delay: .10s; }
.schedule-items > .schedule-listing:nth-child(3) { transition-delay: .15s; }
.schedule-items > .schedule-listing:nth-child(4) { transition-delay: .20s; }
.schedule-items > .schedule-listing:nth-child(5) { transition-delay: .25s; }
.schedule-items > .schedule-listing:nth-child(6) { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
    .schedule-items > .schedule-listing {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Schedule: date box */
.schedule-date-title {
    position: static;
  background: #1c1c24;
    padding: .5rem .75rem;
    border-radius: .375rem;
    margin-bottom: 16px;
}
/* ===== UTILITY CLASSES FOR MARKUP OPTIMIZATION ===== */
/* Venue preview section */
.venue-preview-section {
  background: #171b25;
  padding: 56px 0 48px;
}
.venue-image {
  border-radius: 10px;
}
.venue-heading {
  color: #f4d9b1;
  font-weight: 700;
  font-size: 1.5rem;
}
.venue-preview-section p,
.venue-blurb {
  color: #e3e6ed;
}
.venue-details li {
  color: #ced4da;
  margin-bottom: .5rem;
}
.venue-details a {
  color: #ced4da;
  text-decoration: none;
}
.venue-details a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Flex column center utility */
.flex-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Flex center utility */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stat icon wrapper - replaces excessive nested divs */
.stat-icon-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
}

/* Media page layout helpers */
.media-header {
  padding-top: 120px;
  padding-bottom: 16px;
}

.media-header .section-heading {
  margin-bottom: 8px;
}

.media-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.media-grid-wrapper {
  margin-top: 8px;
}

.media-year-group {
  margin-bottom: 32px;
}

.older-years-toggle {
  text-align: center;
  margin-top: 12px;
}

/* Supporter CTA card */
.supporter-cta-card {
  background: linear-gradient(-45deg, rgba(119,0,0,0.9) 0%, rgba(204,0,0,0.75) 30%, #ff9933 83%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.supporter-cta-icon {
  font-size: 2.5rem;
  color: #ffffff;
}

/* Winner detail utilities */
.winner-hero-link {
  cursor: pointer;
  display: inline-block;
}

.winner-hero-img {
  max-width: 100%;
  height: auto;
}

.winner-divider-dot {
  color: #f0ad4e;
}

.winner-links-row {
  font-size: 1.05rem;
}

.winner-modal-close {
  z-index: 1050;
}

.winner-pill-stack {
  gap: 0.75rem;
}

.winner-links-row a {
  color: var(--ss-text-on-dark);
}

.winner-links-row a:hover {
  color: var(--ss-accent);
}

.winner-pill-name {
  color: var(--ss-text-on-dark);
}

.winner-pill-name:hover {
  color: var(--ss-accent);
}

.link-on-dark {
  color: var(--ss-text-on-dark);
  text-decoration: none;
}

.link-on-dark:hover {
  color: var(--ss-accent);
  text-decoration: underline;
}

/* Social links list - simpler structure */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.social-links li {
  margin: 0;
  padding: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ss-subtext-on-dark);
  font-size: 0.95rem;
}

.social-links a:hover {
  color: var(--ss-accent);
}

/* Contact form placeholder styling */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6c757d;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #CC0000 !important;
}

/* Supporter Card Utilities */
.supporter-logo {
  object-fit: contain;
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 5/3;
}

.logo-dark {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 6px;
}

.cta-btn-text {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links {
  min-height: 28px;
}

/* Winners Grid Utilities */
/* Alternating card backgrounds (automatically applied to dynamically generated cards) */
.winners-card {
  background: #212532;
  border-radius: 12px;
  padding: 16px;
  height: 100%;
}

/* Even-numbered cards in any container get lighter shade (works for both .row and #winnersGrid) */
.col:nth-child(even) .winners-card {
  background: #252d3f;
}

.winner-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  background: #111318;
}

.winner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.winner-meta {
  color: #aab2c5;
  font-size: 0.95rem;
}
/* ===== FORM INPUTS (Contact Section) ===== */
.form-control-name,
.form-control-email,
.form-control-subject,
.form-control-message {
  background: transparent;
  color: #e9ecf5;
  border: none;
  border-bottom: 2px solid #3a3d4a;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.form-control-name::placeholder,
.form-control-email::placeholder,
.form-control-subject::placeholder,
.form-control-message::placeholder {
  color: #e9ecf5;
}

/* ===== CONTACT HEADING ===== */
.contact-heading {
  text-align: center;
  margin-bottom: 2rem;
}

/* ===== LATEST WINNERS SECTION ===== */
.latest-winners-section {
  padding: 72px 56px 56px 56px;
  margin-top: 0;
}

/* ===== COUNTDOWN STYLES ===== */
.countdown div {
  text-align: center;
  margin: 10px;
  width: 100px;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.12);
}

.countdown div h3 {
  font-weight: 700;
  font-size: 44px;
  margin-bottom: 15px;
}

.countdown div h4 {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 575px) {
  .countdown div {
    width: 70px;
    padding: 10px 0;
    margin: 10px 8px;
  }
  
  .countdown div h3 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .countdown div h4 {
    font-size: 14px;
    font-weight: 500;
  }
}

/* ===== RESPONSIVE UTILITIES ===== */
/* CSS Variables for consistent spacing */
:root {
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --header-padding-mobile: 20px;
  --header-padding-tablet: 30px;
  color-scheme: dark;
}

/* Ensure navbar maintains proper layout at all sizes */
.navbar > .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100%;
}

/* Make navbar-collapse take full width on mobile */
@media (max-width: 991px) {
  .navbar-collapse {
    flex-basis: 100%;
  }
}

.navbar-brand {
  flex-shrink: 0;
}

.navbar-toggler {
  margin-left: auto;
  flex-shrink: 0;
}

/* Display utilities for responsive visibility */
.show-sm {
  display: none;
}

@media (max-width: 767px) {
  .show-sm {
    display: block;
  }

  .hide-sm {
    display: none !important;
  }
}

/* Flexbox responsive utilities (complementing Bootstrap) */
@media (max-width: 767px) {
  .flex-column-mobile {
    flex-direction: column !important;
  }

  .flex-wrap-mobile {
    flex-wrap: wrap !important;
  }
}

/* Text utilities */
@media (max-width: 576px) {
  .text-responsive {
    font-size: 0.875rem;
  }

  .h1-responsive {
    font-size: 1.75rem !important;
  }

  .h2-responsive {
    font-size: 1.5rem !important;
  }

  .h3-responsive {
    font-size: 1.25rem !important;
  }
}

/* Margin/Padding reset for mobile */
@media (max-width: 576px) {
  .p-responsive {
    padding: var(--spacing-sm) !important;
  }

  .m-responsive {
    margin: var(--spacing-sm) !important;
  }

  .py-responsive {
    padding-top: var(--spacing-sm) !important;
    padding-bottom: var(--spacing-sm) !important;
  }

  .px-responsive {
    padding-left: var(--spacing-sm) !important;
    padding-right: var(--spacing-sm) !important;
  }
}

/* ===== SOCIAL SECTION BUTTON STYLES ===== */
.social-button {
  min-width: 160px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  background-color: transparent;
}

.social-button:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: transparent;
  color: white;
}

.social-button-instagram:hover {
  background-color: #E1306C;
}

.social-button-facebook:hover {
  background-color: #1877F2;
}

.social-button-youtube:hover {
  background-color: #CC0000;
}

.social-button i {
  font-size: 1.3rem;
}

@media (max-width: 576px) {
  .social-button {
    min-width: 140px;
    font-size: 1rem;
    padding: 0.65rem 1.25rem;
  }
  
  .social-button i {
    font-size: 1.1rem;
  }
}

/* ===== WINNER PILL ROW STYLES ===== */
.winner-pill-row {
  background: #1f2433;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background 140ms ease, border-color 140ms ease;
}

.winner-pill-row:nth-child(even) {
  background: #252d3f;
}

.winner-pill-row:hover {
  background: #2b3447;
  border-color: rgba(255, 255, 255, 0.12);
}

.pill-badge {
  background: var(--bs-primary);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  min-width: 64px;
  text-align: center;
}

.winner-pill-name {
  flex: 1;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}

/* ===== HERO CTA BAR (improves button visibility on masthead) ===== */
.hero-cta-bar {
  background: rgba(28, 28, 36, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 12px 16px;
  border-radius: 12px;
  display: inline-flex;
}

.hero-cta-bar .btn {
  font-weight: 700;
  border-width: 2px;
}

.hero-cta-bar .btn-primary {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-cta-bar .btn-outline-primary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
}

.hero-cta-bar .btn-outline-primary:hover {
  background-color: #ffffff;
  color: #CC0000;
  border-color: #ffffff;
}

/* ===== MEDIA LIBRARY IMPROVEMENTS ===== */
/* Cleaner media item cards with accent borders and better contrast */
.media-item {
  background: rgba(43, 47, 58, 0.75) !important;
  transition: all 200ms ease;
  border-color: currentColor !important;
}

.media-item:hover {
  background: rgba(58, 61, 74, 0.85) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Darker background for media items on lighter alternate cards */
.col:nth-child(even) .winners-card .media-item {
  background: rgba(30, 33, 45, 0.85) !important;
}

.col:nth-child(even) .winners-card .media-item:hover {
  background: rgba(25, 28, 38, 0.95) !important;
}

/* Icon styling with brand colors */
.media-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 10px;
  opacity: 0.95;
  transition: opacity 200ms ease, transform 200ms ease;
}

.media-item:hover .media-icon {
  opacity: 1;
  transform: scale(1.1);
}

.media-icon-photo {
  background: rgba(255, 153, 51, 0.22);
  color: #FF9933 !important;
}

.media-icon-video {
  background: rgba(119, 0, 0, 0.22);
  color: #770000 !important;
}

/* Brand color utilities for media items */
.text-brand-accent {
  color: #FF9933 !important;
}

.text-brand-accent-soft {
  color: #E77639 !important;
}

.border-brand-accent {
  border-color: #FF9933 !important;
}

.border-brand-accent-soft {
  border-color: #E77639 !important;
}

/* ===== GALLERY PAGE STYLES ===== */
/* Gallery grid alignment and stretch */
#galleryGrid {
  align-items: stretch;
}

/* Gallery item images - consistent shadow, radius, and responsive sizing */
.galleryCustom img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.galleryCustom img:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Gallery page title styling */
.page-title {
  color: #f5f6f8;
  font-weight: 700;
}

/* Gallery photographer credit section */
.credit-line a {
  text-decoration: underline;
}

.credit-line a.link-on-dark {
  color: var(--ss-accent);
}

.text-winner-yellow {
  color: #f0ad4e;
}

/* Honeypot field (anti-spam) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
