/* ============================================
   1. HOMEPAGE TOP NAV (RIGHT-ALIGNED)
============================================ */

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    z-index: 9000;
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-nav a {
    color: #003366;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
}

.top-nav a:hover {
    background: rgba(0,0,0,0.08);
}


/* ============================================
   2. HOMEPAGE SPACING FIXES
============================================ */

.content-row .homepage {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.has-global-nav .content-row .homepage {
    padding-top: 8px;
}

.homepage {
    width: 100%;
    padding: 20px 20px 60px 0;
    position: relative;
    z-index: 1;
}


/* ============================================
   3. HERO OVERRIDES (UNIT 209 + PBC)
============================================ */

/* Unit 209 homepage hero */
.hero-unit {
    margin-top: 0 !important;
    height: 320px;
}

@media (max-width: 768px) {
    .hero-unit {
        height: 180px;
        border-radius: 10px;
        margin: 10px auto !important;
    }
}

/* PBC hero */
.pbc-page .hero-shell {
    height: auto !important;
    margin: 0;
    padding: 0;
}

.pbc-page .hero-rotator {
    height: 360px !important;
    overflow: hidden;
}

/* Unit 209 hero rotator final version */
.hero-unit {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.hero-unit .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-unit .hero-slide.active {
    opacity: 1;
}

.hero-unit .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.25)
    );
    display: flex;
    align-items: center;
    padding: 2rem;
    color: white;
    z-index: 2;
}

.unit209-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  overflow: hidden;
}

.unit209-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* ============================================
   4. WELCOME BOX
============================================ */

.welcome-box {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}


/* ============================================
   5. BUTTONS (CLEANED)
============================================ */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Primary */
.btn-primary {
    background: #003366;
    color: #fff;
}

.btn-primary:hover {
    background: #00264d;
}

/* Secondary */
.btn-secondary {
    background: #fff;
    color: #003366;
    border: 2px solid #003366;
}


/* ============================================
   6. PLAYER SPOTLIGHT
============================================ */

.spotlight-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.spotlight-photo {
    width: 150px;
    height: auto;
    object-fit: contain;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.spotlight-text {
    flex-grow: 1;
}


/* ============================================
   7. PHOTO ROTATORS (CLEANED)
============================================ */

/* Single-image fade rotator */
.photo-rotator {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 32px;
}

.photo-rotator img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.photo-rotator img.active {
    opacity: 1;
}

/* 3‑image rotator */
.photo-rotator-3 {
    display: flex;
    gap: 12px;
}

.photo-rotator-3 img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 6px;
}


/* ============================================
   8. STATIC PHOTO GRID
============================================ */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.photo-grid img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* ============================================
   9. HOMEPAGE HEADERS
============================================ */

.homepage h2 {
    margin-bottom: 12px;
    font-size: 1.6rem;
    color: #333;
}
