/* ==========================================================
   گروه جهادی حسنا | Hosna Jihadi Group
   Main Stylesheet — clean, modern, RTL Persian design
   Palette: Rose #8B5E72 · Rose Dark #AD4D64 · Olive #6A7A3D
            Light Rose #D9B7C2 · Light Olive #C8D39A · Cream #E5D7C5
   ========================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Primary — soft rose / brand */
    --primary: #8B5E72;
    --primary-dark: #AD4D64;
    --primary-light: #D9B7C2;

    /* Secondary — muted olive */
    --secondary: #6A7A3D;
    --secondary-light: #C8D39A;
    --secondary-soft: #A7AD7D;

    /* Accent — soft pink (used sparingly) */
    --accent: #E6A5A7;

    /* Surfaces */
    --background: #E5D7C5;      /* warm cream page background */
    --surface: #F8F5F1;          /* cards / panels / forms */
    --surface-hover: #F1EAE4;    /* subtle hover backgrounds */

    /* Borders & dividers */
    --border: #DED3C9;

    /* Text */
    --text-primary: #3F3539;
    --text-secondary: #74666B;
    --text-muted: #9A8D91;

    --white: #FFFFFF;

    /* Backwards-compatible aliases used across the stylesheet */
    --ink: var(--text-primary);
    --text: var(--text-secondary);
    --muted: var(--text-muted);
    --line: var(--border);
    --secondary-dark: var(--secondary);
    --secondary-dark-hover: #5A6833;

    /* Derived soft tints for backgrounds */
    --bg-tint: #F7EFEE;   /* warm rose tint (#primary-light at low intensity) */
    --bg-green: #EFF3E2;  /* soft olive tint */
    --bg-soft: var(--surface-hover);

    /* Layout */
    --max-width: 1180px;
    --header-h: 78px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Effects — soft, premium shadows */
    --shadow-sm: 0 2px 8px rgba(63, 53, 57, 0.05);
    --shadow: 0 4px 20px rgba(63, 53, 57, 0.06);
    --shadow-lg: 0 8px 30px rgba(63, 53, 57, 0.08);
    --transition: 0.3s ease;
    --focus-ring: 0 0 0 3px rgba(139, 94, 114, 0.28);
}

/* ---------- 2. Local Fonts (Vazirmatn) ---------- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- 3. Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Vazirmatn', 'IRANYekanX', 'Tahoma', 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text);
    background-color: var(--background);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
    padding-right: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

::selection {
    background: var(--primary-light);
    color: var(--ink);
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', 'IRANYekanX', 'Tahoma', sans-serif;
    font-weight: 800;
    line-height: 1.5;
    color: var(--ink);
}

h1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--text);
}

/* ---------- 4. Layout Helpers ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: 1.5rem;
}

.section {
    padding-block: 5rem;
}

.section-soft {
    background: var(--bg-soft);
}

.section-tint {
    background: var(--bg-tint);
}

.section-green {
    background: var(--bg-green);
}

.text-center { text-align: center; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 5. Section Titles ---------- */
.section-head {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.section-head .eyebrow::before,
.section-head .eyebrow::after {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.section-head h2 {
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.section-head.light h2,
.section-head.light p,
.section-head.light .eyebrow {
    color: var(--white);
}

.section-head.light .eyebrow::before,
.section-head.light .eyebrow::after {
    background: var(--secondary-light);
}

/* ---------- 6. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.9rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(139, 94, 114, 0.3);
}

.btn-secondary {
    background: var(--secondary-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(106, 122, 61, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    background: var(--primary-light);
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.4rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 1.15em;
}

/* ---------- 7. Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

/* Top bar */
.header-top {
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
}

.header-top .topbar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-top a {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-top a:hover {
    color: var(--secondary-light);
}

.header-top .topbar-social {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.header-top .topbar-social a {
    font-size: 1rem;
}

/* Main bar */
.header-inner {
    background: var(--white);
}

.header-inner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

/* Brand / logo */
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.brand img {
    height: 56px;
    width: auto;
}

.brand .brand-name {
    display: block;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.5;
}

.brand .brand-name span {
    display: block;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-menu > li > a {
    display: block;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    border-radius: var(--radius-pill);
    transition: color var(--transition), background-color var(--transition);
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-menu > li > a:hover {
    color: var(--primary-dark);
    background: var(--bg-tint);
}

.nav-menu > li > a.active {
    color: var(--primary);
    background: var(--bg-tint);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 50%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Menu toggle (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--bg-tint);
    border: none;
    border-radius: 10px;
    align-items: center;
}

.menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(63, 53, 57, 0.5);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(86%, 330px);
    height: 100%;
    background: var(--white);
    z-index: 1201;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.mobile-menu-header img {
    height: 48px;
    width: auto;
}

.mobile-menu-close {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 1.4rem;
    border: none;
    border-radius: 10px;
}

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1.5rem;
}

.mobile-menu-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-menu-nav a.active {
    color: var(--primary);
    background: var(--bg-tint);
    border-radius: var(--radius);
    padding-inline: 0.75rem;
}

.mobile-menu-nav a i {
    color: var(--muted);
    font-size: 0.9rem;
}

.mobile-menu-cta {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ---------- 8. Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-tint) 0%, var(--white) 55%, var(--bg-green) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.5rem;
    padding-block: 4.5rem;
    min-height: calc(100vh - var(--header-h) - 38px);
    min-height: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.4rem;
}

.hero-badge i {
    color: var(--secondary-dark);
}

.hero h1 {
    margin-bottom: 1.1rem;
}

.hero h1 .accent {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
}

.hero p.lead {
    margin-bottom: 1.5rem;
    max-width: 34rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-note i {
    color: var(--secondary-dark);
    font-size: 1.1rem;
}

/* Hero visual */
.hero-visual {
    position: relative;
}

.hero-visual .hero-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 4.4;
}

.hero-visual .hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(63, 53, 57, 0.28) 100%);
}

.hero-visual .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-float {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    z-index: 2;
}

.hero-float .float-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.hero-float .float-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.4;
}

.hero-float .float-text span {
    font-size: 0.8rem;
    color: var(--muted);
}

.float-1 {
    top: 12%;
    right: -1.5rem;
}

.float-2 {
    bottom: 14%;
    left: -1rem;
}

/* ---------- 9. Page Header (inner pages) ---------- */
.page-header {
    position: relative;
    background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 60%, var(--secondary-dark) 130%);
    color: var(--white);
    padding-block: 4.2rem 3.6rem;
    text-align: center;
    overflow: hidden;
}

.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.page-header::before {
    width: 340px;
    height: 340px;
    top: -160px;
    left: -80px;
}

.page-header::after {
    width: 260px;
    height: 260px;
    bottom: -140px;
    right: -60px;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.6rem;
}

.page-header .page-header-desc {
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--secondary-light);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- 10. Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    aspect-ratio: 16 / 10;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-media img {
    transform: scale(1.06);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    margin-bottom: 0.5rem;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--primary);
}

.card-text {
    color: var(--text);
    font-size: 0.95rem;
    flex: 1;
}

.card-tag {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    z-index: 1;
}

.card-tag.green {
    background: var(--secondary-dark);
}

/* ---------- 11. Feature / Value cards ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    border-radius: 20px;
    background: var(--bg-tint);
    color: var(--primary);
    transition: background-color var(--transition), color var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-title {
    margin-bottom: 0.6rem;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text);
    flex: 1;
}

.feature-card .btn {
    margin-top: 1.1rem;
    align-self: center;
}

/* ---------- 12. Project cards ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.06);
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.project-meta .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-green);
    color: var(--secondary-dark);
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-pill);
}

.project-info {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.93rem;
    flex: 1;
    margin-bottom: 1rem;
}

/* Progress */
.progress-wrap {
    margin: 0.2rem 0 1.1rem;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.progress-meta .progress-value {
    font-weight: 700;
    color: var(--secondary-dark);
}

.progress-bar {
    height: 9px;
    background: var(--bg-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--line);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-dark), var(--secondary-light));
    border-radius: var(--radius-pill);
    width: 0;
    transition: width 1s ease;
}

/* ---------- 13. News cards ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-media img {
    transform: scale(1.06);
}

.news-body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    font-size: 0.93rem;
    flex: 1;
    margin-bottom: 1rem;
}

/* ---------- 14. Children / Impact ---------- */
.children-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.child-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
}

.child-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.child-card:hover img {
    transform: scale(1.06);
}

.child-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(63, 53, 57, 0.6) 100%);
}

.child-card .child-info {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.4rem;
    color: var(--white);
    z-index: 1;
}

.child-card .child-info h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.child-card .child-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* ---------- 15. Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
}

.stat-card:nth-child(2)::before { background: var(--secondary-dark); }
.stat-card:nth-child(3)::before { background: var(--primary-light); }
.stat-card:nth-child(4)::before { background: var(--secondary-light); }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 16px;
    background: var(--bg-tint);
    color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon { background: var(--bg-green); color: var(--secondary-dark); }
.stat-card:nth-child(3) .stat-icon { background: var(--bg-tint); color: var(--primary); }
.stat-card:nth-child(4) .stat-icon { background: var(--bg-green); color: var(--secondary-dark); }

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
    direction: ltr;
    display: inline-block;
}

.stat-number .suffix {
    color: var(--primary);
    font-weight: 800;
    margin-right: 2px;
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

/* ---------- 16. Split / two column ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.split .image-frame {
    position: relative;
}

.image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.frame-accent {
    position: absolute;
    border-radius: var(--radius-lg);
    border: 6px solid var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 1;
}

.check-list {
    margin: 1.4rem 0 1.8rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.check-list li i {
    color: var(--secondary-dark);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ---------- 17. CTA band ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--secondary-dark) 120%);
    color: var(--white);
    text-align: center;
    padding-block: 4.5rem;
}

.cta-band::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -130px;
    right: -60px;
}

.cta-band::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    bottom: -110px;
    left: -40px;
}

.cta-band .container {
    position: relative;
    z-index: 1;
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 0.8rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
    margin: 0 auto 1.9rem;
}

.cta-band .btn {
    margin-inline: 0.45rem;
    margin-block: 0.25rem;
}

/* ---------- 18. Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 94, 114, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--white);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 1.6rem;
}

.gallery-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 16, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    max-width: 920px;
    width: 100%;
}

.gallery-modal img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.gallery-modal-caption {
    color: var(--white);
    text-align: center;
    margin-top: 0.9rem;
    font-size: 0.95rem;
}

.gallery-modal-close {
    position: absolute;
    top: -3rem;
    left: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 1.4rem;
    border: none;
    border-radius: 50%;
    transition: background-color var(--transition);
}

.gallery-modal-close:hover {
    background: var(--primary);
}

body.modal-open {
    overflow: hidden;
}

/* ---------- 19. Forms ---------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.form-group label .req {
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder {
    color: var(--muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.form-control.error {
    border-color: var(--primary-dark);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

select.form-control {
    appearance: auto;
}

.error-message {
    color: var(--primary-dark);
    font-size: 0.83rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: none;
}

.form-success-message {
    background: var(--bg-green);
    border: 1px solid var(--secondary-light);
    color: var(--secondary-dark);
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    margin-top: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1rem;
}

/* Donation amount buttons */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.amount-btn {
    padding: 0.8rem 0.5rem;
    background: var(--bg-soft);
    border: 2px solid var(--line);
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    transition: all var(--transition);
}

.amount-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg-tint);
}

.amount-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ---------- 20. Contact info cards ---------- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-card .feature-icon {
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.4rem;
}

.contact-card p,
.contact-card a {
    color: var(--text);
    font-size: 0.95rem;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--primary);
}

/* ---------- 21. Tables ---------- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--line);
    text-align: right;
    font-size: 0.95rem;
}

.table th {
    background: var(--bg-tint);
    color: var(--primary-dark);
    font-weight: 800;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--bg-soft);
}

/* ---------- 22. Detail / article layout ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.detail-content .image-frame {
    margin-bottom: 1.8rem;
}

.detail-content .image-frame img {
    aspect-ratio: 16 / 9;
}

.detail-content h2,
.detail-content h3 {
    margin-bottom: 0.9rem;
}

.detail-content h2 {
    margin-top: 2rem;
}

.detail-content h3 {
    color: var(--primary);
}

.detail-content ul.feature-list {
    margin: 1rem 0;
}

.detail-content ul.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.detail-content ul.feature-list li i {
    color: var(--secondary-dark);
    line-height: 1.7;
}

.sidebar-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.6rem;
}

.sidebar-box h3 {
    font-size: 1.1rem;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-tint);
    position: relative;
}

.sidebar-box h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 48px;
    height: 2px;
    background: var(--primary);
}

.sidebar-box ul li {
    margin-bottom: 0.6rem;
}

.sidebar-box ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.sidebar-box ul li a:hover {
    color: var(--primary);
}

.sidebar-box ul li a i {
    font-size: 0.9rem;
    color: var(--primary);
}

.sidebar-info li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--line);
}

.sidebar-info li span {
    color: var(--muted);
}

.sidebar-info li strong {
    color: var(--ink);
}

/* ---------- 23. Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-block: 4rem 3rem;
}

.footer-brand img {
    height: 60px;
    width: auto;
    margin-bottom: 1.2rem;
}

.footer-brand p {
    font-size: 0.93rem;
    margin-bottom: 1.3rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.08rem;
    margin-bottom: 1.3rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    transition: color var(--transition), padding var(--transition);
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary-light);
}

.footer-links a:hover {
    color: var(--secondary-light);
    padding-right: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.93rem;
}

.footer-contact-list li i {
    color: var(--primary-light);
    font-size: 1.1rem;
    line-height: 1.6;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-contact-list a:hover {
    color: var(--secondary-light);
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.05rem;
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 1.3rem;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-bottom a:hover {
    color: var(--secondary-light);
}

.footer-legal {
    display: flex;
    gap: 1.3rem;
}

/* ---------- 24. Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 1.6rem;
    left: 1.6rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--transition), visibility var(--transition),
                transform var(--transition), background-color var(--transition);
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-dark);
}

/* ---------- 25. Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 27. Homepage header (3 action buttons) ---------- */
.home-header .header-inner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: var(--header-h);
    flex-wrap: wrap;
}

.home-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.05rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), color var(--transition),
                background-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
}

.header-action-btn i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 1.05rem;
    transition: background-color var(--transition), color var(--transition);
}

.header-action-btn:hover,
.header-action-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.header-action-btn:hover i,
.header-action-btn.active i {
    background: var(--primary);
    color: var(--white);
}

/* ---------- 28. Homepage hero (image right / text left) ---------- */
.hero-home .container {
    min-height: 0;
    padding-block: 4.25rem;
}

.hero-home .hero-visual {
    max-width: 480px;
    width: 100%;
}

.hero-home .hero-visual .hero-img {
    aspect-ratio: 4 / 4.6;
}

.hero-home .hero-visual .hero-img::after {
    background: linear-gradient(180deg, transparent 62%, rgba(63, 53, 57, 0.14) 100%);
}

/* ---------- 29. Weekly dashboard ---------- */
.dashboard-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.6rem 2rem;
    background: linear-gradient(135deg, var(--bg-tint) 0%, var(--bg-green) 100%);
    border-bottom: 1px solid var(--line);
}

.dashboard-head h3 {
    font-size: 1.3rem;
    margin-bottom: 0.15rem;
}

.dash-range {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0;
}

.dash-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--white);
    color: var(--secondary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--secondary-light);
    box-shadow: var(--shadow-sm);
}

.dash-live i {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.75rem 2rem 1rem;
}

.dash-kpi {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.dash-kpi:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.dash-kpi-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 1.45rem;
}

.dash-kpi:nth-child(2) .dash-kpi-icon,
.dash-kpi:nth-child(4) .dash-kpi-icon {
    background: var(--bg-green);
    color: var(--secondary-dark);
}

.dash-kpi-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
    direction: ltr;
    text-align: right;
}

.dash-kpi-label {
    display: block;
    font-size: 0.84rem;
    color: var(--muted);
}

.dash-chart {
    padding: 1.25rem 2rem 2rem;
}

.dash-chart-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
}

.dash-chart-title span {
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--muted);
}

.dash-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem;
    height: 168px;
}

.dash-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    height: 100%;
}

.dash-bar {
    width: 100%;
    max-width: 46px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
    position: relative;
    min-height: 8px;
}

.dash-bar.highlight {
    background: linear-gradient(180deg, var(--secondary-light) 0%, var(--secondary-dark) 100%);
}

.dash-bar-value {
    position: absolute;
    top: -26px;
    right: 0;
    left: 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ink);
    direction: ltr;
}

.dash-bar-day {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- 30. Final navigation cards ---------- */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.nav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.4rem 1.8rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
    overflow: hidden;
    height: 100%;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    opacity: 0.85;
}

.nav-card:nth-child(2)::before { background: var(--secondary-dark); }
.nav-card:nth-child(3)::before { background: var(--primary-light); }
.nav-card:nth-child(4)::before { background: var(--secondary-light); }

.nav-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.nav-card-icon {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 2.1rem;
    margin-bottom: 1.3rem;
    transition: background-color var(--transition), color var(--transition);
}

.nav-card:nth-child(2) .nav-card-icon,
.nav-card:nth-child(4) .nav-card-icon {
    background: var(--bg-green);
    color: var(--secondary-dark);
}

.nav-card:hover .nav-card-icon {
    background: var(--primary);
    color: var(--white);
}

.nav-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.nav-card p {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
    flex: 1;
}

.nav-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.nav-card-link i {
    transition: transform var(--transition);
}

.nav-card:hover .nav-card-link i {
    transform: translateX(-4px);
}

/* ---------- 31. Consultation page ---------- */
.cons-lead {
    font-size: 1.3rem;
    line-height: 2.15;
    color: var(--ink);
    font-weight: 600;
}

.cons-quote {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-right: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 2rem 2.4rem;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
    font-size: 1.12rem;
    line-height: 2.2;
    color: var(--ink);
}

.cons-quote .cons-quote-source {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.story-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.story-card .story-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.story-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.story-card p {
    font-size: 0.95rem;
    color: var(--text);
    flex: 1;
}

.counsel-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.counsel-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.counsel-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.counsel-step .step-num {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.counsel-step h3 {
    font-size: 1.08rem;
    margin-bottom: 0.55rem;
}

.counsel-step p {
    font-size: 0.94rem;
    color: var(--text);
    margin-bottom: 0;
}

/* ---------- 32. Donors page ---------- */
.donor-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--secondary-dark) 120%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.donor-banner h2 {
    color: var(--white);
    margin-bottom: 0.8rem;
}

.donor-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto;
}
