:root {
    --primary-color: #0056b3;
    --secondary-color: #00a8cc;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content:space-around;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        gap: 1rem;
    }
}

.top-bar-link {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    transition: background-color 0.3s;
}

.top-bar-link.blue {
    background-color: #0066ff;
}

.top-bar-link.blue:hover {
    background-color: #0052cc;
}

.top-bar-link.red {
    background-color: #ff3366;
}

.top-bar-link.red:hover {
    background-color: #e62e5c;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1100;
    height: 100px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    width: 150px; /* Reserve space for the logo */
    height: 40px; /* Keep navbar height minimal */
}

.logo img {
    height: 100px; /* Increased size */
    margin-right: 10px;
    position: absolute;
    top: -30px; /* Position to hang over */
    left: 0;
    z-index: 100000000;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1200;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,86,179,0.8), rgba(0,168,204,0.8)), url('./download-image\ \(1\).jpeg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    margin-top: 160px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

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

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

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* About Section */
.about {
    background-color: var(--white);
    padding: 4rem 5%;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1 1 400px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1 1 400px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery {
    padding: 4rem 5%;
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns as per image */
    gap: 1.5rem;
    max-width: 800px; /* Limit width to look like the mobile app screenshot */
    margin: 0 auto;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 Columns on desktop */
    }
   
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 30px; /* Larger border radius */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1;
}

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

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

/* Page Header (for sub-pages) */
.page-header {
    background: linear-gradient(rgba(0,86,179,0.8), rgba(0,168,204,0.8)), url('https://placehold.co/1920x600/0056b3/ffffff?text=Max+Path+Lab') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 160px;
}

.page-header h1 {
    font-size: 3rem;
}

/* Specific Page Headers for Desktop */
.page-header-about {
    background: linear-gradient(rgba(0,86,179,0.8), rgba(0,168,204,0.8)), url('download-image (2).jpeg') no-repeat center center/cover !important;
}

.page-header-book {
    background: linear-gradient(rgba(0,86,179,0.8), rgba(0,168,204,0.8)), url('download-image (1).jpeg') no-repeat center center/cover !important;
}

.page-header-contact {
    background: linear-gradient(rgba(0,86,179,0.8), rgba(0,168,204,0.8)), url('download-image (3).jpg') no-repeat center center/cover !important;
}

.page-header-partner {
    background: #b0c4de !important;
    height: 250px !important;
}

/* Mobile Hero hidden on desktop */
.mobile-hero {
    display: none;
}

/* Mobile Banner Overrides */
@media (max-width: 768px) {
    .page-header {
        background: linear-gradient(rgba(0,86,179,0.9), rgba(0,168,204,0.9));
    }

    /* Hide Desktop Hero on Mobile */
    .desktop-hero {
        display: none;
    }

    /* Show Mobile Hero */
    .mobile-hero {
        display: block;
        margin-top: 145px; /* Adjust for fixed navbar */
        background-color: var(--white);
    }

    .mobile-banner-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-banner-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-banner-slider img {
        flex: 0 0 100%;
        width: 100%;
        height: auto; /* Maintain aspect ratio */
        max-height: 60vh; /* Prevent it from being too tall */
        scroll-snap-align: start;
        object-fit: contain; /* Or cover, depending on image aspect ratio */
    }

    .mobile-hero-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 2.8rem 5%;
    }

    .mobile-hero-actions .btn-small {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }

    /* About Mobile Banner */
    .page-header-about {
        background-image: url('./images/Banner2.png') !important;
    }
    .services{
        padding: 35px 5%;
    }
    /* Services Mobile Banner (Default page-header) */
    .page-header {
        background-image: url('./images/Banner3.png') !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Book Test Mobile Banner */
    .page-header-book {
        background-image: url('./images/Banner4.png') !important;
    }

    /* Contact Mobile Banner */
    .page-header-contact {
        background-image: url('./images/Banner4.png') !important;
    }
    
    /* Partner Mobile Banner (Using banner5 as fallback or specific if requested) */
    .page-header-partner {
        background-image: url('./images/Banner5.png') !important;
        background-size:auto !important;
        background-repeat: no-repeat !important;
    }
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    transition: border-color 0.3s;
}

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

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 2rem;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 2rem 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    color: white;
}

.whatsapp-btn {
    background-color: #25D366;
}

.phone-btn {
    background-color: #007bff;
}

/* Tooltip */
.tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: nowrap;
}

.action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* How it Works Section */
.how-it-works {
    padding: 4rem 5%;
    background-color: var(--white);
    text-align: center;
}

.process-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: #0066cc; /* Blue color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step-icon.red {
    background-color: #0066cc; /* Override red class to be blue as per screenshot */
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.process-step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Connector Lines (Desktop only) */
@media (min-width: 992px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        right: -50%;
        width: 100%;
        height: 0;
        border-top: 1px dashed #ff3366; /* Red dashed line */
        z-index: -1;
    }
}

.contact-now-btn {
    display: inline-block;
    background-color: #ff3366;
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 3rem;
    transition: transform 0.3s, background-color 0.3s;
}

.contact-now-btn:hover {
    background-color: #e62e5c;
    transform: translateY(-3px);
}

.carousel-section {
    padding: 4rem 5%;
    background-color: var(--light-bg);
    text-align: center;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.carousel-track-container {
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

/* Popular Packages Cards */
.package-card {
    flex: 0 0 300px; /* Fixed width for cards */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

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

.package-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.package-title {
    padding: 1rem;
    background-color: #ff3333; /* Red background for title */
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

.package-title.blue {
    background-color: #333399; /* Blue background variant */
}

/* Testimonial Cards */
.testimonial-card {
    flex: 0 0 350px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    position: relative;
    box-sizing: border-box;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ff3366;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
}

.author-name {
    font-weight: bold;
    color: var(--text-color);
}

.rating {
    color: #ffcc00;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Carousel Indicators */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 10px;
}

.carousel-indicator {
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: #555;
}

@media (max-width: 576px) {
    .carousel-container {
        padding: 0 1rem;
    }

    .carousel-track-container {
        padding: 0.5rem 0;
    }

    .carousel-track {
        gap: 12px;
    }

    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}






/* ================================
   Facilities Section (Scoped Only)
   ================================ */

.facilities-section {
    background-color: var(--light-bg);
    padding: 4rem 5%;
}

.facilities-section .facilities-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.facilities-section .facility-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facilities-section .facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.facilities-section .facility-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.facilities-section .facility-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 50%;
    background: #fff3f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.facilities-section .facility-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}

.facilities-section .facility-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Mobile Optimization */
@media (max-width: 576px) {
    .facilities-section {
        padding: 3rem 1.2rem;
    }

    .facilities-section .facility-card {
        padding: 1.5rem;
    }

    .facilities-section .facility-title {
        font-size: 1rem;
    }

    .facilities-section .facility-text {
        font-size: 0.9rem;
    }
}

/* Team Section */
.team-section {
    padding: 4rem 5%;
    background-color: var(--white);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 3px solid var(--light-bg);
}

.team-member h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-member p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ensure Testimonials Section looks good */
.testimonials-section {
    padding: 4rem 5%;
    background-color: var(--light-bg);
    text-align: center;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}





@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 Columns on desktop */
    }
    .sample{
        margin-bottom: 50px;
        /* margin-top: 50px */
    }

}
@media (min-width: 768px) {
    .contact-img{
        background-image: url(./images/Banner\ 1.png);
        background-size: cover;
        background-position: center;
        height: 100%;
        background-color: #25D366;
    }
}