/* =================== THEME & BASE =================== */
:root {
    --primary: #22237d;
    --white: #fff;
    --gray-bg: #f4f4f4;
    --shadow: 0 2px 8px rgba(34,35,125,0.08);
    --radius: 16px;
    --font-main: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--gray-bg);
    color: #222;
    line-height: 1.6;
}

/* =================== NAVBAR =================== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 100;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}

.navbar .logo img {
    height: 85px;       
    width: 85px;        
    display: block;
}



.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-mobile-toggle {
    display: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    margin-left: 1rem;
}

/* =================== HERO SECTION =================== */
.hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius);
    margin: 1.5rem auto 2rem auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url('../images/group/celebration.jpg') center/cover no-repeat;
    opacity: 0.25;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    width: 100%;
}

.hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 32px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: background 0.2s, color 0.2s;
}

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

/* =================== SECTION BASE =================== */
.section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* =================== HORIZONTAL SCROLL CONTROLS =================== */
.h-btn {
    background: var(--white);
    border: 1px solid #e6e8ff;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    margin: 0.25rem;
}
.h-btn:hover { transform: translateY(-2px); background: #f6f7ff; }
.h-btn:active { transform: translateY(0); }
.h-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* =================== CARDS =================== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #4a4a9e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(34,35,125,0.15);
}

/* =================== SCOREBOARD =================== */
.scoreboard-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.scoreboard-card {
    flex: 1 1 260px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.score {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

.match-info {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.next-match {
    background: #eef0ff;
    border: 1px solid #dbe2ff;
}

/* =================== NEWS SECTION =================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(34,35,125,0.2);
}

.news-img {
    height: 220px;
    background: #dbe2ff;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.2rem 1.2rem 4rem 1.2rem;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.news-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h3 {
    color: #1a1b5c;
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.btn-secondary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 24px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: #18195a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,35,125,0.3);
}

.news-card .news-read-more {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

/* =================== HISTORY SECTION =================== */
.history-section .history-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.history-img {
    width: 320px;
    height: 220px;
    background: #dbe2ff;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.history-text {
    flex: 1 1 300px;
    font-size: 1.1rem;
    color: #333;
}



/* =================== TEAM / PLAYERS =================== */
.team-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem;
    flex: 0 0 auto;
    scroll-snap-align: start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.player-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(34,35,125,0.2);
}

.team-grid .player-card { width: clamp(220px, 33vw, 340px); }

.player-img {
    width: 140px;
    height: 140px;
    background: #dbe2ff;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), #4a4a9e);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.player-card:hover .player-img::before {
    opacity: 0.1;
}

.player-card:hover .player-img {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(34,35,125,0.3);
}

.player-info h3 {
    margin: 0 0 0.3rem 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.player-card:hover .player-info h3 {
    color: #1a1b5c;
}

.player-info span {
    display: block;
    color: #555;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.player-link {
    margin-top: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    background: rgba(34,35,125,0.1);
    transition: all 0.3s ease;
}

.player-link:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-1px);
}

/* =================== MATCH RESULTS / FIXTURES =================== */
.matches-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.match-card {
    flex: 1 1 260px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 6px solid #dbe2ff;
    transition: border-color 0.2s;
}

.match-card.win { border-left-color: #2ecc40; }
.match-card.draw { border-left-color: #ffdc00; }
.match-card.loss { border-left-color: #ff4136; }

.match-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.match-score {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: bold;
}

.match-details {
    font-size: 0.95rem;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}


@media (max-width: 600px) {
  #matches.section {
    margin: 1rem auto 0.5rem auto;
    padding: 0 1rem;
  }

  #matches .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .matches-list {
    gap: 0.5rem;
    justify-content: center;
  }

  .match-card {
    flex: 1 1 120px;
    min-width: 120px;
    padding: 0.5rem 0.4rem;
    margin-bottom: 0.5rem;
    border-left-width: 3px;
  }

  .match-teams {
    gap: 0.25rem;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .match-score {
    font-size: 1.1rem;
    margin-bottom: 0.05rem;
  }

  .match-details {
    font-size: 0.75rem;
    gap: 0.05rem;
    margin-top: 0.25rem;
    text-align: center;
  }

  .match-details span {
    line-height: 1.2;
  }
}


/* =================== VIDEO HIGHLIGHTS =================== */
.highlights-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.highlight-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    padding: 0;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.highlights-grid .highlight-card { width: clamp(300px, 40vw, 500px); }

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #dbe2ff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* =================== GALLERY =================== */
.gallery-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}
.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-img {
    height: 200px;
    background: #dbe2ff;
    border-radius: var(--radius);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.gallery-grid .gallery-img { width: clamp(250px, 35vw, 400px); }

.gallery-img:hover {
    box-shadow: 0 4px 16px rgba(34,35,125,0.15);
    transform: scale(1.04);
}

.gallery-lightbox-placeholder {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* =================== SPONSORS =================== */
.sponsors-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0;
}

.sponsor-logo {
    height: 90px;
    background: #bbb;
    border-radius: var(--radius);
    filter: grayscale(1);
    transition: filter 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.sponsors-grid .sponsor-logo { width: clamp(150px, 22vw, 280px); }

.sponsor-logo:hover {
    filter: grayscale(0);
    box-shadow: 0 4px 16px rgba(34,35,125,0.15);
}

/* =================== CONTACT US =================== */
.contact-section .contact-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.contact-info {
    flex: 1 1 260px;
    background: #eef0ff;
    border-radius: var(--radius);
    padding: 1.2rem;
    color: #222;
    margin-bottom: 1rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.contact-info iframe {
    width: 100% !important;
    max-width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-form {
    flex: 2 1 320px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.contact-form label {
    font-weight: 500;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #dbe2ff;
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 0.5rem;
    background: #f8f8ff;
    transition: border-color 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.contact-form button {
    align-self: flex-start;
    width: auto;
    min-width: 120px;
}

/* =================== FOOTER =================== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-social {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
/* 
.social-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
    position: relative;
    transition: background 0.2s;
}

.social-icon.facebook::before {
    content: "f";
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #4267B2;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

.social-icon.instagram::before {
    content: "I";
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #E1306C;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

.social-icon.youtube::before {
    content: "Y";
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #FF0000;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: #dbe2ff;
}
    */

.back-to-top {
    display: inline-block;
    margin-top: 1rem;
    color: var(--white);
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.2s;
}

.back-to-top:hover {
    color: #ffdc00;
}

/* =================== PLACEHOLDER IMAGES =================== */
.placeholder-img,
.placeholder-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    background: #dbe2ff;
    border-radius: var(--radius);
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 600px) {
  #scoreboard.section {
    margin: 1rem auto 0.5rem auto;
    padding: 0 1rem;
  }

  #scoreboard .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .scoreboard-cards {
    gap: 0.5rem;
    justify-content: center;
  }

  .scoreboard-card {
    flex: 1 1 120px;
    min-width: 120px;
    padding: 0.5rem 0.4rem;
    margin-bottom: 0.5rem;
  }

  .teams {
    gap: 0.25rem;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .score {
    font-size: 1.1rem;
    margin-bottom: 0.05rem;
  }

  .match-info {
    font-size: 0.75rem;
    gap: 0.05rem;
    margin-top: 0.25rem;
    text-align: center;
  }

  .match-info span {
    line-height: 1.2;
  }

  .next-match {
    background: #eef0ff;
    border: 1px solid #dbe2ff;
    padding: 0.5rem 0.4rem;
  }

  .next-match strong {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.25rem;
  }
}



/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .section {
        padding: 0 1.5rem;
    }
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .navbar-container {
        padding: 0.75rem 1.5rem;
    }
    
    .section {
        padding: 0 1.25rem;
        margin: 1.5rem auto;
    }
    
    .scoreboard-cards,
    .matches-list {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .scoreboard-card,
    .match-card {
        padding: 0.75rem;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .teams,
    .match-teams {
        font-size: 0.9rem;
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .score,
    .match-score {
        font-size: 1rem;
        font-weight: bold;
    }
    
    .match-info,
    .match-details {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }
    
    
    .history-section .history-content,
    .contact-section .contact-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .hero {
        min-height: 300px;
        margin: 1.25rem auto 1.75rem auto;
    }
    
    .hero-overlay h1 {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0.5rem 1rem;
        position: relative;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        background: var(--white);
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        padding: 2rem;
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-links.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        border-radius: 8px;
        font-size: 1.3rem;
        font-weight: 500;
        transition: all 0.2s ease;
        text-align: center;
        background: transparent;
        color: var(--primary);
        text-decoration: none;
        min-width: 180px;
    }
    
    .nav-links a:hover {
        background: var(--primary);
        color: var(--white);
    }
    
    /* Close button for mobile menu - hidden on desktop */
    .nav-links .close-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: var(--white);
        border: none;
        border-radius: 50%;
        font-size: 1.2rem;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        z-index: 1001;
    }
    
    .nav-links .close-btn:hover {
        background: #18195a;
    }
    
    .nav-mobile-toggle {
        display: block;
        font-size: 1.75rem;
        color: var(--primary);
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    .nav-mobile-toggle:hover {
        background: #f0f2ff;
    }
    
    .nav-mobile-toggle.active {
        background: var(--primary);
        color: var(--white);
    }
    
    .hero {
        min-height: 250px;
        margin: 1rem auto 1.5rem auto;
        border-radius: 12px;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        border-radius: 28px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-card {
        margin-bottom: 1rem;
    }
    
    .news-content {
        padding: 1rem 1rem 3.5rem 1rem;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .btn-secondary {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .team-grid,
    .highlights-grid,
    .gallery-grid,
    .sponsors-grid {
        gap: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .player-card {
        padding: 1rem;
        width: clamp(200px, 40vw, 280px);
    }
    
    .player-img {
        width: 100px;
        height: 100px;
        margin-bottom: 0.75rem;
    }
    
    .player-info h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .highlight-card {
        width: clamp(280px, 50vw, 400px);
        height: 180px;
    }
    
    .gallery-img {
        width: clamp(220px, 42vw, 340px);
        height: 150px;
    }
    
    .sponsor-logo {
        width: clamp(130px, 25vw, 200px);
        height: 70px;
    }
    
    .contact-section .contact-content {
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .contact-info iframe {
        width: 100% !important;
        height: 250px;
        margin-top: 0.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer {
        padding: 1.5rem 1rem 1rem 1rem;
        margin-top: 2rem;
        min-height: auto;
        position: relative;
        bottom: 0;
    }
    
    .footer-content {
        padding: 0;
        margin: 0;
    }
    
    .footer-social {
        gap: 1.25rem;
        margin: 1rem 0;
    }
    
    .back-to-top {
        display: block;
        margin-top: 1rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0.5rem 0.75rem;
    }
    
    .section {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }
    
    .hero {
        min-height: 200px;
        margin: 0.75rem auto 1.25rem auto;
        border-radius: 8px;
    }
    
    .hero-overlay h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 24px;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Extra compact scoreboard and matches sections */
    #scoreboard.section {
        margin: 0.75rem auto 0.25rem auto;
        padding: 0 0.75rem;
    }

    #scoreboard .section-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .scoreboard-card {
        padding: 0.4rem 0.3rem;
        margin-bottom: 0.4rem;
    }

    .teams {
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    .score {
        font-size: 1rem;
    }

    .match-info {
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }

    .next-match strong {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    #matches.section {
        margin: 0.75rem auto 0.25rem auto;
        padding: 0 0.75rem;
    }

    #matches .section-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .match-card {
        padding: 0.4rem 0.3rem;
        margin-bottom: 0.4rem;
    }

    .match-teams {
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    .match-score {
        font-size: 1rem;
    }

    .match-details {
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }
    
    .card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .news-content {
        padding: 0.875rem 0.875rem 3rem 0.875rem;
    }
    
    .news-content h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .news-date {
        font-size: 0.85rem;
    }
    
    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 18px;
    }
    
    .player-card {
        padding: 0.875rem;
        width: clamp(180px, 45vw, 240px);
    }
    
    .player-img {
        width: 90px;
        height: 90px;
        margin-bottom: 0.5rem;
    }
    
    .player-info h3 {
        font-size: 0.95rem;
    }
    
    .player-info span {
        font-size: 0.85rem;
    }
    
    .highlight-card {
        width: clamp(260px, 55vw, 360px);
        height: 160px;
    }
    
    .gallery-img {
        width: clamp(200px, 45vw, 300px);
        height: 130px;
    }
    
    .sponsor-logo {
        width: clamp(110px, 28vw, 180px);
        height: 60px;
    }
    
    .contact-form {
        padding: 0.875rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 1.25rem 0 0.75rem 0;
    }
    
    .footer-social {
        gap: 1rem;
    }
    
    .footer-social a {
        font-size: 1.25rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .section {
        padding: 0 0.5rem;
    }
    
    .hero-overlay h1 {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 0.875rem;
    }
    
    .news-content {
        padding: 0.75rem 0.75rem 2.5rem 0.75rem;
    }
    
    .player-card {
        width: clamp(160px, 50vw, 200px);
        padding: 0.75rem;
    }
    
    .player-img {
        width: 80px;
        height: 80px;
    }
    
    .highlight-card {
        width: clamp(240px, 60vw, 320px);
        height: 140px;
    }
    
    .gallery-img {
        width: clamp(180px, 50vw, 280px);
        height: 120px;
    }
}

/* =================== ADDITIONAL ENHANCEMENTS =================== */

/* Smooth animations for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced focus states for accessibility */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #18195a;
}

/* Improved text selection */
::selection {
    background: rgba(34,35,125,0.2);
    color: var(--primary);
}

/* Enhanced button animations */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced hero section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34,35,125,0.8), rgba(74,74,158,0.6));
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

/* Enhanced sponsor logos */
.sponsor-logo {
    transition: all 0.3s ease;
    position: relative;
}

.sponsor-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34,35,125,0.1), rgba(74,74,158,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius);
}

.sponsor-logo:hover::before {
    opacity: 1;
}

/* Hide close button on desktop */
@media (min-width: 769px) {
    .nav-links .close-btn {
        display: none;
    }
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    /* Disable hover effects on mobile */
    .card:hover,
    .news-card:hover,
    .player-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .news-card:hover .news-img,
    .player-card:hover .player-img {
        transform: none;
    }
    
    /* Enhanced touch targets */
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .section {
        margin: 1rem auto;
    }
    
    /* Improved mobile navigation */
    .nav-links.show {
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}