/* =========================================================
   SHEIKH HASSAN AL-HUSSEINI WEBSITE
   Color palette inspired by binbaz.org.sa
   Single light theme (no dark mode)
   ========================================================= */

:root {
    /* Brand palette — Bin Baz inspired */
    --primary:        #2e6b91;   /* main blue-teal */
    --primary-dark:   #224e6a;
    --primary-deeper: #193043;
    --primary-soft:   #275074;
    --primary-light:  #326b90;
    --primary-tint:   rgba(46, 107, 145, 0.08);
    --primary-ring:   rgba(46, 107, 145, 0.18);

    --accent:         #8bc34a;   /* fresh green */
    --accent-dark:    #6fa634;
    --accent-light:   #a5d563;
    --accent-tint:    rgba(139, 195, 74, 0.10);

    /* Neutrals */
    --bg:           #ffffff;
    --bg-soft:      #f7f8fa;
    --bg-muted:     #eef1f4;
    --surface:      #ffffff;
    --surface-2:    #fafbfc;

    --border:        #e6e8ec;
    --border-strong: #d4d8de;

    --text:        #2a2f36;
    --text-soft:   #4a525c;
    --text-muted:  #7a828c;

    --text-on-primary: #ffffff;
    --text-on-accent:  #ffffff;

    /* Status */
    --success: #3c763d;
    --warning: #8a6d3b;
    --danger:  #a94442;
    --info:    #31708f;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(25, 48, 67, 0.05);
    --shadow-md: 0 4px 14px rgba(25, 48, 67, 0.08);
    --shadow-lg: 0 12px 40px rgba(25, 48, 67, 0.12);
    --shadow-xl: 0 20px 60px rgba(25, 48, 67, 0.18);

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    --transition:      0.3s cubic-bezier(.4, 0, .2, 1);
    --transition-fast: 0.15s ease;

    --container: 1200px;
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-deeper);
    margin: 0 0 0.5em;
    line-height: 1.35;
    font-weight: 700;
}
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.num, time { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: translateX(100%);
    transition: transform 0.6s;
}
.btn:hover::before { transform: translateX(-100%); }

.btn-primary { background: var(--primary); color: var(--text-on-primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }

.btn-accent { background: var(--accent); color: var(--text-on-accent); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.btn-ghost { background: var(--primary-tint); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ============================================
   HEADER — Bin Baz inspired layout
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
    background: #fff;
}

/* --- Top dark bar --- */
.topbar {
    background: var(--primary-deeper);
    color: #fff;
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 14px 1.5rem;
    min-height: 70px;
    flex-direction: row-reverse; /* RTL: brand on right visually, mobile-btn on left */
    justify-content: space-between;
}

/* Brand (right side) */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}
.topbar-brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.30);
    flex-shrink: 0;
    transition: transform var(--transition);
}
.topbar-brand:hover .topbar-brand-mark { transform: rotate(-8deg) scale(1.05); }
.topbar-brand-text { line-height: 1.3; }
.topbar-brand-sub  { font-size: 0.78rem; color: rgba(255,255,255,0.70); margin-bottom: 2px; }
.topbar-brand-name { font-size: 1.1rem; font-weight: 800; color: #fff; }

/* Date in middle-right */
.topbar-date {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    flex-shrink: 0;
}
.topbar-date-sep {
    display: inline-block;
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.18);
}

/* Search (center, grows) */
.topbar-search {
    flex: 1;
    max-width: 540px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    position: relative;
}
.topbar-search-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}
.topbar-search-cat:hover { background: var(--accent-dark); }
.topbar-search-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
}
.topbar-search-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    min-width: 0;
}
.topbar-search-input::placeholder { color: var(--text-muted); }
.topbar-search-btn {
    background: transparent;
    border: 0;
    color: var(--primary);
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}
.topbar-search-btn:hover { color: var(--primary-dark); }
.topbar-search-cats {
    position: absolute;
    top: calc(100% + 6px);
    right: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 6px;
    min-width: 160px;
    z-index: 20;
}
.topbar-search-cats li {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition-fast);
}
.topbar-search-cats li:hover { background: var(--primary-tint); color: var(--primary); }
.topbar-search-cats li[aria-selected="true"] { background: var(--primary); color: #fff; }

/* Mobile button in top bar */
.topbar-mobile-btn {
    display: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}
.topbar-mobile-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.30); color: #fff; }

/* Green accent line */
.topbar-accent {
    height: 4px;
    background: var(--accent);
}

/* --- Icon nav row --- */
.icon-nav-wrap {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(25,48,67,0.04);
}
.icon-nav-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.icon-nav-scroll::-webkit-scrollbar { height: 4px; }
.icon-nav-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.icon-nav {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 14px 0;
    margin: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: max-content;
}
.icon-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition-fast);
    min-width: 84px;
}
.icon-nav-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-ring);
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
}
.icon-nav-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition-fast);
}
.icon-nav-item:hover .icon-nav-circle {
    background: var(--primary-tint);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.icon-nav-item:hover .icon-nav-label { color: var(--primary); }

.icon-nav-item.active .icon-nav-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(46,107,145,0.35);
}
.icon-nav-item.active .icon-nav-label { color: var(--primary); font-weight: 700; }

/* Icon button utility (kept for other uses) */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.icon-btn:hover {
    background: var(--primary-tint);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .topbar-date { display: none; }
}
@media (max-width: 820px) {
    .topbar-search { max-width: 100%; }
    .topbar-search-cat span[data-cat-label] { display: none; }
}
@media (max-width: 640px) {
    .topbar-inner { flex-wrap: wrap; gap: 10px; min-height: 0; padding: 12px 1rem; }
    .topbar-brand-text { display: none; }
    .topbar-search { order: 3; width: 100%; max-width: 100%; }
    .topbar-mobile-btn { display: flex; }
    .icon-nav-wrap { display: none; } /* fall back to mobile drawer */
}

/* Mobile nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-xl);
    z-index: 1100;
    transition: right var(--transition);
    overflow-y: auto;
    padding: 24px;
}
.mobile-nav.open { right: 0; }
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(25, 48, 67, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-link {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.mobile-link:hover, .mobile-link.active {
    background: var(--primary-tint);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .nav-main { display: none; }
    .mobile-menu-btn { display: flex; }
    .brand-tag { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: #fff;
    text-align: center;
    isolation: isolate;
}
.hero-compact { padding: 3rem 0 3.5rem; }

/* ============================================
   HERO FIGURE — Sheikh portrait, tranquil & elegant
   ============================================ */
.hero-figure {
    --size: 320px;
    --outer-r: 150px;
    --mid-r: 125px;
    --avatar-size: 200px;
    position: relative;
    width: var(--size);
    height: var(--size);
    margin: 0 auto 1.5rem;
}

/* Soft breathing aura behind everything */
.hero-aura {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            rgba(139, 195, 74, 0.28) 0%,
            rgba(139, 195, 74, 0.10) 35%,
            transparent 65%);
    z-index: 0;
    animation: heroAuraBreath 6s ease-in-out infinite;
    pointer-events: none;
}

/* Decorative concentric rings */
.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.hero-ring-outer {
    width: calc(var(--outer-r) * 2);
    height: calc(var(--outer-r) * 2);
    margin: calc(-1 * var(--outer-r)) 0 0 calc(-1 * var(--outer-r));
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-ring-mid {
    width: calc(var(--mid-r) * 2);
    height: calc(var(--mid-r) * 2);
    margin: calc(-1 * var(--mid-r)) 0 0 calc(-1 * var(--mid-r));
    border: 1px dashed rgba(139, 195, 74, 0.40);
    animation: heroRingSpin 120s linear infinite;
}

/* Four small ornamental dots on the outer ring */
.hero-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(139, 195, 74, 0.70);
    z-index: 3;
    animation: heroDotPulse 3s ease-in-out infinite;
}
.hero-dot-n { transform: translateY(calc(-1 * var(--outer-r))); }
.hero-dot-s { transform: translateY(var(--outer-r)); animation-delay: 0.75s; }
.hero-dot-e { transform: translateX(calc(-1 * var(--outer-r))); animation-delay: 1.5s; }
.hero-dot-w { transform: translateX(var(--outer-r)); animation-delay: 2.25s; }

/* Central avatar — clean elegant circle */
.hero-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--avatar-size);
    height: var(--avatar-size);
    margin: calc(-1 * var(--avatar-size) / 2) 0 0 calc(-1 * var(--avatar-size) / 2);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.96);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.40),
        0 0 0 6px rgba(139, 195, 74, 0.18);
    z-index: 2;
    animation: heroAvatarFloat 7s ease-in-out infinite;
    background: var(--primary-deeper);
}
.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent-light);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deeper));
}

/* Sheikh name (smaller, below avatar) */
.hero-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.5rem 0 0.25rem;
}
.hero-title-sub {
    color: var(--accent-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

/* Animations */
@keyframes heroRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes heroAuraBreath {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50%      { opacity: 1;    transform: scale(1.06); }
}
@keyframes heroAvatarFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes heroDotPulse {
    0%, 100% { opacity: 0.45; box-shadow: 0 0 6px rgba(139, 195, 74, 0.40); }
    50%      { opacity: 1;    box-shadow: 0 0 18px rgba(139, 195, 74, 0.85); }
}

/* Responsive scaling */
@media (max-width: 640px) {
    .hero-figure {
        --size: 260px;
        --outer-r: 120px;
        --mid-r: 100px;
        --avatar-size: 160px;
    }
    .hero-avatar-placeholder { font-size: 4rem; }
}
@media (max-width: 420px) {
    .hero-figure {
        --size: 220px;
        --outer-r: 100px;
        --mid-r: 82px;
        --avatar-size: 134px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-aura, .hero-ring-mid, .hero-avatar, .hero-dot {
        animation: none !important;
    }
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 195, 74, 0.18), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 195, 74, 0.12), transparent 40%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 40px, rgba(255,255,255,0.02) 40px 41px),
        repeating-linear-gradient(-45deg, transparent 0 40px, rgba(255,255,255,0.02) 40px 41px);
    opacity: 0.6;
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}
.hero-deco-1 { width: 280px; height: 280px; top: -80px; right: -40px;  background: var(--accent); }
.hero-deco-2 { width: 360px; height: 360px; bottom: -120px; left: -100px; background: var(--primary-light); }
.hero-deco-3 { width: 200px; height: 200px; top: 30%; left: 25%; background: var(--accent-light); }

.hero-bismillah {
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 1.5rem auto 2rem;
    max-width: 400px;
}
.hero-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to var(--dir, left), transparent, rgba(255,255,255,0.5));
}
.hero-divider .line:last-child { --dir: right; }
.hero-divider .diamond { color: var(--accent); font-size: 1.4rem; }

.hero-desc {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.95;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero .btn-accent  { box-shadow: 0 8px 24px rgba(139, 195, 74, 0.35); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-outline:hover { background: #fff; color: var(--primary-deeper); border-color: #fff; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 4rem 0; position: relative; }
.section-soft     { background: var(--bg-soft); }
.section-elevated { background: var(--surface); }
.section-dark {
    background: var(--primary-deeper);
    color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-tint);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-deeper);
}
.section-dark .section-title { color: #fff; }
.section-sub {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-dark .section-sub { color: rgba(255,255,255,0.85); }

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px auto 0;
    max-width: 280px;
}
.section-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--primary));
}
.section-divider .line:last-child {
    background: linear-gradient(to right, transparent, var(--primary));
}
.section-divider .diamond { color: var(--accent); font-size: 1.1rem; }

.section-foot { text-align: center; margin-top: 2.5rem; }

/* ============================================
   STATS / COUNTERS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}
.stat-card {
    padding: 1.75rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-tint), transparent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-label {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   CARDS — Generic
   ============================================ */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-deeper);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color var(--transition-fast);
}
.card:hover .card-title { color: var(--primary); }
.card-excerpt {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.card-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   ARTICLES
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.article-card { text-decoration: none; color: inherit; }
.article-card .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(25,48,67,0.45), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}
.article-card:hover .card-image::after { opacity: 1; }

.article-hero {
    padding: 4rem 0 2rem;
    background: var(--bg-soft);
}
.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.9rem;
}
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-size: 1.1rem;
    line-height: 2.1;
    color: var(--text);
}
.article-content h2 { font-size: 1.6rem; margin-top: 2.5rem; color: var(--primary); }
.article-content h3 { font-size: 1.3rem; margin-top: 2rem; color: var(--primary); }
.article-content p  { margin-bottom: 1.2em; }
.article-content blockquote {
    border-right: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-soft);
    border-radius: var(--radius);
    font-style: italic;
    color: var(--text-soft);
}
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-content ul, .article-content ol { padding-right: 1.5rem; }
.article-content a { color: var(--primary); border-bottom: 1px dashed var(--primary); }

/* ============================================
   BOOKS
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem 1.5rem;
}
.book-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition);
}
.book-card:hover { transform: translateY(-6px); }

.book-cover {
    aspect-ratio: 2/3;
    max-width: 220px;
    margin: 0 auto 1rem;
    position: relative;
    border-radius: 4px 12px 12px 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    background: var(--bg-soft);
}
.book-cover::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 12px;
    background: linear-gradient(to left, rgba(0,0,0,0.25), transparent);
    z-index: 2;
    pointer-events: none;
}
.book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0.18) 0%, transparent 30%);
    z-index: 1;
    pointer-events: none;
}
.book-card:hover .book-cover {
    box-shadow: var(--shadow-xl);
    transform: rotateY(-4deg);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-deeper));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.book-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-deeper);
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color var(--transition-fast);
}
.book-card:hover .book-title { color: var(--primary); }
.book-author { font-size: 0.85rem; color: var(--text-muted); }

.book-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .book-detail { grid-template-columns: 1fr; }
    .book-detail .book-cover { max-width: 220px; }
}
.book-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.book-info-item { font-size: 0.9rem; }
.book-info-item span { display: block; color: var(--text-muted); font-size: 0.78rem; }
.book-info-item strong { color: var(--primary-deeper); font-weight: 700; }

/* ============================================
   VIDEOS
   ============================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.video-card { text-decoration: none; color: inherit; }
.video-card .card-image { aspect-ratio: 16/9; }
.video-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 48, 67, 0.30);
    opacity: 0;
    transition: opacity var(--transition);
}
.video-card:hover .play-overlay { opacity: 1; }
.video-card .play-overlay svg {
    width: 60px;
    height: 60px;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.video-card .duration-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-stage {
    background: var(--primary-deeper);
    padding: 2rem 0;
}
.video-player-wrap {
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.video-player-wrap iframe { width: 100%; height: 100%; border: 0; }

.video-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
@media (max-width: 1024px) { .video-body { grid-template-columns: 1fr; } }
.video-transcript {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    line-height: 2;
}
.video-transcript h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.video-transcript p { margin-bottom: 0.8em; color: var(--text-soft); }

/* ============================================
   AUDIOS
   ============================================ */
.audios-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.audio-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.audio-row:hover {
    border-color: var(--primary);
    background: var(--primary-tint);
    transform: translateX(-4px);
}
.audio-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.audio-play-btn:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(46,107,145,0.4); }
.audio-play-btn.playing { background: var(--accent); }
.audio-info { min-width: 0; }
.audio-title {
    font-weight: 700;
    color: var(--primary-deeper);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.audio-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}
.audio-actions { display: flex; gap: 6px; }

.audio-player-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--primary-deeper);
    color: #fff;
    padding: 12px 1rem;
    z-index: 990;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.audio-player-bar.visible { transform: translateY(0); }
.audio-player-bar audio { flex: 1; }
.audio-player-info { min-width: 0; max-width: 280px; }
.audio-player-info .ap-title { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-player-info .ap-meta { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.audio-player-close {
    background: rgba(255,255,255,0.1);
    border: 0;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.audio-player-close:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   TAFSIRS
   ============================================ */
.tafsir-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    margin-bottom: 1rem;
}
.tafsir-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.tafsir-verse {
    background: linear-gradient(135deg, var(--primary), var(--primary-deeper));
    color: #fff;
    padding: 1.5rem 2rem;
    font-family: 'Amiri Quran', 'Tajawal', serif;
    font-size: 1.4rem;
    line-height: 2;
    text-align: center;
    position: relative;
}
.tafsir-verse::before { content: '﴿'; color: var(--accent-light); margin-left: 8px; font-size: 1.6rem; }
.tafsir-verse::after  { content: '﴾'; color: var(--accent-light); margin-right: 8px; font-size: 1.6rem; }
.tafsir-sura-info {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    font-family: 'Tajawal', sans-serif;
    color: var(--accent-light);
}
.tafsir-body { padding: 1.5rem 2rem; }
.tafsir-body h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tafsir-body p { color: var(--text-soft); line-height: 1.9; }

/* ============================================
   SUNNAHS
   ============================================ */
.hadith-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all var(--transition);
}
.hadith-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.hadith-text {
    padding: 2rem;
    background: var(--bg-soft);
    font-size: 1.15rem;
    line-height: 2;
    color: var(--primary-deeper);
    border-right: 4px solid var(--primary);
    position: relative;
    quotes: '\201D' '\201C';
}
.hadith-text::before {
    content: open-quote;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
    vertical-align: -10px;
    margin-left: 4px;
}
.hadith-text::after {
    content: close-quote;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
    vertical-align: -10px;
    margin-right: 4px;
}
.hadith-attrib {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-strong);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.hadith-grade {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--success);
    color: #fff;
}
.hadith-explain { padding: 1.5rem 2rem; line-height: 1.9; color: var(--text-soft); }

/* ============================================
   MUTOUN
   ============================================ */
.mutoun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.mutoun-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.mutoun-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    bottom: 0;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform var(--transition);
    transform-origin: top;
}
.mutoun-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mutoun-card:hover::before { transform: scaleY(1); }
.mutoun-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-tint);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.mutoun-title  { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; color: var(--primary-deeper); }
.mutoun-author { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.mutoun-lessons {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.matn-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 900px) { .matn-split { grid-template-columns: 1fr; } }
.matn-side, .sharh-side {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.matn-side {
    border-right: 4px solid var(--primary);
    font-size: 1.1rem;
    line-height: 2.2;
}
.sharh-side {
    border-right: 4px solid var(--accent);
    line-height: 1.95;
    color: var(--text-soft);
}
.side-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.sharh-side .side-label { background: var(--accent); }

/* ============================================
   SIRAS — Timeline
   ============================================ */
.timeline { position: relative; padding: 1rem 0; }
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), var(--primary));
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 2rem;
}
.timeline-item:nth-child(odd)  { margin-right: 50%; padding-left: 3rem; }
.timeline-item:nth-child(even) { margin-right: 0; padding-right: 3rem; text-align: left; }
.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 1;
}
.timeline-item:nth-child(odd)::before  { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }

.timeline-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-tint);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 8px;
}
.timeline-title { font-size: 1.15rem; margin-bottom: 8px; color: var(--primary); }

@media (max-width: 768px) {
    .timeline::before { right: 20px; }
    .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        width: 100%;
        margin-right: 0;
        padding: 1rem 1rem 1rem 3rem;
        text-align: right;
    }
    .timeline-item::before, .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before {
        right: 12px;
        left: auto;
    }
}

/* ============================================
   YOUTH & CHILDREN
   ============================================ */
.youth-grid, .children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.youth-card, .children-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    position: relative;
}
.children-card {
    background: linear-gradient(135deg, #f6fcef 0%, #fff 100%);
    border: 2px solid var(--accent-light);
}
.youth-card:hover, .children-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: var(--shadow-lg);
}
.children-card:hover { transform: translateY(-6px) rotate(1deg); }

.children-card .card-image {
    aspect-ratio: 1;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.children-emoji {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
}

/* ============================================
   KHOTABS
   ============================================ */
.khotab-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}
.khotab-card:hover { border-color: var(--primary); transform: translateX(-4px); box-shadow: var(--shadow-md); }
.khotab-date-block {
    background: linear-gradient(135deg, var(--primary), var(--primary-deeper));
    color: #fff;
    border-radius: var(--radius);
    padding: 12px 8px;
    text-align: center;
    min-width: 70px;
}
.khotab-date-day   { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.khotab-date-month { font-size: 0.8rem; color: var(--accent-light); margin-top: 4px; }
.khotab-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--primary-deeper); }
.khotab-meta  { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 12px; }

/* ============================================
   CV
   ============================================ */
.cv-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-deeper), var(--primary-dark));
    color: #fff;
    text-align: center;
}
.cv-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--accent);
    box-shadow: 0 12px 40px rgba(139, 195, 74, 0.3);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: var(--primary);
}
.cv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cv-name  { font-size: 2.2rem; color: #fff; margin-bottom: 4px; }
.cv-title { color: var(--accent-light); font-size: 1.1rem; }
.cv-section { padding: 3rem 0; }
.cv-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}
.cv-section h2::before {
    content: '';
    width: 6px;
    height: 28px;
    background: var(--accent);
    border-radius: 3px;
}

/* ============================================
   CATEGORIES PILLS
   ============================================ */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.cat-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 2.5rem 0 1rem;
}
.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.page-btn:hover    { border-color: var(--primary); color: var(--primary); }
.page-btn.active   { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-deeper);
    font-size: 0.92rem;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-tint);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-help { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid;
    font-weight: 600;
}
.alert-success { background: rgba(60,118,61,0.08);  border-color: var(--success); color: var(--success); }
.alert-danger  { background: rgba(169,68,66,0.08);  border-color: var(--danger);  color: var(--danger);  }
.alert-warning { background: rgba(138,109,59,0.08); border-color: var(--warning); color: var(--warning); }
.alert-info    { background: rgba(49,112,143,0.08); border-color: var(--info);    color: var(--info);    }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-deeper);
    color: #fff;
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,0.75); margin-top: 0.75rem; line-height: 1.9; }

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    text-decoration: none;
}
.footer-col a:hover { color: var(--accent); padding-right: 4px; }

.social-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}
.social-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover   { background: var(--primary-dark); transform: translateY(-4px); }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.breadcrumb a       { color: var(--text-soft); transition: color var(--transition-fast); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep    { color: var(--text-muted); }
.breadcrumb .current{ color: var(--primary-deeper); font-weight: 600; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--bg-soft);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty p { font-size: 1rem; margin-bottom: 1rem; }

/* ============================================
   404
   ============================================ */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
