/* === Dalil English Site: Hollywood Glassmorphism Theme === */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --dalil-bg: #051923;
    --dalil-dark: #07202c;
    --dalil-teal: #1be1c7;
    --dalil-teal-glow: rgba(27, 225, 199, 0.4);
    --glass-bg: rgba(11, 36, 48, 0.65);
    --glass-border: rgba(27, 225, 199, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--dalil-bg) !important;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(27, 225, 199, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(27, 225, 199, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: #eaf4f8;
    margin: 0;
}

/* === COMPREHENSIVE LTR TEXT ALIGNMENT FOR ENGLISH SITE === */
/* Force left-to-right alignment for all text content */
html[dir="ltr"] p,
html[dir="ltr"] div,
html[dir="ltr"] span,
html[dir="ltr"] article,
html[dir="ltr"] section,
html[dir="ltr"] li,
html[dir="ltr"] td,
html[dir="ltr"] th,
html[dir="ltr"] label,
html[dir="ltr"] .entry-content,
html[dir="ltr"] .entry-content p,
html[dir="ltr"] .entry-content li,
html[dir="ltr"] .content-card,
html[dir="ltr"] .content-card p,
html[dir="ltr"] .content-card li,
html[dir="ltr"] .q-text,
html[dir="ltr"] .opt-txt,
html[dir="ltr"] .txt,
html[dir="ltr"] .expl,
html[dir="ltr"] .option .txt,
html[dir="ltr"] .des-h-title,
html[dir="ltr"] .tile-title {
    direction: ltr !important;
    text-align: left !important;
}

/* Only UI/hero headings are centered — NOT content page headings */
html[dir="ltr"] h1,
html[dir="ltr"] .hero-title-main,
html[dir="ltr"] .des-hero-title,
html[dir="ltr"] .page-title-en,
html[dir="ltr"] .section-label,
html[dir="ltr"] .des-hero-container {
    text-align: center !important;
}

/* Content page headings (h2-h4) respect WordPress editor alignment */
html[dir="ltr"] main h2,
html[dir="ltr"] main h3,
html[dir="ltr"] main h4,
html[dir="ltr"] main h5,
html[dir="ltr"] main h6 {
    text-align: left !important;
}

/* === CONTENT PAGE (CREAM BACKGROUND) — DARK TEXT OVERRIDE === */
/* Overrides the global light-colored text since this page has a light background */
.des-page-main,
.des-page-main p,
.des-page-main li,
.des-page-main span,
.des-page-main td,
.des-page-main th,
.des-page-main small {
    color: #2d3748 !important;
}

.des-page-main h1,
.des-page-main h2,
.des-page-main h3 {
    color: #1e3a8a !important;
}

.des-page-main h4,
.des-page-main h5,
.des-page-main h6 {
    color: #334155 !important;
}

.des-page-main strong {
    color: #1a202c !important;
}

.des-page-main a {
    color: #0284c7 !important;
}

.des-page-main hr {
    border-color: #cbd5e1 !important;
    opacity: 0.6;
}

/* ======================================================
   CONTACT PAGE — Luxury Academic Suite (Cream Background)
   Palette: Charcoal · Bronze · Amber · Ivory
   ====================================================== */

/* ── CSS Variables for Contact Page ── */
:root {
    --cp-cream:      #fdf8ed;
    --cp-ivory:      #f5eedc;
    --cp-bronze:     #8b5e3c;
    --cp-bronze-lt:  #b07d54;
    --cp-amber:      #d97706;
    --cp-amber-lt:   #f59e0b;
    --cp-amber-glow: rgba(217, 119, 6, 0.18);
    --cp-charcoal:   #2d2d2d;
    --cp-slate:      #4a5568;
    --cp-muted:      #718096;
    --cp-card-bg:    rgba(255, 252, 245, 0.72);
    --cp-card-border:rgba(139, 94, 60, 0.18);
    --cp-shadow:     0 8px 32px rgba(80, 50, 20, 0.12);
}

/* ── Beta Banner ── */
.dalil-premium-banner {
    background: linear-gradient(100deg, #2d1a07 0%, #3d2410 50%, #1e1635 100%) !important;
    border: 1px solid rgba(217, 119, 6, 0.35) !important;
    border-left: 5px solid var(--cp-amber) !important;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(80, 40, 0, 0.18), inset 0 1px 0 rgba(255, 200, 80, 0.08);
    animation: bannerPulse 4s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(80, 40, 0, 0.18), inset 0 1px 0 rgba(255, 200, 80, 0.08); }
    50%       { box-shadow: 0 8px 36px rgba(217, 119, 6, 0.28), inset 0 1px 0 rgba(255, 200, 80, 0.14); }
}

.dalil-premium-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.dalil-premium-banner p {
    color: #fde68a !important;
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1.7 !important;
    position: relative;
    z-index: 1;
}

.dalil-premium-banner strong {
    color: #fbbf24 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 12px;
}

/* ── Contact Hero ── */
.dalil-contact-hero-v2 {
    background: linear-gradient(135deg, #fffaf0 0%, #fef3c7 60%, #fde8c0 100%) !important;
    border: 1px solid rgba(180, 130, 60, 0.25) !important;
    border-top: 4px solid var(--cp-amber) !important;
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 32px;
    box-shadow: 0 12px 40px rgba(100, 60, 10, 0.1), inset 0 -1px 0 rgba(180, 130, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.dalil-contact-hero-v2::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.dalil-contact-hero-v2 p {
    color: var(--cp-slate) !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

.dalil-contact-hero-v2 strong {
    color: var(--cp-bronze) !important;
    font-size: 1.08em;
}

/* ── Section Headings ── */
.dalil-contact-heading {
    color: var(--cp-charcoal) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.3px;
    margin-bottom: 6px !important;
    position: relative;
    padding-bottom: 10px;
}

.dalil-contact-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--cp-amber), var(--cp-bronze));
    border-radius: 4px;
}

.dalil-contact-subtext {
    color: var(--cp-muted) !important;
    font-size: 13.5px !important;
    margin-bottom: 22px !important;
}

/* ── Premium Tile Grid ── */
.dalil-grid-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.dalil-premium-tile {
    background: var(--cp-card-bg) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid var(--cp-card-border) !important;
    border-radius: 18px;
    padding: 26px 22px;
    position: relative;
    transition: all 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--cp-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.dalil-premium-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cp-amber), var(--cp-bronze-lt), var(--cp-amber));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.dalil-premium-tile:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(217, 119, 6, 0.35) !important;
    box-shadow: 0 20px 48px rgba(100, 60, 10, 0.16), var(--cp-amber-glow) 0 0 0 3px;
    background: #fffdf7 !important;
}

.dalil-premium-tile:hover::before {
    opacity: 1;
}

.dalil-tile-icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.14), rgba(139, 94, 60, 0.06));
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.1);
    transition: transform 0.3s ease;
}

.dalil-premium-tile:hover .dalil-tile-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}

.dalil-premium-tile-title {
    color: var(--cp-charcoal) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.3px;
}

.dalil-premium-tile-text {
    color: var(--cp-slate) !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* ── Institutional Tile Variant ── */
.tile-institutional {
    border-bottom: 3px solid #16a34a !important;
}

.tile-institutional .dalil-tile-icon-wrap {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.14), rgba(22, 163, 74, 0.04));
    border-color: rgba(22, 163, 74, 0.3);
}

.tile-institutional::before {
    background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e) !important;
}

.tile-institutional:hover {
    border-color: rgba(22, 163, 74, 0.4) !important;
    box-shadow: 0 20px 48px rgba(10, 50, 20, 0.12), rgba(34, 197, 94, 0.15) 0 0 0 3px;
}

/* ── FAQ Accordion ── */
.dalil-faq-section {
    margin-bottom: 44px;
}

.dalil-faq-card {
    background: rgba(255, 252, 245, 0.85) !important;
    border: 1px solid rgba(180, 130, 60, 0.18) !important;
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.28s ease;
    box-shadow: 0 3px 14px rgba(80, 50, 20, 0.07);
    overflow: hidden;
}

.dalil-faq-card:hover {
    background: #fffdf7 !important;
    border-color: rgba(217, 119, 6, 0.3) !important;
    box-shadow: 0 6px 22px rgba(100, 60, 10, 0.12);
}

.dalil-faq-card summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--cp-bronze) !important;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: color 0.2s;
}

.dalil-faq-card summary:hover {
    color: var(--cp-amber) !important;
}

.dalil-faq-card summary::-webkit-details-marker { display: none; }

.dalil-faq-card summary::after {
    content: '+';
    font-size: 22px;
    color: var(--cp-amber);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    margin-left: 10px;
    font-weight: 400;
    line-height: 1;
}

.dalil-faq-card[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.dalil-faq-card[open] {
    border-color: rgba(217, 119, 6, 0.3) !important;
    background: #fffdf7 !important;
}

.dalil-faq-content {
    padding: 4px 22px 22px;
    color: var(--cp-slate) !important;
    font-size: 13.5px;
    line-height: 1.75;
    border-top: 1px dashed rgba(180, 130, 60, 0.2);
    margin: 0 22px;
    padding: 14px 0 20px;
}

.dalil-faq-content p {
    color: var(--cp-slate) !important;
    margin-bottom: 10px !important;
}

.dalil-faq-content p:last-child {
    margin-bottom: 0 !important;
}

/* ── Elegant Divider ── */
.dalil-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 130, 60, 0.35), transparent);
    margin: 44px 0;
    border: 0;
    position: relative;
}

.dalil-divider::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--cp-amber-lt);
    background: var(--cp-cream);
    padding: 0 10px;
    font-size: 12px;
    line-height: 1;
}

/* ── Contact Prompt ── */
.dalil-contact-prompt {
    background: linear-gradient(135deg, #fffaf2 0%, #fef3c7 100%);
    border: 1px solid rgba(180, 130, 60, 0.2);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(100, 60, 10, 0.08);
}

.dalil-contact-prompt h4 {
    color: var(--cp-charcoal) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
}

.dalil-contact-prompt p {
    color: var(--cp-slate) !important;
    font-size: 13.5px !important;
    margin: 0 0 16px !important;
    line-height: 1.65 !important;
}

/* ── Pill Tags ── */
.dalil-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dalil-pill {
    display: inline-block;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: var(--cp-bronze) !important;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 4px 13px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    cursor: default;
}

.dalil-pill:hover {
    background: var(--cp-amber);
    border-color: var(--cp-amber);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

/* ── Form Wrapper ── */
.dalil-form-wrap {
    background: rgba(255, 252, 245, 0.6);
    border: 1px solid rgba(180, 130, 60, 0.15);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 36px;
    box-shadow: 0 4px 18px rgba(80, 50, 20, 0.08);
}

/* ── WhatsApp Widget ── */
.dalil-wa-widget {
    background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%) !important;
    border: 1px solid rgba(22, 163, 74, 0.28) !important;
    border-radius: 18px;
    padding: 24px 26px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 28px rgba(10, 60, 20, 0.1);
    transition: box-shadow 0.3s ease;
}

.dalil-wa-widget:hover {
    box-shadow: 0 12px 36px rgba(22, 163, 74, 0.18);
}

.dalil-wa-icon {
    font-size: 42px;
    filter: drop-shadow(0 2px 8px rgba(22, 163, 74, 0.3));
    flex-shrink: 0;
}

.dalil-wa-info h5 {
    color: #15803d !important;
    margin: 0 0 5px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.dalil-wa-info p {
    color: #4d7c5f !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.dalil-wa-link {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    margin-left: auto;
    transition: all 0.28s ease;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.dalil-wa-link:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
    transform: translateY(-2px) scale(1.03);
}

/* ── Mobile Adjustments ── */
@media (max-width: 640px) {
    .dalil-wa-widget {
        flex-direction: column;
        text-align: center;
    }

    .dalil-wa-link {
        margin: 10px auto 0;
    }

    .dalil-grid-container {
        grid-template-columns: 1fr;
    }

    .dalil-contact-hero-v2 {
        padding: 22px 18px;
    }

    .dalil-faq-card summary {
        font-size: 13px;
        padding: 15px 16px;
    }

    .dalil-contact-heading::after {
        width: 36px;
    }
}


/* Buttons and interactive elements should remain centered */
html[dir="ltr"] .btn,
html[dir="ltr"] button,
html[dir="ltr"] .search-submit {
    text-align: center !important;
}

/* === GLOW EFFECTS === */
.glow-text {
    text-shadow: 0 0 10px var(--dalil-teal-glow);
}

/* === HEADER RESTYLING === */
.header {
    background: rgba(5, 25, 35, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 8px 0 !important;
}

.nav .btn {
    font-family: 'Outfit', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
}

.nav .btn:hover {
    background: var(--dalil-teal-glow) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.nav .btn.btn-turq {
    background: var(--dalil-teal) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--dalil-teal-glow) !important;
}

.nav .btn.btn-turq:hover {
    box-shadow: 0 0 25px var(--dalil-teal-glow) !important;
}

/* === HERO SECTION === */
.hero-wrapper {
    text-align: center;
    padding: 15px 20px 10px;
    position: relative;
    overflow: hidden;
}

.hero-title-main {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #1be1c7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -1px;
    filter: drop-shadow(0 0 15px rgba(27, 225, 199, 0.3));
}

.hero-sub {
    font-size: 1.2rem;
    color: #8daab6;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

/* === UNIFIED HERO TITLES === */
.des-hero-container {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 40px;
    position: relative;
}

.des-hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #1be1c7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(27, 225, 199, 0.3);
    line-height: 1.2;
}

.des-hero-line {
    width: 100px;
    height: 4px;
    background: #1be1c7;
    margin: 15px auto 0;
    border-radius: 50px;
    box-shadow: 0 0 15px #1be1c7;
}

@media (max-width: 768px) {
    .des-hero-container {
        margin-bottom: 30px;
        margin-top: 20px;
    }

    .des-hero-title {
        font-size: 1.8rem !important;
        letter-spacing: 1px;
    }

    .des-hero-line {
        width: 60px;
        height: 3px;
    }
}

/* === SEARCH BAR === */
.des-search-wrap {
    max-width: 650px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 10;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--dalil-teal);
    box-shadow: 0 15px 50px rgba(27, 225, 199, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.search-field {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 15px 25px !important;
    font-size: 1.1rem !important;
    font-family: 'Outfit', sans-serif !important;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-field:focus {
    outline: none !important;
}

.search-submit {
    background: var(--dalil-teal) !important;
    color: #051923 !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 0 35px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--dalil-teal-glow);
}

/* === HOLLYWOOD GRID & TILES (GLOBAL) === */
.des-hollywood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding-bottom: 50px;
}

.des-h-tile {
    display: flex !important;
    align-items: center !important;
    /* Parent Theme Exact Colors (Manual Selection) */
    background: linear-gradient(180deg, #0b001e 0%, #005256 100%) !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    position: relative !important;
    overflow: hidden !important;
    height: 100% !important;
    min-height: 180px !important;
    animation: glowLoop 3.8s ease-in-out infinite !important;
}

.des-h-tile:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(27, 225, 199, 0.1) !important;
    border-color: rgba(27, 225, 199, 0.5) !important;
}

.des-h-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.des-h-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.des-h-emoji {
    font-size: 24px;
}

.des-h-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.des-h-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.25;
    /* Allow Wrapping */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word !important;
}

.des-h-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Hollywood Tile Interactive Elements */
.des-h-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    margin-right: 15px;
    line-height: 1;
    transition: color 0.3s;
    flex-shrink: 0;
}

.des-h-tile:hover .des-h-num {
    color: rgba(27, 225, 199, 0.2);
}

.des-h-arrow {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #1be1c7;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 15px;
}

.des-h-tile:hover .des-h-arrow {
    opacity: 1;
    transform: translateX(0);
}

.des-h-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #1be1c7;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px #1be1c7;
}

.des-h-tile:hover::after {
    width: 100%;
}

/* === PREMIUM MCQ CARDS (GLOBAL) === */
.des-mcq-card {
    background: rgba(11, 36, 48, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(27, 225, 199, 0.3) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    margin: 25px auto !important;
    max-width: 850px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(27, 225, 199, 0.2) !important;
    position: relative;
    overflow: hidden;
    animation: desFadeInUp 0.5s ease-out;
}

@keyframes desFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .des-hollywood-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }

    .des-h-tile {
        min-height: 100px !important;
        padding: 15px !important;
    }

    .des-h-title {
        font-size: 1.1rem;
    }

    .des-mcq-card {
        padding: 12px !important;
        border-radius: 14px !important;
        margin: 15px auto !important;
    }
}

/* === TILES / CARDS === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.tile {
    display: flex;
    flex-direction: column;
    /* Icon Top, Text Bottom */
    align-items: center;
    /* Parent Theme Exact Colors (Manual Selection) */
    background: linear-gradient(180deg, #0b001e 0%, #005256 100%) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
    padding: 30px 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: glowLoop 3.8s ease-in-out infinite;
}

.tile:hover {
    transform: translateY(-8px);
    border-color: rgba(27, 225, 199, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(27, 225, 199, 0.05);
}

/* Card Glow Element */
.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dalil-teal), transparent);
    opacity: 0;
    transition: 0.4s;
}

.tile:hover::before {
    opacity: 1;
}

.tile .emoji {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(27, 225, 199, 0.2));
    transition: 0.4s;
}

.tile:hover .emoji {
    transform: scale(1.1) rotate(5deg);
}

.tile .title-wrap {
    text-align: center;
    width: 100%;
}

.tile .title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #eaf4f8;
    line-height: 1.3;
    transition: 0.3s;
    /* Allow Wrapping */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word !important;
}

.tile:hover .title {
    color: var(--dalil-teal);
    text-shadow: 0 0 8px var(--dalil-teal-glow);
}

.tile .subtitle {
    font-size: 0.9rem;
    color: #8daab6;
    margin-top: 5px;
}

/* === SECTION TITLES === */
.section-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dalil-teal);
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0.8;
    display: inline-block;
}

/* === HARMONIZED CONTAINER === */
.des-main-container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .des-main-container {
        padding: 0 10px !important;
    }
}

/* === ONCALL CARD === */
.oncall-card {
    background: linear-gradient(135deg, #0b3d35, #061f1c);
    border: 1px solid #1be1c7;
}

/* === RESPONSIVE === */
/* Mobile Header - Unified Single Line Strip */
@media (max-width: 768px) {
    .header {
        padding: 0 !important;
        overflow: hidden;
    }

    .header .container.inner {
        padding: 4px 0 !important;
        /* Minimal vertical padding */
        width: 100%;
        max-width: 100%;
    }

    .nav {
        display: flex;
        flex-wrap: nowrap !important;
        /* STRICTLY NO WRAP */
        align-items: center;
        gap: 6px;
        /* Comfortable gap */
        overflow-x: auto;
        /* Enable Scroll */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar */
        padding: 0 10px;
        /* Side padding for scroll area */
        width: 100%;
        box-sizing: border-box;
    }

    /* Hide scrollbar */
    .nav::-webkit-scrollbar {
        display: none;
    }

    /* All Header Buttons */
    .nav .btn {
        flex-shrink: 0;
        /* Never shrink */
        white-space: nowrap !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        height: auto;
        line-height: normal;
        margin: 0;
    }

    /* Specific styling for the Lock icon button */
    .nav .btn-outline {
        padding: 6px 12px !important;
        background: rgba(255, 255, 255, 0.1);
        font-size: 0.8rem !important;
        /* Slightly larger emoji */
    }

    .lock-slot {
        display: none;
        /* Should be empty now, but hide just in case */
    }
}

@media (max-width: 600px) {
    .hero-title-main {
        font-size: 2.2rem;
    }

    .search-form {
        margin: 0 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* Login Message on Mobile */
    .login-to-search-msg {
        margin: 15px 10px !important;
        max-width: 100% !important;
    }

    .login-to-search-msg>div {
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .login-to-search-msg p {
        font-size: 0.95rem !important;
    }

    .login-to-search-msg a:hover {
        color: #fff !important;
        border-bottom-color: #fff !important;
    }
}

/* === 3D PRISM ANIMATION === */
:root {
    --prism-h: 45px;
    --prism-depth: 22.5px;
    --prism-bg: linear-gradient(135deg, #0b2430 0%, #08212b 100%);
    --prism-border: rgba(27, 225, 199, 0.3);
}

.prism-scene {
    width: 100%;
    max-width: 800px;
    height: var(--prism-h);
    margin: 20px auto;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.prism-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: translateZ(calc(var(--prism-depth) * -1));
    animation: rotatePrism 20s cubic-bezier(0.6, 0, 0.4, 1) infinite;
    box-shadow: 0 0 20px rgba(27, 225, 199, 0.2),
        0 0 40px rgba(27, 225, 199, 0.1);
}

.prism-face {
    position: absolute;
    width: 100%;
    height: var(--prism-h);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #1be1c7;
    background: var(--prism-bg);
    border: 1px solid var(--prism-border);
    box-sizing: border-box;
    backface-visibility: hidden !important;
    padding: 0 15px;
    box-shadow: inset 0 0 20px rgba(27, 225, 199, 0.15);
    text-shadow: 0 0 8px rgba(27, 225, 199, 0.5);
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.prism-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

.prism-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    transform: skewX(-25deg);
    animation: shineSweep 10s infinite linear;
    mix-blend-mode: overlay;
}

@keyframes shineSweep {

    0%,
    30% {
        left: -100%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.prism-face.face-front {
    transform: rotateX(0deg) translateZ(var(--prism-depth));
}

.prism-face.face-top {
    transform: rotateX(90deg) translateZ(var(--prism-depth));
}

.prism-face.face-back {
    transform: rotateX(180deg) translateZ(var(--prism-depth));
}

.prism-face.face-bottom {
    transform: rotateX(270deg) translateZ(var(--prism-depth));
}

@keyframes rotatePrism {

    0%,
    20% {
        transform: translateZ(calc(var(--prism-depth) * -1)) rotateX(0deg);
    }

    25%,
    45% {
        transform: translateZ(calc(var(--prism-depth) * -1)) rotateX(-90deg);
    }

    50%,
    70% {
        transform: translateZ(calc(var(--prism-depth) * -1)) rotateX(-180deg);
    }

    75%,
    95% {
        transform: translateZ(calc(var(--prism-depth) * -1)) rotateX(-270deg);
    }

    100% {
        transform: translateZ(calc(var(--prism-depth) * -1)) rotateX(-360deg);
    }
}

/* Glow Loop Animation for Tiles - Parent Site Sync */
@keyframes glowLoop {
    0% {
        box-shadow: 0 0 0 rgba(33, 200, 255, .0), 0 14px 32px rgba(0, 0, 0, .25)
    }

    50% {
        box-shadow: 0 0 18px rgba(33, 200, 255, .25), 0 14px 32px rgba(0, 0, 0, .25)
    }

    100% {
        box-shadow: 0 0 0 rgba(33, 200, 255, .0), 0 14px 32px rgba(0, 0, 0, .25)
    }
}

@media (max-width: 768px) {
    :root {
        --prism-h: 50px;
        --prism-depth: 25px;
    }

    .prism-face {
        font-size: 18px;
        white-space: normal;
        line-height: 1.1;
    }
}

/* === MCQ SECTION STYLING === */
/* Academic, Professional, Large Readable Fonts */

.page-title-en {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dalil-teal);
    text-align: center;
    margin: 30px 0;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 20px rgba(27, 225, 199, 0.3);
    letter-spacing: -0.5px;
}

/* Question Card Container */
.q-card {
    background: rgba(11, 36, 48, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(27, 225, 199, 0.15);
    border-radius: 24px;
    padding: 35px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.q-card:hover {
    border-color: rgba(27, 225, 199, 0.35);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

/* Question Text - LARGE & READABLE */
.q-text {
    font-size: 1.45rem !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    margin-bottom: 30px !important;
    font-family: 'Outfit', sans-serif !important;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--dalil-teal);
    border-radius: 12px;
}

/* Options Styling */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.opt {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 25px;
    font-size: 1.45rem !important;
    line-height: 1.5;
    color: #eaf4f8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.opt:hover {
    background: rgba(27, 225, 199, 0.1);
    border-color: rgba(27, 225, 199, 0.4);
    transform: translateX(8px);
}

.opt.selected {
    background: rgba(27, 225, 199, 0.15);
    border-color: var(--dalil-teal);
    color: #fff;
    font-weight: 600;
}

.opt.correct {
    background: rgba(46, 213, 115, 0.15);
    border-color: #2ed573;
    color: #fff;
}

.opt.wrong {
    background: rgba(235, 77, 75, 0.15);
    border-color: #eb4d4b;
    color: #fff;
}

/* Front Face */
.des-flip-front {
    background: linear-gradient(180deg, #0f2d3c 0%, #0b2230 100%);
    /* Parent Theme Exact Colors */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.des-flip-front .icon-large {
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation: floatIcon 3s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Constrain Image Size explicitly */
.des-flip-front .icon-large img,
.des-flip-front img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    display: block;
}

.des-flip-front .flip-title {
    font-size: 1.5rem;
    /* Slightly smaller to fit */
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

/* Explanation Text - LARGE & CLEAR */
.expl {
    background: linear-gradient(135deg, rgba(27, 225, 199, 0.08), rgba(11, 36, 48, 0.5));
    border: 1px solid rgba(27, 225, 199, 0.25);
    border-radius: 18px;
    padding: 25px 30px;
    margin-top: 30px;
    font-size: 1.05rem !important;
    /* User requested smaller font on computer */
    line-height: 1.6 !important;
    color: #d4f1f4 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.expl::before {
    content: "✓ Explanation";
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dalil-teal);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Score & Progress */
.topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.score,
.answered {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dalil-teal);
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--dalil-teal), #00d4aa);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px var(--dalil-teal-glow);
}

/* Position Label */
.pos-label {
    text-align: center;
    font-size: 1.1rem;
    color: #8daab6;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Navigation Buttons */
.nav-qs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-turq {
    background: var(--dalil-teal);
    color: #051923;
    box-shadow: 0 5px 20px rgba(27, 225, 199, 0.3);
}

.btn-turq:hover {
    box-shadow: 0 8px 30px rgba(27, 225, 199, 0.5);
    transform: translateY(-3px);
}

/* Control Tools */
.des-mcq-controls,
.mcq-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-tool {
    padding: 10px 20px;
    background: rgba(11, 36, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #b7cad0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-tool:hover {
    background: rgba(27, 225, 199, 0.1);
    border-color: var(--dalil-teal);
    color: var(--dalil-teal);
    transform: translateY(-2px);
}

/* Content Card (Medical Sections) */
.content-card {
    background: rgba(11, 36, 48, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(27, 225, 199, 0.12);
    border-radius: 20px;
    padding: 35px;
    margin: 25px 0;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #eaf4f8;
}

.content-card h2,
.content-card h3 {
    color: var(--dalil-teal);
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.content-card h2 {
    font-size: 2rem;
}

.content-card h3 {
    font-size: 1.6rem;
}

.content-card p {
    margin-bottom: 18px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.content-card ul,
.content-card ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-card li {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .page-title-en {
        font-size: 1.8rem;
        margin: 20px 10px;
    }

    .q-card {
        padding: 25px 20px;
        margin: 20px 10px;
        border-radius: 18px;
    }

    .q-text {
        font-size: 1.3rem !important;
        padding: 15px;
        line-height: 1.6 !important;
    }

    .opt {
        font-size: 1.15rem !important;
        padding: 15px 20px;
    }

    .expl {
        font-size: 1.2rem !important;
        padding: 20px;
        line-height: 1.7 !important;
    }

    .topline {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .nav-qs {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .content-card {
        padding: 25px 20px;
        margin: 20px 10px;
    }

    .content-card h2 {
        font-size: 1.6rem;
    }

    .content-card h3 {
        font-size: 1.3rem;
    }

    .content-card p,
    .content-card li {
        font-size: 1.1rem;
    }
}

/* =========================================
   14. Subscription Gate LTR Overrides
   ========================================= */
.dalil-gate-container {
    direction: ltr !important;
    text-align: left !important;
    max-width: 600px;
    margin: 30px auto;
}

.dalil-gate-card {
    text-align: left !important;
}

.dalil-gate-title,
.dalil-gate-subtitle {
    text-align: center !important;
    font-family: 'Outfit', sans-serif !important;
}

.dalil-input {
    text-align: left !important;
    direction: ltr !important;
    font-family: 'Outfit', sans-serif !important;
}

.dalil-code-input {
    text-align: center !important;
    letter-spacing: 12px !important;
}

.dalil-message {
    text-align: left !important;
    direction: ltr !important;
}

.dalil-email-display,
.dalil-verified-email {
    direction: ltr !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Ensure buttons look good */
.dalil-btn {
    font-family: 'Outfit', sans-serif !important;
}

/* Payment Section */
.dalil-payment-section h3 {
    font-family: 'Outfit', sans-serif !important;
}

/* Fix floating button if needed */
.des-fab-btn {
    direction: ltr !important;
}


/* === HOLLYWOOD MCQ TILES (Glassmorphism) === */

/* Grid Layout */
.des-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding-bottom: 50px;
}

/* Tile Base */
.des-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    border-radius: 24px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Parent Theme Exact Colors (Manual Selection) */
    background: linear-gradient(180deg, #0b001e 0%, #005256 100%) !important;
    animation: glowLoop 3.8s ease-in-out infinite;
}

/* Background Layer: Hidden to match calculator tile simplicity */
.des-tile .tile-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* Keep hidden on hover */
.des-tile:hover .tile-bg {
    opacity: 0;
}

/* Removed white overlay to match calculator tile colors exactly */
/* This overlay was making the colors look washed out */

/* Hover Transform */
.des-tile:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(27, 225, 199, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(27, 225, 199, 0.15);
}

/* Icon (Floating Top Right) */
.des-tile .tile-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(5px);
    transition: all 0.4s;
}

.des-tile:hover .tile-icon {
    background: rgba(27, 225, 199, 0.1);
    border-color: #1be1c7;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 15px rgba(27, 225, 199, 0.3);
}

.des-tile .tile-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.des-tile .tile-icon-txt {
    font-size: 24px;
}

/* Content Wrapper */
.des-tile .tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Title */
.des-tile .tile-title {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    /* Balanced size */
    font-weight: 700;
    /* Premium Academic Weight */
    line-height: 1.3;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding-right: 40px;
    transition: color 0.3s;

    /* Allow Full Wrap - No Truncation */
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

/* Top Aligned Titles for Chapters and Sections */
.des-tile.title-top .tile-content {
    top: 0;
    bottom: 0;
    justify-content: space-between;
    padding-top: 25px;
}

.des-tile.title-top .tile-title {
    margin-top: 0;
    margin-bottom: 8px;
    padding-right: 50px;
    /* Safety from icon */
    font-size: clamp(1.1rem, 1.25rem, 1.5rem);

    /* Allow Full Wrap - No Truncation */
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    line-height: 1.2;
}

.des-tile:hover .tile-title {
    color: #1be1c7;
}


/* Stats Row */
.des-tile .tile-stats {
    display: flex;
    gap: 12px;
}

/* Stat Badge */
.des-tile .stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(158, 255, 0, 0.25);
    /* Hollywood Lime Border */
    padding: 6px 14px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #9eff00;
    /* Hollywood Lime Green */
    transition: all 0.3s;
    font-weight: 700;
}

.des-tile .stat-badge .val {
    font-weight: 800;
    color: #fff;
}

/* Highlight Badge (Total Questions) */
.des-tile .stat-badge.highlight {
    background: rgba(158, 255, 0, 0.08);
    /* Hollywood Lime Hint */
    border-color: rgba(158, 255, 0, 0.4);
    color: #9eff00;
}

.des-tile .stat-badge.highlight .val {
    color: #9eff00;
    font-weight: 800;
}

.des-tile:hover .stat-badge.highlight {
    background: #1be1c7;
    color: #000;
    box-shadow: 0 0 15px rgba(27, 225, 199, 0.4);
    border-color: #1be1c7;
}

.des-tile:hover .stat-badge.highlight .val {
    color: #000;
}



/* Number Element */
.des-h-num {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    margin-right: 20px;
    line-height: 1;
    transition: color 0.3s;
    flex-shrink: 0;
}

.des-h-tile:hover .des-h-num {
    color: rgba(27, 225, 199, 0.2);
}

.des-h-meta {
    font-size: 0.85rem;
    color: #1be1c7 !important;
    /* Restore Phosphorous Phosphor */
    font-weight: 700;
    margin-top: 5px;
    text-shadow: 0 0 8px rgba(27, 225, 199, 0.3);
}

/* Title Element */
.des-h-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.des-h-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    line-height: 1.4;
    padding-right: 15px;
    /* Allow Wrapping */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word !important;
}

.des-h-tile:hover .des-h-title {
    color: #1be1c7;
}

/* Arrow */
.des-h-arrow {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #1be1c7;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.des-h-tile:hover .des-h-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Glow line */
.des-h-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #1be1c7;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px #1be1c7;
}

.des-h-tile:hover::after {
    width: 100%;
}


/* === SPECIAL HOLLYWOOD FLIP CARD (Chapter 35355) === */
.des-flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    /* Slightly taller for grandeur */
    perspective: 1000px;
    cursor: pointer;
}

.des-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.des-flip-card:hover .des-flip-inner {
    transform: rotateY(180deg);
}

.des-flip-front,
.des-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Front Face */
.des-flip-front {
    background: linear-gradient(135deg, #2b1055 0%, #7597de 100%);
    /* Purple/Blue Hollywood Vibe */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.des-flip-front .icon-large {
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation: floatIcon 3s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Constrain Image Size explicitly */
.des-flip-front .icon-large img,
.des-flip-front img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    display: block;
}

.des-flip-front .flip-title {
    font-size: 1.5rem;
    /* Slightly smaller to fit */
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

/* Back Face */
.des-flip-back {
    background: linear-gradient(180deg, #0f2d3c 0%, #0b2230 100%);
    /* Parent Theme Exact Colors */
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(255, 126, 95, 0.4);
}

.des-flip-back .flip-info {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.des-flip-back .btn-flip-action {
    background: #fff;
    color: #ff7e5f;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.des-flip-back .btn-flip-action:hover {
    transform: scale(1.1);
}

/* === UNIFIED MCQ STRIP === */
.mcq-unified-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 36, 48, 0.5);
    border-bottom: 2px solid rgba(27, 225, 199, 0.2);
    padding: 10px 18px;
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.strip-stats {
    display: flex;
    gap: 15px;
    color: #1be1c7;
    font-weight: 800;
    font-size: 0.9rem;
    align-items: center;
    font-family: 'Outfit', sans-serif;
}

.q-id-wrap {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    opacity: 0.8;
}

.strip-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.strip-btn {
    background: rgba(11, 36, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.strip-btn:hover {
    background: rgba(27, 225, 199, 0.15);
    border-color: #1be1c7;
    transform: translateY(-1px);
}

.strip-btn.restart {
    border-color: rgba(231, 76, 60, 0.2);
}

.strip-btn.restart:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.strip-goto {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(27, 225, 199, 0.3);
    margin-left: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.strip-goto input {
    width: 60px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 5px;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.strip-goto .goto-btn {
    background: #1be1c7;
    color: #05242d;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(27, 225, 199, 0.3);
}

.strip-goto .goto-btn:hover {
    background: #fff;
    color: #05242d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 225, 199, 0.5);
}

.mcq-card-content {
    padding: 28px;
}

/* === GLOW LOOP ANIMATION (FROM PARENT) === */
@keyframes glowLoop {
    0% {
        box-shadow: 0 0 0 rgba(33, 200, 255, 0), 0 14px 32px rgba(0, 0, 0, 0.25);
    }

    50% {
        box-shadow: 0 0 18px rgba(33, 200, 255, 0.25), 0 14px 32px rgba(0, 0, 0, 0.25);
    }

    100% {
        box-shadow: 0 0 0 rgba(33, 200, 255, 0), 0 14px 32px rgba(0, 0, 0, 0.25);
    }
}

@media (max-width: 768px) {
    .mcq-unified-strip {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .strip-stats {
        width: 100%;
        justify-content: space-between;
        font-size: 0.85rem;
    }

    .strip-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;
        /* FORCE SINGLE LINE */
        overflow-x: auto;
        /* Safety for ultra-small screens */
        padding-bottom: 4px;
    }

    .strip-btn {
        padding: 6px 8px;
        font-size: 0.65rem;
        flex: 1;
        text-align: center;
        min-width: 65px;
        white-space: nowrap;
    }

    .strip-goto {
        margin-left: 0;
        margin-top: 0;
        padding: 3px 6px;
        flex: 1.5;
        min-width: 110px;
        justify-content: space-between;
        gap: 4px;
    }

    .strip-goto input {
        width: 35px;
        height: 28px;
        font-size: 0.85rem;
        padding: 2px;
    }

    .strip-goto .goto-btn {
        padding: 6px 10px;
        /* Wider for better clickability */
        font-size: 0.7rem;
        min-width: 45px;
        white-space: nowrap;
    }
}

/* === ADMIN MCQ FINDER === */
.admin-finder-wrap {
    background: rgba(255, 193, 7, 0.05);
    border: 1px dashed rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 10px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.admin-finder-label {
    color: #ffc107;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-finder-input-group {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.admin-finder-input-group input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px 10px;
    width: 120px;
    font-size: 0.9rem;
    outline: none;
}

.admin-finder-btn {
    background: #ffc107;
    border: none;
    color: #000;
    padding: 5px 15px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.admin-finder-btn:hover {
    background: #ffca2c;
}

@media (max-width: 600px) {
    .admin-finder-wrap {
        flex-direction: column;
        gap: 8px;
    }
}



/* === MOBILE PRECISE FIXES (Search & Compact Cards) === */
@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.2rem;
    }

    .des-search-wrap {
        width: 100%;
        max-width: 100%;
        padding: 0 4px;
        box-sizing: border-box;
    }

    /* Aggressive Container Reset */
    body.english-site main.container,
    main.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    /* MCQ Card: Almost absolute full width */
    .q-card {
        padding: 12px 5px !important;
        /* Minimal internal padding */
        margin: 5px 3px !important;
        /* Push to edges but keep a sliver of space */
        width: auto !important;
        /* Fill available horizontal space */
        max-width: 100% !important;
        border-right: none !important;
        border-left: none !important;
        border-radius: 0 !important;
        /* Rectangular looks wider */
        border-top: 1px solid rgba(27, 225, 199, 0.15) !important;
        border-bottom: 1px solid rgba(27, 225, 199, 0.15) !important;
        box-shadow: none !important;
        background: rgba(11, 36, 48, 0.3) !important;
    }

    .q-text {
        font-size: 1.2rem !important;
        line-height: 1.5 !important;
        padding: 5px !important;
        /* Minimal internal padding */
        margin-bottom: 12px !important;
        background: transparent !important;
        border: none !important;
    }

    .q-text::before {
        content: 'Q.';
        font-weight: 800;
        color: var(--dalil-teal);
        margin-right: 4px;
    }

    .options {
        gap: 5px !important;
        margin: 5px 0 !important;
        padding: 0 4px !important;
    }

    .opt {
        padding: 12px 10px !important;
        /* Balanced horizontal padding */
        font-size: 1.2rem !important;
        border-radius: 6px !important;
        width: 100% !important;
        display: block !important;
        box-sizing: border-box;
        margin-bottom: 4px !important;
        border-width: 1px !important;
    }

    .expl {
        padding: 15px 10px !important;
        /* Reclaim text space */
        margin-top: 15px !important;
        border-radius: 10px !important;
        margin: 10px 0 !important;
        /* Flush with card internal padding */
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }

    .page-title-en {
        font-size: 1.6rem !important;
        margin: 15px 0 !important;
    }

    .prism-scene {
        display: none !important;
    }

    /* Search Bar Tweaks */
    .search-form {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 2px !important;
    }

    .des-as-select,
    .des-as-key,
    .des-as-btn {
        margin-bottom: 4px !important;
        padding: 8px !important;
    }
}

/**
 * Dalil English Site: Search Highlighting
 */
.des-highlight {
    background: #f1c40f !important;
    color: #2c3e50 !important;
    padding: 0 4px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === FLOATING SUBSCRIPTION BUTTONS (Like Triage Nav) === */
.des-floating-sub-buttons {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 36, 48, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(27, 225, 199, 0.3);
    display: flex;
    gap: 10px;
    padding: 8px 15px;
    z-index: 9999;
    direction: ltr;
    width: auto;
    max-width: 95vw;
}

.des-btn-floating {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease;
}

.des-fbtn-icon {
    font-size: 16px;
}

.des-fbtn-text {
    letter-spacing: 0.3px;
}

.des-btn-inst {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
}

.des-btn-inst:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2);
    background: rgba(255, 193, 7, 0.15) !important;
}

.des-btn-indiv {
    color: var(--dalil-teal) !important;
    background: rgba(27, 225, 199, 0.1) !important;
    border: 1px solid rgba(27, 225, 199, 0.2) !important;
}

.des-btn-indiv:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(27, 225, 199, 0.2);
    background: rgba(27, 225, 199, 0.15) !important;
}

@media (max-width: 768px) {
    .des-floating-sub-buttons {
        bottom: 10px;
        padding: 5px 8px;
        gap: 5px;
        width: auto;
        border-radius: 15px;
    }
    
    .des-btn-floating {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
}
