﻿:root {
    --accent-dark: #064e3b;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --text-dark: #052f2f;
    --muted: #64748b;
    --bg: #f8fafc;
}

/* ===== Base Styling ===== */
body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* ===== Hero Section ===== */
.nifco-hero {
    position: relative;
    background: linear-gradient(135deg, #0f766e, #14b8a6, #06b6d4);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.nifco-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.nifco-hero p {
    font-size: 18px;
    line-height: 1.6;
    color: #e0f2f1;
}

/* ===== Services Section ===== */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.nifco-services h2 {
    text-align: center;
    font-size: 30px;
    color: var(--accent-dark);
}

.intro {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
}

/* ===== Grid Layout ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

/* Each card different color */
.service-card {
    border-radius: 16px;
    color: #fff;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .service-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

/* Color Themes */
.gov {
    background: linear-gradient(135deg, #047857, #10b981);
}

.ngo {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.nabard {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.farmer {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
}

.private {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.service-card ul {
    list-style-type: disc;
    padding-left: 18px;
    line-height: 1.7;
}

/* ===== MAHAFPC Card ===== */
.about-mahafpc {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}

    .about-mahafpc h3 {
        color: var(--accent);
        margin-bottom: 10px;
    }

    .about-mahafpc p, .about-mahafpc ul {
        color: var(--muted);
        line-height: 1.6;
    }

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nifco-hero h1 {
        font-size: 28px;
    }

    .nifco-hero p {
        font-size: 15px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}
