/* ------------------------------------------ */
/* GLOBAL RESET & TYPOGRAPHY */
/* ------------------------------------------ */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}
body { 
    background-color: #f7fbff; 
    color: #333; 
}
/* Ensure smooth scrolling when clicking on anchor links */
html {
    scroll-behavior: smooth;
}

/* ------------------------------------------ */
/* HEADER & NAVIGATION */
/* ------------------------------------------ */
header {
    background: #004b8d; 
    color: white; 
    padding: 15px 60px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    /* Added Sticky Header for better UX */
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.logo span { 
    font-size: 26px; 
    font-weight: 700; 
}
nav ul { 
    list-style: none; 
    display: flex; 
    gap: 25px; 
}
nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: 500; 
    transition: 0.3s; 
}
nav a:hover { 
    color: #00b4d8; 
}

/* ------------------------------------------ */
/* HERO SECTION */
/* ------------------------------------------ */
.hero {
    height: 85vh;
    /* Use a stable local image or reliable CDN/unsplash link */
    background: linear-gradient(rgba(0,75,141,0.7), rgba(0,75,141,0.7)),
                url('https://images.unsplash.com/photo-1508780709619-79562169bc64') center/cover no-repeat;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    color: white; 
    text-align: center; 
    padding: 0 20px;
}
.hero h2 { 
    font-size: 56px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5); 
}
.hero p { 
    font-size: 20px; 
    margin-bottom: 30px; 
    max-width: 600px; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero a {
    background: #00b4d8; 
    color: white; 
    padding: 14px 36px; 
    border-radius: 40px;
    text-decoration: none; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    transition: 0.3s;
}
.hero a:hover { 
    background: #0077b6; 
}

/* ------------------------------------------ */
/* ABOUT SECTION */
/* ------------------------------------------ */
.about {
    background: #e9f5ff;
    padding: 80px 60px;
}
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}
.about-text {
    flex: 1 1 500px;
    text-align: left;
}
.about-text h3 {
    color: #004b8d;
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 700;
}
.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 18px;
}

/* ------------------------------------------ */
/* FACILITY & GENERAL SECTIONS */
/* ------------------------------------------ */
.section { 
    padding: 70px 60px; 
    text-align: center; 
}
.section h3 { 
    color: #004b8d; 
    font-size: 34px; 
    margin-bottom: 40px; 
}
.cards {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
}
.card {
    background: white; 
    border-radius: 15px; 
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
    height: 100%;
}
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
}
.card img { 
    width: 90%; 
    border-radius: 10px; 
    height: 190px; 
    object-fit: cover; 
    margin-bottom: 15px; 
}
.card h4 { 
    margin-top: 0; 
    color: #023e8a; 
    font-weight: 600; 
    margin-bottom: 10px;
}
.card p {
    flex-grow: 1; 
}

/* Gallery */
.gallery {
    background: #e9f5ff;
    padding: 70px 60px;
    text-align: center;
}
.gallery-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
}
.gallery img {
    width: 100%; 
    height: 250px; 
    border-radius: 10px; 
    object-fit: cover; 
    background: #fff;
    transition: transform 0.3s ease;
}
.gallery img:hover { 
    transform: scale(1.05); 
}

/* Testimonials */
.testimonials {
    background: white;
    padding: 70px 60px;
    text-align: center;
}
.testimonial-cards {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
}
.testimonial {
    background: #e9f5ff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    font-style: italic;
}
.testimonial h4 { 
    color: #004b8d; 
    margin-top: 15px; 
    font-style: normal; 
}

/* ------------------------------------------ */
/* CONTACT SECTION (CLEANED) */
/* ------------------------------------------ */
.contact {
    background: #f7fbff;
    padding: 70px 60px;
    text-align: center;
}
.contact-header {
    margin-bottom: 40px;
}
.contact-header h3 {
    color: #004b8d; 
    font-size: 32px; 
    margin-bottom: 20px;
}


.contact-blocks-container { 
    /* Holds the Form and Info side-by-side */
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 50px;
    max-width: 900px; 
    margin: 0 auto 50px; 
}

.contact-info { 
    text-align: left;
    width: 350px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.contact-info h4 {
    color: #004b8d;
    margin-top: 15px;
    font-size: 20px;
    margin-bottom: 10px;
}
.contact-info p {
    margin-bottom: 10px;
}

form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    width: 350px;
    text-align: left;
}
form label { 
    font-weight: 500; 
    display: block; 
    margin: 10px 0 5px; 
}
form input, form textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 6px;
    margin-bottom: 15px; 
    font-size: 15px;
}
form button {
    background: #004b8d; 
    color: white; 
    padding: 12px 25px; 
    border: none;
    border-radius: 6px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.3s;
    width: 100%;
}
form button:hover { 
    background: #0077b6; 
}

.map-container {
    max-width: 900px; 
    margin: 0 auto;
    width: 100%;
}
.map { 
    border-radius: 12px; 
    overflow: hidden; 
    width: 100%; 
    height: 450px; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.1); 
}
iframe { 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

/* ------------------------------------------ */
/* FOOTER (CRITICAL FIX) */
/* ------------------------------------------ */
footer { 
    background: #002b5c; 
    color: white;
    text-align: center; 
    padding: 25px; 
    font-size: 16px; 
}


/* ------------------------------------------ */
/* RESPONSIVE DESIGN */
/* ------------------------------------------ */


/* ------------------------------------------ */
/* RESPONSIVE DESIGN */
/* ------------------------------------------ */
@media (max-width: 900px) {
    .about, .section, .gallery, .testimonials, .contact {
        padding: 40px 20px;
    }
    header {
        flex-direction: column;
        padding: 15px 20px;
    }
    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    /* *** CRITICAL FIX HERE ***
       REMOVED: flex-direction: column; 
       This forces the contact blocks to stay in the same row (flex-direction: row is the default) 
    */
    .contact-blocks-container { 
        align-items: center; 
        max-width: 90%; /* Use percentage width on mobile for better fit */
    }
    .map-container {
        padding: 0 20px;
    }
    .map {
        height: 300px;
    }
    .about-container {
        flex-direction: column;
    }
    .about-text, .about-image {
        max-width: 100%;
    }
}
@media (max-width: 500px) {
    .hero h2 {
        font-size: 40px;
    }
    .hero p {
        font-size: 16px;
    }
    form, .contact-info {
        width: 100%;
    }
}