/* SUBSIDY PAGE STYLES - REFINED */
.page-header {
    background: linear-gradient(rgba(var(--secondary-rgb), 0.8), rgba(var(--secondary-rgb), 0.8)), url('../../images/subsidy-hero.png');
    background-size: cover;
    background-position: center;
    padding: 8rem 1.5rem 3rem;
    /* Reduced bottom padding */
    text-align: center;
    color: white;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    /* Slightly smaller */
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.page-title span {
    color: var(--primary);
}

.page-sub {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.section {
    padding: 3rem 1.5rem;
    /* Further reduced from 5rem */
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.section-title span {
    color: var(--primary);
}

/* SUBSIDY CARDS - Glassmorphism style */
.subsidy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.subsidy-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.subsidy-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(var(--primary-rgb), 0.1), 0 10px 10px -5px rgba(var(--primary-rgb), 0.04);
}

.subsidy-card.featured {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.subsidy-card.featured .subsidy-capacity {
    color: #94a3b8;
}

.subsidy-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin: 1rem 0;
}

.subsidy-capacity {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* PROCESS STEPS - Modern & Compact */
.process-timeline {
    position: relative;
    margin-top: 3rem;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--secondary);
    border: 2px solid var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--primary);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.step-content {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 18px;
    flex: 1;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.process-step:hover .step-content {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.step-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--secondary);
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* DOCUMENTS - Grid */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.doc-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.doc-icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
    color: var(--primary);
}

.faq-answer {
    color: #64748b;
    line-height: 1.6;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
}

/* CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin-top: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.1rem 2.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.btn-primary-lg:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.4);
}

@media (max-width: 1024px) {
    .page-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .subsidy-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 5rem 1rem 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-sub {
        font-size: 1rem;
    }

    .section {
        padding: 2.5rem 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    /* Responsive Grid for Overview */
    .section>div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .section>div[style*="display:grid"]>div:nth-child(2) {
        order: -1;
        /* Image first on mobile for overview */
    }

    .subsidy-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .process-timeline {
        padding-left: 10px;
    }

    .process-step {
        gap: 1.25rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .process-step::after {
        left: 20px;
    }

    .step-content {
        padding: 1.25rem;
    }

    .step-content h3 {
        font-size: 1.15rem;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

    .cta-banner h2 {
        font-size: 1.75rem;
    }

    .btn-primary-lg {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .subsidy-amount {
        font-size: 2.25rem;
    }

    .doc-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== NEW CLASSES — REPLACES INLINE STYLES ===== */

/* Hero inner container */
.subsidy-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Eyebrow in hero (white) */
.subsidy-eyebrow {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Overview grid — replaces inline grid */
.subsidy-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.subsidy-section-white {
    background: white;
}

/* Body text — replaces inline p styles */
.subsidy-body-text {
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
}

.subsidy-body-text-mt {
    margin-top: 1rem;
}

/* Stats mini grid */
.subsidy-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.subsidy-stat-box {
    background: var(--primary-bg);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--primary-border);
}

.subsidy-stat-num {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.3rem;
}

.subsidy-stat-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Image wrapper */
.subsidy-img-wrap {
    position: relative;
}

.subsidy-overview-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Approved badge — replaces absolute-positioned inline div */
.subsidy-approved-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f5f9;
}

.subsidy-approved-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.subsidy-approved-text {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Slab section */
.subsidy-section-gray {
    background: var(--primary-bg);
}

.subsidy-section-fullwidth {
    max-width: none;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.subsidy-slab-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Best-value ribbon — replaces absolute-positioned inline div with rotate */
.subsidy-best-value-ribbon {
    position: absolute;
    top: 12px;
    right: -25px;
    background: var(--primary);
    color: white;
    padding: 4px 30px;
    transform: rotate(45deg);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.subsidy-card-desc {
    color: #64748b;
    font-size: 0.9rem;
}

.subsidy-card-desc-featured {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Process section */
.subsidy-process-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subsidy-timeline {
    max-width: 900px;
    margin: 0 auto;
}

/* External link in process steps */
.subsidy-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.subsidy-link:hover {
    text-decoration: underline;
}

/* Documents section */
.subsidy-doc-section {
    background: var(--secondary);
    max-width: none;
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.subsidy-doc-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.subsidy-doc-title {
    color: white;
    margin-bottom: 0;
}

.doc-item-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* FAQ section header */
.subsidy-faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* CTA description in cta-banner */
.subsidy-cta-desc {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ENHANCED RESPONSIVE FOR NEW CLASSES ===== */
@media (max-width: 768px) {
    .subsidy-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .subsidy-img-wrap {
        order: -1;
    }

    .subsidy-approved-badge {
        display: none;
    }

    .subsidy-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .subsidy-doc-section {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .subsidy-stat-grid {
        grid-template-columns: 1fr;
    }

    .subsidy-stat-num {
        font-size: 1.15rem;
    }
}