/* ==============================
   VARIABEL GLOBAL & BASE THEME
   ============================== */

:root {
    --bg-body: #020617;
    --bg-elevated: #020817;
    --bg-card: #020c1b;
    --bg-card-soft: #07111f;
    --bg-header: radial-gradient(circle at top left, #0f172a 0%, #020617 55%, #000 100%);
    --accent-gold: #d4af37;
    --accent-gold-soft: #fbbf24;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.45);
    --border-strong: rgba(148, 163, 184, 0.7);
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.95);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-pill: 999px;

    --royal-gold: #d4af37;
    --light-gold: #facc6b;
    --dark-green: #14532d;
    --maroon: #7f1d1d;
    --soft-red: #f97373;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Background dekoratif */
.page-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12) 0, transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.14) 0, transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.12) 0, transparent 60%),
        linear-gradient(145deg, #020617, #000);
}

/* =================================
   NAVBAR PREMIUM
   ================================= */

.main-nav {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.main-nav .navbar-brand {
    color: #f9fafb;
}

.main-nav .navbar-brand:hover {
    color: #ffffff;
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 1.25rem;
    background: radial-gradient(circle at 20% 0, #facc15, #d97706 55%, #92400e 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 1.3rem;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.65),
                0 18px 40px rgba(0, 0, 0, 0.65);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand-subtitle {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.navbar-toggler {
    background-color: rgba(15, 23, 42, 0.9);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(248,250,252,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-nav .nav-link {
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.main-nav .nav-link i {
    font-size: 1rem;
}

.main-nav .nav-link:hover {
    color: #e5e7eb;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), transparent 60%);
}

.main-nav .nav-link.active,
.main-nav .nav-link.nav-pill-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0b1120 !important;
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.6),
                0 18px 35px rgba(8, 47, 73, 0.85);
}

.main-nav .nav-link.nav-pill-danger {
    background: radial-gradient(circle at 0 0, rgba(239, 68, 68, 0.22), transparent 60%);
    color: #fecaca;
}

.main-nav .nav-link.nav-pill-danger:hover {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fee2e2;
}

/* =================================
   HERO / HEADER
   ================================= */

.main-header {
    position: relative;
    padding: 3.5rem 0 2.5rem;
    background: var(--bg-header);
    color: #f9fafb;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.18) 0, transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.2) 0, transparent 55%),
        radial-gradient(circle at 50% 110%, rgba(34, 197, 94, 0.17) 0, transparent 60%);
    opacity: 0.65;
    pointer-events: none;
}

.main-header .container {
    position: relative;
    z-index: 1;
}

/* Eyebrow label */
.eyebrow {
    margin-bottom: 0.75rem;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), transparent 60%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #e0f2fe;
}

/* Heading utama */
.display-heading {
    font-size: clamp(1.5rem, 3.1vw, 2.3rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.display-heading .accent-gradient {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    background: linear-gradient(135deg, #facc15, #f97316, #f97316, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Subtitle & description */
.subtitle {
    font-size: 0.95rem;
    color: #cbd5f5;
}

.description {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 640px;
}

/* CTA buttons */
.btn.cta-primary,
.btn.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 999px;
    padding: 0.7rem 1.25rem;
    border-width: 0;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn.cta-primary::before,
.btn.cta-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.15), transparent 55%);
    transition: opacity 0.2s ease;
}

.btn.cta-primary:hover::before,
.btn.cta-secondary:hover::before {
    opacity: 1;
}

.btn.cta-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0b1120;
    box-shadow: 0 19px 40px rgba(8, 47, 73, 0.9);
}

.btn.cta-secondary {
    background: radial-gradient(circle at 0 0, rgba(234, 179, 8, 0.2), transparent 60%),
                linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(17, 24, 39, 0.95));
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 19px 40px rgba(15, 23, 42, 0.95);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.12);
    font-size: 1rem;
}

.btn-text {
    text-align: left;
}

.btn-title {
    display: block;
    font-weight: 600;
}

.btn-subtitle {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Hero badges */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-badge {
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hero-badge-gold {
    color: #1f2933;
    background: linear-gradient(135deg, var(--royal-gold), var(--light-gold));
}

.hero-badge-green {
    color: #e5fdf2;
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.hero-badge-red {
    color: #fee2e2;
    background: linear-gradient(135deg, #7f1d1d, #ef4444);
}

/* Hero stat card (kanan) */
.hero-stat-card {
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 65%),
                linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: var(--shadow-soft);
    max-width: 360px;
    margin-left: auto;
}

.hero-stat-header h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.hero-stat-header p {
    font-size: 0.78rem;
    color: #e5e7eb;
    opacity: 0.85;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #bae6fd;
    background: rgba(15, 23, 42, 0.8);
    margin-bottom: 0.6rem;
}

.hero-stat-body {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 18px;
    background: radial-gradient(circle at 0 0, rgba(8, 47, 73, 0.9), rgba(15, 23, 42, 0.95));
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(15, 118, 110, 0.55);
}

.hero-stat-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.3rem;
}

.hero-stat-item + .hero-stat-item {
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #cbd5f5;
}

.hero-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fef9c3;
}

.hero-stat-footer {
    font-size: 0.75rem;
    color: #cbd5f5;
    opacity: 0.9;
}

/* =================================
   PAGE CONTENT / SECTION CARD
   ================================= */

.page-content {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
    max-width: 1120px;
}

.section-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
    border-radius: var(--radius-xl);
    padding: 2.3rem 1.8rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

.section-card-highlight::before {
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 60%),
        radial-gradient(circle at 100% 0, rgba(234, 179, 8, 0.18), transparent 60%);
}

.section-card > * {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.icon-accent {
    color: #facc15;
}

/* Decorative line */
.decorative-line {
    width: 100%;
    height: 1px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.7), rgba(16, 185, 129, 0.8), rgba(234, 179, 8, 0.8), transparent);
    opacity: 0.9;
    margin: 1rem 0 0.5rem;
}

/* =================================
   BERANDA / RINGKASAN
   ================================= */

.featured-image-wrapper {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.95);
}

.featured-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}

.featured-image-overlay {
    position: absolute;
    inset: auto 1.1rem 1.1rem 1.1rem;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

.bg-success-soft {
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.25), transparent 70%);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #dcfce7;
    font-size: 0.8rem;
}

/* Stats grid */
.stats-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 1.8rem;
}

.stat-card {
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 60%),
                linear-gradient(145deg, #020617, #020617);
    border-radius: 20px;
    padding: 1.2rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #bae6fd;
    background: rgba(15, 23, 42, 0.85);
    margin-bottom: 0.4rem;
}

.stat-chip-gold {
    border-color: rgba(250, 204, 21, 0.7);
    color: #fef3c7;
}

.stat-chip-green {
    border-color: rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-description {
    font-size: 0.82rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.premium-alert {
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), transparent 60%),
                rgba(15, 23, 42, 0.97);
    color: #e5e7eb;
}

.alert-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.14);
}

/* =================================
   VISI MISI & PROGRAM
   ================================= */

.vision-mission-card {
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent 60%),
                rgba(15, 23, 42, 0.98);
    border-radius: 22px;
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.leader-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.leader-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 999px;
    border: 3px solid rgba(250, 204, 21, 0.75);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
}

.leader-avatar-ring,
.leader-avatar-ring-secondary {
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 2px dashed rgba(250, 204, 21, 0.65);
    opacity: 0.9;
}

.leader-avatar-ring-secondary {
    border-color: rgba(56, 189, 248, 0.7);
}

.leader-name {
    color: #e5e7eb;
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.35), transparent 70%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
    font-size: 1rem;
}

.icon-circle-green {
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.35), transparent 70%);
    color: #4ade80;
}

.icon-circle-gold {
    background: radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.35), transparent 70%);
    color: #facc15;
}

.icon-circle-blue {
    background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.35), transparent 70%);
    color: #60a5fa;
}

.vision-quote {
    background: radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.25), transparent 60%),
                rgba(39, 39, 11, 0.98);
    color: #fef9c3;
}

.mission-list {
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.mission-item {
    background: transparent;
    border: 0;
    font-size: 0.86rem;
    padding: 0.65rem 0.9rem;
    color: var(--text-main);
}

.mission-item + .mission-item {
    border-top: 1px dashed rgba(75, 85, 99, 0.8);
}

/* Program grid */
.program-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.program-card {
    background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.18), transparent 60%),
                linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.94));
    border-radius: 18px;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.9);
}

.program-number {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 0.3rem;
}

.program-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* =================================
   GALERI KEGIATAN
   ================================= */

.gallery-card {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 18px;
    overflow: hidden;
}

.gallery-thumb img {
    height: 260px;
    object-fit: cover;
    filter: saturate(1.08);
}

.extra-image {
    max-height: 220px;
    object-fit: cover;
}

.gallery-card .card-body {
    padding: 1rem 1rem 1.1rem;
}

/* =================================
   FAQ PREMIUM (dengan JS)
   ================================= */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.faq-item {
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.55);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.faq-number {
    margin-right: 0.7rem;
}

.faq-toggle-icon {
    margin-left: 0.7rem;
    transition: transform 0.2s ease;
}

.faq-item.is-open .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1rem 0.9rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    border-top: 1px dashed rgba(75, 85, 99, 0.85);
    display: none;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* =================================
   FOOTER
   ================================= */

.main-footer {
    position: relative;
    padding: 2.5rem 0 2rem;
    background: radial-gradient(circle at 50% 0, rgba(15, 23, 42, 0.95), #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-muted);
}

.footer-gradient {
    position: absolute;
    inset: -40% -20% auto;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), transparent 60%),
        radial-gradient(circle at 100% 0, rgba(234, 179, 8, 0.25), transparent 60%);
    opacity: 0.45;
    pointer-events: none;
}

.footer-section {
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 0.96rem;
    font-weight: 600;
    color: #e5e7eb;
}

.footer-section p {
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px dashed rgba(75, 85, 99, 0.9);
    position: relative;
    z-index: 1;
}

.footer-badge {
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.96);
}

/* =================================
   CHATBOT UI
   ================================= */

.chatbot-toggle {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b1120;
    font-size: 1.4rem;
    box-shadow: 0 20px 45px rgba(8, 47, 73, 0.9);
    cursor: pointer;
    z-index: 1100;
}

.chatbot-window {
    position: fixed;
    right: 1.5rem;
    bottom: 5.5rem;
    width: min(360px, 90vw);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.75);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.97);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1099;
}

.chatbot-window.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.7);
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.24), transparent 65%);
}

.chatbot-header h3 {
    font-size: 0.98rem;
    font-weight: 600;
}

.chatbot-close {
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.1rem;
    border-radius: 999px;
}

.chatbot-close:hover {
    background: rgba(31, 41, 55, 0.9);
    color: #e5e7eb;
}

.chatbot-messages {
    padding: 0.75rem 0.85rem;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.message-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-message.bot .message-avatar {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

.chat-message.user .message-avatar {
    background: rgba(34, 197, 94, 0.12);
    color: #6ee7b7;
}

.message-content {
    padding: 0.45rem 0.7rem;
    border-radius: 14px;
    max-width: 100%;
}

.chat-message.bot .message-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.chat-message.user .message-content {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.chatbot-input-area {
    padding: 0.6rem 0.7rem 0.7rem;
    border-top: 1px solid rgba(55, 65, 81, 0.9);
    display: flex;
    gap: 0.4rem;
}

.chatbot-input {
    background: #020617;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
    font-size: 0.82rem;
    padding-inline: 0.9rem;
}

.chatbot-input:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
    outline: none;
}

.chatbot-send {
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border: 0;
    color: #0b1120;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 991.98px) {
    .main-header {
        padding: 2.3rem 0 1.8rem;
    }

    .hero-stat-card {
        display: none;
    }

    .page-content {
        padding-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .section-card {
        padding-inline: 1.2rem;
    }

    .featured-image-overlay {
        inset-inline: 0.8rem;
    }

    .chatbot-window {
        right: 1rem;
        left: 1rem;
        width: auto;
    }

    .chatbot-toggle {
        right: 1rem;
        bottom: 1rem;
    }
}
