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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.maps-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.maps-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.phone-link {
    color: inherit;
    text-decoration: none;
    display: block;
    text-decoration: underline;
}

.phone-link:hover {
    text-decoration: underline;
    color: #e74c3c; /* red hover for phone */
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #10B981;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    background-image: url('https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?w=1600');
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px;
}

.hero-title {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: #fff;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Page Hero (for other pages) */
.page-hero {
    height: 40vh;
    background: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    background-image: url('https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?w=1600');
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.85);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px;
}

.page-hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.page-hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: #10B981;
    color: #fff;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: #FF6B35;
    color: #fff;
}

.btn-secondary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
    color: #2C3E50;
    font-weight: bold;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

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

.mt-40 {
    margin-top: 40px;
}

/* Achievements Section */
.achievements-section {
    background: #f8f9fa;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    padding: 30px;
    background: #fff;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 24px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.carousel-arrow {
    position: absolute;
    top: 250px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #2C3E50;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 4px;
}

.carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #fff;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #10B981;
    width: 14px;
    height: 14px;
}

/* Achievements Grid (for achievements page) */
.achievements-grid-section {
    background: #f8f9fa;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.achievement-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-content {
    padding: 25px;
}

.achievement-content h3 {
    font-size: 20px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.achievement-date {
    font-size: 14px;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 15px;
}

.achievement-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.about-content p {
    margin-bottom: 20px;
}

/* Programs Section */
.programs-section {
    background: #f8f9fa;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.program-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-card h3 {
    font-size: 22px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.program-age {
    font-size: 14px;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 15px;
}

.program-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Coaches Preview Section */
.coaches-preview-section {
    background: #fff;
}

.coaches-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.coach-preview-card {
    text-align: center;
}

.coach-preview-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #10B981;
}

.coach-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-preview-card h3 {
    font-size: 22px;
    color: #2C3E50;
    margin-bottom: 8px;
}

.coach-title {
    font-size: 16px;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 10px;
}

.coach-brief {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Coaches Page Styles */
.coaches-section {
    background: #f8f9fa;
}

.coach-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.coach-profile.reverse {
    grid-template-columns: 1fr 300px;
}

.coach-profile.reverse .coach-image {
    order: 2;
}

.coach-profile.reverse .coach-details {
    order: 1;
}

.coach-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.coach-details h2 {
    font-size: 32px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.coach-title-main {
    font-size: 18px;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 20px;
}

.coach-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.coach-info-item {
    font-size: 15px;
    color: #555;
}

.coach-info-item strong {
    color: #2C3E50;
}

.coach-description h3 {
    font-size: 20px;
    color: #2C3E50;
    margin: 25px 0 15px;
}

.coach-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.coach-description ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.coach-description ul li {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Teaching Standards Section */
.teaching-standards-section {
    background: #fff;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.standard-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #10B981;
}

.standard-card h3 {
    font-size: 20px;
    color: #2C3E50;
    margin-bottom: 15px;
}

.standard-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.methodology-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.methodology-section h3 {
    font-size: 26px;
    color: #2C3E50;
    margin-bottom: 20px;
}

.methodology-section p {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
}

/* Gallery Section */
.gallery-section {
    background: #f8f9fa;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay span {
    font-size: 16px;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #10B981;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Contact Section */
.contact-section {
    background: #fff;
}

.contact-grid {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.contact-item h3 {
    font-size: 20px;
    color: #2C3E50;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2C3E50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #10B981;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(44, 62, 80, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .page-hero-content h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .carousel-image {
        height: 300px;
    }

    .carousel-arrow {
        top: 150px;
        padding: 10px 15px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

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

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

    .coach-profile.reverse {
        grid-template-columns: 1fr;
    }

    .coach-profile.reverse .coach-image {
        order: 1;
    }

    .coach-profile.reverse .coach-details {
        order: 2;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .carousel-caption h3 {
        font-size: 20px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

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


/* ===== CUSTOMIZABLE: TAMIL NADU STATE RANKING SECTION ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.state-ranking-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: rgb(71, 71, 71);
    margin-bottom: 2rem;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.state-ranking-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* State Ranking Table */
.state-ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.state-ranking-table thead {
    background: linear-gradient(135deg, #0f766e 0%, #164e63 100%);  /* MATCHES STATE RANKING BG */
    color: white;
}

.state-ranking-table th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.state-ranking-table td {
    padding: 1.2rem;
    border-bottom: 2px solid #ecf0f1;
    vertical-align: middle;
}

.state-ranking-table tbody tr {
    transition: all 0.3s ease;
}

.state-ranking-table tbody tr:hover {
    background-color: #f3f4ff;
    box-shadow: inset 0 0 8px rgba(15, 118, 110, 0.1);
}

.state-ranking-table img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #0f766e;  /* MATCHES STATE RANKING BG */
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-badge.active {
    background: linear-gradient(135deg, #11d3f3, #00d4ff);
    color: white;
    box-shadow: 0 4px 8px rgba(17, 211, 243, 0.3);
}

/* Reduced padding on container */
.state-ranking-container {
    margin-top: 1rem;
    border-radius: 12px;
    padding: 1rem; /* Reduced from 3rem */
}

/* Player photos container */
.player-photos {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.player-photos img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .state-ranking-container {
        margin-top: 1.5rem;
        padding: 1rem;
        border-radius: 8px;
    }

    .state-ranking-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .state-ranking-table {
        font-size: 0.85rem;
    }

    .state-ranking-table th,
    .state-ranking-table td {
        padding: 0.75rem 0.5rem;
        vertical-align: middle;
    }

    .player-photos {
        gap: 0.125rem;
    }

    .player-photos img {
        width: 35px;
        height: 35px;
        border-width: 1.5px;
    }

    .state-rank-badge {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    /* Stack table on very small screens */
    @media (max-width: 480px) {
        .state-ranking-table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .state-ranking-table {
            min-width: 500px;
        }

        .state-ranking-table th:nth-child(3),
        .state-ranking-table td:nth-child(3) {
            width: 80px;
            text-align: center;
        }
    }
}

/* Desktop tweaks */
@media (min-width: 769px) {
    .player-photos img {
        width: 60px;
        height: 60px;
        border-width: 2.5px;
    }
    
    .state-rank-badge {
        width: 55px;
        height: 55px;
        font-size: 1rem;
    }
}

