/* ============================================================
   Haya Al Alfalah - Design System
   Bootstrap 5.3 override + custom component library
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --green-50:  #f0faf3;
    --green-100: #d6f3de;
    --green-200: #aae3bb;
    --green-400: #4caf72;
    --green-500: #1f7a3f;
    --green-600: #146334;
    --green-700: #0d4a26;
    --green-800: #072e17;

    --earth-50:  #fdf8f3;
    --earth-100: #f5e9d8;
    --earth-200: #e8ccaa;
    --earth-400: #c4844a;
    --earth-500: #7a4a22;
    --earth-600: #4c2a14;
    --earth-700: #2e1809;

    --sand-50:  #fdfcf9;
    --sand-100: #f7f3ec;
    --sand-200: #ede5d5;

    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;

    --brand:        var(--green-500);
    --brand-dark:   var(--green-600);
    --brand-deeper: var(--green-700);
    --accent:       var(--earth-500);
    --accent-light: var(--earth-100);

    --bg-page:    #f8f7f4;
    --bg-card:    #ffffff;
    --bg-subtle:  var(--sand-100);
    --bg-muted:   var(--sand-200);

    --text-primary:   var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted:     var(--gray-400);
    --text-brand:     var(--green-600);
    --text-accent:    var(--earth-600);

    --border-light: #eae7e0;
    --border-mid:   #d5d0c7;

    --r-sm:  0.5rem;
    --r-md:  0.875rem;
    --r-lg:  1.25rem;
    --r-xl:  1.75rem;
    --r-2xl: 2.5rem;

    --shadow-xs: 0 1px 3px rgba(15,23,18,0.06);
    --shadow-sm: 0 4px 12px rgba(15,23,18,0.07);
    --shadow-md: 0 8px 28px rgba(15,23,18,0.09);
    --shadow-lg: 0 20px 50px rgba(15,23,18,0.11);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t-fast: 150ms var(--ease);
    --t-base: 250ms var(--ease);
    --t-slow: 400ms var(--ease);
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31,122,63,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 110%, rgba(76,42,20,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3,
.display-1, .display-2, .display-3,
.display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h4, h5, h6 { font-family: var(--font-body); font-weight: 600; }

.lead {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
}

a { color: var(--text-brand); transition: color var(--t-fast); }
a:hover { color: var(--brand-dark); }

/* ── Page Shell ────────────────────────────────────────────── */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
}

/* ── Navbar ────────────────────────────────────────────────── */
.site-navbar {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 0 var(--border-light);
    transition: box-shadow var(--t-base);
}

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

.navbar-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 1.25rem;
}

.navbar-brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green-100);
    box-shadow: 0 0 0 3px rgba(31,122,63,0.08);
    transition: transform var(--t-base);
}
.navbar-brand-wrap:hover .brand-logo { transform: rotate(-4deg) scale(1.06); }

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--earth-600);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brand-text small {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-nav-main {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-item-main > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
}

.nav-item-main > a:hover { color: var(--brand); background: var(--green-50); }
.nav-item-main > a.active { color: var(--brand); background: var(--green-50); font-weight: 600; }
.nav-item-main > a i { font-size: 0.9rem; opacity: 0.65; }

.nav-role-badge {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-role-badge.admin  { background: #fde8d4; color: #9a3d0d; }
.nav-role-badge.super  { background: #ede0f7; color: #6b21a8; }
.nav-role-badge.mod    { background: #dbeafe; color: #1e40af; }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
    position: relative;
    text-decoration: none;
    font-size: 1rem;
}
.btn-icon:hover { background: var(--green-50); color: var(--brand); border-color: var(--green-200); }

.badge-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 7px; height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.65rem 0.25rem 0.25rem;
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    background: transparent;
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    color: var(--text-primary);
}
.user-menu-btn:hover { background: var(--green-50); border-color: var(--green-200); color: var(--text-primary); }

.user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    letter-spacing: 0.03em;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-menu-name {
    font-size: 0.82rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    min-width: 210px;
}

.dropdown-header {
    padding: 0.6rem 0.75rem 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.dropdown-item {
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background var(--t-fast), color var(--t-fast);
}
.dropdown-item:hover { background: var(--green-50); color: var(--brand); }
.dropdown-item i { opacity: 0.55; font-size: 0.9rem; width: 14px; text-align: center; }
.dropdown-item.text-danger:hover { background: #fef2f2; color: #dc2626; }
.dropdown-divider { border-color: var(--border-light); margin: 0.35rem 0; }

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
}
.role-pill.super-admin { background: #f3e8ff; color: #7c3aed; }
.role-pill.admin       { background: #fff7ed; color: #c2410c; }
.role-pill.moderator   { background: #eff6ff; color: #1d4ed8; }
.role-pill.member      { background: var(--green-50); color: var(--green-600); }
.role-pill.guest       { background: var(--gray-100); color: var(--gray-600); }

.navbar-toggler-custom {
    width: 38px; height: 38px;
    border: 1px solid var(--border-light);
    border-radius: var(--r-sm);
    background: transparent;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.navbar-toggler-custom:hover { background: var(--green-50); }
.hamburger-line { width: 18px; height: 2px; background: var(--gray-600); border-radius: 2px; }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(248,247,244,0.98);
    backdrop-filter: blur(16px);
    z-index: 1029;
    padding: 1.25rem 1rem;
    overflow-y: auto;
    border-top: 1px solid var(--border-light);
}
.mobile-nav.open { display: block; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--r-md);
    margin-bottom: 0.2rem;
    transition: background var(--t-fast), color var(--t-fast);
}
.mobile-nav-link:hover,
.mobile-nav-link.active { background: var(--green-50); color: var(--brand); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.01em;
}

.btn-success {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 1px 3px rgba(31,122,63,0.3), 0 4px 12px rgba(31,122,63,0.12);
}
.btn-success:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(31,122,63,0.35), 0 8px 20px rgba(31,122,63,0.18);
}
.btn-success:active { transform: translateY(0); }

.btn-outline-success { color: var(--brand); border-color: var(--brand); border-width: 1.5px; }
.btn-outline-success:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-1px); }

.btn-earth { background: var(--earth-600); border-color: var(--earth-600); color: white; }
.btn-earth:hover { background: var(--earth-700); border-color: var(--earth-700); color: white; }

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border-mid);
    color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--border-mid); color: var(--text-primary); }

.btn-lg { padding: 0.7rem 1.5rem; font-size: 1rem; border-radius: var(--r-md); }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.card-body { padding: 0; }

.card-hover:hover {
    transform: translateY(-3px);
    border-color: var(--green-200);
    box-shadow: var(--shadow-md);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 2rem 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(31,122,63,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -50px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(76,42,20,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-600);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--green-400);
    border-radius: 50%;
    animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.75); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--brand);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--green-300, #7dd3aa));
    border-radius: 2px;
    opacity: 0.35;
}

.hero-logo {
    max-height: 300px;
    width: auto;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.1));
    transition: transform var(--t-slow);
}
.hero-logo:hover { transform: scale(1.03) rotate(-1deg); }

.hero-media-shell {
    width: min(100%, 370px);
    margin-inline: auto;
    aspect-ratio: auto;
    overflow: visible;
    clip-path: none;
    box-shadow: none;
    background: transparent;
}

.hero-family-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.hero-note {
    color: var(--text-muted);
}

/* ── Feature Cards ─────────────────────────────────────────── */
.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.875rem;
    flex-shrink: 0;
}
.feature-icon.green  { background: var(--green-50);  color: var(--green-600); }
.feature-icon.earth  { background: var(--earth-100); color: var(--earth-600); }
.feature-icon.blue   { background: #eff6ff; color: #1d4ed8; }
.feature-icon.purple { background: #f5f3ff; color: #7c3aed; }
.feature-icon.amber  { background: #fffbeb; color: #d97706; }
.feature-icon.rose   { background: #fff1f2; color: #e11d48; }

/* ── Focus Items ───────────────────────────────────────────── */
.focus-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    background: var(--bg-subtle);
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.focus-item:hover { border-color: var(--green-200); background: var(--green-50); box-shadow: var(--shadow-xs); }

.focus-item-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--green-100);
    color: var(--green-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.focus-item-body strong { display: block; font-weight: 600; color: var(--green-700); font-size: 0.875rem; margin-bottom: 0.1rem; }
.focus-item-body span   { font-size: 0.83rem; color: var(--text-secondary); }

/* ── Stats ─────────────────────────────────────────────────── */
.stat-strip {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}

.stat-item { text-align: center; padding: 1.25rem 1rem; position: relative; }
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 25%; bottom: 25%;
    width: 1px;
    background: var(--border-light);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 500;
    margin-top: 0.3rem;
}

.stat-label.stat-label-established {
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ── Section shells (projects directory, resources, microsite, etc.) ── */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-600);
    margin-bottom: 0.4rem;
}

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    padding: 1.35rem 1.25rem;
}

@media (min-width: 768px) {
    .section-card {
        padding: 1.65rem 1.85rem;
    }
}

.font-display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-label { font-weight: 500; font-size: 0.875rem; color: var(--gray-700); margin-bottom: 0.35rem; }

.form-control, .form-select {
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--r-sm);
    padding: 0.6rem 0.875rem;
    background: white;
    color: var(--text-primary);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(31,122,63,0.12);
    outline: none;
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    max-width: 760px;
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
    border-radius: var(--r-md);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border-width: 1px;
}
.alert i { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ── Badges ────────────────────────────────────────────────── */
.badge { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.03em; border-radius: 2rem; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border-light); }
.table { margin: 0; font-size: 0.875rem; }
.table th {
    background: var(--sand-100);
    font-weight: 600; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-light);
}
.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--green-50); }

/* ── RBAC UI ───────────────────────────────────────────────── */
.rbac-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--sand-100);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.rbac-strip strong { color: var(--text-primary); }
.rbac-strip i { color: var(--brand); }

.perm-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid var(--green-100);
    letter-spacing: 0.03em;
}

/* ── Stat Cards (Dashboard) ────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow var(--t-base), transform var(--t-base);
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-card-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-card-value { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.stat-card-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.2rem; }

/* ── Project Workspace Tabs ────────────────────────────────── */
.project-workspace-tabs .nav-link {
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--t-fast);
}

.project-workspace-tabs .nav-link i {
    color: inherit !important;
}

.project-workspace-tabs .nav-link:hover {
    color: var(--brand);
    background: var(--green-50);
    border-color: var(--green-200);
}

.project-workspace-tabs .nav-link.active {
    background: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand) !important;
    box-shadow: 0 10px 30px rgba(31,122,63,0.18);
}

/* ── Workspace progress ──────────────────────────────────── */
.ws-progress-bar {
    background: var(--brand) !important;
}

.project-workspace-progress {
    border-radius: 999px;
    overflow: hidden;
}
.project-workspace-progress .progress-bar {
    border-radius: 999px;
}

/* ── Project workspace hero (top summary card) ─────────────── */
.ws-project-hero {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 4px 24px rgba(7, 46, 23, 0.06) !important;
    border-radius: var(--radius-lg, 1rem);
}
/* Banner: background-image set inline (asset images/workspace-hero-bg.svg); color fallback always visible */
.ws-project-hero__banner {
    position: relative;
    min-height: 220px;
    background-color: #0f2418;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow: hidden;
}
.ws-project-hero__banner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(8, 38, 24, 0.52) 0%,
        rgba(10, 28, 18, 0.3) 48%,
        rgba(18, 12, 8, 0.48) 100%
    );
}
.ws-project-hero__banner-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.5rem 1.75rem;
}
@media (min-width: 992px) {
    .ws-project-hero__banner-content {
        padding: 1.75rem 1.75rem 2rem;
    }
}
.ws-project-hero__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}
.ws-project-hero__eyebrow--on-dark {
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    font-weight: 700;
}
.ws-project-hero__title {
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.ws-project-hero__title--on-dark {
    color: #fff;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}
/* Global `.card h1` (legacy) sets green — must win here for dark banner */
.ws-project-hero.card h1.ws-project-hero__title--on-dark {
    color: #fff !important;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.2;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}
.ws-project-hero__lead {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 42rem;
}
.ws-project-hero__lead--on-dark {
    color: rgba(255, 255, 255, 0.92);
    max-width: none;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}
.ws-project-hero__progress-wide {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.15rem 1.15rem;
    border-radius: var(--radius-md, 0.75rem);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
/* Right-column progress card (two-column hero) */
.ws-project-hero__progress-panel--modern {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
@media (max-width: 991.98px) {
    .ws-project-hero__progress-panel--modern {
        margin-top: 0.25rem;
    }
}
.ws-project-hero__progress-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
}
.ws-project-hero__progress-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}
.ws-project-hero__progress-hint {
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}
.ws-project-hero__progress-hint strong {
    color: #fff;
    font-weight: 600;
}
.ws-project-hero__progress-track {
    height: 12px !important;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2) !important;
}
.ws-project-hero__progress-track--lg {
    height: 15px !important;
}
.ws-project-hero__progress-fill {
    border-radius: 999px;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 45%, #bbf7d0 100%) !important;
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.55);
}
.ws-project-hero__pct {
    font-family: var(--font-display, Georgia, serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand);
}
.ws-project-hero__pct--on-dark {
    color: #ecfdf5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
.ws-project-hero__pct-suffix {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 0.05em;
}
.ws-project-hero__about-section {
    width: 100%;
    max-width: none;
    margin: 0;
    background: linear-gradient(180deg, var(--sand-50, #faf8f5) 0%, #fff 100%);
    border-top: 1px solid var(--border-light);
}
.ws-project-hero__about-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    line-height: 1.25;
}
@media (min-width: 768px) {
    .ws-project-hero__about-heading {
        font-size: 1.4rem;
    }
}
/* Full-width project details — single column, no 72ch / left column cap */
.ws-project-hero__about-body {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-secondary);
    width: 100%;
    max-width: none;
}
.ws-project-hero__about-body p:last-child {
    margin-bottom: 0;
}
.ws-project-hero__meta-row {
    background: var(--bg-card, #fff);
}
.ws-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.ws-pill i {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ── Side Nav ──────────────────────────────────────────────── */
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.875rem;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--t-fast);
    margin-bottom: 0.12rem;
}
.side-nav-link:hover { background: var(--green-50); color: var(--brand); }
.side-nav-link.active { background: var(--green-50); color: var(--brand); font-weight: 600; }
.side-nav-link i { opacity: 0.6; font-size: 1rem; }
.side-nav-link.active i { opacity: 1; }

/* ── Section Heading ───────────────────────────────────────── */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.section-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0; }
.section-subtitle { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── Divider ───────────────────────────────────────────────── */
.divider { border: 0; height: 1px; background: var(--border-light); margin: 1.5rem 0; }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; opacity: 0.3; display: block; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.9rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: white; border-top: 1px solid var(--border-light); margin-top: auto; }
.footer-main { padding: 2.5rem 0 2rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--earth-600); }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.footer-heading { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-secondary); margin-bottom: 0.85rem; }
.footer-link { display: block; font-size: 0.84rem; color: var(--text-secondary); text-decoration: none; padding: 0.22rem 0; transition: color var(--t-fast); }
.footer-link:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border-light); padding: 1.15rem 0 1.35rem; }
.footer-bottom-text { font-size: 0.79rem; color: var(--text-muted); }

/* Footer bottom: centered copyright + legal links (compact grey; beats global `a` + Bootstrap) */
.site-footer .footer-bottom-inner {
    max-width: 48rem;
    margin: 0 auto;
}
.site-footer .footer-bottom .footer-bottom-meta {
    font-size: 0.68rem !important;
    color: #6b7280 !important;
    line-height: 1.5;
}
.site-footer .footer-bottom-meta__line { vertical-align: middle; }
.site-footer .footer-bottom-meta__sep {
    margin: 0 0.45rem;
    opacity: 0.55;
    font-weight: 300;
    color: var(--gray-400) !important;
    vertical-align: middle;
}
/* CorpShadow + legal: grey, never green from global `a { color: text-brand }` */
.site-footer .footer-bottom a.footer-bottom-meta__brand {
    font-weight: 600;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: color var(--t-fast), opacity var(--t-fast);
}
.site-footer .footer-bottom a.footer-bottom-meta__brand:hover,
.site-footer .footer-bottom a.footer-bottom-meta__brand:focus,
.site-footer .footer-bottom a.footer-bottom-meta__brand:active {
    color: #374151 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    opacity: 1;
}
.site-footer .footer-bottom .footer-legal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    margin-top: 0.65rem;
}
.site-footer .footer-bottom a.footer-legal-link {
    display: inline-block;
    font-size: 0.64rem !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb !important;
    background: #f3f4f6 !important;
    box-shadow: none !important;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.site-footer .footer-bottom a.footer-legal-link:hover,
.site-footer .footer-bottom a.footer-legal-link:focus,
.site-footer .footer-bottom a.footer-legal-link:active {
    color: #111827 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    border-color: #d1d5db !important;
    background: #e5e7eb !important;
    box-shadow: none !important;
}
.site-footer .footer-bottom .footer-legal-sep {
    color: #9ca3af !important;
    opacity: 0.9;
    font-weight: 600;
    font-size: 0.68rem;
    line-height: 1;
    user-select: none;
}
@media (max-width: 575.98px) {
    .site-footer .footer-bottom .footer-bottom-meta__line {
        display: block !important;
        margin-bottom: 0.35rem;
    }
    .site-footer .footer-bottom .footer-bottom-meta__line:last-of-type {
        margin-bottom: 0;
    }
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-brand    { color: var(--brand) !important; }
.text-accent   { color: var(--accent) !important; }
.bg-brand-soft { background-color: var(--green-50) !important; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up   { animation: fadeInUp 0.5s var(--ease) both; }
.fade-in-up-1 { animation-delay: 0.1s; }
.fade-in-up-2 { animation-delay: 0.2s; }
.fade-in-up-3 { animation-delay: 0.3s; }
.fade-in-up-4 { animation-delay: 0.4s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
    .navbar-nav-main { display: none; }
    .navbar-toggler-custom { display: flex; }
    .brand-text small { display: none; }
}

@media (max-width: 768px) {
    .hero-section { padding: 1.35rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-media-shell { width: min(100%, 320px); }
    .card { padding: 1.25rem; }
    .form-card { padding: 1.25rem; }
}

@media (max-width: 576px) {
    .hero-section { border-radius: var(--r-lg); padding: 1.25rem; }
    .user-menu-name { display: none; }
}

/* ── Auth Pages (Register / Login) ────────────────────────── */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-sidebar {
    background: linear-gradient(160deg, var(--green-700) 0%, var(--green-600) 45%, var(--green-500) 100%);
    color: white;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    min-height: 540px;
}

.auth-sidebar-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.auth-sidebar-content {
    position: relative;
    z-index: 1;
}

.auth-sidebar-logo {
    margin-bottom: 1.75rem;
}

.auth-sidebar-logo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.auth-sidebar-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.auth-sidebar-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2rem;
}

.auth-sidebar-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.9);
}

.auth-feature i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.auth-form-panel {
    padding: 2.5rem;
}

.auth-form-header {
    margin-bottom: 1.5rem;
}

.auth-form-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.auth-form-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--gray-400);
    pointer-events: none;
    transition: color var(--t-fast);
    z-index: 2;
}

.form-control-icon {
    padding-left: 2.6rem;
}

.input-icon-wrap:focus-within .input-icon {
    color: var(--brand);
}

.password-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
    font-size: 0.95rem;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--brand);
    background: var(--green-50);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    padding-left: 0.1rem;
}

/* Password strength meter */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: var(--gray-200);
    border-radius: 4px;
    transition: background var(--t-fast);
}

.strength-bar.weak   { background: #ef4444; }
.strength-bar.fair   { background: #f59e0b; }
.strength-bar.good   { background: #22c55e; }
.strength-bar.strong { background: var(--brand); }

.strength-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 45px;
}

.strength-label.weak   { color: #ef4444; }
.strength-label.fair   { color: #f59e0b; }
.strength-label.good   { color: #22c55e; }
.strength-label.strong { color: var(--brand); }

.auth-submit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--r-md);
    letter-spacing: 0.01em;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.auth-footer-note {
    margin-top: 1.5rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .auth-form-panel {
        padding: 1.75rem 1.5rem;
    }

    .auth-card {
        border-radius: var(--r-xl);
        box-shadow: var(--shadow-md);
    }

    .auth-form-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .auth-form-panel {
        padding: 1.5rem 1.25rem;
    }

    .auth-card {
        border-radius: var(--r-lg);
    }
}
/* ── Project workspace legacy classes ──────────────────────── */

.card h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-700);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.card h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-700);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-100);
}

.info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.success-box {
    background: var(--green-50);
    border: 1px solid var(--green-200);
    border-left: 4px solid var(--green-500);
    border-radius: var(--r-md);
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green-800);
    margin: 1rem 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) {
    .admin-grid { grid-template-columns: 1fr; }
}

.mini-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.mini-card:hover {
    box-shadow: var(--shadow-xs);
    border-color: var(--green-200);
}
.mini-card strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--green-700);
    margin-bottom: 0.3rem;
}
.mini-card p {
    font-size: 0.835rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.card label {
    display: block;
    font-size: 0.855rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.3rem;
    margin-top: 0.75rem;
}
.card label:first-of-type { margin-top: 0; }

.card input[type="text"],
.card input[type="datetime-local"],
.card textarea,
.card select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--r-sm);
    padding: 0.55rem 0.85rem;
    background: #fff;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.card input:focus,
.card textarea:focus,
.card select:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(31,122,63,0.12);
    outline: none;
}

.card .progress {
    border-radius: var(--r-sm);
    overflow: hidden;
}
.card .progress-bar.bg-success {
    background-color: var(--green-500) !important;
}

/* ── About page - mission / vision cards (accent bar + icon alignment) ── */
.about-value-card {
    position: relative;
    overflow: hidden;
}
.about-value-card--mission {
    border-left: 4px solid var(--green-500);
    padding-left: 1.65rem;
}
.about-value-card--vision {
    border-left: 4px solid var(--earth-400);
    padding-left: 1.65rem;
}
.about-value-card__head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}
.about-value-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    font-size: 1.35rem;
    line-height: 1;
}
.about-value-card__icon--mission {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-600);
}
.about-value-card__icon--vision {
    background: var(--earth-50);
    border: 1px solid var(--earth-100);
    color: var(--earth-600);
}
.about-value-card__title {
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.about-value-card__text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}
.about-value-card__text .about-salawat {
    font-family: "Segoe UI", "Arabic Typesetting", "Traditional Arabic", serif;
    font-size: 1.08em;
    margin-inline-start: 0.12em;
}

/* ── Bootstrap modals (site-wide): no grey screen / dark backdrop ──
   Same behaviour as projects/index — light brand tint on the overlay. */
.modal-backdrop {
    display: none !important;
}
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}
.modal.show {
    background: rgba(7, 46, 23, 0.18) !important;
}
.modal-content {
    border-radius: var(--r-lg);
    box-shadow:
        0 0 0 1px rgba(7, 46, 23, 0.06),
        0 8px 32px rgba(7, 46, 23, 0.14),
        0 24px 64px rgba(7, 46, 23, 0.12);
}
