/* ==========================================================
   E-Adumenara v2.0 — Ultra Modern Light Theme
   Blue / White / Black | 2026
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ======================== VARIABLES ======================== */
:root {
    --blue-50:  #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    --primary:       #2563eb;
    --primary-dark:  #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow:  rgba(37,99,235,0.18);

    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --white: #ffffff;
    --success: #10b981;
    --danger:  #ef4444;
    --warning: #f59e0b;

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl:32px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow:    0 4px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-blue: 0 8px 32px rgba(37,99,235,0.25);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.2s var(--ease);
}

/* ======================== RESET ======================== */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    padding-bottom: 5rem;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--slate-800);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

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

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ======================== NAVBAR ======================== */
.navbar {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 48px;
    transition: var(--transition);
}
.navbar-brand:hover img { opacity: 0.85; transform: scale(0.98); }

.navbar-light .navbar-nav .nav-link {
    color: var(--slate-600);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--primary);
    border-radius: 99px;
    transition: all 0.25s var(--ease);
}

.navbar-light .navbar-nav .nav-link:hover { color: var(--primary); }
.navbar-light .navbar-nav .nav-link:hover::after { left: 8px; right: 8px; }
.navbar-light .navbar-nav .nav-item.active .nav-link { color: var(--primary); }
.navbar-light .navbar-nav .nav-item.active .nav-link::after { left: 8px; right: 8px; }

.navbar-toggler {
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--primary-glow); outline: none; }

.dropdown-menu {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 200px;
    animation: menuSlideIn 0.18s var(--ease) both;
}

@keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 0.5rem 0.9rem;
    color: var(--slate-700);
    transition: var(--transition);
    font-weight: 500;
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-item.text-danger:hover { background: #fee2e2; }

/* ======================== HERO ======================== */
.slider-block {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: var(--slate-900);
    overflow: hidden;
}

/* Menara background image */
.slider-block .hero-bg-img {
    position: absolute;
    inset: 0;
    background-image: url('../images/menara.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
    mix-blend-mode: luminosity;
}

/* Animated mesh gradient */
.slider-block::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37,99,235,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(99,102,241,0.4) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(15,23,42,0.6) 0%, transparent 100%);
    animation: meshMove 10s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-2%, 2%); }
}

/* Grid pattern overlay */
.slider-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.slider-content {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 5rem 0 6rem;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    padding: 0.4rem 1.1rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(8px);
    animation: heroFadeUp 0.6s 0.1s var(--ease) both;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

/* Hero heading */
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.5rem;
    animation: heroFadeUp 0.6s 0.2s var(--ease) both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-arabic {
    display: block;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    animation: heroFadeUp 0.6s 0.25s var(--ease) both;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: heroFadeUp 0.6s 0.35s var(--ease) both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero buttons */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: heroFadeUp 0.6s 0.45s var(--ease) both;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-blue);
    transition: all 0.25s var(--ease-spring);
    text-decoration: none;
}

.btn-hero-cta:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37,99,235,0.4);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.25s var(--ease-spring);
    text-decoration: none;
}

.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-3px);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: heroFadeUp 1s 1s var(--ease) both;
}

.scroll-mouse {
    width: 24px; height: 36px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse::after {
    content: '';
    width: 3px; height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 99px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 2;
}

.hero-orb-1 {
    width: 400px; height: 400px;
    background: rgba(37,99,235,0.3);
    top: -100px; right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px; height: 300px;
    background: rgba(99,102,241,0.25);
    bottom: -50px; left: -80px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 200px; height: 200px;
    background: rgba(96,165,250,0.2);
    top: 30%; left: 60%;
    animation: orbFloat 7s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(20px, -30px) scale(1.05); }
    66%       { transform: translate(-15px, 20px) scale(0.95); }
}

/* Particle dots */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.p-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    animation: dotRise linear infinite;
}

.p-dot:nth-child(1)  { width:3px;height:3px; left:8%;   animation-duration:14s; animation-delay:0s;  }
.p-dot:nth-child(2)  { width:2px;height:2px; left:18%;  animation-duration:11s; animation-delay:2s;  }
.p-dot:nth-child(3)  { width:4px;height:4px; left:28%;  animation-duration:16s; animation-delay:4s;  }
.p-dot:nth-child(4)  { width:2px;height:2px; left:38%;  animation-duration:12s; animation-delay:1s;  }
.p-dot:nth-child(5)  { width:3px;height:3px; left:48%;  animation-duration:13s; animation-delay:5s;  }
.p-dot:nth-child(6)  { width:2px;height:2px; left:58%;  animation-duration:15s; animation-delay:3s;  }
.p-dot:nth-child(7)  { width:4px;height:4px; left:68%;  animation-duration:10s; animation-delay:7s;  }
.p-dot:nth-child(8)  { width:2px;height:2px; left:78%;  animation-duration:17s; animation-delay:2s;  }
.p-dot:nth-child(9)  { width:3px;height:3px; left:88%;  animation-duration:12s; animation-delay:6s;  }
.p-dot:nth-child(10) { width:2px;height:2px; left:94%;  animation-duration:14s; animation-delay:9s;  }
.p-dot:nth-child(11) { width:3px;height:3px; left:13%;  animation-duration:11s; animation-delay:8s;  }
.p-dot:nth-child(12) { width:2px;height:2px; left:73%;  animation-duration:18s; animation-delay:1s;  }

@keyframes dotRise {
    0%   { bottom: -5%; opacity: 0; transform: translateX(0); }
    5%   { opacity: 0.8; }
    90%  { opacity: 0.3; }
    100% { bottom: 105%; opacity: 0; transform: translateX(40px); }
}

/* ======================== STATS STRIP ======================== */
.stats-strip {
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    padding: 1.5rem 0;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
    border-right: 1px solid var(--slate-200);
}
.stat-pill:last-child { border-right: none; }

.stat-pill-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-pill-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-400);
    display: block;
}

.stat-pill-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
    display: block;
    line-height: 1.2;
}

/* ======================== FEATURE CARDS ======================== */
.feature-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--slate-500);
    max-width: 480px;
    line-height: 1.7;
}

.feature-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    height: 100%;
    transition: all 0.3s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.feature-card:hover {
    background: var(--white);
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.feature-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.feature-icon.green  { background: #d1fae5; color: #059669; }
.feature-icon.orange { background: #fef3c7; color: #d97706; }
.feature-icon.purple { background: #ede9fe; color: #7c3aed; }

.feature-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin: 0;
    line-height: 1.65;
}

/* ======================== NOTICE BLOCK ======================== */
.notice-section {
    padding: 3rem 0;
    background: var(--slate-50);
}

.notice-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.notice-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), #6366f1);
    border-radius: 99px 0 0 99px;
}

.notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.notice-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-title i { color: var(--primary); }

.status-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-live::before {
    content: '';
    width: 6px; height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50%       { box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

.notice-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.875rem;
    color: var(--slate-600);
    border-bottom: 1px solid var(--slate-50);
}
.notice-row:last-child { border-bottom: none; }
.notice-row i { color: var(--slate-400); margin-top: 2px; flex-shrink: 0; }
.notice-row strong { color: var(--slate-800); }
.notice-row .tag-urgent { color: var(--danger); font-weight: 600; }

/* ======================== KB SECTION ======================== */
.kb-section {
    padding: 4rem 0;
    background: var(--white);
}

.kb-cat-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s var(--ease-spring);
    height: 100%;
}

.kb-cat-card:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.kb-cat-header {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.kb-cat-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kb-cat-count {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 0.15rem 0.6rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.kb-cat-body { padding: 1rem 1.25rem; }

.kb-article-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    color: var(--slate-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

.kb-article-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 0.9rem;
}

.kb-article-link i {
    font-size: 0.7rem;
    color: var(--slate-400);
    flex-shrink: 0;
    transition: var(--transition);
}

.kb-article-link:hover i { color: var(--primary); transform: translateX(2px); }

/* Article list */
.article-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    transition: all 0.25s var(--ease-spring);
    text-decoration: none;
    color: var(--slate-800);
    margin-bottom: 0.6rem;
}

.article-item:hover {
    background: var(--white);
    border-color: var(--blue-200);
    box-shadow: var(--shadow);
    transform: translateX(4px);
    color: var(--slate-900);
}

.article-item-icon {
    width: 38px; height: 38px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.article-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.article-item-desc {
    font-size: 0.8rem;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ======================== BUTTONS ======================== */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.25rem;
    transition: all 0.2s var(--ease-spring);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-sm { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
.btn-lg { font-size: 0.95rem; padding: 0.75rem 1.75rem; }

/* ======================== FORM ======================== */
.form-control {
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.95rem;
    font-size: 0.875rem;
    color: var(--slate-800);
    background: var(--white);
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    outline: none;
    background: var(--white);
}
.form-control:disabled, .form-control[readonly] {
    background: var(--slate-50);
    color: var(--slate-500);
}

label {
    font-weight: 600;
    font-size: 0.825rem;
    color: var(--slate-700);
    margin-bottom: 0.35rem;
}

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

/* Input group */
.input-group-text {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    color: var(--slate-400);
    font-size: 0.875rem;
}

.input-group .form-control:focus ~ .input-group-text,
.input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

/* ======================== TICKET PAGES ======================== */
.page-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.page-card-header {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a8a 100%);
    padding: 1.75rem 2rem;
    color: var(--white);
}

.page-card-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.page-card-body { padding: 2rem; }

/* Table */
.table {
    font-size: 0.875rem;
    color: var(--slate-700);
    margin: 0;
}
.table thead th {
    background: var(--slate-50);
    border: none;
    border-bottom: 2px solid var(--slate-200);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    padding: 1rem 1.25rem;
    white-space: nowrap;
}
.table tbody td {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--slate-100);
    vertical-align: middle;
}
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover td { background: var(--slate-50); }
.table-hover tbody tr:hover { cursor: pointer; }

/* Badges */
.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.badge-open     { background: #dbeafe; color: #1d4ed8; }
.badge-answered { background: #d1fae5; color: #065f46; }
.badge-closed   { background: var(--slate-100); color: var(--slate-500); }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-primary  { background: var(--primary); color: #fff; }
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-secondary{ background: var(--slate-100); color: var(--slate-600); }

/* Alerts */
.alert { border: none; border-radius: var(--radius); font-size: 0.875rem; padding: 0.9rem 1.1rem; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-danger  { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-info    { background: var(--primary-light); color: #1e40af; border-left: 4px solid var(--primary); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.825rem;
    color: var(--slate-400);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--slate-400); font-weight: 500; }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .sep { font-size: 0.7rem; color: var(--slate-300); }
.breadcrumb-nav .cur { color: var(--slate-700); font-weight: 600; }

/* ======================== FOOTER ======================== */
#footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    padding: 1.25rem 0;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-size: 0.8rem;
}
#footer a { color: var(--slate-400); transition: var(--transition); }
#footer a:hover { color: var(--primary); }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
}

body > #footer {
    margin-top: auto;
}

/* ======================== SCROLL TOP ======================== */
#scrollTop {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 42px; height: 42px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    transition: all 0.3s var(--ease-spring);
    z-index: 999;
    font-size: 0.9rem;
}
#scrollTop.visible { opacity: 1; transform: translateY(0) scale(1); }
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-3px) scale(1.05); }

/* ======================== MISC ======================== */
.pointer { cursor: pointer; }
.bg-staff { background: var(--primary-light); }
.static_link, .static_link:hover { color: var(--primary); font-weight: 600; }
.inactive_link, .inactive_link:hover { color: var(--slate-400); }
.heading { font-size: 1.75rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; }
.sub_heading { font-size: 1.4rem; font-weight: 700; color: var(--slate-800); letter-spacing: -0.02em; }
.kb_total_articles { color: var(--slate-400); font-size: 0.78rem; font-weight: 600; }
.kb_article_icon { color: var(--slate-300); }

/* Animate on scroll */
.aos-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.aos-item.visible { opacity: 1; transform: translateY(0); }
.aos-item.delay-1 { transition-delay: 0.1s; }
.aos-item.delay-2 { transition-delay: 0.2s; }
.aos-item.delay-3 { transition-delay: 0.3s; }
.aos-item.delay-4 { transition-delay: 0.4s; }

/* Changelog */
.changelog-timeline { position: relative; padding-left: 2.25rem; }
.changelog-timeline::before {
    content: ''; position: absolute; left: 0.65rem; top: 0.4rem; bottom: 0;
    width: 2px; background: var(--slate-200); border-radius: 99px;
}
.changelog-item { position: relative; margin-bottom: 2.5rem; }
.changelog-item::before {
    content: ''; position: absolute; left: -1.8rem; top: 0.4rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--primary); border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}
.changelog-version { font-size: 1rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.25rem; }
.changelog-date { font-size: 0.78rem; color: var(--slate-400); font-weight: 500; margin-bottom: 0.75rem; }
.changelog-tag {
    display: inline-flex; align-items: center; padding: 0.15rem 0.65rem;
    border-radius: 99px; font-size: 0.68rem; font-weight: 700;
    margin-right: 0.35rem; margin-bottom: 0.35rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.changelog-tag.new      { background: #d1fae5; color: #065f46; }
.changelog-tag.fix      { background: #fee2e2; color: #991b1b; }
.changelog-tag.improve  { background: #dbeafe; color: #1d4ed8; }
.changelog-tag.security { background: #fef3c7; color: #92400e; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
    .slider-block { min-height: 80vh; }
    .hero-title { font-size: 2rem; }
    .hero-actions .btn-hero-cta,
    .hero-actions .btn-hero-ghost { width: 100%; justify-content: center; }
    .stat-pill { border-right: none; border-bottom: 1px solid var(--slate-200); }
    .feature-section, .kb-section, .notice-section { padding: 2.5rem 0; }
    .page-card-body { padding: 1.25rem; }
}

@media (max-width: 576px) {
    .navbar-brand img { max-height: 38px; }
    .hero-badge { font-size: 0.7rem; }
    .hero-arabic { font-size: 1.2rem; }
}

/* ======================== MOBILE APP DESIGN ======================== */
@media (max-width: 767px) {

    /* Hide desktop navbar, show mobile app header */
    .navbar { display: none !important; }
    #footer { display: none !important; }
    #scrollTop { display: none !important; }

    /* Body padding for bottom nav */
    body {
        padding-bottom: 72px !important;
        background: var(--slate-100) !important;
    }

    /* ---- Mobile App Header ---- */
    .mobile-app-header {
        display: flex !important;
        position: sticky;
        top: 0;
        z-index: 200;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(226,232,240,0.8);
        padding: 0.6rem 1rem;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        box-shadow: 0 1px 12px rgba(0,0,0,0.06);
    }

    .mobile-header-logo {
        height: 36px;
        object-fit: contain;
    }

    .mobile-header-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--slate-900);
        letter-spacing: -0.01em;
    }

    .mobile-header-action {
        width: 36px; height: 36px;
        border-radius: 50%;
        background: var(--primary-light);
        color: var(--primary);
        display: flex; align-items: center; justify-content: center;
        font-size: 0.9rem;
        text-decoration: none;
        border: none;
        cursor: pointer;
    }

    /* ---- Bottom Navigation Bar ---- */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 64px;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(226,232,240,0.8);
        z-index: 300;
        padding: 0 0.5rem;
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: var(--slate-400);
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        padding: 0.4rem 0.25rem;
        border-radius: 12px;
        transition: all 0.2s var(--ease);
        position: relative;
    }

    .mobile-nav-item i {
        font-size: 1.2rem;
        transition: transform 0.2s var(--ease-spring);
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }

    .mobile-nav-item.active i {
        transform: scale(1.15);
    }

    .mobile-nav-item.active::before {
        content: '';
        position: absolute;
        top: 4px;
        width: 20px; height: 3px;
        background: var(--primary);
        border-radius: 99px;
    }

    /* FAB - main CTA button */
    .mobile-nav-fab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        padding: 0.2rem 0.25rem;
    }

    .mobile-nav-fab-btn {
        width: 48px; height: 48px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
        color: #fff;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.15rem;
        box-shadow: 0 4px 16px rgba(37,99,235,0.4);
        transition: all 0.2s var(--ease-spring);
        margin-top: -12px;
    }

    .mobile-nav-fab:active .mobile-nav-fab-btn {
        transform: scale(0.93);
    }

    .mobile-nav-fab span {
        font-size: 0.62rem;
        font-weight: 600;
        color: var(--primary);
        letter-spacing: 0.02em;
    }

    /* ---- Hero on mobile ---- */
    .slider-block {
        min-height: 55vh !important;
        border-radius: 0 0 28px 28px;
        overflow: hidden;
    }

    .slider-content { padding: 2.5rem 0 3rem !important; }
    .hero-title { font-size: 1.7rem !important; }
    .hero-arabic { font-size: 1rem !important; }
    .hero-subtitle { font-size: 0.875rem !important; margin-bottom: 1.75rem !important; }
    .hero-badge { font-size: 0.68rem !important; margin-bottom: 1.25rem !important; }
    .hero-scroll-hint { display: none !important; }

    /* Hero buttons stack vertically */
    .hero-actions {
        flex-direction: column !important;
        padding: 0 1.5rem;
    }

    .btn-hero-cta, .btn-hero-ghost {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.85rem 1.5rem !important;
        font-size: 0.9rem !important;
        border-radius: var(--radius-lg) !important;
    }

    /* ---- Stats strip ---- */
    .stats-strip .row { flex-wrap: wrap; }
    .stat-pill {
        border: none !important;
        border-bottom: 1px solid var(--slate-100) !important;
        padding: 0.6rem 1rem !important;
    }

    /* ---- Feature cards - 2 per row ---- */
    .feature-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    /* ---- Notice card ---- */
    .notice-card { border-radius: 16px; margin: 0 0.5rem; }

    /* ---- KB category cards ---- */
    .kb-cat-card { border-radius: 16px; }

    /* ---- Dept cards - full width swipeable ---- */
    .dept-card {
        border-radius: 18px !important;
        padding: 1.25rem !important;
    }

    /* ---- Ticket/form pages ---- */
    .page-card { border-radius: 20px; margin: 0 0; }
    .page-card-header { padding: 1.25rem 1.25rem; }
    .page-card-body { padding: 1.25rem; }

    /* ---- Breadcrumb hide on mobile ---- */
    .breadcrumb-nav { display: none; }

    /* ---- Container padding ---- */
    .container { padding-left: 1rem !important; padding-right: 1rem !important; }

    /* ---- Tables ---- */
    .table thead th { font-size: 0.65rem; padding: 0.7rem 0.75rem; }
    .table tbody td { font-size: 0.82rem; padding: 0.7rem 0.75rem; }

    /* ---- Alert ---- */
    .alert { border-radius: var(--radius-sm); font-size: 0.825rem; }

    /* ---- Touch feedback ---- */
    a:active, button:active { opacity: 0.7; }

    /* ---- Scroll snap for dept cards ---- */
    .dept-scroll-wrap {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Hide mobile elements on desktop */
.mobile-app-header { display: none; }
.mobile-bottom-nav { display: none; }

