/**
 * Royal Orange & Obsidian Luxury Pesantren Design System (2026 Edition)
 * Pondok Pesantren Modern Unggulan Terpadu Darul Mursyid (PDM)
 *
 * Contemporary Editorial & Architectural Palette:
 * - Primary Royal Orange: #EA580C, #F97316, #C2410C
 * - Warm Champagne Amber: #F59E0B, #FBBF24, #D97706
 * - Deep Obsidian Slate:  #090D16, #0F172A, #1E293B
 * - Pearl & Alabaster:    #FFFFFF, #FAFAFA, #FFF7ED
 */

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
    /* Primary Brand Orange Scale (retains semantic token names for full template compatibility) */
    --emerald-900: #0F172A;
    --emerald-800: #C2410C;
    --emerald-700: #EA580C;
    --emerald-600: #F97316;
    --emerald-500: #FB923C;
    --emerald-400: #FDBA74;
    --emerald-100: #FFEDD5;
    --emerald-50:  #FFF7ED;

    /* Warm Champagne & Amber Accent Scale */
    --gold-800: #92400E;
    --gold-700: #B45309;
    --gold-600: #D97706;
    --gold-500: #F59E0B;
    --gold-400: #FBBF24;
    --gold-300: #FDE68A;
    --gold-200: #FEF3C7;
    --gold-100: #FFFBEB;
    --amber-accent: #F97316;

    /* Deep Obsidian & Neutral Slate Scale */
    --slate-950: #090D16;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;

    /* Pearl & Alabaster Surfaces */
    --ivory-white: #FFFFFF;
    --ivory-alabaster: #FAFAFA;
    --ivory-creme: #FFFBF7;
    --ivory-border: rgba(15, 23, 42, 0.08);

    /* Glassmorphism & Layered Shadows */
    --glass-bg: rgba(255, 255, 255, 0.86);
    --glass-dark-bg: rgba(15, 23, 42, 0.84);
    --glass-border: rgba(249, 115, 22, 0.18);
    --glass-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.08);

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 14px 30px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, 0.06), 0 24px 48px -12px rgba(15, 23, 42, 0.12);
    --shadow-gold: 0 8px 24px -4px rgba(245, 158, 11, 0.35);
    --shadow-emerald: 0 10px 26px -4px rgba(234, 88, 12, 0.32);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Modern Generous Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Smooth Spring-like Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Global Typography & Core Resets (Neutralizing Legacy Template CSS)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body,
body.royal-theme {
    font-family: var(--font-sans) !important;
    font-size: 15px;
    line-height: 1.72;
    color: var(--slate-700);
    background-color: var(--ivory-alabaster);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, .royal-heading, .section-title h2 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.18; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); line-height: 1.25; }
h3 { font-size: 1.35rem; line-height: 1.35; }
h4 { font-size: 1.15rem; line-height: 1.4; }
h5 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; }
h6 { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

p {
    margin-bottom: 1.2rem;
    color: var(--slate-600);
}

a {
    color: var(--emerald-700);
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

a:hover, a:focus {
    color: var(--emerald-800);
    text-decoration: none !important;
}

::selection {
    background-color: var(--emerald-600);
    color: #FFFFFF;
}

.text-gold {
    color: var(--gold-500) !important;
}

/* ==========================================================================
   3. Decorative Elements, Section Headers & Modern Pill Badges
   ========================================================================== */
.royal-section {
    position: relative;
}

.royal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.1rem auto 1.6rem;
    max-width: 180px;
}

.royal-divider::before,
.royal-divider::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.45), transparent);
}

.royal-divider-icon {
    margin: 0 12px;
    color: var(--emerald-600);
    font-size: 13px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--emerald-50);
    border: 1px solid rgba(249, 115, 22, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.royal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border-radius: var(--radius-full);
    line-height: 1.2;
}

.badge-emerald {
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
    color: #C2410C;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.badge-gold {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.badge-dark {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FDE68A;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   4. Tactile Modern Pill & Squircle Buttons
   ========================================================================== */
.btn-emerald {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 55%, #C2410C 100%);
    color: #FFFFFF !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 11px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px -4px rgba(234, 88, 12, 0.38), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-emerald:hover, .btn-emerald:focus {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 55%, #EA580C 100%);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px rgba(234, 88, 12, 0.48);
}

.btn-gold {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 55%, #EA580C 100%);
    color: #FFFFFF !important;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 11px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 22px -4px rgba(245, 158, 11, 0.42), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
    cursor: pointer;
}

.btn-gold:hover, .btn-gold:focus {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(234, 88, 12, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #FFFFFF !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-glass:hover, .btn-glass:focus {
    background: rgba(255, 255, 255, 0.96);
    color: var(--slate-900) !important;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn-outline-emerald {
    background: #FFFFFF;
    color: var(--emerald-700) !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(234, 88, 12, 0.35);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline-emerald:hover, .btn-outline-emerald:focus {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #FFFFFF !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-emerald);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-600) !important;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-gold:hover {
    background: var(--gold-500);
    color: #FFFFFF !important;
    border-color: var(--gold-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   5. Minimalist Architectural Obsidian Topbar
   ========================================================================== */
.royal-topbar {
    background: var(--slate-950);
    color: rgba(248, 250, 252, 0.85);
    font-size: 12.5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 1020;
}

.royal-topbar .container-fluid,
.royal-navbar .container-fluid,
.royal-footer .container-fluid {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.royal-topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.royal-topbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.royal-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 12.5px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.royal-topbar-item:hover {
    color: #FDBA74;
}

.royal-topbar-item i {
    color: var(--emerald-500);
    font-size: 13px;
}

.royal-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.royal-social-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.royal-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 250, 252, 0.85);
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.royal-social-link:hover {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #FFFFFF !important;
    border-color: transparent;
    transform: translateY(-2px);
}

.royal-topbar-badge {
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.32);
    color: #FDBA74;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   6. Sleek Floating Capsule Glassmorphic Navbar
   ========================================================================== */
.royal-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1015;
    background: transparent;
}

.royal-navbar {
    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(15, 23, 42, 0.07);
    box-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.06);
    transition: all var(--transition-normal);
    padding: 12px 0;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    min-height: 0;
}

@media (min-width: 992px) {
    .royal-navbar.is-docked,
    .royal-navbar.is-scrolled {
        position: fixed;
        top: 12px;
        left: 24px;
        right: 24px;
        max-width: 1320px;
        margin: 0 auto;
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, 0.90);
        backdrop-filter: blur(24px) saturate(190%);
        -webkit-backdrop-filter: blur(24px) saturate(190%);
        border: 1px solid rgba(249, 115, 22, 0.22);
        box-shadow: 0 14px 40px -10px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
        padding: 8px 10px;
    }
}

@media (max-width: 991px) {
    .royal-navbar.is-docked,
    .royal-navbar.is-scrolled {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
        padding: 10px 0;
    }
}

.royal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.royal-brand-logo {
    max-height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
}

.royal-brand:hover .royal-brand-logo {
    transform: scale(1.04);
}

.royal-brand-text {
    display: flex;
    flex-direction: column;
}

.royal-brand-title {
    font-family: var(--font-sans);
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
    line-height: 1.15;
    margin: 0;
}

.royal-brand-subtitle {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--emerald-700);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 2px 0 0 0;
}

/* Neutralize Bootstrap 3 .nav / .navbar-nav collisions completely */
.royal-nav-collapse.navbar-collapse {
    padding-left: 0;
    padding-right: 0;
    border: none;
    box-shadow: none;
}

.royal-nav-list,
.royal-nav-list.nav.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 !important;
    padding: 0;
    gap: 4px;
    float: none !important;
}

.royal-nav-list > li,
.royal-nav-list.navbar-nav > li {
    float: none !important;
    position: relative;
}

.royal-nav-list > li > a.royal-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px !important;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate-700) !important;
    background: transparent !important;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.royal-nav-list > li > a.royal-nav-link::after {
    display: none;
}

.royal-nav-list > li > a.royal-nav-link:hover,
.royal-nav-list > li > a.royal-nav-link:focus {
    color: var(--emerald-700) !important;
    background: var(--emerald-50) !important;
}

.royal-nav-item.active > a.royal-nav-link,
.royal-nav-list > li > a.royal-nav-link.active {
    color: var(--emerald-800) !important;
    font-weight: 700;
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5) !important;
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.18) inset;
}

.royal-nav-cta {
    margin-left: 8px;
}

.royal-nav-list > li.royal-nav-cta > a.btn-gold {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%) !important;
    color: #FFFFFF !important;
    border-radius: var(--radius-full) !important;
    padding: 9px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 18px -3px rgba(234, 88, 12, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.royal-nav-list > li.royal-nav-cta > a.btn-gold:hover {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%) !important;
    color: #FFFFFF !important;
    transform: translateY(-1.5px);
    box-shadow: 0 10px 24px -4px rgba(234, 88, 12, 0.55);
}

/* Mobile Nav Toggle */
.royal-menu-toggle {
    display: none;
    background: var(--emerald-50);
    border: 1px solid rgba(234, 88, 12, 0.22);
    border-radius: 12px;
    padding: 8px 13px;
    margin: 0;
    cursor: pointer;
    color: var(--emerald-700);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.royal-menu-toggle:hover, .royal-menu-toggle:focus {
    background: var(--emerald-600);
    color: #FFFFFF;
    border-color: var(--emerald-600);
}

/* ==========================================================================
   7. Ultra-Clean Editorial Cards & Architectural Page Banners
   ========================================================================== */
.royal-card {
    background: var(--ivory-white);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.royal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.28);
}

.royal-card-gold-trim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #FBBF24, #EA580C);
    opacity: 0.85;
    z-index: 2;
}

.royal-card-body {
    padding: 26px;
}

.royal-card-header {
    padding: 20px 26px;
    background: linear-gradient(180deg, #FFFBF7 0%, #FFFFFF 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.royal-card-header h3, .royal-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

/* Architectural Obsidian Subpage Hero Banner */
.royal-page-banner {
    background-color: var(--slate-950);
    background-image:
        radial-gradient(circle at 18% 25%, rgba(249, 115, 22, 0.24) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(245, 158, 11, 0.16) 0%, transparent 48%),
        linear-gradient(135deg, rgba(9, 13, 22, 0.94) 0%, rgba(15, 23, 42, 0.88) 100%),
        url('../images/banner-bg.jpg');
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(249, 115, 22, 0.25);
}

.royal-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.royal-page-banner .container {
    position: relative;
    z-index: 2;
}

.royal-page-banner h1, .royal-page-banner h2 {
    color: #FFFFFF;
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.royal-breadcrumb {
    display: inline-flex;
    align-items: center;
    list-style: none;
    padding: 6px 16px;
    margin: 0;
    gap: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
}

.royal-breadcrumb li a {
    color: rgba(248, 250, 252, 0.8);
    font-weight: 500;
}

.royal-breadcrumb li a:hover {
    color: #FDBA74;
}

.royal-breadcrumb li.active {
    color: #FBBF24;
    font-weight: 600;
}

.royal-breadcrumb li + li::before {
    content: '/';
    color: rgba(255, 255, 255, 0.3);
    margin-right: 8px;
}

/* ==========================================================================
   8. Modern Form Controls & Inputs
   ========================================================================== */
.form-control-royal,
.royal-theme .form-control {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--slate-800);
    background-color: #FFFFFF;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    padding: 11px 15px;
    height: auto;
    min-height: 44px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
    width: 100%;
}

.form-control-royal:focus,
.royal-theme .form-control:focus {
    border-color: var(--emerald-600);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

/* ==========================================================================
   9. Clean Modern Data Tables
   ========================================================================== */
.table-royal {
    width: 100%;
    margin-bottom: 1.5rem;
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ivory-border);
    border-collapse: separate;
    border-spacing: 0;
}

.table-royal thead th {
    background: var(--slate-900);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 15px 18px;
    border: none;
}

.table-royal tbody td {
    padding: 15px 18px;
    vertical-align: middle;
    border-top: 1px solid var(--slate-100);
    color: var(--slate-700);
    font-size: 14px;
}

.table-royal tbody tr:hover {
    background-color: var(--emerald-50);
}

/* ==========================================================================
   10. Modern Pill Pagination
   ========================================================================== */
.pagination-royal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 36px 0;
    flex-wrap: wrap;
}

.pagination-royal li a,
.pagination-royal li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-full) !important;
    background: #FFFFFF;
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.pagination-royal li a:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
    border-color: rgba(249, 115, 22, 0.35);
    transform: translateY(-2px);
}

.pagination-royal li.active a,
.pagination-royal li.active span {
    background: linear-gradient(135deg, #F97316, #EA580C) !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px -2px rgba(234, 88, 12, 0.4);
}

.pagination-royal li.disabled a,
.pagination-royal li.disabled span {
    color: var(--slate-400);
    pointer-events: none;
    background: var(--slate-100);
    border-color: var(--slate-200);
    box-shadow: none;
}

/* ==========================================================================
   11. Architectural Obsidian Institutional Footer
   ========================================================================== */
.royal-footer {
    background:
        radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 85% 100%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #0F172A 0%, #090D16 100%);
    color: var(--slate-400);
    position: relative;
    margin-top: 70px;
    border-top: 1px solid rgba(249, 115, 22, 0.25);
}

.royal-footer-top {
    padding: 72px 0 48px;
}

.royal-footer-col-title {
    font-family: var(--font-sans);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.royal-footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2.5px;
    background: linear-gradient(90deg, #F97316, #FBBF24);
    border-radius: 99px;
}

.royal-footer-desc {
    color: rgba(226, 232, 240, 0.72);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.royal-footer-accreditation {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 10px 16px;
    border-radius: 14px;
    margin-top: 6px;
}

.royal-footer-accreditation-icon {
    color: #FBBF24;
    font-size: 22px;
}

.royal-footer-accreditation-text {
    font-size: 12px;
    color: #F8FAFC;
    font-weight: 600;
    line-height: 1.35;
}

.royal-footer-accreditation-text span {
    color: rgba(226, 232, 240, 0.68);
    font-weight: 400;
}

.royal-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.royal-footer-links li {
    margin-bottom: 11px;
}

.royal-footer-links li a {
    color: rgba(226, 232, 240, 0.74);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all var(--transition-fast);
}

.royal-footer-links li a i {
    font-size: 10px;
    color: var(--emerald-500);
    transition: transform var(--transition-fast);
}

.royal-footer-links li a:hover {
    color: #FDBA74;
    transform: translateX(4px);
}

.royal-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(226, 232, 240, 0.76);
    font-size: 13.5px;
}

.royal-footer-contact-item i {
    color: var(--emerald-500);
    font-size: 15px;
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.royal-footer-contact-item a {
    color: rgba(226, 232, 240, 0.8);
}

.royal-footer-contact-item a:hover {
    color: #FDBA74;
}

.royal-footer-bottom {
    background: rgba(5, 8, 15, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(148, 163, 184, 0.85);
}

.royal-footer-bottom-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.royal-footer-bottom a {
    color: #FDBA74;
    font-weight: 500;
}

.royal-footer-bottom a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   12. Floating WhatsApp Widget & Back-to-Top
   ========================================================================== */
.royal-whatsapp-widget {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.royal-whatsapp-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px -4px rgba(37, 211, 102, 0.5);
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
}

.royal-whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waPulse 2.4s infinite ease-out;
    opacity: 0.65;
}

@keyframes waPulse {
    0% { transform: scale(0.95); opacity: 0.85; }
    60% { transform: scale(1.18); opacity: 0.25; }
    100% { transform: scale(1.32); opacity: 0; }
}

.royal-whatsapp-btn svg,
.royal-whatsapp-btn img {
    width: 30px;
    height: 30px;
    fill: #FFFFFF;
}

.royal-whatsapp-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 14px 32px -4px rgba(37, 211, 102, 0.65);
}

.royal-whatsapp-tooltip {
    background: var(--slate-900);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.royal-whatsapp-widget:hover .royal-whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.royal-back-to-top {
    position: fixed;
    bottom: 26px;
    left: 26px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #FDBA74;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-normal);
}

.royal-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.royal-back-to-top:hover {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #FFFFFF !important;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ==========================================================================
   13. Owl Carousel & Legacy Template Neutralization + Scroll Reveal
   ========================================================================== */
.slider-wrapper .owl-nav .owl-prev,
.slider-wrapper .owl-nav .owl-next {
    background: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    transition: all var(--transition-fast) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.slider-wrapper .owl-nav .owl-prev {
    left: 24px !important;
}

.slider-wrapper .owl-nav .owl-next {
    right: 24px !important;
}

.slider-wrapper .owl-nav .owl-prev:hover,
.slider-wrapper .owl-nav .owl-next:hover {
    background: linear-gradient(135deg, #F97316, #EA580C) !important;
    border-color: transparent !important;
    transform: translateY(-50%) scale(1.06);
}

.slider-wrapper .owl-nav .owl-prev i,
.slider-wrapper .owl-nav .owl-next i {
    position: static !important;
    line-height: 1 !important;
    font-size: 20px !important;
    color: #FFFFFF !important;
}

/* Instant non-blocking preloader */
#preloader {
    background-color: var(--slate-950);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chatwhatsapp,
.chatwhatsapp-legacy {
    display: none !important;
}

/* Smooth Scroll Reveal Utility */
.royal-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.royal-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .royal-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   14. Responsive Mobile Drawer & Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .royal-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .royal-nav-collapse {
        display: none !important;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2);
        border: 1px solid rgba(249, 115, 22, 0.2);
        padding: 16px !important;
        max-height: 80vh;
        overflow-y: auto;
    }

    .royal-nav-collapse.is-open,
    .royal-nav-collapse.in {
        display: block !important;
        animation: fadeInMenu 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

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

    .royal-nav-list,
    .royal-nav-list.nav.navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .royal-nav-list > li > a.royal-nav-link {
        width: 100%;
        padding: 11px 16px !important;
        border-radius: 12px;
    }

    .royal-nav-cta {
        margin: 10px 0 0 0;
    }

    .royal-nav-list > li.royal-nav-cta > a.btn-gold {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
    }

    .royal-nav-list > li.royal-nav-login {
        margin: 6px 0 0 0;
    }

    .royal-nav-list > li.royal-nav-login > a.btn-royal-login {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
    }

    .slider-wrapper .owl-nav {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .royal-topbar {
        display: none;
    }

    .royal-topbar .container-fluid,
    .royal-navbar .container-fluid,
    .royal-footer .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .royal-brand-title {
        font-size: 15px;
    }

    .royal-brand-subtitle {
        font-size: 9.5px;
    }

    .royal-whatsapp-widget {
        bottom: 18px;
        right: 18px;
    }

    .royal-whatsapp-btn {
        width: 52px;
        height: 52px;
    }

    .royal-whatsapp-tooltip {
        display: none;
    }

    .royal-back-to-top {
        bottom: 18px;
        left: 18px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   15. HEADER REFINEMENT (2026) - Single-line, balanced, no wrapping
   ========================================================================== */
.royal-topbar { padding: 6px 0; font-size: 12px; }
.royal-topbar-item, .royal-topbar-badge { white-space: nowrap; }
.royal-topbar-left { gap: 18px; flex-wrap: nowrap; }
.royal-topbar-container { flex-wrap: nowrap; }

.royal-navbar { padding: 10px 0; }
.royal-navbar .container-fluid > .row {
    flex-wrap: nowrap;
    gap: 18px;
}
.royal-brand-container { flex: 0 0 auto; }
.royal-brand { white-space: nowrap; gap: 11px; }
.royal-brand-logo { max-height: 44px; flex-shrink: 0; }
.royal-brand-text { white-space: nowrap; line-height: 1; }
.royal-brand-title { white-space: nowrap; font-size: 15.5px; letter-spacing: 0.01em; }
.royal-brand-subtitle { white-space: nowrap; font-size: 9.5px; letter-spacing: 0.22em; margin-top: 4px; }

.royal-nav-collapse.navbar-collapse { flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.royal-nav-list { flex-wrap: nowrap; gap: 2px; position: relative; }
.royal-nav-list > li > a.royal-nav-link {
    white-space: nowrap;
    padding: 8px 12px !important;
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.royal-nav-list > li.royal-nav-cta { flex-shrink: 0; margin-left: 10px; }
.royal-nav-list > li.royal-nav-cta > a.btn-gold {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    aspect-ratio: auto !important;
    white-space: nowrap;
    line-height: 1.2;
    padding: 10px 20px !important;
    animation: royalCtaPulse 2.8s ease-in-out infinite;
}

.royal-nav-list > li.royal-nav-login { flex-shrink: 0; margin-left: 6px; }
.btn-royal-login {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #090D16;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 18px !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
    transition: all 0.22s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(9, 13, 22, 0.2);
}

.btn-royal-login:hover {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
    transform: translateY(-1px);
}

.btn-royal-login i {
    color: #FB923C;
    transition: color 0.2s ease;
}

.btn-royal-login:hover i {
    color: #FFFFFF;
}

@media (min-width: 992px) {
    /* Sliding ink indicator replaces per-link backgrounds */
    .royal-nav-list > li > a.royal-nav-link:hover,
    .royal-nav-list > li > a.royal-nav-link:focus,
    .royal-nav-item.active > a.royal-nav-link,
    .royal-nav-list > li > a.royal-nav-link.active {
        background: transparent !important;
        box-shadow: none !important;
    }
    .royal-nav-indicator {
        position: absolute;
        top: 50%;
        left: 0;
        height: 34px;
        width: 0;
        margin-top: -17px;
        border-radius: 999px;
        background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
        box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.22) inset, 0 6px 16px -6px rgba(234, 88, 12, 0.35);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
        opacity: 0;
        z-index: 0;
        pointer-events: none;
    }
    .royal-nav-indicator.is-ready { opacity: 1; }
}

@media (min-width: 992px) and (max-width: 1239px) {
    .royal-brand-text { display: none !important; }
    .royal-nav-list > li > a.royal-nav-link { padding: 8px 9px !important; font-size: 12.5px; }
}
@media (min-width: 992px) and (max-width: 1099px) {
    .royal-topbar-item.hidden-sm, .royal-topbar-left .royal-topbar-item:nth-child(3) { display: none; }
}
@media (max-width: 991px) {
    .royal-navbar .container-fluid > .row { gap: 10px; }
    .royal-nav-indicator { display: none; }
    .royal-nav-list > li.royal-nav-cta > a.btn-gold { animation: none; }
}

@keyframes royalCtaPulse {
    0%, 100% { box-shadow: 0 6px 18px -3px rgba(234, 88, 12, 0.42), 0 0 0 0 rgba(249, 115, 22, 0.45); }
    55% { box-shadow: 0 6px 18px -3px rgba(234, 88, 12, 0.42), 0 0 0 11px rgba(249, 115, 22, 0); }
}

/* ==========================================================================
   16. SIGNATURE MOTION SYSTEM (2026)
   ========================================================================== */
/* 16.1 Scroll progress beam */
.royal-scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #F59E0B, #F97316 45%, #EA580C);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.8);
    z-index: 3000;
    pointer-events: none;
}

/* 16.2 Rotating Islamic eight-point star ornament (Rub el Hizb) */
.royal-ornament {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    color: #FDBA74;
    opacity: 0.13;
}
.royal-ornament svg { width: 100%; height: 100%; display: block; animation: royalSpin 70s linear infinite; }
.royal-ornament.is-reverse svg { animation-direction: reverse; animation-duration: 95s; }
.royal-ornament-hero { right: -120px; top: 50%; width: 560px; height: 560px; margin-top: -280px; }
.royal-ornament-hero.second { right: auto; left: -170px; top: auto; bottom: -150px; margin-top: 0; width: 380px; height: 380px; opacity: 0.09; }
.royal-ornament-banner { right: 4%; top: 50%; width: 260px; height: 260px; margin-top: -130px; opacity: 0.16; }
.royal-hero-section, .royal-page-banner { position: relative; overflow: hidden; }
@keyframes royalSpin { to { transform: rotate(360deg); } }

/* 16.3 Hero choreography: staggered rise + aurora drift */
.owl-item.active .royal-hero-badge,
.owl-item.active .royal-hero-title,
.owl-item.active .royal-hero-lead,
.owl-item.active .royal-hero-actions,
.owl-item.active .royal-hero-glass-panel {
    animation: royalRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.owl-item.active .royal-hero-badge { animation-delay: 0.10s; }
.owl-item.active .royal-hero-title { animation-delay: 0.22s; }
.owl-item.active .royal-hero-lead { animation-delay: 0.36s; }
.owl-item.active .royal-hero-actions { animation-delay: 0.50s; }
.owl-item.active .royal-hero-glass-panel { animation-name: royalSlideLeft; animation-delay: 0.45s; }
.royal-hero-title .royal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(26px) rotateX(-40deg);
    transform-origin: 50% 100%;
    animation: royalWord 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.owl-item.cloned .royal-hero-title .royal-word, .owl-item:not(.active) .royal-hero-title .royal-word { animation: none; opacity: 1; transform: none; }
.royal-hero-badge-dot { animation: royalBlink 1.8s ease-in-out infinite; }
.royal-hero-slide { position: relative; }
.royal-hero-slide::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(40% 35% at 20% 30%, rgba(249, 115, 22, 0.22), transparent 70%),
        radial-gradient(35% 30% at 80% 70%, rgba(245, 158, 11, 0.16), transparent 70%);
    animation: royalAurora 14s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
.royal-hero-slide > * { position: relative; z-index: 2; }
@keyframes royalRise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes royalSlideLeft { from { opacity: 0; transform: translateX(60px) scale(0.97); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes royalWord { to { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes royalBlink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.5); } }
@keyframes royalAurora { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.12); } }

/* 16.4 Spotlight cards that follow the cursor */
.royal-spotlight {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(249, 115, 22, 0.16), transparent 65%);
    z-index: 0;
}
.royal-stat-card, .royal-card { position: relative; }
.royal-has-spotlight:hover > .royal-spotlight { opacity: 1; }
.royal-tilt { transition: transform 0.18s ease-out, box-shadow 0.35s; will-change: transform; }

/* 16.5 Soft ring cursor */
.royal-cursor-ring {
    position: fixed;
    left: 0; top: 0;
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border: 1.5px solid rgba(249, 115, 22, 0.75);
    border-radius: 50%;
    pointer-events: none;
    z-index: 4000;
    opacity: 0;
    transition: width 0.3s, height 0.3s, margin 0.3s, background 0.3s, opacity 0.3s, border-color 0.3s;
    mix-blend-mode: multiply;
}
.royal-cursor-ring.is-visible { opacity: 1; }
.royal-cursor-ring.is-active {
    width: 62px; height: 62px; margin: -31px 0 0 -31px;
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(234, 88, 12, 0.9);
}
.royal-cursor-dot {
    position: fixed; left: 0; top: 0;
    width: 6px; height: 6px; margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #EA580C;
    pointer-events: none;
    z-index: 4001;
    opacity: 0;
    transition: opacity 0.3s;
}
.royal-cursor-dot.is-visible { opacity: 1; }
@media (hover: none), (max-width: 991px) { .royal-cursor-ring, .royal-cursor-dot { display: none !important; } }

/* 16.6 Page curtain transition */
.royal-curtain {
    position: fixed;
    inset: 0;
    z-index: 5000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #090D16 55%, #1E293B 100%);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.royal-curtain::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.35), transparent 55%);
}
.royal-curtain .royal-ornament { position: relative; opacity: 0.9; width: 96px; height: 96px; color: #F97316; }
.royal-curtain .royal-ornament svg { animation-duration: 3s; }
.royal-curtain.is-covering { transform: translateY(0); pointer-events: all; }
body.royal-enter { animation: royalPageIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes royalPageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 16.7 Section badge shimmer + divider draw */
.royal-badge { position: relative; overflow: hidden; }
.royal-badge::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: royalShine 4.5s ease-in-out infinite;
}
@keyframes royalShine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.royal-stat-icon { animation: royalFloat 4.5s ease-in-out infinite; }
.royal-stat-card:nth-child(2) .royal-stat-icon { animation-delay: -1.1s; }
.royal-stat-card:nth-child(3) .royal-stat-icon { animation-delay: -2.2s; }
.royal-stat-card:nth-child(4) .royal-stat-icon { animation-delay: -3.3s; }
@keyframes royalFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
    .royal-ornament svg, .royal-hero-slide::after, .royal-badge::after, .royal-stat-icon,
    .royal-nav-list > li.royal-nav-cta > a.btn-gold, .royal-hero-badge-dot { animation: none !important; }
    .owl-item.active .royal-hero-badge, .owl-item.active .royal-hero-title, .owl-item.active .royal-hero-lead,
    .owl-item.active .royal-hero-actions, .owl-item.active .royal-hero-glass-panel { animation: none !important; }
    .royal-hero-title .royal-word { animation: none !important; opacity: 1; transform: none; }
    .royal-cursor-ring, .royal-cursor-dot, .royal-curtain, .royal-scroll-progress { display: none !important; }
}

/* ==========================================================================
   17. MOBILE PWA BOTTOM NAVIGATION BAR & RESPONSIVE POLISH (2026 Edition)
   ========================================================================== */
.royal-mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body.royal-theme {
        padding-bottom: 72px !important;
        overflow-x: hidden !important;
    }

    /* Floating widgets offset above bottom nav */
    .royal-whatsapp-widget {
        bottom: 78px !important;
        right: 16px !important;
    }

    .royal-back-to-top {
        bottom: 78px !important;
        left: 16px !important;
    }

    /* Mobile App Bottom Navigation Bar */
    .royal-mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(9, 13, 22, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
        z-index: 99990;
        align-items: center;
        justify-content: space-around;
        padding: 0 4px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .royal-mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: #94A3B8;
        text-decoration: none !important;
        font-size: 10.5px;
        font-weight: 600;
        gap: 3px;
        transition: all 0.18s ease;
    }

    .royal-mobile-nav-item i {
        font-size: 18px;
        line-height: 1;
        transition: transform 0.18s ease;
    }

    .royal-mobile-nav-item:hover,
    .royal-mobile-nav-item:focus {
        color: #FDBA74;
    }

    .royal-mobile-nav-item.is-active {
        color: #F97316;
    }

    .royal-mobile-nav-item.is-active i {
        transform: translateY(-2px);
    }

    /* Elevated Center PPDB Pill */
    .royal-mobile-nav-item.is-ppdb-pill {
        position: relative;
        top: -12px;
    }

    .royal-mobile-nav-item.is-ppdb-pill .ppdb-circle-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
        color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 18px rgba(234, 88, 12, 0.55), 0 0 0 3px #090D16;
        transition: transform 0.18s ease;
    }

    .royal-mobile-nav-item.is-ppdb-pill:active .ppdb-circle-btn {
        transform: scale(0.92);
    }

    .royal-mobile-nav-item.is-ppdb-pill .ppdb-circle-btn i {
        font-size: 20px;
        color: #FFFFFF;
    }

    .royal-mobile-nav-item.is-ppdb-pill span {
        margin-top: 2px;
        color: #FDBA74;
        font-weight: 700;
        font-size: 10px;
    }

    /* Mobile Container & Section Spacing Polish */
    .container, .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .royal-section {
        padding: 52px 0 44px !important;
    }

    /* Pre-Footer CTA on mobile */
    .royal-footer .container-fluid > div {
        padding: 24px 20px !important;
        border-radius: 18px !important;
    }

    .royal-footer .container-fluid > div > div:last-child {
        width: 100%;
        flex-direction: column;
    }

    .royal-footer .container-fluid > div > div:last-child a {
        width: 100%;
        justify-content: center;
    }

    /* Mobile PPDB Form Input Polish */
    .form-control {
        font-size: 15px !important;
        min-height: 46px !important;
        border-radius: 12px !important;
    }

    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
