/* ============================================================
   NARIMITRA — resources.css
   Growth & Rights Hub
   Aligned to NariMitra brand palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS VARIABLES — aligned with rest of NariMitra app
   ============================================================ */

:root {
    --plum:         #5B2C6F;
    --plum-dark:    #4A235A;
    --plum-deep:    #2C1040;
    --rose:         #D95D84;
    --coral:        #E8928B;
    --soft:         #FFF4F7;
    --lavender:     #F3E8FF;
    --bg:           #FAF6FD;
    --white:        #ffffff;
    --text:         #2A1A3E;
    --text-muted:   #7A6A8A;
    --navy:         #1A1040;
    --green:        #25D366;
    --telegram:     #229ED9;
    --gold:         #F5A623;
    --radius-lg:    28px;
    --radius-xl:    36px;
    --shadow-soft:  0 8px 32px rgba(91, 44, 111, 0.10);
    --shadow-card:  0 16px 48px rgba(91, 44, 111, 0.13);
}

/* ============================================================
   BASE RESET
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    padding: 90px 20px 70px;
    text-align: center;
    background: linear-gradient(160deg, var(--plum-deep) 0%, var(--plum) 50%, var(--rose) 100%);
    overflow: hidden;
}

/* Decorative circles in hero */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 52px;
    color: white;
    margin-bottom: 18px;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.hero h1 em {
    font-style: italic;
    color: #FFD6E8;
}

.hero p {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 50px 28px 20px;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 34px;
    color: var(--plum);
    margin-bottom: 10px;
    line-height: 1.2;
}

.section-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
    max-width: 700px;
    line-height: 1.7;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */

.section-block {
    margin-bottom: 80px;
}

/* ============================================================
   MITRA TV
   ============================================================ */

.tv-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.player {
    flex: 2.2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--plum-deep);
}

.player iframe {
    width: 100%;
    height: 460px;
    display: block;
}

.playlist {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    overflow-y: auto;
    max-height: 460px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(91, 44, 111, 0.08);
}

.playlist h4 {
    font-family: 'DM Serif Display', serif;
    color: var(--plum);
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lavender);
}

.playlist-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-bottom: 8px;
    align-items: center;
}

.playlist-item:hover {
    background: var(--lavender);
    transform: translateX(4px);
}

.playlist-item.active {
    background: var(--soft);
    border: 1.5px solid var(--rose);
}

.playlist-item img {
    width: 80px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.playlist-item p {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

/* ============================================================
   KNOWLEDGE SHIELD
   ============================================================ */

.law-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.law-card {
    background: linear-gradient(145deg, var(--plum-deep) 0%, var(--plum) 100%);
    color: white;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.law-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -30px;
    right: -30px;
    pointer-events: none;
}

.law-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(91, 44, 111, 0.30);
}

.law-icon {
    font-size: 28px;
    margin-bottom: 14px;
    color: #e9b8ff;
}

.law-number {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.65;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.law-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

.law-card p {
    font-size: 13px;
    opacity: 0.82;
    line-height: 1.6;
}

.law-card .tap-hint {
    margin-top: 14px;
    font-size: 11px;
    opacity: 0.55;
    font-weight: 600;
}

/* ============================================================
   GOVERNMENT SCHEMES
   ============================================================ */

.schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.scheme-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--rose);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.scheme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.scheme-icon {
    font-size: 26px;
    margin-bottom: 14px;
}

.scheme-amount {
    display: inline-block;
    background: var(--soft);
    color: var(--rose);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.scheme-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--plum);
    margin-bottom: 8px;
    line-height: 1.3;
}

.scheme-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   EMERGENCY HELPLINES
   ============================================================ */

.helplines-strip {
    background: linear-gradient(135deg, #1A0830 0%, var(--plum) 100%);
    border-radius: var(--radius-xl);
    padding: 42px 36px;
    color: white;
    position: relative;
    overflow: hidden;
}

.helplines-strip::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: -150px;
    right: -100px;
}

.helplines-strip h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.helplines-strip .section-sub {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.helplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
}

.helpline-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 18px;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.helpline-card:hover {
    background: rgba(255, 255, 255, 0.17);
    transform: translateY(-4px);
}

.helpline-number {
    font-size: 32px;
    font-weight: 900;
    color: #FFD6E8;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.helpline-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.helpline-card p {
    font-size: 11px;
    opacity: 0.68;
    line-height: 1.4;
}

/* ============================================================
   ROADMAP CARDS
   ============================================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 22px 20px 24px;
}

.blog-tag {
    display: inline-block;
    background: var(--lavender);
    color: var(--plum);
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content h3 {
    color: var(--plum);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog-read-more:hover {
    gap: 10px;
}

/* ============================================================
   MITRA CIRCLES
   ============================================================ */

.circle-banner {
    background: linear-gradient(140deg, var(--plum-dark) 0%, var(--plum) 60%, var(--rose) 100%);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    color: white;
    box-shadow: 0 20px 56px rgba(91, 44, 111, 0.22);
    position: relative;
    overflow: hidden;
}

.circle-banner::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.circle-banner h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 34px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.circle-banner > p {
    opacity: 0.85;
    font-size: 15px;
    max-width: 600px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.circle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.circle-card {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    padding: 24px 20px;
    border-radius: 22px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.circle-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.circle-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 14px 0 8px;
}

.circle-card p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.55;
}

.circle-btns {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.circle-btns a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
    border: none;
}

.circle-btns a:hover {
    transform: scale(1.05);
    opacity: 0.92;
}

.whatsapp-btn {
    background: var(--green);
    color: white;
}

.telegram-btn {
    background: var(--telegram);
    color: white;
}

/* ============================================================
   NGO / GIVING BACK
   ============================================================ */

.ngo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.ngo-card {
    background: var(--white);
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border-top: 4px solid var(--lavender);
}

.ngo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-top-color: var(--rose);
}

.ngo-card h3 {
    color: var(--plum);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
}

.ngo-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

/* ============================================================
   FOUNDING MITRA
   ============================================================ */

.founding {
    background: linear-gradient(145deg, var(--plum-deep) 0%, var(--plum) 50%, #8B2252 100%);
    color: white;
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.founding::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -200px;
    left: -100px;
    pointer-events: none;
}

.founding h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.founding p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.85;
    opacity: 0.88;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.founding button {
    margin-top: 32px;
    background: white;
    color: var(--plum);
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.founding button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 5, 40, 0.70);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.modal-box {
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: 28px;
    padding: 40px 36px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--plum);
    font-size: 26px;
    margin-bottom: 16px;
}

.modal-box p {
    color: #555;
    line-height: 1.85;
    font-size: 15px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--rose);
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    .tv-section {
        flex-direction: column;
    }

    .player iframe {
        height: 240px;
    }

    .playlist {
        max-height: 300px;
    }

    .container {
        padding: 30px 18px;
    }

    .section-title {
        font-size: 26px;
    }

    .founding {
        padding: 40px 24px;
    }

    .founding h2 {
        font-size: 28px;
    }

    .helplines-strip {
        padding: 32px 22px;
    }

    .circle-banner {
        padding: 32px 22px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 18px 50px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .helpline-number {
        font-size: 26px;
    }
}
