:root {
    --primary: #006847;
    /* Dark Green from logo */
    --primary-light: #008f62;
    --primary-dark: #004d33;
    --secondary: #121212;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --text: #333333;
    --transition: all 0.3s ease;
    --container: 1200px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #004d33;
    /* Fallback brand color */
    color: var(--white);
    overflow: hidden;
}

/* ... existing code ... */

/* Sliders */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.history-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.66%;
    /* Aspect Ratio 3:2 */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.history-slider .slide {
    border-radius: 20px;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 77, 51, 0.8) 0%, rgba(18, 18, 18, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 10px;
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    margin: 10px auto;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.img-rounded {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.bg-light {
    background: var(--light);
}

/* Cards/Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Teams */
.teams-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-banner {
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('stadium.png') center/cover;
    border-radius: 15px;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    color: var(--white);
}

.team-banner.secondary {
    background: linear-gradient(rgba(0, 104, 71, 0.7), rgba(0, 104, 71, 0.7)), url('hero.png') center/cover;
}

.banner-text h3 {
    font-size: 2rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Changed to 2 columns */
    gap: 60px;
    margin-bottom: 50px;
}

.nav-highlight {
    font-weight: 800;
    color: var(--primary-dark) !important;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1.5rem;
}

.footer-info p {
    opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Sliders */
.slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#history-slider {
    position: relative;
    height: 0;
    padding-bottom: 66.66%;
    /* 3:2 Aspect Ratio */
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: top center;
    border-radius: inherit;
}

.slide.active {
    opacity: 1;
}

/* History slider specific cleanup if needed */


/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.lang-btn {
    padding: 4px 8px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* Dynamic Sections */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.member-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.member-card h4 {
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.member-card span {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.team-badge {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    gap: 1rem;
}

.team-badge:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

.team-badge h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.btn-white:hover {
    background: var(--light);
    transform: scale(1.05);
}

/* Modal for Squad */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-dark);
}

.squad-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 1.5rem;
}

.player-item {
    padding: 10px 15px;
    background: var(--light);
    border-radius: 8px;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* ... existing responsive styles ... */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 3rem;
        transition: 0.4s;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }
}