/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    /* You can change this to a gamer font later */
}

/* This makes the page slide smoothly */
html {
    scroll-behavior: smooth;
}

/* This makes sure the header doesn't cover your titles when you arrive */
section {
    scroll-margin-top: 100px;
}

body {
    background-color: #0f0f0f;
    /* Dark background for esports vibe */
    color: white;
    line-height: 1.6;
}

/* Header Styling */
.main-header {
    background-color: rgba(0, 0, 0, 0.9);
    /* Semi-transparent black */
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    /* This pins it to the top */
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Keeps it above other content */
    border-bottom: 2px solid #ff4655;
    /* Optional: A "team color" accent line */
}

.container {
    width: 100%;
    /* 1. Makes it fill the screen */
    max-width: 100%;
    /* 2. Removes the 1200px limit */
    margin: 0;
    /* 3. Removes the centering gap on the sides */
    display: flex;
    justify-content: space-between;
    /* 4. Pushes logo left and nav right */
    align-items: center;
    padding: 0 40px;
    /* 5. Keeps it from touching the very edge */
}

/* Container for the logo */
.logo {
    display: flex;
    align-items: center;
}

/* This is the important part: Targeting the image itself */
.logo img {
    height: 50px;
    /* Change this number (e.g., 40px or 60px) to make it smaller or bigger */
    width: auto;
    /* Keeps the logo's shape (aspect ratio) perfect */
    display: block;
    /* Removes weird gaps at the bottom of images */
    padding: 5px 0;
    /* Gives a little breathing room top and bottom */
}

/* Keeps the link area clean */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Navigation Links */
.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 65px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 22px;
}

.nav-links a:hover {
    color: #ff4655;
    /* Hover effect */
}

/* Adding space so content doesn't hide under the pinned header */
main {
    margin-top: 80px;
    padding: 20px;
}

/* 1. Main Section - The Window */
.banner-section {
    width: 100%;
    height: 900px;
    /* Keep this height or adjust to fit your images */
    overflow: hidden;
    position: relative;
    margin-top: 80px;
    background-color: #000;
    /* Keeps it dark during transition */
}

/* 2. The Train - Moves left/right via JS */
.slides {
    display: flex;
    width: 300%;
    /* Total width for 3 slides */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother esports feel */
}

/* 3. The Slide Box */
.slide {
    width: 33.333%;
    height: 100%;
}

/* 4. The Image Container (The Hover Base) */
.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 5. The Actual Image - FIX: Removed .slide img and kept this one */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.5s ease, transform 0.8s ease;
    /* Added a tiny zoom effect */
}

/* 6. Hover Text Styling */
.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    /* Made slightly bigger for 900px height */
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.8);
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    /* Prevents text from blocking clicks */
}

/* 7. The Hover Logic */
.image-container:hover img {
    filter: brightness(40%) blur(2px);
    transform: scale(1.05);
    /* Subtle zoom when hovering */
}

.image-container:hover .hover-text {
    opacity: 1;
}

/* 8. Controls (Buttons) */
.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 40px;
    pointer-events: none;
    z-index: 20;
    /* Ensure buttons are above images */
}

.controls button {
    background: rgba(255, 70, 85, 0.4);
    /* DNVG Red with transparency */
    color: white;
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 30px;
    border-radius: 50%;
    /* Circle buttons look better for esports */
    pointer-events: all;
    transition: all 0.3s ease;
}

.controls button:hover {
    background: #ff4655;
    transform: scale(1.1);
}

/* --- FEATURE SECTION --- */
.feature-section {
    padding: 100px 0;
    background-color: #0a0a0a;
    /* Slightly different black to separate sections */
    color: white;
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    /* Vertically centers the logo and text */
    justify-content: space-between;
    padding: 0 50px;
    gap: 60px;
    /* Space between the logo and text */
}

/* Left Side (50%) */
.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    width: 80%;
    /* Adjust this to make your logo look the right size */
    max-width: 400px;
    filter: drop-shadow(0px 0px 20px rgba(255, 70, 85, 0.3));
    /* Subtle red glow */
}

/* Right Side (50%) */
.feature-text {
    flex: 1;
}

.feature-text span {
    color: #ff4655;
    /* Team red */
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.feature-text h2 {
    font-size: 3.5rem;
    margin: 10px 0 20px 0;
    font-weight: 900;
    text-transform: uppercase;
}

.feature-text p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Button Styling */
.feature-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #ff4655;
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s ease;
}

.feature-btn:hover {
    background-color: #fff;
    color: #ff4655;
    transform: translateY(-3px);
}

/* --- PLAYER SECTION --- */
.player-section {
    padding: 100px 0;
    background-color: #111;
    overflow: hidden;
    /* Hides the extra 15 players */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.player-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* The Train */
.player-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    gap: 20px;
}

/* Individual Card (Showing 3 per screen) */
.player-card {
    text-decoration: none;
    min-width: calc(33.333% - 14px);
    /* Math for 3 cards with gaps */
    background: #fff;
    /* White Background as requested */
    border-radius: 8px;
    overflow: hidden;
    color: #000;
}

/* Image Box (The "Waist Trim" logic) */
.player-img-box {
    position: relative;
    height: 350px;
    /* Adjust height to trim at the waist */
    background: #f0f0f0;
    overflow: hidden;
}

.player-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Keeps the focus on head and torso */
    transition: transform 0.5s ease;
}

/* Hover Effect */
.card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 70, 85, 0.85);
    /* Red Overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s ease;
}

.card-hover span {
    color: white;
    font-weight: 900;
    border: 2px solid white;
    padding: 10px 20px;
}

.player-card:hover .card-hover {
    opacity: 1;
}

.player-card:hover img {
    transform: scale(1.1);
}

/* Text Below Image */
.player-info {
    padding: 20px;
    text-align: center;
}

.player-info h3 {
    margin-bottom: 5px;
    font-weight: 900;
}

.player-info p {
    color: #ff4655;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Navigation Buttons */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff4655;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slide-btn.prev {
    left: 0;
}

.slide-btn.next {
    right: 0;
}

/* --- WALL OF LEGEND SECTION (CLEAN VERSION) --- */
.legend-section {
    padding: 100px 0;
    background-color: #0f0f0f;
    color: #ffffff;
}

.legend-section .section-title h2 {
    color: #ffffff;
}

.legend-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.legend-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.legend-img-box {
    position: relative;
    height: 380px;
    background: #e0e0e0;
    overflow: hidden;
}

.legend-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.legend-info {
    padding: 20px;
    text-align: center;
    background: white;
}

.legend-info h3 {
    margin: 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: #111111;
}

.legend-info p {
    color: #ff4655;
    font-weight: 600;
    margin-top: 5px;
}

.see-more-container {
    text-align: center;
    margin-top: 50px;
}

.see-more-btn {
    display: inline-block;
    padding: 15px 50px;
    background-color: #ffffff;
    color: #111;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    transition: 0.3s;
}

.see-more-btn:hover {
    background-color: #ff4655;
    color: #fff;
    transform: scale(1.05);
}


/* --- SITE FOOTER --- */
.site-footer {
    background-color: #050505;
    /* Deep black for esports feel */
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-top {
    padding: 80px 0 50px 0;
    border-top: 2px solid #ff4655;
    /* Team red accent line */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

/* Common Column Styling */
.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #ff4655;
    /* Team red heading */
    text-transform: uppercase;
    font-weight: 700;
}

/* Column 1: About */
.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.about-col p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    transition: 0.3s;
}

/* Control the size of your social images */
.social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Column 2: Navigation */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Column 3: Contact */
.contact-links {
    list-style: none;
    padding: 0;
}

.contact-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
}

/* Control the size of your contact images */
.contact-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* --- FOOTER BOTTOM BAR --- */
.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    border-top: 1px solid #222;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* --- PLAYER DETAIL PAGE STYLES --- */
.player-detail-page {
    background-color: #0a0a0a;
    color: #fff;
}

/* Center Logo Header */
.detail-header {
    padding: 20px 0;
    background: #000;
    border-bottom: 1px solid #222;
}

.logo-center {
    display: flex;
    justify-content: center;
}

.logo-center img {
    height: 60px;
}

/* 50/50 Wrapper */
.detail-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.player-flex-wrapper {
    display: flex;
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Left Side - Image */
.player-main-img {
    flex: 1;
    line-height: 0;
}

.player-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Side - Info Box */
.player-main-info {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    /* White background box as requested */
    color: #111;
}

.player-main-info h1 {
    font-size: 2.5rem;
    color: #ff4655;
    margin-bottom: 30px;
    font-weight: 900;
    border-left: 5px solid #ff4655;
    padding-left: 15px;
}

.info-grid {
    margin-bottom: 40px;
}

.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.info-row .label {
    width: 150px;
    font-weight: 700;
    color: #555;
}

.info-row .value {
    font-weight: 600;
    color: #111;
}

/* Green Active Status */
.status-active {
    color: #28a745 !important;
    /* Green */
    font-weight: 900 !important;
}

.back-home-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
}

.back-home-btn:hover {
    background: #ff4655;
}

/* --- ALL LEGENDS PAGE GRID --- */
.legend-page-body {
    background-color: #0a0a0a;
}

.legend-page-title {
    margin-top: 50px;
    text-align: center;
}

.legend-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 per line */
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Adjusting the card size slightly to fit 6 in a row nicely */
.legend-grid-6 .legend-img-box {
    height: 300px; 
}

.legend-grid-6 .legend-info h3 {
    font-size: 1.1rem;
}

/* --- MOBILE RESPONSIVE: HEADER & BOTTOM NAV --- */
@media (max-width: 768px) {
    /* 1. Center the logo and make it smaller */
    .main-header {
        padding: 10px 0;
        background-color: #0f0f0f;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .main-header .container {
        display: flex;
        justify-content: center; /* Centers the logo */
        align-items: center;
    }

    .logo img {
        height: 30px; /* Smaller logo for mobile */
        width: auto;
    }

    /* 2. Hide the original top menu */
    .nav-links {
        display: none;
    }

    /* 3. Telegram-style Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #111111; /* Slightly darker for better contrast */
        border-top: 1px solid #333;
        padding: 8px 0; /* Reduced padding for a tighter look */
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    }

    .nav-item {
        text-decoration: none;
        color: #ffffff; /* Brighter text for mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 15px; /* Creates the box area */
        border-radius: 10px; /* Rounded corners for the hover box */
        transition: all 0.3s ease;
    }

    .nav-text {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* THE HOVER/CLICK BOX EFFECT */
    .nav-item:active, .nav-item:hover {
        background-color: rgba(255, 70, 85, 0.15); /* Soft red box background */
        color: #ff4655; /* Highlight text color */
    }

    /* Add padding to body so content isn't hidden behind the bar */
    body {
        padding-bottom: 70px;
    }
}

/* Hide the bottom bar on Desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* --- MOBILE RESPONSIVE: BANNER & FEATURE (GAP FIX) --- */
@media (max-width: 768px) {
    
    /* 1. Header/Banner connection */
    .banner-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: auto !important;
    }

    /* 2. CRITICAL VOID FIX: Force all slider containers to wrap the image */
    .slider, 
    .slides, 
    #slide-train, 
    .slide {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        position: relative;
        overflow: hidden;
        margin-bottom: 0 !important;
    }

    .image-container {
        width: 100%;
        height: auto !important;
        position: relative;
        display: block;
    }

    .image-container img {
        width: 100%;
        height: auto !important;
        display: block; /* Removes bottom ghost gap */
    }

    /* 3. Text Centering Fix */
    .hover-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
        font-size: 1.5rem !important; 
        color: white;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 4. Controls Fix (Inside the image) */
    .controls {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 0; 
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        padding: 0 15px;
        margin: 0 !important;
    }

    .controls button {
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 18px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        color: white !important;
        border-radius: 50% !important;
        cursor: pointer;
        z-index: 10;
    }

    /* 5. FEATURE SECTION (STUCK TO BANNER) */
    .feature-section {
        margin-top: 0 !important; /* Removes the gap from the void */
        padding-top: 20px !important; /* Small space inside for the logo */
        background-color: #0f0f0f;
    }

    .feature-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 20px 40px 20px;
        gap: 20px;
        margin-top: 0 !important;
    }

    .feature-image {
        width: 100%;            
        max-width: 180px; /* Slightly smaller logo for better fit */
        margin: 0 auto;
    }

    .feature-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;    
        display: block;
    }

    .feature-text {
        width: 100%;
        padding: 0 10px;
    }

    .feature-text h2 {
        font-size: 1.8rem;      
        margin-bottom: 15px;
        color: #ff4655;
    }

    .feature-text p {
        font-size: 1rem;
        line-height: 1.6;
        color: #cccccc;         
    }
}

/* --- MOBILE RESPONSIVE: 4-PLAYER GRID SLIDER (2x2) --- */
@media (max-width: 768px) {
    .player-section {
        padding: 40px 0;
        background-color: #0a0a0a;
        overflow: hidden;
    }

    .section-title h2 {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 20px;
        color: #fff;
    }

    /* 1. The Container: Forced to screen width */
    .player-slider-container {
        width: 100vw;
        position: relative;
        overflow: hidden;
    }

    /* 2. The Track: Holds groups of 4 */
    .player-track {
        display: flex;
        width: 100%;
        transition: transform 0.5s ease-in-out;
    }

    /* 3. The Grid Logic: Each "slide" is a 2x2 grid of 4 players */
    /* We treat the player-track as a long line of cards, 
       but we size them so 4 fit in the viewport grid-style */
    .player-track {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: repeat(auto-fill, 50vw); /* 2 columns across */
        grid-template-rows: repeat(2, auto); /* 2 rows high */
    }

    .player-card {
        width: 50vw; /* Half screen width */
        padding: 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
    }

    /* 4. Small Clean Cards */
    .card-inner {
        background: #1a1a1a;
        border-radius: 12px;
        width: 100%;
        overflow: hidden;
        border: 1px solid #333;
    }

    .player-img-box {
        width: 100%;
        height: 180px;
        position: relative;
    }

    .player-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .player-info {
        padding: 10px 5px;
        text-align: center;
    }

    .player-info h3 {
        font-size: 0.9rem !important; /* Smaller text for 4-grid */
        color: #fff;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .player-info p {
        font-size: 0.75rem !important;
        color: #ff4655;
        margin-top: 4px;
        font-weight: 700;
    }

    /* 5. Controls: Positioned on the sides */
    .slide-btn {
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 70, 85, 0.9) !important;
        border-radius: 6px !important;
        color: white !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: none !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    .slide-btn.prev { left: 5px; }
    .slide-btn.next { right: 5px; }

    /* Hide desktop hovers */
    .card-hover { display: none !important; }
}

/* --- MOBILE RESPONSIVE (SMARTPHONES) --- */
@media (max-width: 768px) {
    
    .detail-header {
        padding: 15px 0;
        background: #000;
        border-bottom: 1px solid #ff4655;
    }

    .logo-center img {
        height: 35px;
        display: block;
        margin: 0 auto;
    }

    .detail-container {
        padding: 0;
    }

    /* 1. Stack Image on Top, Text on Bottom */
    .player-flex-wrapper {
        flex-direction: column; 
        align-items: center;
        padding: 20px;
        gap: 20px; /* Reduced gap slightly for a tighter look */
    }

    /* 2. Force Image to be Square and smaller than info */
    .player-main-img {
        width: 75%; 
        aspect-ratio: 1 / 1; 
        overflow: hidden;
        border-radius: 12px;
        border: 2px solid #ff4655; 
    }

    .player-main-img img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }

    /* 3. Info Section below */
    .player-main-info {
        width: 100%;
        text-align: left;
    }

    .player-main-info h1 {
        font-size: 1.6rem;
        color: #ff4655;
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
    }

    /* 4. BALANCED INFO GRID FIX */
    .info-row {
        display: flex;
        align-items: flex-start; /* Keeps things aligned if text wraps to 2nd line */
        padding: 15px 0;
        border-bottom: 1px solid #222;
    }

    .label {
        flex: 0 0 110px; /* FIXED WIDTH: This ensures all values start at the same spot */
        color: #888;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .value {
        flex: 1; /* Takes up the rest of the space */
        color: #fff;
        font-weight: 500;
        font-size: 1rem;
        text-align: left; /* Aligns all text to the same left "line" */
        line-height: 1.4;
    }

    .status-active {
        color: #00ff00 !important;
        text-transform: uppercase;
        font-weight: bold;
    }

    /* Back Button Center */
    .back-home-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 30px;
        padding: 15px;
        background: #ff4655;
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        border-radius: 8px;
        transition: 0.3s;
    }
}

/* --- MOBILE RESPONSIVE: COMPACT WHITE-BOTTOM LEGEND GRID --- */
@media (max-width: 768px) {
    .legend-section {
        padding: 30px 0;
        background-color: #0f0f0f;
    }

    /* 1. Narrow the container to shrink the cards */
    .legend-container {
    width: 75%;
    margin: 0 auto;

    display: flex;              /* 🔥 THIS IS WHAT YOU MISSED */
    justify-content: center;    /* center horizontally */
    align-items: center;        /* center vertically */
    gap: 20px;

    flex-wrap: wrap;            /* optional: responsive */
}


    .legend-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 5px;
    }

    /* 2. Small Card Styling */
    .legend-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    width: 180px;
}

    /* 3. Small Square Image */
    .legend-img-box {
        width: 100%;
        height: 100%;
        background: #000; /* Keeps image area dark if photo is missing */
    }

    .legend-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 4. Compact Info Area (White background, Black text) */
    .legend-info {
        padding: 6px 4px;
        text-align: center;
        background: #ffffff; /* Explicit white background */
    }

    .legend-info h3 {
        font-size: 0.75rem !important; /* Small text */
        color: #000000 !important; /* BLACK NAME */
        margin: 0;
        text-transform: uppercase;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .legend-info p {
        font-size: 0.6rem !important;
        color: #ff4655 !important; /* DNVG Red for status */
        font-weight: 700;
        margin-top: 2px;
    }

    /* 5. Button Fix */
    .see-more-btn {
        padding: 8px 25px;
        font-size: 0.8rem;
        border-radius: 4px;
        margin-top: 5px;
    }

    .see-more-container {
    margin-top: 2px;   /* bring button closer to cards */
    display: flex;
    justify-content: center;
}
}

/* Mobile Responsive (2 Columns) - FULL UPDATE */
@media (max-width: 768px) {
    
    .legend-page-title h2 {
        font-size: 1.8rem;
        margin-top: 20px;
        text-align: center; /* Ensures title is centered too */
    }

    /* 1. Grid Adjustment: Fixed centering with margin auto */
    .legend-grid-6 {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
        padding: 20px 10px; /* Reduced side padding */
        width: 90%; /* Shrink slightly to ensure it fits with room to breathe */
        margin: 0 auto !important; /* THE FIX: Centers the entire grid on the screen */
        justify-items: center; /* Centers cards inside their grid cells */
    }

    /* 2. Compact Card Styling */
    .legend-grid-6 .legend-card {
        background: #ffffff;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #ddd;
        height: auto;
        width: 100%; /* Card fills its half of the grid */
        display: flex;
        flex-direction: column;
    }

    /* 3. Image Box: Perfect Square */
    .legend-grid-6 .legend-img-box {
        width: 100%;
        aspect-ratio: 1 / 1; 
        height: auto !important;
        overflow: hidden;
    }

    .legend-grid-6 .legend-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 4. Text Info (Black Name on White) */
    .legend-grid-6 .legend-info {
        padding: 10px 5px;
        text-align: center;
        background: #fff;
    }

    .legend-grid-6 .legend-info h3 {
        font-size: 0.8rem !important;
        color: #000 !important; 
        margin: 0;
        text-transform: uppercase;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .legend-grid-6 .legend-info p {
        font-size: 0.65rem !important;
        color: #ff4655 !important; 
        font-weight: 700;
        margin: 2px 0 0 0;
    }

    /* 5. Footer Padding */
    .legend-page-body {
        padding-bottom: 80px; /* More space for a clean finish */
    }
}

/* --- MOBILE RESPONSIVE: COMPACT SPLIT FOOTER --- */
@media (max-width: 768px) {
    .site-footer {
        /* FIXED: Reduced top padding from 40px to 10px to be near the top line */
        padding: 10px 0 70px 0; 
        background-color: #0a0a0a;
        color: #fff;
    }

    /* 1. The Grid Layout */
    .footer-grid {
        display: grid;
        grid-template-columns: 1.4fr 1fr; 
        grid-template-areas: 
            "about contact"
            "about links";
        gap: 15px; /* Tighter gap */
        padding: 0 15px;
    }

    .about-col { grid-area: about; }
    .contact-col { grid-area: contact; }
    .links-col { grid-area: links; }

    /* 2. Left Side: About Column */
    .footer-logo {
        height: 25px; /* Slightly smaller to save space */
        margin-bottom: 10px;
    }

    .about-col p {
        font-size: 0.8rem;
        line-height: 1.4;
        color: #bbb;
        margin-bottom: 10px;
    }

    .social-icons {
        display: flex;
        gap: 10px;
    }

    .social-icon img {
        width: 18px;
        filter: grayscale(1) invert(1);
    }

    /* 3. Column Content Styling */
    .footer-col h3 {
        font-size: 0.85rem;
        color: #ff4655;
        text-transform: uppercase;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }

    .footer-links li, .contact-links li {
        font-size: 0.75rem;
        margin-bottom: 6px; /* Tighter spacing */
        color: #ccc;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .contact-img {
        width: 12px;
    }

    /* 4. Footer Bottom: Compact and near the bottom line */
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        /* FIXED: Reduced padding and margin to be near the bottom line */
        padding-top: 10px; 
        border-top: 1px solid #222;
        margin-top: 15px; 
    }

    .footer-bottom p {
        font-size: 0.65rem;
        color: #555;
        margin: 0;
    }

    .footer-bottom-links a {
        font-size: 0.7rem;
        margin: 0 8px;
        color: #777;
        text-decoration: none;
    }
}