/* --- 1. Root Variables & Global Setup --- */
:root {
    --primary-color: #3E4095;
    --bg-color: #FFFFFF;
    --text-color: #333;
    --header-height: 70px;
    --footer-height: 250px; /* Adjust as needed */
}

/* Sets 1rem = 10px for easy sizing.
  1.1rem = 11px (as you requested for mobile)
  1.6rem = 16px (standard text size)
*/
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1.4rem; /* Default 16px */
    line-height: 1.4;
    /* CRITICAL: Add padding to body to prevent fixed header/footer from hiding content */
    padding-top: var(--header-height);
    /* FIXED: Removed fixed footer padding-bottom */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style-type: none;
}

/* --- 2. Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo img {
    height: 55px; /* Adjust logo height */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: #2c2e6a; /* Darker shade */
    color: #fff;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 1rem 0;
    min-width: 220px;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0.8rem 1.5rem;
}

.dropdown-menu li a {
    color: var(--text-color);
    font-size: 1.4rem;
    white-space: nowrap;
}

.dropdown-menu li:hover {
    background-color: #f4f4f4;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- 3. Main Content (Homepage Hero) --- */
.hero-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    gap: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2c2e6a;
}

.hero-image img {
    border-radius: 10px;
    object-fit: cover; /* This makes the image cover its container */
    width: 100%; /* Ensure it takes full width of its container */
    height: 100%; /* Ensure it takes full height of its container */
}

.info-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

/* --- 3.5 Homepage Sections --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3.0rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.7rem;
    text-align: center;
    color: #555;
    margin-bottom: 4rem;
}

/* Vision & Mission */
.vm-section {
    background-color: #f9f9f9;
}

.vm-section .container {
    display: flex;
    gap: 3rem;
}

.vm-box {
    flex: 1;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.vm-box h3 {
    font-size: 2.0rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Services Overview */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(62, 64, 149, 0.1);
}

.service-card h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.service-card a {
    font-weight: 600;
    color: var(--primary-color);
}

/* Why Choose Us */
.why-choose-us {
    background-color: #f9f9f9;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.why-box {
    text-align: center;
    padding: 2rem;
}

.why-box h5 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 0.5rem;
}


/* --- 4. Footer --- */
.main-footer {
    /* FIXED: Removed position: fixed and z-index */
    width: 100%;
    background-color: #eaf2ff; /* Light blue background */
    color: #555; /* Darker text for readability */
    border-top: 1px solid #dbe6ff; /* Nice separation line */
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.widget {
    font-size: 1.4rem;
}

.widget h4 {
    color: #222; /* Dark heading */
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.widget ul li {
    margin-bottom: 0.8rem;
}

.widget ul li a {
    color: #555; /* Dark link text */
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary-color); /* Use main brand color on hover */
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: none; /* REMOVED the white filter */
}

.footer-bottom {
    background-color: #dbe6ff; /* Similar, slightly darker shade */
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    color: #444; /* Dark text */
}

/* --- 6. Internal Page Styles --- */
.page-header {
    padding: 4rem 0;
    background-color: #f9f9f9;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 3.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.8rem;
    color: #555;
}

.page-content {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 2rem;
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
}

.page-content h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eaf2ff;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul,
.page-content ol {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}
.page-content ol {
    list-style-type: decimal;
}
.page-content ul li,
.page-content ol li {
    margin-bottom: 0.8rem;
}

.page-content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}


/* --- 7. Scheme Page (2-Column Layout) --- */
.scheme-details {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
}

.scheme-image {
    margin-bottom: 2rem;
}

.scheme-image img {
    border-radius: 8px;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.sidebar-widget {
    background-color: #f9f9f9;
    padding: 2.5rem;
    border-radius: 8px;
}

.sidebar-widget h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.sidebar-widget ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.sidebar-widget ul li a {
    display: block;
    padding: 1rem 0;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.sidebar-widget ul li:last-child a {
    border-bottom: none;
}

.sidebar-widget ul li a:hover,
.sidebar-widget ul li.active a { /* 'active' class for current page */
    color: var(--primary-color);
}

/* --- 8. Board of Directors --- */
.bod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: center;
}
.bod-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.bod-card:hover {
    transform: translateY(-5px);
}
.bod-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.bod-card h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.bod-card p {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0;
}

/* --- 9. Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
}
.contact-form button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.contact-form button:hover {
    background-color: #2c2e6a;
}
.contact-info p {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}
.contact-info strong {
    color: #333;
}
.map-embed iframe {
    border-radius: 8px;
}


/* --- 5. Mobile Responsive (Media Query) --- */
@media (max-width: 768px) {
    html {
        /* This sets the base font size smaller on mobile */
        font-size: 55%; /* ~8.8px base, so 1.1rem is ~9.7px, 1.2rem is ~10.5px */
    }

    body {
        font-size: 1.5rem; /* Adjust base mobile font */
        /* Readjust padding for potentially smaller fixed elements */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: left 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1.5rem;
        width: 100%;
    }
    
    .nav-button {
        display: inline-block;
        margin: 1.5rem auto;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Dropdowns on Mobile */
    .dropdown-menu {
        position: static;
        display: none; /* Hide by default */
        box-shadow: none;
        width: 100%;
        background-color: #f9f9f9;
        padding: 0;
    }
    .nav-dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }
    .nav-dropdown.active .dropdown-menu {
        display: block; /* Show when active */
    }
    .dropdown-menu li a {
        padding-left: 3rem;
    }

    /* Hero Section Stacked */
    .hero-slider {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-image {
        order: -1; /* Move image to top */
    }

    /* Footer Stacked */
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* --- Homepage sections on mobile --- */
    .page-section {
        padding: 4rem 0;
    }

    .vm-section .container {
        flex-direction: column;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
    
    /* --- Internal Page Mobile Styles --- */
    .page-header h1 {
        font-size: 3rem;
    }
    
    .scheme-details, .contact-grid, .bod-grid {
        grid-template-columns: 1fr;
    }
    
    .scheme-features {
        order: 1; /* Move features below sidebar on mobile */
    }
    .scheme-sidebar {
        order: -1; /* Move sidebar to top on mobile */
    }
    
    /* --- App Download Button in Footer --- */
    .btn-app-download {
    display: inline-flex;
    align-items: center;
    background-color: green;
    color: white; /* Force white text */
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #444;
    text-align: left;
    font-size: 1.3rem;
    gap: 10px;
    max-width: 200px;
}

