/* --- 1. Page Setup --- */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Ensure Navbar sits on top properly */
.navbar {
    background-color: #000000 !important;
    border-bottom: 1px solid #333;
}
.hamburger span { background-color: white !important; }
.hamburger.active span { background-color: #CFAB2B !important; }

/* --- 2. Main Content Area --- */
.spring2025-page {
    padding-top: 160px;
    min-height: 80vh;
    padding-bottom: 50px;
}

.spring2025-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. Titles --- */
.lineage-title-container {
    text-align: center;
    margin-bottom: 40px;
}

.spring2025-title {
    color: #CFAB2B; /* Old Gold */
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.spring2025-subtitle {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lineage-image-frame {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 40px auto;
    padding: 8px;
    border: 3px solid #c9a14a; /* gold border */
    box-sizing: border-box;
}

.lineage-image-frame img {
        width: 100%;
        height: 600px;          /* ← increase height to zoom OUT */
        object-fit: cover;     /* fills frame, keeps aspect ratio */
        object-position: center top; /* adjust focal point if needed */
        display: block;
}


/* --- 4. The Lineage Table --- */
.table-background {
    overflow-x: auto;
}

.lineage-table {
    width: 100%;
    border-collapse: collapse;
    background-color: inherit; 
    border: 3px solid #444;
}

/* Header Row */
.lineage-table thead tr {
    border-bottom: 2px solid #CFAB2B; /* Gold underline for header */
}

.lineage-table th {
    padding: 15px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #CFAB2B; /* Gold Headers */
}

/* Body Rows */
.lineage-table tbody tr {
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}

.lineage-table tbody tr:hover {
    background-color: #222;
}

.lineage-table td {
    padding: 20px 15px; /* Added more top/bottom padding for breathing room */
    font-size: 1rem;
    vertical-align: top; /* Align text to top so they line up evenly */
    line-height: 1.5;
}

/* --- COLUMN 1: NAMES --- */
/* This makes "Ace." stack ON TOP of "Grant Duncan Harris" */
.lineage-table td strong {
    color: #CFAB2B;
    font-size: 1.1rem;
    display: block; /* Forces a new line */
    margin-bottom: 5px; /* Adds space between Ace and Name */
    text-transform: uppercase;
}

/* --- COLUMN 2: MAJORS --- */
/* This makes the Minors/Tracks stack neatly under the Major */
.track {
    display: block; /* Forces new line */
    font-size: 0.9rem;
    color: #ccc; /* Slightly grey for contrast */
    font-style: italic;
    margin-top: 2px;
}

/* --- COLUMN 4: LINE NAMES --- */
.line-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #CFAB2B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 5. Year Navigation --- */
.lineage-year-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto 30px auto;
    padding: 0 20px;
}

.lineage-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: transparent;
    border: 2px solid #CFAB2B;
    color: #CFAB2B;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.lineage-nav-btn:hover {
    background-color: #CFAB2B;
    color: #000000;
}

.lineage-nav-placeholder {
    width: 180px;
}

/* --- 6. Floating Buttons --- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: #CFAB2B;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: 2px solid #CFAB2B;
}

.floating-btn.show { opacity: 1; visibility: visible; }

.floating-btn:hover {
    background-color: white;
    color: #CFAB2B;
    transform: scale(1.1);
}

.btn-home { left: 30px; }
.btn-top { right: 30px; }

/* --- 6. Responsive Tweaks --- */
@media (max-width: 768px) {
    .spring2025-page { padding-top: 130px; }
    .spring2025-title { font-size: 2rem; }
    .spring2025-subtitle { font-size: 1rem; }
    .lineage-image-frame img { height: auto; object-fit: contain; }
    .lineage-table th, .lineage-table td { padding: 10px; font-size: 0.9rem; }
    .floating-btn { width: 45px; height: 45px; }
    .btn-home { left: 20px; }
    .btn-top { right: 20px; }
    .lineage-nav-btn { font-size: 0.8rem; padding: 10px 16px; }
    .lineage-nav-placeholder { width: 100px; }
}

@media (max-width: 480px) {
    .spring2025-page { padding-top: 110px; }
    .spring2025-title { font-size: 1.6rem; letter-spacing: 1px; }
    .spring2025-subtitle { font-size: 0.9rem; }
    .spring2025-container { padding: 0 8px; }
    .lineage-image-frame img { height: auto; }
    /* Force table to fit screen without horizontal scroll */
    .table-background { overflow-x: hidden; }
    .lineage-table { table-layout: fixed; width: 100%; word-break: break-word; }
    .lineage-table th { font-size: 0.7rem; padding: 6px 3px; }
    .lineage-table td { font-size: 0.72rem; padding: 6px 3px; line-height: 1.35; }
    .lineage-table td strong { font-size: 0.72rem; margin-bottom: 2px; }
    .track { font-size: 0.65rem; }
    .line-name { font-size: 0.72rem; letter-spacing: 0; }
    .lineage-year-nav { padding: 0 8px; gap: 5px; }
    .lineage-nav-btn { font-size: 0.72rem; padding: 8px 10px; gap: 4px; }
    .lineage-nav-placeholder { width: 60px; }
    .floating-btn { width: 40px; height: 40px; font-size: 1rem; }
    .btn-home { left: 12px; }
    .btn-top { right: 12px; }
}