/* Modern Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Modern Navigation */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    padding: 1rem 0;
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    text-decoration: none;
}

.brand-text {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo {
    border-radius: 8px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.1);
}

.modern-dropdown {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.modern-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.modern-dropdown .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Modern Buttons */
.modern-btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0.025em;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.4);
}

.modern-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(16, 185, 129, 0.0)), url('../Images/football1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.feature-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.feature-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Content Sections */
.priority-section,
.whats-next-section {
    padding: 6rem 0;
}

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

.whats-next-section {
    background: var(--bg-white);
}

.content-section {
    padding: 2rem 0;
}

.content-section .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.priority-list {
    list-style: none;
    margin: 2rem 0;
}

.priority-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-weight: 500;
}

.priority-list li i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.image-container img {
    transition: var(--transition);
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

/* Next Steps */
.next-steps {
    margin-top: 3rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    margin: 0;
}

/* About Section */
.about-section {
    position: relative;
}

.about-slide {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(37, 99, 235, 0.3));
}

.about-content {
    position: relative;
    z-index: 2;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-content p {
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.about-stats {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.about-stats .stat-number {
    font-size: 2rem;
    color: white;
}

.about-stats .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.mission-points {
    list-style: none;
    margin: 2rem 0;
}

.mission-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.mission-points li i {
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../Images/pattern.svg') repeat;
    opacity: 0.1;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.modern-footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-section h4,
.footer-section h5 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    border-radius: 8px;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.office-hours {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter h6 {
    margin-bottom: 0.5rem;
    color: white;
}

.newsletter p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    border: none;
    background: var(--primary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-buttons .modern-btn,
    .cta-buttons .modern-btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-section .col-6 {
        margin-bottom: 2rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Events Page Styles */
.events-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.8)), url('../Images/schoolkid.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.events-intro {
    padding: 6rem 0;
    background: var(--bg-light);
}

.intro-content .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.our-events {
    padding: 6rem 0;
    background: var(--bg-white);
}

.event-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.event-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.event-card:hover .event-overlay {
    opacity: 1;
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.event-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.event-stats .stat i {
    color: var(--primary-color);
}

/* Football League Styles */
.football-league {
    padding: 6rem 0;
    background: var(--bg-light);
}

.game-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tournament-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.league-logo {
    width: 40px;
    height: 40px;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.team {
    text-align: center;
}

.team-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo img {
    width: 50px;
    height: 50px;
}

.team-name {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
}

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

.game-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.game-date .time {
    font-weight: 600;
    color: var(--text-dark);
}

.game-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.score-divider {
    color: var(--text-light);
    margin: 0 0.5rem;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.game-info > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.game-info i {
    color: var(--primary-color);
}

/* League Table */
.league-table-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.table-header {
    text-align: center;
    margin-bottom: 2rem;
}

.league-table {
    margin: 0;
}

.league-table th {
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
}

.league-table td {
    padding: 0.75rem 0.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.position-badge {
    width: 24px;
    height: 24px;
    background: var(--text-muted);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.position-1 .position-badge {
    background: #ffd700;
    color: #000;
}

.position-2 .position-badge {
    background: #c0c0c0;
    color: #000;
}

.position-3 .position-badge {
    background: #cd7f32;
    color: white;
}

.positive {
    color: var(--secondary-color);
    font-weight: 600;
}

.negative {
    color: #ef4444;
    font-weight: 600;
}

.table-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.champion {
    background: #ffd700;
}

.legend-color.qualification {
    background: var(--secondary-color);
}

.legend-color.relegation {
    background: #ef4444;
}

/* Program Detail Sections */
.program-detail {
    padding: 6rem 0;
}

.sports-detail {
    background: var(--bg-white);
}

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

.visit-detail {
    background: var(--bg-white);
}

.program-content .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.program-features {
    list-style: none;
    margin: 2rem 0;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-weight: 500;
}

.program-features li i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.program-context1 {
    position: relative;
}

.main-image {
    margin-bottom: 1rem;
}

.main-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}


/* Gallery Page Styles */
.gallery-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.8)), url('../Images/siteVisit1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

/* putting the hero section subtitle for gallery and events here */
.hero-subtitle-gallery, .hero-subtitle-events {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.gallery-nav {
    padding: 4rem 0 2rem;
    background: var(--bg-light);
}

.nav-tabs-wrapper {
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    display: inline-block;
    width: 100%;
}

.gallery-pills .nav-link {
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-pills .nav-link.active,
.gallery-pills .nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.gallery-content {
    padding: 4rem 0;
    background: var(--bg-white);
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    padding: 1rem;
}

.gallery-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.gallery-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-info i {
    font-size: 2rem;
    opacity: 0.8;
}

.photo-stats {
    padding: 4rem 0;
    background: var(--bg-light);
}

/* Responsive Design for Events and Gallery */
@media (max-width: 768px) {
    .game-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .game-score {
        font-size: 2rem;
    }
    
    .league-table th,
    .league-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .gallery-pills .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .program-content,
    .program-gallery {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .game-card,
    .league-table-card {
        padding: 1rem;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .gallery-pills {
        flex-direction: column;
    }
    
    .gallery-pills .nav-link {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .table-legend {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Utility Classes */
.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}
