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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Navigation */
.navbar {
    background: #011420f8;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    color: #f39c12;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

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

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f39c12;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    background-image: url('backgroundChess.png');
    background-position: center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #f39c12;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e67e22;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #e29f40ee;
}

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

.about-text h3 {
    color: #f39c12;
    margin-bottom: 1rem;
}

.about-text ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Courses Section */
.courses {
    padding: 80px 0;
}

.courses h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #091f2cf8;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.course-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12;
    margin-top: 1rem;
}

/* Achievements Section - Rolling Images */
/* ========== ACHIEVEMENTS SECTION - START WITH VISIBLE IMAGES ========== */
.achievements {
    padding: 80px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.achievements h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.rolling-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.image-roll {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.roll-track {
    display: flex;
    height: 100%;
    width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* ROLLS START WITH IMAGES VISIBLE */
.roll-left-to-right .roll-track {
    animation: scrollLeftWithStart 80s linear infinite;
    transform: translateX(0); /* Start with images visible */
}

.roll-right-to-left .roll-track {
    animation: scrollRightWithStart 90s linear infinite;
    transform: translateX(-50%); /* Start with images visible */
}

.roll-track img {
    height: 100%;
    width: auto;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.roll-track img:hover {
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

/* Updated keyframes - start with visible images */
@keyframes scrollLeftWithStart {
    0% {
        transform: translateX(0); /* Start with images visible */
    }
    100% {
        transform: translateX(-50%); /* End position */
    }
}

@keyframes scrollRightWithStart {
    0% {
        transform: translateX(-50%); /* Start with images visible */
    }
    100% {
        transform: translateX(0); /* End position */
    }
}

/* Pause on Hover */
.image-roll:hover .roll-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .image-roll {
        height: 150px;
    }
    
    .roll-left-to-right .roll-track {
        animation-duration: 60s;
    }
    
    .roll-right-to-left .roll-track {
        animation-duration: 70s;
    }
}

@media (max-width: 480px) {
    .image-roll {
        height: 120px;
    }
    
    .roll-left-to-right .roll-track {
        animation-duration: 50s;
    }
    
    .roll-right-to-left .roll-track {
        animation-duration: 60s;
    }
}

/* Force image loading and display */
.roll-track img {
    height: 100%;
    width: auto;
    min-width: 150px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    flex-shrink: 0;
    display: block; /* Force display */
    opacity: 1; /* Ensure visibility */
    loading: eager; /* Force immediate loading */
}

/* Ensure container accommodates all images */
.roll-track {
    display: flex;
    height: 100%;
    width: fit-content;
    min-width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.roll-track img {
    border: 1px solid blue; /* See each image */
    min-width: 200px; /* Make images more visible */
}

/* Pause animation on hover */
.image-roll:hover .roll-track {
    animation-play-state: paused;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

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

.contact-item i {
    color: #f39c12;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    background: #f39c12;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #e67e22;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .image-roll {
        height: 150px;
    }
    
    .roll-left-to-right .roll-track {
        animation-duration: 20s;
    }
    
    .roll-right-to-left .roll-track {
        animation-duration: 18s;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .image-roll {
        height: 120px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.roll-track img {
    transition: opacity 0.3s ease;
}

.roll-track img:not([src]) {
    opacity: 0;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: #2c3e50;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ecf0f1;
    text-transform: uppercase;
}

/* Add animation counter effect */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item.animate {
    animation: countUp 0.6s ease-out;
}

/* Responsive adjustments for stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #f39c12;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.nav-logo:hover {
    color: #e67e22;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: #f39c12;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.facebook:hover {
    background: #2d4373;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #8b0a6b 100%);
}

.social-link.maps {
    background: #4285f4;
}

.social-link.maps:hover {
    background: #3367d6;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-logo i {
        font-size: 1.8rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Classroom Batches Section */
.classroom-batches {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.classroom-batches h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.classroom-batches p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.batch-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 700px;
    border: none;
}

.batch-table th,
.batch-table td {
    padding: 15px 20px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.batch-table th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-color: #34495e;
}

.batch-table tbody tr {
    border-bottom: 2px solid #eee;
}

.batch-table tbody tr:last-child {
    border-bottom: none;
}

.batch-table tbody tr:hover {
    background: #f8f9fa;
}

.batch-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.batch-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

.batch-table td {
    color: #333;
    font-size: 0.95rem;
}

/* Make specific columns stand out */
.batch-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.batch-table td:nth-child(6) {
    font-weight: 600;
    color: #f39c12;
    font-size: 1rem;
}

/* Status badges */
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.full {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.limited {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive table */
@media (max-width: 768px) {
    .classroom-batches {
        padding: 1rem;
    }
    
    .batch-table th,
    .batch-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .classroom-batches h3 {
        font-size: 1.5rem;
    }
    
    .batch-table-container {
        border: 1px solid #ddd;
    }
}

@media (max-width: 480px) {
    .batch-table th,
    .batch-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .status {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 60px;
    }
}

.fa-inr {
    font-weight: bold;
}

.cta-button {
    background: #f39c12;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none !important;
    display: inline-block;
}

.cta-button:hover {
    background: #e67e22;
    color: white;
    text-decoration: none !important;
}
