* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    padding-right: 3px;
    background-color: #c40000;
}

.logo-name {
    color: #fff;
    font-size: 16px;
    margin-left: 15px;
}

.academy-name h1 {
    font-size: 16px;
    margin: 0;
    color: #fff;
}

.academy-name span {
    font-size: 12px;
    color: #ccc;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
}

.nav-links a:after {
    position: absolute;
    width: 0;
    height: 2px;
    background: #fff;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* HAMBURGER */
#nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}


/* HERO */
.hero {
    min-height: 70vh;
    background: url("/static/images/teams/img_cover.jpg") center/cover no-repeat;
    position: relative;
    color: white;
    align-items: center;
    display: flex;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-text {
    position: relative;
    max-width: 600px;
    padding: 180px 10%;
}

.hero-btn {
    display: inline-block;
    margin-top: 15px;
    background: #c40000;
    padding: 10px 18px;
    border-radius: 6px;
    color: white;
}

/* WELCOME */
.welcome {
    text-align: center;
    padding: 60px 20px;
}

.welcome-logo {
    width: 200px;
    margin-bottom: 15px;
}

/* TEAMS */
.teams {
    padding: 40px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 20px;
}

.team {
    text-align: center;
}

.team img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
}

/* News Update */
.news-section {
    padding: 60px 20px;
    background: #f4f4f4;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.news-content a {
    display: inline-block;
    margin-top: 10px;
    color: #004aad;
    text-decoration: none;
    font-weight: bold;
}

/* Match */
.match-section {
    display: flex;
    gap: 25px;
    padding: 40px;
    background-color: #f4f6f9;
}

/* Match Box */
.match-box {
    flex: 1;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.section-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

/* Match Card */
.match-card {
    background: #f9fafb;
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.match-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Status Badge */
.status {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
}

/* Status Colors */
.league {
    background-color: #1e3a8a;
}

.friendly {
    background-color: #16a34a;
}

.tournament {
    background-color: #f59e0b;
}

.cup {
    background-color: #dc2626;
}

/* Home / Away */
.home-indicator {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
}

.home {
    background-color: #e0f2fe;
    color: #0369a1;
}

.away {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Text Styling */
.age-group {
    font-weight: 600;
    margin-bottom: 3px;
}

.teams {
    font-size: 15px;
    margin-bottom: 5px;
}

.match-time,
.venue {
    font-size: 13px;
    color: #6b7280;
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 18px;
    background-color: #1e3a8a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.btn:hover {
    background-color: #162e6f;
}

/* Academy Stats Style */
.academy-performance {
    padding: 60px 5%;
    background: #f9f9f9;
}

.academy-performance h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* Summary */
.academy-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.summary-card {
    flex: 1;
    min-width: 180px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.summary-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* Age Cards */
.age-group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.age-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    position: relative;
}

.age-card.green { border-top: 6px solid #1a7f37; }
.age-card.orange { border-top: 6px solid #e37400; }
.age-card.red { border-top: 6px solid #d93025; }

.top-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: gold;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Win Rate Bar */
.win-rate-bar {
    background: #eee;
    border-radius: 20px;
    margin-top: 15px;
    overflow: hidden;
}

.win-rate-fill {
    background: #111;
    color: white;
    padding: 6px;
    text-align: center;
    font-size: 12px;
}

/* INFO */
.info-section {
    padding: 40px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.results, .gallery {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 295px;
    object-fit: cover;
    border-radius: 10px;
}

/* BUTTONS */
.red-btn {
    background: #c40000;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
}

.blue-btn {
    background: #1b4da3;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
}

/* FOOTER */
/* FOOTER */
.footer {
    margin-top: 100px;
    background: rgba(43, 41, 41, 0.85);
    color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: flex-start;
}

/* BRAND */
.footer-brand img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-bottom: 15px;
    padding-right: 3px;
    background-color: #c40000;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
}

/* LINKS */
.footer-links h4,
.footer-social h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

/* SOCIAL */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 100px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.15);
}

/* COPYRIGHT */
.footer-bottom {
    text-align: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.95);
    font-size: 0.85rem;
    color: #ccc;
}



/* FOOTER RESPONSIVE */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ================= MOBILE ================= */
    /* MOBILE MENU */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-links a {
        padding: 16px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #nav-toggle:checked ~ .nav-links {
        max-height: 300px;
    }

    
}

.info-section {
        grid-template-columns: 1fr;
    }



/* ================= DESKTOP ================= */
@media (min-width: 769px) {
    .profile-btn {
        background: #c40000;
        color: white;
    }
}

/* News Section */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 220px;
    }
}

/* Matches */
@media (max-width: 768px) {
    .match-section {
        flex-direction: column;
        padding: 20px;
    }
}

/* Academy stats */
@media (max-width: 768px) {
    .academy-summary {
        flex-direction: column;
    }
}

/* SOCIAL ICONS */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    width: 20px;
    height: 20px;
    background: #444;
    color: #0b2a5b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #444;
    color: #fff;
    transform: translateY(-3px);
}
