/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC SITE — Modern UI layer
   ───────────────────────────────────────────────────────────────────────────
   Companion to public_header.php. The dynamic --primary-color and
   --secondary-color are set inline in the header (from DB settings).
   Everything else is static and lives here.

   Load order in public_header.php:
       bootstrap.min.css → iziToast.min.css → font_awesome_5_free.min.css
       → public_modern.css   (this file — must be LAST)

   NOTE: No gradients are used. All backgrounds, buttons and accents use
   solid colors derived from --primary-color / --secondary-color.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design tokens ────────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg:        #eef1f8;
    --bg-grad-1: #eef1f8;
    --bg-grad-2: #e6ebf6;

    /* Surfaces */
    --surface:        #ffffff;
    --surface-2:      #f6f8fc;
    --surface-3:      #eef2f8;
    --surface-glass:  rgba(255,255,255,.72);

    /* Lines */
    --line:        #e3e8f0;
    --line-soft:   #eef1f6;
    --line-strong: #d3dae6;

    /* Text */
    --text:        #0a0f1c;
    --text-muted:  #5b6b83;
    --text-soft:   #94a3b8;
    --text-invert: #ffffff;

    /* Status */
    --ok:     #10b981;
    --warn:   #f59e0b;
    --danger: #ef4444;
    --info:   #06b6d4;

    /* Layered shadows */
    --shadow-xs: 0 1px 2px rgba(11,18,32,.05);
    --shadow-sm: 0 1px 2px rgba(11,18,32,.04),
                 0 2px 6px rgba(11,18,32,.05);
    --shadow-md: 0 1px 2px rgba(11,18,32,.04),
                 0 8px 20px rgba(11,18,32,.07),
                 0 2px 4px rgba(11,18,32,.04);
    --shadow-lg: 0 2px 4px rgba(11,18,32,.05),
                 0 20px 40px rgba(11,18,32,.10),
                 0 4px 10px rgba(11,18,32,.06);
    --shadow-xl: 0 4px 8px rgba(11,18,32,.06),
                 0 32px 64px rgba(11,18,32,.14);

    /* Brand-tinted shadows (solid color-mix, not gradient) */
    --shadow-brand-sm: 0 4px 12px color-mix(in srgb, var(--primary-color) 22%, transparent);
    --shadow-brand:    0 12px 28px color-mix(in srgb, var(--primary-color) 30%, transparent);

    /* Radii */
    --r-xs: 6px;
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-2xl: 28px;
    --r-pill: 999px;

    /* Layout */
    --nav-h: 78px;

    /* Motion */
    --ease:        cubic-bezier(.4,0,.2,1);
    --ease-out:    cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --dur-fast: .15s;
    --dur:      .25s;
    --dur-slow: .4s;
}

[data-theme="dark"] {
    --bg:        #05080f;
    --bg-grad-1: #05080f;
    --bg-grad-2: #0a1128;

    --surface:        #0d1528;
    --surface-2:      #111c35;
    --surface-3:      #16223f;
    --surface-glass:  rgba(13,21,40,.72);

    --line:        #1c2949;
    --line-soft:   #16223f;
    --line-strong: #2a3a63;

    --text:        #e8eef9;
    --text-muted:  #8fa1bd;
    --text-soft:   #5c6e8c;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.35);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.30),
                 0 2px 6px rgba(0,0,0,.35);
    --shadow-md: 0 1px 2px rgba(0,0,0,.30),
                 0 8px 20px rgba(0,0,0,.40),
                 0 2px 4px rgba(0,0,0,.30);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.35),
                 0 20px 40px rgba(0,0,0,.50),
                 0 4px 10px rgba(0,0,0,.35);
    --shadow-xl: 0 4px 8px rgba(0,0,0,.40),
                 0 32px 64px rgba(0,0,0,.60);
}

/* ─── Base & typography ────────────────────────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--bg-grad-1) !important;
    color: var(--text) !important;
    font-size: 15px !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.006em;
    overflow-x: hidden;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.section-title,
.hero-title,
.navbar-brand {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.028em !important;
    color: var(--text) !important;
    line-height: 1.2;
}

a { color: var(--primary-color); transition: color var(--dur-fast) var(--ease); text-decoration: none; }
a:hover { color: var(--secondary-color); text-decoration: none; }

::selection { background: var(--primary-color); color: #fff; }

/* Refined scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 100px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: padding-box; }

/* ─── Topbar ──────────────────────────────────────────────────────────── */
.site-topbar {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-size: 14px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    position: relative;
}
.site-topbar a { color: #fff; font-weight: 700; }
.site-topbar i { color: #fff; }

/* ─── Navbar — glass ──────────────────────────────────────────────────── */
.site-navbar {
    background: var(--surface-glass) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid var(--line-soft) !important;
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: var(--nav-h);
    box-shadow: 0 1px 0 rgba(11,18,32,.03), 0 8px 24px rgba(11,18,32,.04);
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.navbar-brand { padding: 0; margin-right: 52px; flex-shrink: 0; }
.site-logo { max-height: 54px; max-width: 220px; object-fit: contain; }

.navbar-collapse { justify-content: flex-end; }
.navbar-nav { column-gap: 8px; align-items: center; }

.navbar-toggler {
    border: 1px solid var(--line) !important;
    padding: 9px 13px;
    background: var(--surface-2) !important;
    border-radius: var(--r);
    transition: all var(--dur) var(--ease);
}
.navbar-toggler:hover { background: var(--surface-3) !important; }
.navbar-toggler:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
    outline: none;
}
.navbar-toggler i {
    color: var(--primary-color);
    transition: color var(--dur) var(--ease);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 9px 14px !important;
    border-radius: var(--r-pill);
    white-space: nowrap;
    font-size: 15px;
    transition: all var(--dur) var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: color-mix(in srgb, var(--primary-color) 9%, transparent) !important;
}

/* Theme toggle button */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    margin-left: 6px;
}
.theme-toggle:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand-sm);
}
.theme-toggle .fa-sun  { display: none; }
.theme-toggle .fa-moon { display: inline; }
[data-theme="dark"] .theme-toggle .fa-sun  { display: inline; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn-theme,
.btn-theme-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700 !important;
    border-radius: var(--r-pill) !important;
    padding: 12px 22px !important;
    transition: transform var(--dur-fast) var(--ease),
                box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease),
                color var(--dur) var(--ease);
    letter-spacing: -0.005em;
    position: relative;
    border: 0;
}

.btn-theme {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.18) inset,
                0 8px 22px color-mix(in srgb, var(--primary-color) 35%, transparent) !important;
}
.btn-theme i { color: #fff !important; }
.btn-theme:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.20) inset,
                0 14px 30px color-mix(in srgb, var(--secondary-color) 50%, transparent) !important;
}

.btn-theme-outline {
    background: var(--surface) !important;
    border: 1.5px solid color-mix(in srgb, var(--primary-color) 35%, transparent) !important;
    color: var(--primary-color) !important;
}
.btn-theme-outline i { color: currentColor; }
.btn-theme-outline:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--primary-color) 38%, transparent);
}
.btn-theme-outline:hover i { color: #fff !important; }

/* ─── Slider ──────────────────────────────────────────────────────────── */
.slider-shell {
    padding: 34px 0 20px;
    background: transparent;
}

.home-slider {
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--line));
    background: var(--surface);
}
.home-slider .carousel-item {
    height: 540px;
    background-position: center;
    background-size: cover;
    position: relative;
}
/* Solid semi-transparent brand-colored overlay for legibility */
.home-slider .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--primary-color) 55%, transparent);
    z-index: 1;
}
.home-slider .slider-content-wrap {
    position: relative;
    z-index: 2;
    height: 540px;
    display: flex;
    align-items: center;
    padding: 0 74px;
}
.home-slider .slider-content {
    max-width: 610px;
    color: #fff;
}
.home-slider .slider-content.right { margin-left: auto; text-align: right; }

.home-slider h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900 !important;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: #fff !important;
    text-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.home-slider p {
    font-size: 18px;
    line-height: 1.75;
    opacity: .95;
    margin-bottom: 28px;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0,0,0,.22);
}

.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
    width: 55px;
    height: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    opacity: 1;
    transition: all var(--dur) var(--ease);
}
.home-slider .carousel-control-prev { left: 18px; }
.home-slider .carousel-control-next { right: 18px; }
.home-slider .carousel-control-prev:hover,
.home-slider .carousel-control-next:hover {
    background: var(--secondary-color);
    border-color: transparent;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

/* Dots */
.slider-dots { display: flex; gap: 10px; }
.slider-dot {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.slider-dot:hover { background: #fff; transform: scale(1.15); }
.slider-dot.active {
    background: #fff;
    transform: scale(1.25);
    box-shadow: 0 0 14px rgba(255,255,255,.85);
}

/* ─── Hero (fallback when no sliders) ────────────────────────────────── */
.hero-section {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--primary-color) 6%, var(--surface));
}
.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    padding: 9px 15px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
}
.hero-badge i { color: currentColor; }

.hero-title {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    font-weight: 900 !important;
    letter-spacing: -2px;
    margin-bottom: 20px;
}
.text-gradient {
    color: var(--primary-color) !important;
}
.hero-text {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
    max-width: 660px;
}

.hero-card {
    background: var(--surface-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    padding: 26px;
    box-shadow: var(--shadow-lg);
}
.hero-dashboard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 22px;
    min-height: 360px;
}
.mini-stat {
    background: var(--surface-2);
    border-radius: var(--r-lg);
    padding: 16px;
    border: 1px solid var(--line);
    height: 100%;
    transition: all var(--dur) var(--ease);
}
.mini-stat:hover {
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.mini-stat i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
    transition: color var(--dur) var(--ease);
}
.mini-stat h4 { margin: 0; font-size: 24px; font-weight: 900; color: var(--text) !important; }
.mini-stat p  { margin: 0; color: var(--text-muted); font-size: 13px; }

/* ─── Sections & headings ─────────────────────────────────────────────── */
.section-padding { padding: 84px 0; }

.section-title {
    font-weight: 900 !important;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto 38px;
}

/* ─── Cards (features, posts, contact) ───────────────────────────────── */
.feature-card,
.content-card,
.post-card,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: box-shadow var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
}
.feature-card:hover,
.post-card:hover,
.contact-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--r-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 22px;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--primary-color) 28%, transparent);
    transition: transform var(--dur) var(--ease-spring), background-color var(--dur) var(--ease);
}
.feature-icon i { color: #ffffff !important; }
.feature-card:hover .feature-icon {
    transform: scale(1.06) rotate(-3deg);
    background: var(--secondary-color);
}

.feature-card h4 { font-weight: 800 !important; margin-bottom: 10px; color: var(--text) !important; }
.feature-card p  { color: var(--text-muted); line-height: 1.7; margin-bottom: 0; }

/* Post cards */
.post-card { padding: 0; }
.post-media { height: 240px; background: var(--surface-2); overflow: hidden; }
.post-media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 24px; }
.post-category {
    display: inline-block;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    border-radius: var(--r-pill);
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.post-title {
    font-weight: 800 !important;
    font-size: 21px;
    color: var(--text) !important;
    margin-bottom: 10px;
    line-height: 1.3;
}
.post-excerpt { color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.faq-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--surface);
    transition: all var(--dur) var(--ease);
}
.faq-card:hover { border-color: color-mix(in srgb, var(--primary-color) 26%, transparent); }
.faq-card.open {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    box-shadow: var(--shadow-md);
}
.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 20px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: color var(--dur) var(--ease);
    font-family: inherit;
}
.faq-question i {
    color: var(--primary-color);
    transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
    flex-shrink: 0;
}
.faq-card.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    display: none;
    color: var(--text-muted);
    line-height: 1.75;
    padding: 0 24px 22px;
}
.faq-card.open .faq-answer { display: block; }

/* ─── Partners / Associates ──────────────────────────────────────────── */
.associates-section { background: transparent; overflow: hidden; }

.partners-slider-wrap {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}
.partners-window { width: 100%; overflow: hidden; padding: 20px 0; }
.partners-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    will-change: transform;
}
.partner-item {
    width: 260px;
    height: 160px;
    flex: 0 0 auto;
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
}
.partner-item:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
    box-shadow: var(--shadow-md);
}
.partner-item img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(.35);
    transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.partner-item:hover img { filter: grayscale(0); transform: scale(1.04); }

.partners-arrow {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--dur) var(--ease);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 32%, transparent);
}
.partners-arrow i { font-size: 18px; color: #ffffff !important; }
.partners-arrow:hover {
    background: var(--secondary-color);
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--secondary-color) 48%, transparent);
}

/* ─── Page hero (inner pages) ────────────────────────────────────────── */
.page-hero {
    background: var(--primary-color);
    color: #fff;
    padding: 76px 0;
    position: relative;
}
.page-hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900 !important;
    letter-spacing: -1px;
    color: #fff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.page-hero p { opacity: .92; font-size: 17px; margin-bottom: 0; }

.rich-content { color: var(--text-muted); line-height: 1.85; font-size: 16px; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--r-lg); }

.about-photo {
    width: 100%;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    object-fit: cover;
}

/* ─── Category filters ───────────────────────────────────────────────── */
.category-filter {
    display: inline-flex;
    padding: 10px 17px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface);
    font-weight: 700;
    margin: 5px;
    font-size: 14px;
    transition: all var(--dur) var(--ease);
}
.category-filter i { color: currentColor; }
.category-filter.active,
.category-filter:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.category-filter.active i,
.category-filter:hover i { color: #ffffff !important; }

/* ─── Contact ────────────────────────────────────────────────────────── */
.contact-section { background: transparent; }
.contact-grid-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.contact-info-panel {
    height: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 36px;
    position: relative;
}
.contact-info-panel > * { position: relative; z-index: 1; }
.contact-info-panel a { color: #fff; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; line-height: 1.55; }
.contact-info-item i {
    width: 44px;
    height: 44px;
    border-radius: var(--r);
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff !important;
}
.contact-form-panel { padding: 36px; }

.contact-form .form-control {
    min-height: 52px;
    border-radius: var(--r);
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 12px 16px;
    transition: all var(--dur) var(--ease);
}
.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 16%, transparent);
    outline: none;
}
.contact-form textarea.form-control { min-height: 150px; resize: vertical; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
    background: color-mix(in srgb, var(--primary-color) 25%, #060a18);
    color: #b8c2d8;
    padding: 62px 0 26px;
    position: relative;
    margin-top: 40px;
}
.site-footer a { color: #b8c2d8; transition: color var(--dur-fast) var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer i { color: #b8c2d8; transition: color var(--dur-fast) var(--ease); }
.site-footer a:hover i { color: #ffffff; }

.footer-title {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 18px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 22px;
    margin-top: 40px;
    font-size: 14px;
    color: #8fa1bd;
}

/* ─── Empty state ────────────────────────────────────────────────────── */
.empty-state {
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
    padding: 34px;
    color: var(--text-muted);
    text-align: center;
}
.empty-state i { color: var(--text-soft); }

/* ─── Micro-interactions ─────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.section-padding > .container { animation: fadeUp var(--dur-slow) var(--ease-out) both; }

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .navbar-brand { margin-right: 24px; }
    .navbar-nav { column-gap: 2px; }
    .navbar-nav .nav-link { padding: 9px 10px !important; font-size: 14px; }
}

@media (max-width: 991px) {
    .navbar-brand { margin-right: 0; }
    .site-logo { max-height: 48px; max-width: 180px; }
    .navbar-collapse {
        background: var(--surface);
        border-top: 1px solid var(--line);
        margin-top: 12px;
        padding: 14px 0 18px;
        width: 100%;
        border-radius: 0 0 var(--r-lg) var(--r-lg);
    }
    .navbar-nav { align-items: stretch; row-gap: 6px; }
    .navbar-nav .nav-link {
        border-radius: var(--r);
        padding: 12px 14px !important;
        font-size: 15px;
    }
    .site-navbar .btn-theme { display: block; text-align: center; margin-top: 8px; width: 100%; }
    .theme-toggle { margin: 10px auto 0; display: flex !important; }

    .home-slider .carousel-item,
    .home-slider .slider-content-wrap { height: 480px; }
    .home-slider .slider-content-wrap { padding: 0 54px; }
    .home-slider .slider-content.right { margin-left: 0; text-align: left; }

    .hero-section { padding: 78px 0 58px; }
    .hero-card { margin-top: 34px; }
    .contact-info-panel, .contact-form-panel { padding: 28px; }
}

@media (max-width: 767px) {
    .section-padding { padding: 58px 0; }
    .site-topbar { text-align: center; }
    .hero-title, .home-slider h1 { letter-spacing: -1px; }
    .post-media, .post-media img { height: 210px; }
    .slider-shell { padding: 18px 0 12px; }
    .home-slider { border-radius: var(--r-lg); }
    .home-slider .carousel-item,
    .home-slider .slider-content-wrap { height: 430px; }
    .home-slider .slider-content-wrap { padding: 0 28px; }
    .home-slider p { font-size: 16px; }
    .home-slider .carousel-control-prev,
    .home-slider .carousel-control-next { width: 42px; height: 42px; }
    .home-slider .carousel-control-prev { left: 8px; }
    .home-slider .carousel-control-next { right: 8px; }

    .partner-item { width: 180px; height: 120px; padding: 15px; }
    .partner-item img { max-height: 85px; }
    .partners-arrow { width: 40px; height: 40px; }
    .partners-arrow i { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES — Login / Forgot Password / Reset Password
   ───────────────────────────────────────────────────────────────────────────
   The left branding column is intentionally dark in BOTH themes, so its text
   must be forced white regardless of the global heading/text color rules.
   The right form column uses --surface so it flips with the theme, and the
   inputs / labels / muted text are re-tied to the design tokens.
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-section {
    padding: 100px 0 120px;
}

/* The outer card */
.login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* ── Left branding column ─────────────────────────────────────────────── */
.login-card .col-lg-6.d-none.d-lg-flex {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 60px 50px !important;
    align-items: center;
}

/* Force EVERY text element inside the branding column to white. This is
   what prevents the dark-on-dark headline in light mode (the global
   h1..h6 { color: var(--text) !important; } rule would otherwise win). */
.login-card .col-lg-6.d-none.d-lg-flex h1,
.login-card .col-lg-6.d-none.d-lg-flex h2,
.login-card .col-lg-6.d-none.d-lg-flex h3,
.login-card .col-lg-6.d-none.d-lg-flex h4,
.login-card .col-lg-6.d-none.d-lg-flex h5,
.login-card .col-lg-6.d-none.d-lg-flex h6,
.login-card .col-lg-6.d-none.d-lg-flex p,
.login-card .col-lg-6.d-none.d-lg-flex strong,
.login-card .col-lg-6.d-none.d-lg-flex span,
.login-card .col-lg-6.d-none.d-lg-flex a,
.login-card .col-lg-6.d-none.d-lg-flex i,
.login-card .col-lg-6.d-none.d-lg-flex div {
    color: #ffffff !important;
}

.login-card .col-lg-6.d-none.d-lg-flex p {
    opacity: .93;
}

/* Feature rows on the branding panel */
.login-feature,
.forgot-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.login-feature i,
.forgot-feature i {
    opacity: .9;
    margin-top: 4px;
    flex-shrink: 0;
}

.login-feature strong,
.forgot-feature strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.login-feature p,
.forgot-feature p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
}

/* ── Right form column ────────────────────────────────────────────────── */
.login-card .col-lg-6:not(.d-none) {
    background: var(--surface);
}

/* Bootstrap's .text-muted is fixed dark gray — re-tie it to our tokens so
   it stays legible on both light and dark surfaces. */
.text-muted,
.login-card .text-muted {
    color: var(--text-muted) !important;
}

/* Form labels */
.login-card .form-label {
    color: var(--text) !important;
}

/* Inputs — dark surface needs a dark field, light surface needs a light field */
.login-card .form-control {
    background: var(--surface-2) !important;
    border: 1.5px solid var(--line) !important;
    color: var(--text) !important;
    border-radius: var(--r) !important;
    min-height: 56px;
    padding: 12px 16px;
    transition: all var(--dur) var(--ease);
}

.login-card .form-control:focus {
    background: var(--surface) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 16%, transparent) !important;
    outline: none;
}

.login-card .form-control::placeholder {
    color: var(--text-soft) !important;
}

/* Password eye toggle */
.login-card .password-field #togglePassword {
    color: var(--text-muted) !important;
    transition: color var(--dur) var(--ease);
}
.login-card .password-field #togglePassword:hover {
    color: var(--primary-color) !important;
}

/* "Back to Website" style muted links */
.login-card a.text-muted {
    color: var(--text-muted) !important;
}
.login-card a.text-muted:hover {
    color: var(--primary-color) !important;
}

/* Links row under the submit button */
.login-card form .small a {
    font-weight: 600;
}

/* ── Dark-mode touch-ups ──────────────────────────────────────────────── */
[data-theme="dark"] .login-card {
    background: var(--surface);
    border-color: var(--line);
}

[data-theme="dark"] .login-card .col-lg-6.d-none.d-lg-flex {
    background: var(--primary-color) !important;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .auth-section { padding: 60px 0 80px; }
    .login-card { border-radius: var(--r-lg); }
    .login-card .col-lg-6.d-none.d-lg-flex { padding: 40px 32px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE — ICON COLOR CORRECTIONS
   ───────────────────────────────────────────────────────────────────────────
   In light mode many icons are intentionally brand-colored. On dark surfaces
   those same treatments become muddy or invisible. The rules below brighten
   icons that need it while leaving icons that already sit inside a colored
   chip (feature-icon, partners-arrow, contact-info-item) untouched.
   ═══════════════════════════════════════════════════════════════════════════ */

[data-theme="dark"] {

    /* ── Navbar ──────────────────────────────────────────────────────── */
    .navbar-toggler i {
        color: #e8eef9 !important;
    }

    .theme-toggle {
        background: var(--surface-2);
        border-color: var(--line-strong);
        color: #e8eef9 !important;
    }
    .theme-toggle:hover {
        color: #ffffff !important;
        border-color: color-mix(in srgb, var(--primary-color) 55%, transparent);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 22%, transparent);
    }

    /* Login button icon sits on solid primary — keep it white */
    .site-navbar .btn-theme i {
        color: #ffffff !important;
    }

    /* Plain nav links: keep text-muted tone, icons inherit */
    .navbar-nav .nav-link i {
        color: inherit;
    }

    /* ── Hero dashboard mini-stats ───────────────────────────────────── */
    .mini-stat i {
        color: var(--primary-color) !important;
        filter: brightness(1.35) saturate(1.1);
    }
    .mini-stat:hover i {
        color: #ffffff !important;
        filter: none;
    }

    /* ── FAQ chevron ─────────────────────────────────────────────────── */
    .faq-question i {
        color: var(--primary-color) !important;
        filter: brightness(1.25);
    }
    .faq-card.open .faq-question i {
        color: #ffffff !important;
        filter: none;
    }

    /* ── Feature icons already on solid primary — pure white ────────── */
    .feature-icon i {
        color: #ffffff !important;
    }

    /* ── Category filter pill icons ──────────────────────────────────── */
    .category-filter i {
        color: currentColor;
    }
    .category-filter:hover i,
    .category-filter.active i {
        color: #ffffff !important;
    }

    /* ── Contact info panel — solid primary backed icons stay white ─── */
    .contact-info-panel .contact-info-item i {
        color: #ffffff !important;
        background: rgba(255,255,255,.18);
    }

    /* ── Footer contact icons ────────────────────────────────────────── */
    .site-footer i {
        color: #b8c2d8;
    }
    .site-footer a:hover i {
        color: #ffffff;
    }

    /* ── Partners arrows — always on solid primary ──────────────────── */
    .partners-arrow i {
        color: #ffffff !important;
    }

    /* ── Empty-state icons ───────────────────────────────────────────── */
    .empty-state i {
        color: var(--text-soft);
    }

    /* ── Badge icons (like the "Online" hero badge) ──────────────────── */
    .badge i {
        color: inherit;
    }

    /* ── Any remaining `text-dark` / `text-body` Font Awesome usage ──── */
    .text-dark i,
    .text-body i {
        color: #e8eef9 !important;
    }
}

/* ── Catch-all for icons added later without a parent rule ─────────────────
   Disable this block if you find it's overriding icons you deliberately
   colored (e.g. brand-colored icons inside content you add yourself). ────── */
[data-theme="dark"] i.fas,
[data-theme="dark"] i.far,
[data-theme="dark"] i.fab {
    color: #e8eef9;
}
[data-theme="dark"] .btn i,
[data-theme="dark"] .btn-theme i,
[data-theme="dark"] .btn-theme-outline:hover i {
    color: #ffffff;
}