/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary-color: #2E7D32;
    /* Deep Government Green */
    --primary-light: #4caf50;
    --secondary-color: #5715c0;
    /* Trustworthy Blue */
    --accent-color: #FF9800;
    /* Attention Orange */
    --text-dark: #1F2937;
    --text-light: #4B5563;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;

    --header-height: 90px;
    --nav-height: 50px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- 2. LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

section:nth-child(odd) {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- 3. HEADER & NAV --- */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Essential for centering the middle element */
}

.top-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    /* Prevents text from breaking into two lines */
}

/* --- LANGUAGE TOGGLE BUTTON STYLE --- */
.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.header {
    height: var(--header-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.header-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.header-text {
    text-align: center;
    margin: 0 20px;
}

.header-text h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.header-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: var(--nav-height);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* --- 4. HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('PMFME Slider 01.png') center/cover;
    color: white;
    text-align: center;
    padding-top: 120px;
    margin-top: -50px;
}

.hero-content {
    max-width: 900px;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 400;
    color: #E0E0E0;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto;
    opacity: 0.9;
}

/* --- HERO BUTTON HOVER EFFECT --- */
.hero-learn-btn {
    background: green;
    color: white;
    border: 2px solid white;
    padding: 12px 35px; /* Ensure nice spacing */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-learn-btn:hover {
    background: white;
    color: var(--primary-color); /* Changes text to Green */
    border-color: white;
    transform: translateY(-5px); /* Lifts the button up */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Adds depth */
}

/* Active/Click State */
.hero-learn-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
/* --- 5. COMPONENT STYLES --- */
/* --- NEW ABOUT SECTION STYLES --- */

/* 1. Layout Grid */
.about-content {
    text-align: center; /* This handles text, inline images, and inline-block elements */
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures flex children are centered horizontally */
}

/* About logo */

.about-logo {
    width: 130px;
    max-width: 100%;
    margin-bottom: 15px;
}
/* 3. Center the Section Divider Line */
.about-content .section-divider {
    margin: 0 auto 30px auto !important; /* Force margin auto to center the line */
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal split */
    gap: 60px;
    align-items: center;
    /* Vertically center content */
}

/* 2. Left Side: Content Styling */
.badge-pill {
    display: inline-block;
    background-color: #E8F5E9;
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Trust Badges Row */
.trust-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-icon {
    font-size: 2rem;
    background: var(--bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.trust-item div {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.trust-item span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 3. Right Side: Video Styling (PORTRAIT VERSION) */
.about-video-wrapper {
    position: relative;
    padding: 20px;
    /* Center the video horizontally in its column */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Box/Shape behind the video */
.video-offset-shape {
    position: absolute;
    /* Adjusted for portrait shape */
    top: 58%;
    left: 50%;
    transform: translate(-40%, -45%);
    /* Centers it behind the video with slight offset */
    width: 320px;
    /* Match max-width of video */
    height: 80%;
    background-color: var(--primary-color);
    opacity: 0.1;
    border-radius: 30px;
    z-index: 1;
}

/* The actual video container */
.video-container {
    position: relative;
    z-index: 2;
    background: black;
    /* Black background looks better for video players */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 8px solid white;
    /* Thicker border looks like a phone frame */

    /* PORTRAIT SETTINGS */
    aspect-ratio: 9 / 16;
    /* Vertical Aspect Ratio */
    width: 100%;
    max-width: 320px;
    /* Limits width to look like a phone screen */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fills the container perfectly */
    display: block;
}

/* --- MOBILE RESPONSIVENESS UPDATE --- */
@media (max-width: 900px) {
    .video-offset-shape {
        display: none;
    }

    .video-container {
        max-width: 100%;
        /* On mobile, let it be slightly wider if needed, or keep 320px */
        width: 280px;
        /* Slightly smaller on actual mobile phones to fit padding */
        border: 4px solid white;
    }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 40px;
    }

    .section-title {
        text-align: center !important;
        /* Center title on mobile */
    }

    .section-divider {
        margin: 0 auto 30px auto !important;
        /* Center divider on mobile */
    }

    .badge-pill {
        display: table;
        margin: 0 auto 15px auto;
        /* Center badge */
    }

    .trust-row {
        justify-content: center;
    }

    .about-video-wrapper {
        padding: 0;
        margin-top: 20px;
    }

    .video-offset-shape {
        display: none;
        /* Hide shape on mobile to save space */
    }

    .video-container {
        transform: none;
        border: none;
    }
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.support-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.support-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.projects-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
}

.project-tag {
    background: white;
    border: 1px solid #E5E7EB;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: 0.3s;
    cursor: default;
}

.project-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.benefits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    align-items: stretch;
}

.benefit-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.benefit-header {
    padding: 25px;
    text-align: center;
    background: var(--bg-light);
    border-bottom: 1px solid #e5e7eb;
}

.benefit-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.subsidy-highlight {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #E8F5E9;
    border-radius: 10px;
    color: var(--primary-color);
}

.subsidy-highlight .amount {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.group-card .subsidy-highlight {
    background: #E3F2FD;
    color: var(--secondary-color);
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.benefit-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-size: 1rem;
    color: var(--text-light);
}

.benefit-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.group-card .benefit-list li::before {
    color: var(--secondary-color);
}

/* Steps with Arrows */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
}

.benefit-footer {
    text-align: center;
    margin-top: auto;
    /* Pushes footer to the bottom */
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
    /* Dashed border above the footer */
    font-weight: 600;
    font-style: italic;
    color: #4A148C;
    /* Deep purple color */
    font-size: 0.95rem;
}

.step-card {
    background: white;
    padding: 25px 15px;
    /* Slightly reduced padding to fit 5 items */
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    flex: 1;
}

/* Mobile Arrow (Down) */
.step-card:not(:last-child)::after {
    content: "↓";
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.8;
}

@media (min-width: 900px) {
    .steps-container {
        flex-direction: row;
        gap: 20px;
        /* Reduced gap from 40px to 20px for 5 items */
    }

    /* Desktop Arrow (Right) */
    .step-card:not(:last-child)::after {
        content: "➝";
        bottom: auto;
        left: auto;
        top: 50%;
        right: -22px;
        /* Adjusted to fit the new gap */
        transform: translateY(-50%);
        z-index: 1;
    }
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
    position: relative;
    z-index: 2;
}

.apply-actions {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
/* --- DOWNLOADS SECTION STYLES --- */

/* --- DOWNLOADS SECTION STYLES (RECTANGLE CARDS) --- */
.downloads-wrapper {
    margin-top: 50px;
    width: 100%;
    max-width: 900px;
    text-align: center;
    border-top: 2px dashed #e0e0e0;
    padding-top: 40px;
}

.downloads-title {
    color: var(--text-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 30px;
}

.downloads-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* The Card Container - Now Rectangular */
.doc-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    
    /* Rectangular Dimensions */
    width: 200px; 
    height: 160px; 
    padding: 20px 15px 15px 15px; /* Less bottom padding for the icon */
    
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.doc-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* Top Icon (File Type) */
.doc-icon { 
    font-size: 2rem; 
    opacity: 0.8;
}

/* Text in Middle */
.doc-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px 0;
}

/* Bottom Download Icon Container */
.doc-action { 
    color: var(--primary-color);
    margin-top: auto; /* Pushes to bottom */
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Icon Specifics */
.doc-action svg {
    width: 24px;
    height: 24px;
    stroke-width: 3; /* Thicker lines */
}

/* Hover Effect */
.doc-link:hover .doc-action {
    color: var(--accent-color);
    transform: scale(1.2) translateY(3px);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .downloads-grid { gap: 15px; }
    .doc-link {
        width: 100%; /* Full width on mobile looks cleaner */
        max-width: 280px; 
        height: auto;
        flex-direction: row; /* Horizontal on mobile */
        padding: 15px 20px;
        align-items: center;
        text-align: left;
    }
    
    .doc-text { 
        justify-content: flex-start; 
        text-align: left;
        padding: 0 15px;
    }
    
    .doc-action { margin-top: 0; }
}




/* --- SUCCESS STORIES SECTION --- */
#success-stories {
    padding: 60px 0;
    /* Using a slightly off-white background to differentiate it from the Apply section */
    background-color: #f4f7f6; 
}

.story-video-wrapper {
    width: 100%;
    max-width: 850px; /* Limits width on large screens for better focus */
    margin: 40px auto 0; /* Centers the video block */
    border-radius: 15px;
    overflow: hidden; /* Ensures video corners match border-radius */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* Deep shadow for "pop" effect */
    border: 5px solid white; /* Clean white frame around the video */
    background: black; /* Background while loading */
}

.story-video-wrapper video {
    width: 100%;
    height: auto;
    display: block; /* Removes default inline spacing */
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .story-video-wrapper {
        margin-top: 30px;
        border-width: 3px;
    }
}
.calculator-box {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    padding: 50px;
}

.contact-info-panel {
    background: var(--primary-color);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-accent {
    background: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #ffffff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header-logo {
        height: 50px;
    }

    .header-text {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .benefits-container {
        grid-template-columns: 1fr;
    }

    .about-box {
        padding: 30px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 10px;
    }

    /* Reset position for mobile so they stack vertically */
    .top-center {
        position: static;
        transform: none;
        white-space: normal;
        font-size: 12px;
        /* Slightly smaller on mobile to fit */
    }
}


/* --- REDESIGNED SERVICES SECTION (FLOATING ICONS) --- */

/* The Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    /* Horizontal gap */
    row-gap: 60px;
    /* Larger vertical gap to accommodate the floating icons */
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    /* Extra space at the top for the first row icons */
}

/* The Card Itself */
.service-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 60px 30px 35px 30px;
    /* Large top padding to push text down away from icon */
    position: relative;
    overflow: visible;
    /* CRITICAL: Allows icon to sit outside the box */
    border: 1px solid #F3F4F6;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything horizontally */
    text-align: center;
    /* Center text */
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    /* Lift entire card up */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

/* The Floating Icon Container */
.icon-box {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    /* This centers it and pulls it up 50% */

    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Makes it perfectly round */
    background: var(--primary-color);
    /* Green Background */
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;

    /* Shadow to separate it from the card and background */
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
    border: 4px solid white;
    /* Thick white border to blend with card/bg */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-box img {
    width: 70%;
    /* Adjust this percentage (e.g., 40% to 60%) to make icon bigger/smaller */
    height: auto;
    object-fit: contain;
    /* Ensures the icon doesn't stretch */
    filter: brightness(0) invert(1);
    /* Makes icons WHITE. Remove this line if your icons are already colored */
}


/* Text Styles */
.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
}

/* Decorative small underline under title */
.service-card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    /* Center the line */
    border-radius: 2px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- EXACT REPLICA OF REQUESTED PROJECT CARD DESIGN --- */

#projects {
    counter-reset: proj-idx;
    /* Initialize counter */
    padding: 60px 20px;
    background: #f9fafb;
    /* Global Variables for the card dimensions based on your source code */
    --art-h: 8.75em;
    /* Height */
    --ico-w: 6.5em;
    /* Icon Column Width */
    --hno-w: 7em;
    /* Number Column Width */
    --hno-b: 0.375rem;
    /* Border radius for number box */
}

.projects-container-exact {
    width: 100%;
    max-width: 1000px;
    /* Wider to fit 2 columns */
    margin: 0 auto;

    /* 2 COLUMNS, 4 ROWS LAYOUT */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Ensure it stacks on mobile */
@media (max-width: 900px) {
    .projects-container-exact {
        grid-template-columns: 1fr;
        /* Back to 1 column on tablets/phones */
    }
}

/* --- THE MAIN CARD ARTICLE --- */
.proj-card {
    display: grid;
    position: relative;
    min-height: var(--art-h);
    margin: 0 auto;
    width: 100%;

    /* 1. LAYOUT: ODD ITEMS (Number | Text | Icon) */
    grid-template-columns: var(--hno-w) 1fr var(--ico-w);

    /* 2. SHAPE: ODD ITEMS (Round Left, Square Right) */
    border-radius: calc(0.5 * var(--art-h)) 1em 1em calc(0.5 * var(--art-h));

    /* 3. BORDERS & BACKGROUNDS */
    border: 3px solid transparent;
    background:
        linear-gradient(to right, #ffffff, #f1f2f4) padding-box,
        /* Inner Grey/White */
        linear-gradient(to right, var(--c0), var(--c1)) border-box;
    /* Gradient Border */

    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    counter-increment: proj-idx;
    overflow: hidden;
    /* Keeps the gradient icon inside the radius */
}

/* --- EVEN ITEMS FLIP (Icon | Text | Number) --- */
.proj-card:nth-of-type(even) {
    grid-template-columns: var(--ico-w) 1fr var(--hno-w);
    border-radius: 1em calc(0.5 * var(--art-h)) calc(0.5 * var(--art-h)) 1em;
}

/* --- THE NUMBER AREA (H3) --- */
.proj-card h3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;

    /* Grid Placement */
    grid-row: 1;
    grid-column: 1;
    /* Default Left */

    font-size: 1.25em;
    color: var(--c1);
    font-weight: 700;
}

/* Move Number to Right for Even Items */
.proj-card:nth-of-type(even) h3 {
    grid-column: 3;
}


/* The Floating Box Behind the Number */
.proj-card h3::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--c1);
    /* Use the card's theme color */
    border-radius: var(--hno-b);

    /* The inset shadow effect from source code */
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.25),
        inset -1px -1px 0 2px rgba(255, 255, 255, 0.2),
        1px 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* --- THE ICON AREA (::after pseudo element) --- */
.proj-card::after {
    content: attr(data-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;

    /* Gradient Background Logic */
    background: radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.2), transparent 70%),
        radial-gradient(at 50% 50%, var(--c0), var(--c1));

    /* Grid Placement */
    grid-row: 1;
    grid-column: 3;
    /* Default Right */
    height: 100%;
}

/* Move Icon to Left for Even Items */
.proj-card:nth-of-type(even)::after {
    grid-column: 1;
}

/* --- THE TEXT CONTENT --- */
.proj-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    grid-column: 2;
    /* Always Center */
}

.proj-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c0);
    text-transform: capitalize;
    margin-bottom: 5px;
}

.proj-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Align text based on odd/even */
.proj-card:nth-of-type(odd) .proj-text {
    text-align: left;
}

.proj-card:nth-of-type(even) .proj-text {
    text-align: left;
}


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 650px) {

    .proj-card,
    .proj-card:nth-of-type(even) {
        display: flex;
        flex-direction: column;
        height: auto;
        border-radius: 20px;
        /* Simplify radius for mobile */
        padding-bottom: 20px;
        text-align: center !important;
    }

    .proj-card h3 {
        padding: 20px 0;
        width: 100%;
    }

    .proj-card::after {
        order: -1;
        /* Move icon to top */
        width: 100%;
        height: 80px;
        border-radius: 15px 15px 0 0;
    }

    .proj-text {
        text-align: center !important;
        padding: 10px 20px;
    }
}


/* --- APPLY FORM GRID LAYOUT --- */

/* Creates a responsive grid: 3 columns on desktop, 1 on mobile */
.apply-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    /* Space between columns and rows */
    margin-bottom: 15px;
}

/* Label Styling */
#applyModal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    /* Slightly smaller for compact look */
    color: var(--text-dark);
}

/* Input/Select Styling adjustments for the grid */
#applyModal .form-group {
    margin-bottom: 0;
    /* Let the grid gap handle the spacing */
}

#applyModal .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

#applyModal .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Mobile Responsiveness for the Form */
@media (max-width: 768px) {
    .apply-form-grid {
        grid-template-columns: 1fr;
        /* Stack everything in 1 column on mobile */
        gap: 15px;
    }
}

/* New Section  */
/* --- SUBSIDY EXAMPLE SECTION (IMAGE BASED) --- */

#subsidy-example {
    /* Crucial: Set background to solid white to match the image background so it blends in. */
    background-color: #ffffff;
    padding: 60px 0;
}

.subsidy-image-wrapper {
    width: 100%;
    /* Max width ensures it doesn't get too big on large screens.
       Adjust this value if you want it bigger or smaller. */
    max-width: 950px;
    margin: 30px auto 0;
    text-align: center;
}

.subsidy-image {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes default bottom spacing of inline images */
    /* Optional shadow to make it pop slightly, remove if you want it perfectly flat */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 12px;
}





/* Circular  */
/* --- PROJECTS SECTION (IMAGE BASED) --- */

#projects {
    background-color: #f9fafb;
    padding: 60px 0;
}

.projects-image-wrapper {
    width: 100%;
    /* Reduced max-width to make the image smaller and fit better */
    max-width: 500px; 
    margin: 20px auto 0; /* Centered horizontally */
    text-align: center;
    transition: transform 0.3s ease;
}

.projects-image-wrapper:hover {
    transform: scale(1.02);
}

.projects-image {
    width: 100%;
    height: auto;
    display: block;
    /* Clean shadow to make it pop */
    /* filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); */
}



/* --- FOOTER UPDATES --- */

/* Ensure the grid splits into 3 columns on desktop */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

/* Quick Links List Styling */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px; /* Slide effect */
}

/* Main Website Button */
.main-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.main-site-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}