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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Header & Navigation */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('header-bg.jpg') center center/cover no-repeat;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

#branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    border: 3px solid #4A90E2;
}

#branding b {
    font-size: 1.2rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

nav a i {
    margin-right: 8px;
    font-size: 1rem;
}

nav a:hover,
nav a.current {
    color: #4A90E2;
    font-weight: bold;
}

nav a.nav-btn {
    background-color: #25D366;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
}

nav a.nav-btn:hover {
    background-color: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    padding: 10px;
}

/* Modern Hero Carousel Banner */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.myHeroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.65);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 90%;
}

.carousel-caption h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.carousel-caption p {
    font-size: 1.9rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    color: white;
}

.cta-btn {
    background: #4A90E2;
    color: white;
    padding: 16px 36px;
    font-size: 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #357ab8;
    transform: translateY(-5px);
}

/* Swiper Navigation & Pagination */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
}

.swiper-pagination-bullet-active {
    background: #4A90E2;
}

/* Sections General */
section {
    padding: 90px 0;
    text-align: center;
}

section h2 {
    font-size: 2.6rem;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
}

section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #4A90E2;
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

section p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.15rem;
    color: #555;
}

.justified-text {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 25px;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Courses */
.courses {
    background: #fff;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.course-card {
    background: #f8fbff;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(74,144,226,0.12);
    transition: all 0.4s ease;
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(74,144,226,0.2);
}

.course-card h3 {
    color: #4A90E2;
    margin: 20px 0 15px;
    font-size: 1.6rem;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #f1f3f5, #f3f4f5);
}

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

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

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

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.9);
        position: absolute;
        top: 100%;
        left: 0;
    }

    nav ul.show {
        display: flex;
    }

    .carousel-caption h1 {
        font-size: 2.8rem;
    }

    .carousel-caption p {
        font-size: 1.4rem;
    }

    .cta-btn {
        padding: 12px 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 50px;
    }

    #branding b {
        font-size: 1.1rem;
    }

    section {
        padding: 70px 0;
    }
}

/* Milestone Journey Timeline (from journey.html) */
.milestone-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 0;
}

.milestone-timeline::before {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, #4A90E2, #357ab8);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.milestone-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
    margin-bottom: 60px;
}

.milestone-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.milestone-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.milestone-year {
    position: absolute;
    width: 90px;
    height: 90px;
    background: #4A90E2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(74,144,226,0.3);
    z-index: 1;
}

.milestone-item:nth-child(odd) .milestone-year {
    right: -45px;
}

.milestone-item:nth-child(even) .milestone-year {
    left: -45px;
}

.milestone-content {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.milestone-content:hover {
    transform: translateY(-8px);
}

.milestone-content h3 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.milestone-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 18px solid transparent;
    top: 50px;
}

.milestone-item:nth-child(odd) .milestone-content::after {
    border-left-color: white;
    right: -36px;
}

.milestone-item:nth-child(even) .milestone-content::after {
    border-right-color: white;
    left: -36px;
}

@media (max-width: 768px) {
    .milestone-timeline::before {
        left: 45px;
    }

    .milestone-item {
        width: 100%;
        padding-left: 100px;
        padding-right: 20px;
        text-align: left !important;
    }

    .milestone-item:nth-child(odd),
    .milestone-item:nth-child(even) {
        left: 0;
    }

    .milestone-year {
        left: 0 !important;
    }

    .milestone-content::after {
        left: -36px !important;
        border-right-color: white;
        border-left-color: transparent;
    }
}

/* Gallery Grid (from gallery.html) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

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

.gallery-item p {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #4A90E2;
    font-weight: 500;
}

/* Contact Page Map */
.map {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Messages Page */
.message {
    background: #f8fbff;
    padding: 30px;
    margin: 30px auto;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(74,144,226,0.1);
    font-style: italic;
    font-size: 1.2rem;
}

.message p:last-child {
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: #4A90E2;
}

.features {
    background: #fff;
    padding: 100px 0;
}

.feature-item {
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item h2 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.feature-item h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #4A90E2;
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

.offer-list {
    list-style: none;
    text-align: left;
    max-width: 800px;
    margin: 30px auto;
    font-size: 1.15rem;
}

.offer-list li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.offer-list li::before {
    content: '✓';
    color: #4A90E2;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

/* Teacher Section */
.teacher-section {
    background-color: #f0f8ff;
    padding: 50px 0;
    margin-top: 40px;
}

.teacher-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
}

.teacher-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.teacher-image {
    flex: 1;
    min-width: 250px;
}

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

.teacher-info {
    flex: 1;
}

.teacher-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.teacher-info .qualification {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.teacher-info .description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .teacher-card {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .teacher-image {
        min-width: unset;
    }
    
    .teacher-section h2 {
        font-size: 1.5rem;
    }
    
    .teacher-info h3 {
        font-size: 1.4rem;
    }
}

/* Modern Gallery with Lightbox */
#gallery {
    padding: 60px 0;
    background-color: #f9f9f9;
}

#gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Year-wise Gallery Sections */
.gallery-year-section {
    margin-bottom: 50px;
}

.gallery-year-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4A90E2;
    display: inline-block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.gallery-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 144, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    font-size: 3rem;
    color: white;
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

#lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #4A90E2;
}

.lightbox-nav {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    z-index: 2001;
}

.lightbox-nav button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav button:hover {
    background-color: #4A90E2;
    border-color: #4A90E2;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-thumbnail {
        height: 200px;
    }
    
    #gallery h2 {
        font-size: 1.8rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-nav {
        gap: 15px;
    }
    
    .lightbox-nav button {
        width: 45px;
        height: 45px;
        padding: 8px 15px;
        font-size: 1.2rem;
    }
}

/* Results Section */
#results {
    padding: 60px 0;
    background-color: #f0f8ff;
    margin-top: 40px;
}

#results h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

#results .gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results-message i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-results-message p {
    font-size: 1.2rem;
    color: #888;
}

@media (max-width: 768px) {
    #results h2 {
        font-size: 1.8rem;
    }
}

/* Advertisement Section */
#advertisement {
    padding: 60px 0;
    background-color: #fff9e6;
    margin-top: 40px;
}

#advertisement h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

#advertisement .gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    #advertisement h2 {
        font-size: 1.8rem;
    }
}

/* Messages Section */
#messages {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#messages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.reviews-widget-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.reviews-info {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Reviews Boxes Grid */
.reviews-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.review-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.review-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
    border-color: #4A90E2;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.review-rating .stars {
    font-size: 1.2rem;
    color: #FFD700;
    letter-spacing: 2px;
}

.review-rating .rating-value {
    font-weight: 600;
    color: #4A90E2;
    font-size: 0.95rem;
}

.review-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: #4A90E2;
    font-size: 0.95rem;
    margin: 0;
}

/* View All Reviews Button */
.view-all-reviews {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e8f0fe;
}

.view-all-reviews .cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.view-all-reviews .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #357ABD 0%, #2a5fa0 100%);
}

.view-all-reviews .cta-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    #messages h2 {
        font-size: 1.8rem;
    }
    
    .reviews-widget-container {
        padding: 20px;
    }
    
    .reviews-info {
        font-size: 1rem;
    }
    
    .reviews-boxes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-box {
        padding: 20px;
    }
}