:root {
    --primary-color: rgb(44, 92, 195);
    --secondary-color: #ff6b35;
    --gradient-color: #3a405e;
    --light-color: #efeff0;
    --dark-color: #212529;
    --success-color: #28a745;
    --text-color: #2c5cc5;
    --text-light: #6c757d;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    background-color: #ffffff;
}

/* ============================================
   PAGE LOADER — BAC STORY
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
    visibility: visible;
    overflow: hidden;
}

.page-loader.loader-hiding {
    opacity: 0;
    visibility: hidden;
}

/* ── Subtle background tint (matches site's light feel) ─────────── */
.loader-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.loader-orb:first-child {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(44, 92, 197, 0.07) 0%, transparent 70%);
    top: -150px;
    left: calc(50% - 300px);
    animation: loaderOrbFloat1 7s ease-in-out infinite;
}

.loader-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(44, 92, 197, 0.05) 0%, transparent 70%);
    bottom: -100px;
    right: 5%;
    animation: loaderOrbFloat2 9s ease-in-out -4s infinite;
}

/* ── Main content ──────────────────────────────────────────────── */
.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 1;
}

/* ── Letter row ────────────────────────────────────────────────── */
.loader-letters {
    display: flex;
    align-items: baseline;
    direction: ltr;
    font-family: 'Pattaya', serif;
    font-size: clamp(3.2rem, 11vw, 5.5rem);
    line-height: 1;
    letter-spacing: 3px;
}

/* individual letter — single brand blue */
.ll {
    display: inline-block;
    opacity: 0;
    color: #2c5cc5;
    transform: translateY(-44px) scale(0.75);
    animation: loaderLetterIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* space between BAC and STORY */
.loader-gap { width: 0.35em; opacity: 1; transform: none; animation: none; }

/* stagger delays */
.ll:nth-child(1) { animation-delay: 0.05s; }
.ll:nth-child(2) { animation-delay: 0.13s; }
.ll:nth-child(3) { animation-delay: 0.21s; }
.ll:nth-child(5) { animation-delay: 0.36s; }
.ll:nth-child(6) { animation-delay: 0.44s; }
.ll:nth-child(7) { animation-delay: 0.52s; }
.ll:nth-child(8) { animation-delay: 0.60s; }
.ll:nth-child(9) { animation-delay: 0.68s; }

/* ── Sweep divider line ─────────────────────────────────────────── */
.loader-divider {
    width: 100%;
    height: 1.5px;
    margin: 1rem 0 0.9rem;
    overflow: hidden;
    opacity: 0;
    animation: loaderFadeIn 0.3s ease 1s forwards;
}

.loader-divider span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #2c5cc5 45%, #ff6b35 80%, transparent 100%);
    transform: translateX(-100%);
    animation: loaderLineSweep 0.75s cubic-bezier(0.4, 0, 0.2, 1) 1.05s forwards;
}

/* ── Arabic tagline ─────────────────────────────────────────────── */
.loader-tagline {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1.5px;
    direction: rtl;
    opacity: 0;
    animation: loaderFadeIn 0.5s ease 1.25s forwards;
}

/* ── Progress bar ───────────────────────────────────────────────── */
.loader-bar {
    position: relative;
    width: min(260px, 60vw);
    height: 2px;
    background: rgba(44, 92, 197, 0.12);
    border-radius: 2px;
    margin-top: 1.8rem;
    overflow: visible;
    opacity: 0;
    animation: loaderFadeIn 0.4s ease 1.35s forwards;
}

.loader-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #2c5cc5 0%, #4a7be8 100%);
    animation: loaderBarFill 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.45s forwards;
}

/* glowing dot tracking the fill edge */
.loader-bar-glow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2c5cc5;
    box-shadow: 0 0 8px 2px rgba(44, 92, 197, 0.55);
    animation: loaderDotTrack 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.45s forwards;
}

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes loaderLetterIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loaderFadeIn {
    to { opacity: 1; }
}

@keyframes loaderLineSweep {
    to { transform: translateX(0); }
}

@keyframes loaderBarFill {
    0%   { width: 0%; }
    50%  { width: 62%; }
    75%  { width: 78%; }
    100% { width: 88%; }
}

@keyframes loaderDotTrack {
    0%   { left: 0%; }
    50%  { left: 62%; }
    75%  { left: 78%; }
    100% { left: 88%; }
}

@keyframes loaderOrbFloat1 {
    0%, 100% { transform: translateY(0);    opacity: 1; }
    50%       { transform: translateY(-24px); opacity: 0.6; }
}

@keyframes loaderOrbFloat2 {
    0%, 100% { transform: translateY(0);    opacity: 1; }
    50%       { transform: translateY(-18px); opacity: 0.5; }
}

/* ============================================
   ANNOUNCEMENT MODAL — ALL SPECIALTIES
   ============================================ */
.announce-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(10, 20, 50, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.announce-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.announce-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(44, 92, 197, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    position: relative;
    direction: rtl;
}

.announce-overlay.is-visible .announce-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* — Header banner — */
.announce-header {
    background: linear-gradient(135deg, #1e3fa0 0%, #2c5cc5 55%, #3d6dd8 100%);
    padding: 2rem 2rem 1.6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.announce-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.2' fill='white' opacity='0.12'/%3E%3C/svg%3E") repeat;
    background-size: 30px 30px;
}

.announce-emoji {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    display: block;
    animation: announceFloat 3s ease-in-out infinite;
    position: relative;
}

@keyframes announceFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.announce-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.3rem;
    line-height: 1.3;
    position: relative;
}

.announce-title span {
    font-family: 'Pattaya', serif;
    letter-spacing: 1px;
}

.announce-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    position: relative;
}

/* Close button */
.announce-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.announce-close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(90deg);
}

/* — Body — */
.announce-body {
    padding: 1.6rem 2rem;
}

.announce-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.975rem;
    color: #444;
    line-height: 1.75;
    margin: 0 0 1.4rem;
    text-align: center;
}

/* Specialty chips grid */
.announce-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.6rem;
}

.announce-spec-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    background: #f0f4ff;
    border: 1.5px solid #dce6ff;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2c5cc5;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announce-spec-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 92, 197, 0.15);
}

.announce-spec-chip i {
    font-size: 1.2rem;
    color: #2c5cc5;
}

/* NEW badge */
.announce-spec-chip.is-new {
    background: linear-gradient(135deg, #eef2ff 0%, #dce6ff 100%);
    border-color: #2c5cc5;
    box-shadow: 0 2px 10px rgba(44, 92, 197, 0.15);
}

.announce-new-badge {
    position: absolute;
    top: -8px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, #ff6b35, #e8520f);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 1px 7px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    animation: announcePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

@keyframes announcePulse {

    0%,
    100% {
        transform: translateX(50%) scale(1);
    }

    50% {
        transform: translateX(50%) scale(1.08);
    }
}

/* — Footer actions — */
.announce-footer {
    display: flex;
    gap: 0.75rem;
    padding: 0 2rem 1.75rem;
    flex-direction: column;
}

.announce-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #2c5cc5, #1e3fa0);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(44, 92, 197, 0.35);
    letter-spacing: 0.3px;
}

.announce-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 92, 197, 0.45);
}

.announce-cta-secondary {
    background: none;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.875rem;
    color: #888;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.2s ease;
    text-align: center;
}

.announce-cta-secondary:hover {
    color: #2c5cc5;
}

/* Mobile */
@media (max-width: 480px) {
    .announce-card {
        border-radius: 18px;
    }

    .announce-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .announce-body {
        padding: 1.25rem 1.25rem;
    }

    .announce-footer {
        padding: 0 1.25rem 1.5rem;
    }

    .announce-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .announce-title {
        font-size: 1.2rem;
    }

    .announce-emoji {
        font-size: 2.2rem;
    }
}

/* ══ SIMULATION ANNOUNCEMENT BOTTOM SHEET ══════════════════════════════════ */
.sim-announce-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 50, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: stretch;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
}
.sim-announce-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.sim-sheet-slide {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}
.sim-announce-overlay.is-visible .sim-sheet-slide { transform: translateY(0); }

.sim-sheet {
    width: 100%;
    height: 100%;
    max-height: 100%;
    background: white;
    border-radius: 28px 28px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.3);
}
.sim-sheet::-webkit-scrollbar { display: none; }

.sim-banner {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    padding: 0.85rem 1.5rem 1.4rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.sim-banner::before {
    content: '';
    position: absolute;
    top: -70px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.sim-banner::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.sim-handle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0 1rem;
    position: relative;
    z-index: 2;
}
.sim-close-btn {
    position: absolute;
    top: 0.85rem;
    left: 1.25rem;
    z-index: 3;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    color: white;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}
.sim-close-btn:hover { background: rgba(255,255,255,0.32); }
.sim-handle {
    width: 38px; height: 4px;
    background: rgba(255,255,255,0.35);
    border-radius: 99px;
}

.sim-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
.sim-banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.sim-banner-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b35, #e8520f);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.45rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255,107,53,0.55), 0 0 18px rgba(255,107,53,0.3);
    animation: simTagPulse 2s ease-in-out infinite;
}
@keyframes simTagPulse {
    0%,100% { transform: scale(1);    box-shadow: 0 2px 10px rgba(255,107,53,0.55), 0 0 18px rgba(255,107,53,0.3); }
    50%      { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,107,53,0.75), 0 0 28px rgba(255,107,53,0.45); }
}

.sim-banner-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}
.sim-banner-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.sim-sheet-body {
    padding: 1.4rem 1.5rem 1.5rem;
    overflow: visible;
}

.sim-intro {
    background: linear-gradient(135deg, #0d2260 0%, #1a3a8f 50%, #2c5cc5 100%);
    border-radius: 18px;
    padding: 1.2rem 1.25rem;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
}
.sim-intro::before {
    content: '\201C';
    position: absolute;
    top: -18px; left: 10px;
    font-size: 7rem;
    color: rgba(255,255,255,0.06);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
.sim-intro::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}
.sim-intro-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    line-height: 1.75;
    text-align: center;
    position: relative;
    z-index: 1;
}
.sim-intro-text strong {
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b35, #e8520f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sim-pills-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}
.sim-pill {
    background: #f8fafc;
    border: 1.5px solid #e8edf5;
    border-radius: 16px;
    padding: 0.9rem 0.85rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sim-pill:hover {
    border-color: rgba(44,92,197,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44,92,197,0.1);
}
.sim-pill-icon {
    width: 36px; height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #1a3a8f, #3d6ee0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(44,92,197,0.32);
}
.sim-pill-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}
.sim-pill-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}

.sim-hook {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.3rem;
    position: relative;
    overflow: hidden;
}
.sim-hook::before {
    content: '';
    position: absolute;
    top: -35px; right: -35px;
    width: 110px; height: 110px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.sim-hook-icon {
    font-size: 1.5rem;
    color: #ff6b35;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255,107,53,0.95)) drop-shadow(0 0 14px rgba(255,107,53,0.7)) drop-shadow(0 0 28px rgba(255,80,20,0.45));
}
.sim-hook-text { position: relative; z-index: 1; }
.sim-hook-text strong {
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
.sim-hook-text span {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.72);
    font-weight: 500;
}

.sim-actions { display: flex; flex-direction: column; gap: 0.6rem; }

.sim-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(44,92,197,0.35);
    text-decoration: none;
    transition: all 0.3s;
}
.sim-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(44,92,197,0.45);
}
.sim-dismiss-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.sim-dismiss-btn:hover { background: #e2e8f0; }

/* ── Sim card: medium screens (≥ 540px) ─── */
@media (min-width: 540px) {
    .sim-announce-overlay { align-items: center; overflow-y: auto; padding: 1.5rem 1rem; }
    .sim-sheet-slide { padding: 0; max-width: 660px; width: 100%; flex-shrink: 0; }
    .sim-sheet {
        border-radius: 28px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.35);
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }
    .sim-banner { border-radius: 28px 28px 0 0; padding: 1rem 2rem 1.5rem; }
    .sim-sheet-body { padding: 1.4rem 1.75rem 1.75rem; }
    .sim-pills-row { grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
    .sim-pill { align-items: center; text-align: center; padding: 0.9rem 0.6rem; }
    .sim-banner-title { font-size: 1.45rem; }
    .sim-banner-sub { font-size: 0.88rem; }
    .sim-intro-text { font-size: 0.94rem; }
    .sim-hook-text strong { font-size: 0.95rem; }
    .sim-hook-text span { font-size: 0.8rem; }
}

/* ── Sim card: small phones (≤ 400px) ─── */
@media (max-width: 400px) {
    .sim-banner { padding: 0.75rem 1.1rem 1.15rem; }
    .sim-close-btn { left: 1rem; top: 0.75rem; width: 28px; height: 28px; font-size: 0.72rem; }
    .sim-banner-title { font-size: 1.1rem; }
    .sim-banner-sub { font-size: 0.75rem; }
    .sim-sheet-body { padding: 1.1rem 1.1rem 1.25rem; }
    .sim-intro { padding: 1rem; }
    .sim-intro-text { font-size: 0.82rem; }
    .sim-pills-row { gap: 0.5rem; }
    .sim-pill { padding: 0.75rem 0.7rem; }
    .sim-pill-title { font-size: 0.78rem; }
    .sim-pill-desc { font-size: 0.68rem; }
    .sim-hook { padding: 0.85rem 0.9rem; gap: 0.65rem; }
    .sim-hook-text strong { font-size: 0.82rem; }
    .sim-cta-btn { padding: 0.9rem; font-size: 0.95rem; }
}

/* ── Sim card: very small phones (≤ 340px) ─── */
@media (max-width: 340px) {
    .sim-pills-row { grid-template-columns: 1fr; }
    .sim-banner-title { font-size: 1rem; }
}
/* ══════════════════════════════════════════════════════════════════════════ */

@keyframes loaderDot {

    0%,
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* ============================================================
   GLOBAL CTA SECTION  (all pages except university)
   ============================================================ */
.global-cta {
    padding: 1.2rem 1rem 2.2rem;
    background: transparent;
    border-top: none;
}
@media (max-width: 600px) {
    .global-cta {
        padding-top: 0;
        padding-bottom: 1.2rem;
    }
}

/* — Countdown bar — */
.gcta-timers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    padding: 0.7rem 1rem;
    box-shadow: 0 2px 14px rgba(44,92,197,0.08);
    max-width: 720px;
    margin: 0 auto 1.1rem;
    flex-wrap: wrap;
}
.gcta-timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 1.1rem;
}
.gcta-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2c5cc5;
    font-family: 'Tajawal', sans-serif;
    white-space: nowrap;
}
.gcta-digits {
    display: flex;
    align-items: baseline;
    gap: 3px;
    direction: ltr;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a8f;
}
.gcta-digits small {
    font-size: 0.6rem;
    color: #888;
    font-family: 'Tajawal', sans-serif;
    margin-right: 1px;
}
.gcta-sep { color: #c0c8e0; font-size: 0.85rem; }
.gcta-divider {
    width: 1px;
    height: 34px;
    background: #e4eaf7;
    flex-shrink: 0;
    align-self: center;
}

/* — Cards — */
.gcta-cards {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    min-height: 82px; /* set by JS on init */
}
.gcta-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    border-radius: 18px;
    text-decoration: none;
    position: absolute;
    top: 0; left: 0; right: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.gcta-card.gcta-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.gcta-card.gcta-hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}
.gcta-card:hover { transform: translateY(-3px) !important; box-shadow: 0 18px 44px rgba(26,58,143,0.3) !important; }
.gcta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.gcta-card--calc {
    background: linear-gradient(135deg, #1a3a8f 0%, #2353c1 50%, #3d6ee0 100%);
    box-shadow: 0 8px 28px rgba(26,58,143,0.25);
}
.gcta-card--uni {
    background: linear-gradient(135deg, #0f2a6b 0%, #1a3a8f 45%, #2c5cc5 100%);
    box-shadow: 0 8px 28px rgba(15,42,107,0.25);
}
.gcta-card--timer {
    background: linear-gradient(135deg, #7c3a00 0%, #c4600a 45%, #ff6b35 100%);
    box-shadow: 0 8px 28px rgba(196,96,10,0.28);
}
.gcta-card--weighted {
    background: linear-gradient(135deg, #0f2060 0%, #1a3a8f 45%, #2c5cc5 100%);
    box-shadow: 0 8px 28px rgba(26,58,143,0.28);
}
.gcta-card--correct {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4f46e5 100%);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.25);
}
.gcta-icon-circle {
    width: 52px; height: 52px; min-width: 52px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: #1a3a8f;
    box-shadow: 0 4px 14px rgba(26,58,143,0.18);
    flex-shrink: 0;
}
.gcta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: right;
}
.gcta-text strong {
    color: #fff;
    font-size: 0.98rem;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    line-height: 1.25;
}
.gcta-text span {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-family: 'Tajawal', sans-serif;
}
.gcta-btn {
    background: #fff;
    color: #1a3a8f;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gcta-card:hover .gcta-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* — Mobile dots — */
.gcta-dots {
    justify-content: center;
    gap: 6px;
    margin-top: 0.85rem;
    display: none;
}
.gcta-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #c0cde8;
    display: inline-block;
    transition: background 0.3s;
}
.gcta-dot--active { background: #2c5cc5; }

/* — Mobile tweaks — */
@media (max-width: 699px) {
    .gcta-timer-item { padding: 0.3rem 0.5rem; }
    .gcta-timers { padding: 0.5rem 0.3rem; }
}
@media (max-width: 480px) {
    .gcta-card { flex-direction: column; text-align: center; padding: 1.2rem 1rem; }
    .gcta-text { align-items: center; }
}

/* Page fade-in after loader */
body {
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.page-ready {
    opacity: 1;
}

/* ============================================
   END PAGE LOADER
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(26,58,143,0.35);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar::before {
    content: '';
    position: absolute;
    top: -95px; right: -30px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.navbar::after {
    content: '';
    position: absolute;
    top: -80px; left: -20px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.navbar .container {
    position: relative;
    z-index: 1;
}

body {
    padding-top: 75px;
    /* Height of the fixed navbar */
}

/* Page Transition */
main {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

main.fade-in {
    opacity: 1 !important;
}

.navbar:has(.nav-links.active) {
    z-index: 9999;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;

    height: 100%;
}

.nav-brand a {
    color: white;
    font-family: 'Pattaya';
    letter-spacing: 3px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 200;
    display: inline;
    align-items: flex-end;
    gap: 0;
    transition: var(--transition);
    display: inline-block;
    line-height: 1;
}

.nav-brand a:hover {
    transform: translateY(-2px);
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-left: 20px;
    padding-right: 30px;
}

.nav-links a,
.dropdown-btn {
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.7rem 1.1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

@media screen and (max-width: 1300px) {
    .nav-links {
        gap: 0.7rem;
        padding-right: 15px;
    }

    .nav-links a,
    .dropdown-btn {
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
    }
}

@media screen and (max-width: 1100px) {
    .nav-links {
        display: none;
        /* Hide desktop nav links on smaller screens */
    }
}

/* Base styles for components hidden on desktop */
.hamburger,
.nav-right-mobile,
.nav-left-desktop {
    display: none;
}

@media (min-width: 1101px) {
    .nav-left-desktop {
        display: flex;
        align-items: center;
        margin-right: -10px;
        /* Pull it slightly closer to the links */
    }

    .nav-left-desktop .nav-icon-btn {
        background: transparent;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 5px 10px;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-left-desktop .nav-icon-btn:hover {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.nav-links>a:hover,
.dropdown-btn:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Mobile Bottom Navbar (Hidden on Desktop) */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    box-shadow: 0 -4px 20px rgba(26,58,143,0.35);
    z-index: 1000;
    overflow: hidden;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}
.mobile-bottom-bar::before {
    content: '';
    position: absolute;
    top: -50px; right: -40px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.mobile-bottom-bar::after {
    content: '';
    position: absolute;
    top: -30px; left: -50px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.mobile-bottom-bar > * {
    position: relative;
    z-index: 1;
}

/* Hide bottom bar when overlays are active */
body.search-active .mobile-bottom-bar,
.navbar:has(.nav-links.active)~.mobile-bottom-bar {
    display: none !important;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.7rem;
    font-family: 'Tajawal', sans-serif;
    gap: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.8rem 0.2rem;
    /* Increased vertical padding for better hit area */
    flex: 1;
    min-width: 0;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: white;
}

.dropdown-btn::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: var(--transition);
    font-size: 0.8rem;
}

@media (min-width: 901px) {
    .dropdown:hover .dropdown-btn::after {
        transform: rotate(180deg);
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 100;
    overflow: visible;
    padding: 6px;
    animation: fadeInCentered 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shiny {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 901px) {
    .dropdown:hover .dropdown-content {
        display: inline-block;
    }
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    display: block;
    text-align: right;
    transition: color 0.25s ease, transform 0.25s ease, border-radius 0.25s ease;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a3a8f, #3d6ee0);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.dropdown-content a:hover::before {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(44, 92, 197, 0.35);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    color: white;
    border-radius: 10px;
    transform: translateX(-4px);
    -webkit-transform: translateX(-4px);
}

/* ============================================
           RESPONSIVE NAVIGATION STYLES
           ============================================ */

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: transparent;
    border: none;
    z-index: 1001;
    transition: var(--transition);
}

/* Close button for mobile menu */
.menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.2rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    z-index: 2002;
    padding: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    line-height: 45px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-close:hover,
.menu-close:focus {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    transform: rotate(90deg);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Navigation below 1100px kicks in */

@media screen and (max-width: 1100px) {
    body {
        padding-bottom: 70px;
        /* Space for the bottom navbar */
    }

    .nav-container {
        position: relative;
        display: flex;
        justify-content: center;
        /* Center the logo */
        align-items: center;
        padding: 0 1rem;
    }

    .hamburger {
        display: flex;
        /* Re-enable hamburger */
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-right-mobile {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-icon-btn {
        background: transparent;
        border: none;
        color: white;
        font-size: 1.4rem;
        cursor: pointer;
        padding: 5px;
        transition: var(--transition);
    }

    .nav-icon-btn:hover {
        opacity: 0.8;
        transform: scale(1.1);
    }

    .mobile-bottom-bar {
        display: flex;
        /* Show bottom bar on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: linear-gradient(160deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        padding: 6rem 1.5rem 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 9999;
        overflow-x: hidden;
        overflow-y: auto;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        gap: 0.5rem;
    }
    .nav-links::before {
        content: '';
        position: absolute;
        top: -80px; right: -80px;
        width: 280px; height: 280px;
        background: rgba(255,255,255,0.07);
        border-radius: 50%;
        pointer-events: none;
        z-index: 0;
    }
    .nav-links::after {
        content: '';
        position: absolute;
        bottom: -100px; left: -60px;
        width: 320px; height: 320px;
        background: rgba(255,255,255,0.04);
        border-radius: 50%;
        pointer-events: none;
        z-index: 0;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        /* Left side of the right-aligned menu */
        background: transparent;
        border: none;
        color: white;
        font-size: 2.5rem;
        cursor: pointer;
        z-index: 2001;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .menu-close:hover {
        transform: scale(1.1);
        color: rgba(255, 255, 255, 0.8);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-links>a {
        width: calc(50% - 0.25rem);
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        position: relative;
        z-index: 1;
    }

    .nav-links>.dropdown {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        position: relative;
        z-index: 1;
    }

    .nav-links>a:last-child,
    .nav-links>.dropdown:last-child {
        border-bottom: none;
    }

    .nav-links>a {
        padding: 0.85rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        font-weight: 600;
        color: white !important;
        background: transparent;
        border: none;
        border-radius: 12px;
        transition: background-color 0.2s ease, color 0.2s ease;
        text-align: center;
        min-height: 48px;
        cursor: pointer;
    }

    .dropdown-btn {
        width: 100%;
        padding: 0.85rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.1rem;
        font-weight: 600;
        color: white !important;
        background: transparent;
        border: none;
        border-radius: 12px;
        transition: background-color 0.2s ease, color 0.2s ease;
        text-align: right;
        min-height: 48px;
        cursor: pointer;
    }

    .nav-links>a:hover,
    .nav-links>a:active,
    .dropdown-btn:hover,
    .dropdown-btn:active {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
        box-shadow: none;
        transform: none;
    }

    .dropdown-btn::after {
        content: "\f107";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        transform: rotate(0deg);
        transition: transform 0.25s ease;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
    }

    .dropdown.active .dropdown-btn {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .dropdown.active .dropdown-btn::after {
        transform: rotate(-90deg);
        color: white;
    }

    .dropdown-content {
        display: block;
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        width: 100%;
        background: #ffffff;
        border-radius: 12px;
        margin: 0;
        padding: 0 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    }

    .dropdown.active .dropdown-content {
        max-height: 800px;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        overflow: visible;
    }

    .dropdown-content a {
        padding: 0.8rem 1.25rem;
        color: var(--text-color);
        font-size: 1rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s var(--transition);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        /* RTL links alignment */
        border-bottom: none;
        margin-bottom: 4px;
        text-align: right;
    }

    .dropdown-content a:hover,
    .dropdown-content a:active {
        color: white !important;
        border-radius: 8px;
        transform: translateX(-4px);
    }

    .telegram-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        background: #24A1DE;
        /* Telegram Blue */
        color: white !important;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-weight: 700;
        text-decoration: none;
        width: 100%;
        margin-top: 1.5rem;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(36, 161, 222, 0.3);
    }

    .telegram-btn:hover {
        background: #2296d1;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(36, 161, 222, 0.4);
    }

    .telegram-btn i {
        font-size: 1.4rem;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Home Layout Fixes */
    .modern-hero {
        margin: 4rem auto;
        padding: 1rem;
    }

    .modern-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .modern-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .modern-utilities {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .modern-tag {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .modern-cta-btn {
        width: auto;
        min-width: 240px;
        max-width: 90%;
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}

@media screen and (max-width: 576px) {
    .nav-container {
        display: flex;
        flex-direction: row;
    }

    .nav-links {
        width: 85%;
    }

    .nav-brand a {
        font-size: 1.5rem;
    }
}

/* Resource Sections */

/* Active section */
.resource-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
    margin-top: 6rem;
    padding-bottom: 0;
}

.active {
    display: block;
    width: 90%;
    margin: 2rem auto;
}

@media (max-width: 768px) {
    .active {
        width: 100% !important;
        margin: 0.25rem 0 0.1rem !important;
    }
}

/* Main Container (Modern borderless look) */
.container {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1rem 1.5rem 0;
    position: relative;
}

/* Heome Section*/

/* Shiny Text Effect - Restored and Enhanced */
.shiny-text {
    font-weight: 800;
    font-size: clamp(2.2rem, 7vw, 4rem);
    background: linear-gradient(120deg,
            var(--primary-color) 30%,
            rgba(255, 255, 255, 0.8) 50%,
            var(--primary-color) 70%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: var(--primary-color);
    /* Fallback color */
    -webkit-text-fill-color: transparent;
    animation: shiny 3s ease-in-out infinite;
    display: inline-block;
}

/* Modern Section Header */
.modern-section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0 2rem;
    position: relative;
    width: 100%;
    direction: rtl;
}

.modern-section-header h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
    color: #2c5cc5;
    white-space: normal;
    position: relative;
    margin: 0;
    flex-shrink: 0;
    max-width: 80%;
}

.modern-section-header::after {
    content: '';
    flex: 1;
    min-width: 60px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.25;
    border-radius: 2px;
}

/* Specialty Grid & Buttons */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.specialty-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    width: 100%;
    min-height: 80px;
    line-height: 1.4;
    text-align: center;
}

.specialty-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.specialty-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.specialty-btn:hover::before {
    opacity: 1;
}

.specialty-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.specialty-btn:hover i {
    transform: rotate(8deg) scale(1.1);
}

.specialty-btn:hover i {
    transform: rotate(15deg) scale(1.15);
}

/* Specialty Button Color Variations */
.math-btn {
    background: linear-gradient(135deg, #2c5cc5, #1e3fa0);
    box-shadow: 0 10px 25px rgba(44, 92, 197, 0.25);
}

.science-btn {
    background: linear-gradient(135deg, #28a745, #1d7a33);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.25);
}

.tech-btn {
    background: linear-gradient(135deg, #f39c12, #c87f0a);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.25);
}

.manage-btn {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.25);
}

.literature-btn {
    background: linear-gradient(135deg, #e74c3c, #b03a2e);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.25);
}

.languages-btn {
    background: linear-gradient(135deg, #16a085, #117a65);
    box-shadow: 0 10px 25px rgba(22, 160, 133, 0.25);
}

/* =========================================
   Ultra-Modern Hero Landing Page
   ========================================= */
.modern-hero {
    width: 100%;
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: heroReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modern-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.modern-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.6;
    animation: fadeIn 1.4s ease-out;
}

.modern-utilities {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    width: 100%;
    animation: fadeIn 1.6s ease-out;
}

.modern-tag {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 92, 197, 0.1);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* desktop: wrappers are invisible to layout, dupes hidden */
.ticker-row,
.ticker-track { display: contents; }
.ticker-dupe { display: none; }

@keyframes tagTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}
@keyframes tagTickerRev {
    0%   { transform: translateX(-33.33%); }
    100% { transform: translateX(0); }
}

.hero-scroll-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(44, 92, 197, 0.2);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    color: #2c5cc5;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    margin-top: 0.5rem;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
    animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-btn:hover {
    background: #2c5cc5;
    color: white;
    border-color: #2c5cc5;
    animation: none;
    transform: translateY(3px);
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

.modern-tag:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 92, 197, 0.1);
    border-color: rgba(44, 92, 197, 0.2);
}

.modern-cta-btn {
    position: relative;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(44, 92, 197, 0.25);
    z-index: 1;
    animation: fadeIn 1.8s ease-out;
    max-width: 90%;
    justify-content: center;
    text-align: center;
}

.modern-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50px;
}

.modern-cta-btn:hover {
    box-shadow: 0 15px 35px rgba(44, 92, 197, 0.4);
    transform: translateY(-4px) scale(1.02);
    color: white;
}

.modern-cta-btn:hover::before {
    opacity: 1;
}

.modern-cta-btn i {
    transition: transform 0.3s ease;
}

.modern-cta-btn:hover i {
    transform: translateX(-5px);
}

/* Button Container */
.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.main-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    color: white;
    font-family: 'Tajawal', sans-serif;
    padding: 1.8rem 1rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    width: 100%;
    min-height: 130px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(26,58,143,0.3);
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1000px;
}

.btn-container>* {
    flex: 0 1 calc(50% - 1rem);
    min-width: 140px;
}

@media (min-width: 992px) {
    .btn-container>* {
        flex: 0 1 calc(25% - 1rem);
    }

    .btn-container.three-col>* {
        flex: 0 1 calc(33.333% - 1rem);
    }
}

.main-btn span,
.main-btn p,
.main-btn {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
    text-align: center;
}

.main-btn i {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    position: relative; z-index: 1;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(4px);
    margin-bottom: 0;
    flex-shrink: 0;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(26,58,143,0.45);
}

.main-btn:hover i,
.modern-cta-btn:hover i,
.telegram-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

.tamazight-btn {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%) !important;
}

.tamazight-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    position: relative; z-index: 1;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-inline-end: 0;
}

.tamazight-btn:hover .tamazight-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255,255,255,0.28);
}

.telegram-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    background: #24A1DE;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 20px rgba(36, 161, 222, 0.35);
    cursor: pointer;
    width: fit-content;
    margin: 2rem auto;
    max-width: 90%;
}

.telegram-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    filter: brightness(1.1);
}

.telegram-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.telegram-btn:hover i {
    transform: rotate(-15deg) scale(1.2);
}

.correct-btn {
    margin-top: 30px;
    padding: 1rem;
    width: 100%;
    font-size: 1rem;
    border: none;
    font-weight: 700;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.correct-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   CORRECTION + "VIEW ALL SPECIALTY" BUTTON GROUP
   ============================================ */
.correct-btn-group {
    display: flex;
    gap: 0.7rem;
    margin-top: 2rem;
    margin-bottom: 0.25rem;
    flex-wrap: nowrap;
}
.correct-btn-group .correct-btn.floating {
    margin-top: 0;
    flex: 1;
    width: auto;
    min-width: 0;
    animation: none;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    box-shadow: 0 4px 12px rgba(26, 58, 143, 0.25);
}
.correct-btn-group .correct-btn.floating:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.view-all-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid transparent;
    background: #fff;
    color: #1a3a8f;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: inset 0 0 0 2px #2c5cc5;
}
.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px #2c5cc5, 0 4px 12px rgba(44, 92, 197, 0.15);
}
@media (max-width: 600px) {
    .correct-btn-group {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 1.4rem;
        border-top: 1px solid #e2e8f7;
    }
    .correct-btn-group .correct-btn.floating,
    .view-all-btn {
        flex: unset;
        width: 100%;
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 0.85rem 0.5rem;
    }
}

.correct-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: var(--border-radius);
    border: none;
}

.correct-btn:hover::before {
    opacity: 1;
    border-radius: inherit;
}

.correct-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -2;
    border-radius: var(--border-radius);
    transition: opacity 0.5s ease;
}

.correct-btn:hover::after {
    opacity: 0;
}

.Speciality-btn {
    position: relative;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    width: 80%;
    margin: 10px auto;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0, 17, 53, 0.3);
}

.Speciality-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 30px;
    border: none;
}

.Speciality-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 17, 53, 0.3);
    transform: scale(1.05);
}

.Speciality-btn:hover::before {
    opacity: 1;
    border-radius: inherit;
}

.Speciality-btn span {
    position: relative;
    z-index: 2;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.Speciality-btn:hover span {
    transform: translateY(-2px);
}

.Speciality-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -2;
    border-radius: 30px;
    transition: opacity 0.5s ease;
}

.Speciality-btn:hover::after {
    opacity: 0;
}

/*pdf viewer styles*/

.pdf-wrapper {
    max-width: 900px;
    width: 100%;

    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.responsive-pdf {
    display: block;
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    border: 4px solid var(--primary-color);
    border-bottom: none;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.pdf-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    padding: 0 2rem 2rem;
}

.btn,
.correct-btn {
    flex: 1 1 50%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);

    align-items: center;
    justify-content: center;
    gap: 10px;
}

.down-btn,
.full-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.down-btn {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 58, 143, 0.2);
}

.down-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(26, 58, 143, 0.35);
}

.full-btn {
    background-color: #eef2f7;
    color: var(--text-color);
}

.full-btn:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

/* ðŸ“± Responsive @ mobile */
@media (max-width: 768px) {
    .pdf-buttons {
        flex-direction: column;
    }

    .full-btn,
    .down-btn,
    .telegram-btn i {
        width: 100%;
        font-size: 1.8rem;
        padding: 10px;
    }

    .responsive-pdf {
        height: 75vh;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .responsive-pdf {
        height: 60vh;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 1024px) {
    .responsive-pdf {
        height: 70vh;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .responsive-pdf {
        height: 85vh;
    }
}

/* Ultra-wide screens (Zenbook fold etc.) */
@media (min-width: 1440px) {
    .responsive-pdf {
        height: 90vh;
    }
}

/*  Normal desktops (e.g. Surface Pro landscape) */
@media (min-width: 1025px) and (max-width: 1439px) {
    .responsive-pdf {
        height: 85vh;
    }
}

/* iPads / Galaxy Fold */
@media (min-width: 768px) and (max-width: 1024px) {
    .responsive-pdf {
        height: 75vh;
    }
}

/*  iPhone 12 Pro & similar */
@media (min-width: 376px) and (max-width: 767px) {
    .responsive-pdf {
        height: 70vh;
    }
}

/*  iPhone SE / small phones */
@media (max-width: 375px) {
    .responsive-pdf {
        height: 65vh;
    }

    .pdf-wrapper {
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 410px) {
    .responsive-pdf {
        height: 65vh;
    }
}

@media screen and (min-width: 1400px) {
    .responsive-pdf {
        height: 85vh;
    }
}

@media (max-width: 600px) {
    .pdf-buttons {
        flex-direction: column;
    }

    .pdf-buttons button,
    .pdf-buttons a {
        width: 100%;
        font-size: 0.95rem;
    }
}

.responsive-pdf:fullscreen {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
}

.responsive-pdf:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
}

.responsive-pdf:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
}

/* ── CSS-based fullscreen overlay (mobile / iOS fallback) ────────────────── */
body.pdf-body-lock {
    overflow: hidden !important;
    touch-action: none !important;
}

.pdf-wrapper.pdf-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important; /* dynamic viewport height accounts for mobile browser chrome */
    max-width: none !important;
    z-index: 99999 !important;
    background: #000 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.pdf-wrapper.pdf-fullscreen iframe {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: none !important;
}

/* Keep the exit button visible, overlay it at the bottom */
.pdf-wrapper.pdf-fullscreen .pdf-buttons {
    flex: 0 0 auto !important;
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 6px 12px !important;
    justify-content: center !important;
}

/* Hide non-essential elements in CSS fullscreen */
.pdf-wrapper.pdf-fullscreen .telegram-btn,
.pdf-wrapper.pdf-fullscreen .correct-btn {
    display: none !important;
}

/*advice style*/
.advice {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-right: 7.7rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 900px;
    height: 80px;
    /* Fixed height for vertical centering */
    color: var(--primary-color);
    font-weight: 500;
    border: 2px solid var(--primary-color);
}

/* Timer Styles */
/* Modern Timer Redesign */
.compact-timer {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: none;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 10px 40px rgba(26,58,143,0.3);
    position: relative;
    overflow: hidden;
}
.compact-timer::before {
    content: '';
    position: absolute;
    top: -70px; right: -60px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.compact-timer::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -50px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.compact-timer p {
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.compact-timer p span {
    color: #ff6b35;
    position: relative;
    padding: 0 5px;
}
.timer-numbers {
    position: relative;
    z-index: 1;
}

.timer-numbers {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.time-block {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    min-width: 100px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    border-bottom: 3px solid rgba(255,255,255,0.4);
    border-top: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-block:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 16px 32px rgba(0,0,0,0.2);
}

.timer-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', sans-serif;
}

.timer-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    font-weight: 700;
}

@media (max-width: 600px) {
    .compact-timer {
        padding: 2rem 1rem;
    }

    .time-block {
        min-width: 80px;
        padding: 1.25rem 0.5rem;
    }

    .timer-number {
        font-size: 2rem;
    }
}


/* ============================================
   TIMERS GRID (3-timer layout)
   ============================================ */
.timers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}
@media (max-width: 900px) { .timers-grid { grid-template-columns: 1fr; } }

.compact-timer__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.compact-timer__label {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
    position: relative;
    z-index: 1;
}
.compact-timer__date {
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    z-index: 1;
}
/* Brand-consistent timer variants — same blue family, differentiated by depth */
.compact-timer--correction { background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%); box-shadow: 0 10px 40px rgba(26,58,143,0.32); }
.compact-timer--results    { background: linear-gradient(135deg, #0d2155 0%, #1a3a8f 50%, #2353c1 100%); box-shadow: 0 10px 40px rgba(13,33,85,0.35); }
.compact-timer--bac27      { background: linear-gradient(135deg, #1a3a8f 0%, #2660d8 55%, #4a82f5 100%); box-shadow: 0 10px 40px rgba(38,96,216,0.30); }

.timer-done {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   SHARE BUTTON (WhatsApp)
   ============================================ */
.share-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f4ff;
    color: var(--primary-color);
    border-top: 1px solid #e2e8f7;
}
.share-btn:hover {
    background: #e4eaff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 92, 197, 0.15);
}
.share-btn i { font-size: 1.1rem; }

@media (max-width: 768px) {
    .share-btn { width: 100%; font-size: 1rem; padding: 14px 10px; }
}

/* ============================================
   SHARE CARD (popup / bottom-sheet)
   ============================================ */
/* ============================================
   SHARE CARD — PREMIUM REDESIGN
   ============================================ */

/* ── Overlay ─────────────────────────────── */
.share-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 99990;
    pointer-events: none;
    transition: background 0.32s ease, backdrop-filter 0.32s ease;
}
.share-overlay.active {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: all;
}

/* ── Card shell ──────────────────────────── */
.share-card {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    background: #fff;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    z-index: 99991;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.34, 1.05, 0.64, 1);
    box-shadow: 0 -12px 60px rgba(8,18,55,0.22);
    max-width: 520px;
    margin: 0 auto;
}
.share-card.active { transform: translateY(0); }

@media (min-width: 600px) {
    .share-card {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        border-radius: 24px;
        width: 400px;
        transform: translate(-50%, -42%) scale(0.93);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.34, 1.05, 0.64, 1), opacity 0.22s ease;
    }
    .share-card.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* ── Drag handle (mobile only) ───────────── */
.share-card__handle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px;
    background: rgba(255,255,255,0.45);
    border-radius: 4px;
    z-index: 2;
}
@media (min-width: 600px) { .share-card__handle { display: none; } }

/* ── Gradient hero header ────────────────── */
.share-card__hero {
    position: relative;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    padding: 1.55rem 1.3rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.share-card__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 90% -10%, rgba(255,255,255,0.14) 0%, transparent 62%);
    pointer-events: none;
}
.share-card__hero::after {
    content: '';
    position: absolute;
    bottom: -28px; left: -28px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

/* White icon circle — same DNA as gcta-icon-circle */
.share-card__hero-icon {
    width: 50px; height: 50px; min-width: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: #1a3a8f;
    box-shadow: 0 4px 16px rgba(8,18,55,0.22);
    flex-shrink: 0;
    z-index: 1;
}

.share-card__hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    z-index: 1;
    min-width: 0;
}
.share-card__hero-text strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.25;
}
.share-card__hero-text span {
    color: rgba(255,255,255,0.72);
    font-size: 0.8rem;
    font-family: 'Tajawal', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Close button ────────────────────────── */
.share-card__close {
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.28);
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    z-index: 1;
}
.share-card__close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* ── Body ────────────────────────────────── */
.share-card__body {
    padding: 1.5rem 1.3rem 1.9rem;
}

/* ── Section label ───────────────────────── */
.share-card__label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3c8;
    font-family: 'Tajawal', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.share-card__label::before,
.share-card__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #edf0f7;
}

/* ── Share option grid ───────────────────── */
.share-card__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    margin-bottom: 1.3rem;
}
@media (min-width: 420px) {
    .share-card__options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 0.3rem 0.85rem;
    border-radius: 18px;
    cursor: pointer;
    border: 1.5px solid #edf0f7;
    background: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374060;
    transition: transform 0.22s cubic-bezier(0.34,1.2,0.64,1),
                box-shadow 0.22s ease,
                border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(44,92,197,0.06);
}
.share-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44,92,197,0.14);
    border-color: #d0daf5;
}
.share-option:active { transform: scale(0.94); }

.share-option__icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.34,1.2,0.64,1);
}
.share-option:hover .share-option__icon { transform: scale(1.08); }

.share-option--wa   .share-option__icon { background: linear-gradient(145deg, #25D366, #1da851); box-shadow: 0 4px 12px rgba(37,211,102,0.28); }
.share-option--tg   .share-option__icon { background: linear-gradient(145deg, #34b4e4, #229ED9); box-shadow: 0 4px 12px rgba(34,158,217,0.28); }
.share-option--fb   .share-option__icon { background: linear-gradient(145deg, #4a90f0, #1877F2); box-shadow: 0 4px 12px rgba(24,119,242,0.28); }
.share-option--copy .share-option__icon { background: linear-gradient(145deg, #3d6ee0, #1a3a8f); box-shadow: 0 4px 12px rgba(44,92,197,0.3); }

/* ── URL row ─────────────────────────────── */
.share-card__url-row {
    display: flex;
    align-items: center;
    background: #f4f7ff;
    border-radius: 12px;
    padding: 0.65rem 0.7rem 0.65rem 1rem;
    gap: 0.6rem;
    border: 1.5px solid #e4eaf7;
}
.share-card__url {
    flex: 1;
    font-size: 0.8rem;
    color: #5a6a8a;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    direction: ltr;
    font-family: 'Courier New', monospace;
}
.share-card__copy-url {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s, transform 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(26,58,143,0.25);
}
.share-card__copy-url:hover { filter: brightness(1.1); transform: translateY(-1px); }
.share-card__copy-url:active { transform: scale(0.96); }

/* ============================================
   PDF IFRAME SPINNER
   ============================================ */
.pdf-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    background: #f8faff;
    border-radius: 8px;
    margin: 0.5rem 0;
}
.pdf-spinner p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}
.pdf-spinner-ring {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(44,92,197,0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: pdfSpin 0.8s linear infinite;
}
@keyframes pdfSpin { to { transform: rotate(360deg); } }

/* ============================================
   ACCESSIBILITY & SEO
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   SOCIAL PROOF BADGE (homepage)
   ============================================ */
.social-proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(44,92,197,0.08);
    border: 1.5px solid rgba(44,92,197,0.2);
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}
.social-proof-badge i { color: #ff6b35; font-size: 1rem; }

/* Calculator Section */
.calculator-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin: 1rem 0;
    animation: fadeIn 0.5s ease-out;
}

.calculator-header {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}
.calculator-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.calculator-header::after {
    content: '';
    position: absolute;
    bottom: -70px; left: -40px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.calculator-header h2,
.calculator-header p {
    position: relative;
    z-index: 1;
}

.calculator-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.calculator-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Field Selection */
.field-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 2rem;
}

.field-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.field-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card-theme, #2c5cc5) 50%, transparent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.field-card:hover::before { transform: scaleX(1); }
.field-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-theme, #2c5cc5) 30%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--card-theme, #2c5cc5) 12%, transparent);
}

.field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin: 0 auto 1.5rem;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--grad-start, #1a3a8f), var(--grad-end, #3d6ee0));
    color: white !important;
    box-shadow: 0 5px 12px color-mix(in srgb, var(--card-theme, #2c5cc5) 35%, transparent);
    transition: transform 0.2s ease;
}

.field-card:hover .field-icon {
    transform: scale(1.1);
}

.field-card.math {
    --card-theme: #2c5cc5;
    --grad-start: #1a3a8f;
    --grad-end: #3d6ee0;
}

.field-card.science {
    --card-theme: #ff6b35;
    --grad-start: #d4530a;
    --grad-end: #ff885e;
}

.field-card.tech {
    --card-theme: #2c5cc5;
    --grad-start: #1a3a8f;
    --grad-end: #3d6ee0;
}

.field-card.management {
    --card-theme: #ff6b35;
    --grad-start: #d4530a;
    --grad-end: #ff885e;
}

.field-card.literature {
    --card-theme: #2c5cc5;
    --grad-start: #1a3a8f;
    --grad-end: #3d6ee0;
}

.field-card.languages {
    --card-theme: #ff6b35;
    --grad-start: #d4530a;
    --grad-end: #ff885e;
}

.field-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c5cc5;
}

.field-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Subject Inputs */
.subject-container {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.subject-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.subjects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}
.subjects-grid > * {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}

.subject-card {
    background:
        linear-gradient(180deg, transparent, rgba(44,92,197,0.4), #2c5cc5) right / 4px 100% no-repeat,
        white;
    border-radius: 18px;
    padding: 1.4rem;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(44,92,197,0.1);
    box-shadow: 0 4px 20px rgba(44,92,197,0.07);
    position: relative;
}

.subject-card.optional {
    background:
        linear-gradient(180deg, transparent, rgba(243,156,18,0.4), #f39c12) right / 4px 100% no-repeat,
        white;
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44,92,197,0.13);
    border-color: rgba(44,92,197,0.25);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.subject-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 1rem;
}

.subject-coeff {
    background: linear-gradient(135deg, #1a3a8f, #3d6ee0);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(44,92,197,0.35);
}

.grade-input-container {
    display: flex;
    align-items: center;
    position: relative;
}

.grade-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    text-align: center;
    transition: all 0.25s ease;
    outline: none;
}

.grade-input:focus {
    border-color: #2c5cc5;
    box-shadow: 0 0 0 3px rgba(44,92,197,0.12);
    background: white;
}

.grade-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.optional-tag {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(243,156,18,0.35);
}

.error-message {
    display: none;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 200;
    background: #fff1f0;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(185,28,28,0.12);
    direction: rtl;
    text-align: right;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.error-message::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff1f0;
    border-top: 1.5px solid #fca5a5;
    border-right: 1.5px solid #fca5a5;
    transform: rotate(-45deg);
    border-radius: 2px;
}
.error-message.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.card-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
}

.btn.calculate {
    background: linear-gradient(135deg, #1a3a8f, #3d6ee0);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 92, 197, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(44, 92, 197, 0.45);
}

.btn.reset {
    background: linear-gradient(135deg, #e11d48, #ff718b);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.45);
}

.result-section .btn.reset {
    background: rgba(255,255,255,0.18);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    position: relative; z-index: 1;
}

.result-section .btn.reset:hover {
    background: rgba(255,255,255,0.28);
    color: white;
}

.btn.back {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn.back:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.45);
}

/* Result Section */
.result-section {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(26,58,143,0.35);
    padding: 3rem 2.5rem;
    text-align: center;
    margin-top: 2rem;
    display: none;
    position: relative;
    overflow: hidden;
}
.result-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.result-section::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.result-section.visible {
    display: block;
    animation: resultReveal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes resultReveal {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.result-message {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-transform: none;
    position: relative; z-index: 1;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 900;
    color: white;
    margin: 0.4rem 0 0.2rem;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: white;
    line-height: 1;
    position: relative; z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-family: 'Tajawal', sans-serif;
}

.result-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative; z-index: 1;
    flex-wrap: wrap;
}

.result-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 1.2rem 1.5rem;
    margin-bottom: 0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
    border-bottom: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    min-width: 110px;
    flex: 1;
}

.result-box:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.result-label {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.result-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    font-family: 'Tajawal', sans-serif;
}

/* ═══════════════════════════════════════════════════════
   CALCULATOR NAME ROW
═══════════════════════════════════════════════════════ */
.calc-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.8rem 2rem; /* Added 1.8rem top margin to create a gap between it and the header */
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}
.calc-name-row::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(44,92,197,0.4), #2c5cc5);
    border-radius: 0 16px 16px 0;
}
@media (max-width: 768px) {
    .calc-name-row { margin: 1.2rem 1rem 1.5rem 1rem; } /* Added 1.2rem top margin on mobile */
}
@media (max-width: 520px) {
    .calc-name-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; margin: 1.2rem 1rem 1.5rem 1rem; }
}
.calc-name-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calc-name-group label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #334155;
}
.calc-name-optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.8rem;
}
.calc-name-group input {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: all 0.25s ease;
    direction: rtl;
}
.calc-name-group input:focus {
    border-color: #2c5cc5;
    box-shadow: 0 0 0 3px rgba(44,92,197,0.12);
    background: #ffffff;
}

/* ═══════════════════════════════════════════════════════
   REVEAL PICKER (inside result-section)
═══════════════════════════════════════════════════════ */
.reveal-picker {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}
.reveal-picker-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    letter-spacing: 0.3px;
}
.reveal-picker-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
@media (max-width: 500px) {
    .reveal-picker-cards { grid-template-columns: 1fr; }
}
.reveal-pick-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.13);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: background 0.22s, transform 0.18s, border-color 0.22s;
    text-align: right;
    backdrop-filter: blur(6px);
}
.reveal-pick-card:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,213,79,0.6);
    transform: translateY(-3px);
}
.reveal-pick-card:active { transform: translateY(0); }
.rpc-icon {
    font-size: 1.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.rpc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rpc-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.rpc-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.3;
}
.rpc-arrow {
    color: rgba(255,213,79,0.8);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.reveal-pick-card:hover .rpc-arrow { transform: translateX(-4px); }

/* ═══════════════════════════════════════════════════════
   REVEAL OVERLAYS (shared base)
═══════════════════════════════════════════════════════ */
.bs-reveal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,15,40,0.82);
    z-index: 9900;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 12px 40px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    animation: bsOverlayIn 0.3s ease;
}
@keyframes bsOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Shell: stacks tab bar + card content as one column */
.bs-reveal-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 480px;
    padding-top: 0;
    padding-bottom: 20px;
}

.bs-oeb-wrapper,
.bs-gazette-wrapper {
    margin-top: 8px;
}

/* ─── TAB SWITCHER BAR ──────────────────────── */
.bs-tab-bar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 3px;
    gap: 0;
    width: 100%;
    height: 40px;
    direction: rtl;
    box-sizing: border-box;
    overflow: hidden;
}
/* Sliding pill */
.bs-tab-pill {
    position: absolute;
    top: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 999px;
    transition: left 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 6px rgba(0,0,0,0.22);
    pointer-events: none;
    z-index: 0;
}
.bs-tab-btn {
    flex: 1;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    height: 34px;
    padding: 0 12px;
    font-family: 'Cairo','Tajawal',sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.22s ease;
    white-space: nowrap;
    text-align: center;
    line-height: 34px;
    overflow: hidden;
    min-width: 0;
    user-select: none;
}
.bs-tab-btn.active {
    color: #1a3a8f;
}
/* Tab row: close button + tab bar on same line — sticky at top */
.bs-tab-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0 0 8px;
}
.bs-tab-row .bs-tab-bar {
    flex: 1;
    max-width: none;
}
/* Close button — inline in tab row */
.bs-reveal-close--inline {
    flex-shrink: 0;
    position: static;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    font-family: sans-serif;
}
.bs-reveal-close--inline:hover { background: rgba(255,255,255,0.25); }
/* Legacy fixed close (kept for fallback) */
.bs-reveal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    font-family: sans-serif;
}
.bs-reveal-close:hover { background: rgba(255,255,255,0.25); }

/* Gazette wrapper (outside captured card) */
.bs-gazette-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Increased from 14px to align visual gap with OEB template, compensating for the outer shadow border */
    width: 100%;
    max-width: 480px;
}
.bs-gazette-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* ─── OEB CARD ─────────────────────────────── */
.bs-oeb-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    animation: bsCardUp 0.4s cubic-bezier(0.22,1,0.36,1);
    font-family: 'Cairo','Tajawal',sans-serif;
}
@keyframes bsCardUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.bs-oeb-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 480px;
}
/* ── Premium header ── */
.bs-oeb-topbar {
    background: linear-gradient(135deg, #0f2660 0%, #1a3a8f 35%, #2c5cc5 70%, #3d6ee0 100%);
    padding: 1.2rem 1.6rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
/* Subtle radial glow top-center */
.bs-oeb-topbar-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.13) 0%, transparent 70%);
    pointer-events: none;
}
.bs-oeb-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Cairo','Tajawal',sans-serif;
    direction: ltr;
}
/* Letter-mark circle */
.bs-oeb-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.bs-oeb-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: right;
}
.bs-oeb-brand-name {
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.1;
    font-family: 'Pattaya', sans-serif;
}
.bs-oeb-brand-tagline {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    letter-spacing: normal;
    font-family: 'Cairo','Tajawal',sans-serif;
}
/* Ornamental divider inside header */
.bs-oeb-topbar-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 80%;
    opacity: 0.4;
}
.bs-oeb-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.6);
}
.bs-oeb-divider-dot {
    color: rgba(255,255,255,0.8);
    font-size: 0.55rem;
}
.bs-oeb-brand-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.68rem;
    font-family: 'Cairo','Tajawal',sans-serif;
    font-weight: 500;
    letter-spacing: normal;
}
/* ── Body — exactly like real OEB: plain rows, no border box */
.bs-oeb-body {
    padding: 1.6rem 2rem 0.8rem;
    direction: rtl;
    background: #fff;
}
.bs-oeb-congrats {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.6rem;
    letter-spacing: normal;
    font-family: 'Cairo','Tajawal',sans-serif;
}
.bs-oeb-congrats.pass { color: #f97316; }
.bs-oeb-congrats.fail { color: #7f8c8d; }
/* Plain rows — no box, no border-radius, exact OEB style */
.bs-oeb-fields {
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 0;
}
.bs-oeb-field {
    display: flex;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: none;
    gap: 0.3rem;
    direction: rtl;
}
.bs-oeb-field-lbl {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    min-width: 120px;
    flex-shrink: 0;
    text-align: right;
}
.bs-oeb-field-sep {
    color: #111;
    font-weight: 700;
    margin: 0 4px;
}
.bs-oeb-field-val {
    font-size: 1rem;
    color: #111;
    font-weight: 600;
    flex: 1;
    text-align: right;
}
.bs-oeb-field-val.big {
    font-size: 1.35rem;
    font-weight: 900;
    color: #111;
    direction: ltr;
    text-align: right;
    font-family: 'Cairo','Tajawal',sans-serif;
}
.bs-oeb-field.highlight { background: none; }
/* Separator line before average — like real OEB */
.bs-oeb-field.highlight .bs-oeb-field-lbl { color: #1a3a8f; font-weight: 900; }
.bs-oeb-watermark { display: none; }
.bs-oeb-sep { display: none; }
/* Premium footer brand strip */
.bs-oeb-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 1.6rem 14px;
    background: #fafbff;
    border-top: 1px solid #eef0f8;
    width: 100%;
}
.bs-oeb-footer-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8d3f0, transparent);
}
.bs-oeb-footer-link {
    font-family: 'Cairo','Tajawal',sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2c5cc5;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
}
.bs-oeb-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

/* ─── GAZETTE CARD ──────────────────────────── */
.bs-gazette-card {
    background: #f5f0e8;
    border-radius: 4px;
    width: 100%;
    max-width: 468px; /* Adjusted from 480px to align visual frontiers (including 6px shadow/border on each side) with the 480px top section */
    box-shadow: 0 0 0 1px #c9b89a, 0 0 0 5px #e8dcc8, 0 0 0 6px #c9b89a, 0 20px 60px rgba(0,0,0,0.5);
    overflow: visible;
    animation: bsCardUp 0.45s cubic-bezier(0.22,1,0.36,1);
    font-family: 'Amiri','Cairo',serif;
    color: #2b1a0a;
    position: relative;
}
.bs-gazette-close {
    position: fixed;
    top: 16px;
    left: 16px;
    background: #f5f0e8;
    border: 1.5px solid #c9b89a;
    color: #5a3010;
    font-size: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: background 0.2s;
    font-family: sans-serif;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.bs-gazette-close:hover { background: #e8dcc8; }
.bs-gazette-inner { padding: 0; }
.bs-gz-top {
    padding: 18px 24px 12px;
    text-align: center;
    border-bottom: 1.5px solid #c9b89a;
    position: relative;
}
.bs-gz-orn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 5px 0;
}
.bs-gz-ornline {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5a3010 40%, #5a3010 60%, transparent);
}
.bs-gz-ornsym {
    font-size: 13px;
    color: #5a3010;
    font-family: serif;
}
.bs-gz-title {
    font-family: 'Pattaya', 'Amiri', serif;
    font-size: 19px;
    font-weight: 400;
    color: #1a0a00;
    line-height: 1.4;
    margin: 4px 0 2px;
}
.bs-gz-issue {
    font-size: 9.5px;
    color: #7a5a30;
    margin-top: 6px;
}
.bs-gz-decree {
    padding: 20px 28px 14px;
    position: relative;
}
.bs-gz-text {
    font-size: 14.5px;
    line-height: 1.9;
    color: #2b1a0a;
    text-align: center;
}
.bs-gz-intro {
    display: block;
    font-size: 13px;
    color: #4a3010;
    margin-bottom: 1px;
    line-height: 1.7;
}
.bs-gz-name {
    display: block;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1a3a8f;
    margin: 12px 0 8px;
}
.bs-gz-detail {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #2b1a0a;
    margin: 6px 0 2px;
    line-height: 1.6;
}
.bs-gz-detail strong { color: #1a3a8f; }
.bs-gz-spec {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #5a3010;
    margin-top: 6px;
}
.bs-gz-wish {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #5a3010;
    margin-top: 6px;
    font-weight: 700;
}
.bs-gz-seal {
    display: flex;
    justify-content: center;
    padding: 8px 0 16px;
}
.bs-gz-seal svg { filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2)); }
.bs-gazette-footer {
    padding: 14px 20px 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
}
.bs-gz-watermark {
    text-align: center;
    color: #a08060;
    font-size: 0.68rem;
    font-family: 'Cairo',sans-serif;
    padding: 6px 0 10px;
    letter-spacing: normal;
    opacity: 0.7;
}

/* ─── DOWNLOAD BUTTON ───────────────────────── */
.bs-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg,#1a3a8f,#2c5cc5);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 0.65rem 1.5rem;
    font-family: 'Cairo','Tajawal',sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(44,92,197,0.3);
}
.bs-dl-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.bs-dl-btn:active { transform: translateY(0); }
.bs-dl-btn.gazette {
    background: linear-gradient(135deg,#5a3010,#8b4513);
    box-shadow: 0 4px 16px rgba(90,48,16,0.3);
}
.bs-dl-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
.bs-dl-btn.bs-dl-secondary {
    background: #fff;
    border: 1.5px solid rgba(44,92,197,0.15);
    color: #1a3a8f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bs-dl-btn.gazette.bs-dl-secondary {
    border-color: rgba(245,240,232,0.4);
    color: #f5f0e8;
}
#wc-inputs {
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}
#wc-inputs .subjects-grid {
    margin-bottom: 0;
}
#wc-inputs > div:last-child {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
}
@media (max-width: 768px) {
    #wc-inputs { padding: 1rem; }
}

.wc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(26,58,143,0.25);
    color: #1a3a8f;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.wc-back-btn:hover {
    background: rgba(26,58,143,0.06);
    border-color: rgba(26,58,143,0.5);
    transform: translateY(-1px);
}
.wc-back-btn i { font-size: 0.85em; }

.wc-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a3a8f, #2c5cc5);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26,58,143,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.wc-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,58,143,0.45);
}
.wc-calc-btn i { font-size: 0.85em; }

.acceptance-calc-wrap {
    text-align: right;
    margin-top: 1rem;
}
.acceptance-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: transparent;
    border: 1.5px solid rgba(var(--primary-color-rgb, 26,58,143), 0.3);
    color: var(--primary-color);
    padding: 9px 22px;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.acceptance-calc-btn:hover {
    background: rgba(26,58,143,0.06);
    border-color: rgba(26,58,143,0.5);
    transform: translateY(-1px);
}
.acceptance-calc-btn i { font-size: 0.85em; }

.bs-oeb-actions, .bs-gazette-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/*university section*/

.Speciality-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.Speciality-card {
    background: #eef2f7;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    display: inline;
    height: 400px;
    width: 250px;
    margin: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.Speciality-card:hover {
    transform: scale(1.1);
}

.Speciality-photo {
    height: 60%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a405e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.Speciality-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.Speciality-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.horizontal-stack-gallery {
    position: relative;
    height: 630px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.photo-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-photo,
.side-photo {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.center-photo {
    width: 60%;
    z-index: 3;
}

.side-photo {
    width: 25%;
    z-index: 2;
}

.left-peek {
    left: 5%;
    transform: perspective(1000px) rotateY(30deg) scale(0.9);
}

.right-peek {
    right: 5%;
    transform: perspective(1000px) rotateY(-30deg) scale(0.9);
}

.center-photo-img,
.side-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.photo-nav {
    position: absolute;
    font-size: 4.5rem;
    color: white;
    cursor: pointer;
    z-index: 4;
}

.photo-nav:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.left-nav {
    left: 10%;
}

.right-nav {
    right: 10%;
}

.photo-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.gallery-images {
    display: none;
}

.container .intro {
    background: white;
    padding: 25px;
    border: 3px dashed #eaeaea;
    border-radius: 8px;
    height: 100%;
    width: 100%;
    /* <-- Make it full width */
    box-sizing: border-box;
    /* <-- Ensure padding doesn't exceed width */
    display: flex;
    flex-direction: column;
}


.intro h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    align-self: center;
}

.intro ul {
    list-style: none;
    padding: 0;
    height: 100%;
}

.intro li {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    color: #555;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.intro li:hover {
    background: #eef2f7;
    transform: translateX(-5px);
}

.intro li i {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.detail-card {
    background: #ffffff;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: all 0.28s ease;
    overflow: hidden;
    border: 1.5px solid #edf0f7;
    border-top: 3px solid var(--primary-color);
}

.detail-card::before,
.detail-card::after {
    content: none;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(44, 92, 197, 0.14);
    border-color: rgba(44, 92, 197, 0.25);
    border-top-color: var(--primary-color);
}

.detail-card.prencipal-card {
    grid-column: span 3;
}

.detail-card.prencipal-card h3 {
    justify-content: center;

}

.detail-card.prencipal-card p {
    text-align: center;
}

.detail-card.large-card {
    grid-column: span 2;
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card h3 i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.detail-card p,
.detail-card ul {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}

.detail-card ul {
    list-style: inside;
}

.detail-card ul li {
    margin-bottom: 8px;
    padding-right: 5px;
    position: relative;
}

#university-system .section-title {
    text-align: center;
    margin-bottom: 30px;
}

#university-system .detail-card p {
    text-align: justify;
}

/* Footer */
.footer-arabic {
    z-index: 100;
    position: relative;
    display: block;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    color: white;
    padding: 1.5rem 0 0.5rem;
    direction: rtl;
    margin-top: 2rem;
    border-top: 3px solid rgba(255,255,255,0.15);
    overflow: hidden;
}
.footer-arabic::before {
    content: '';
    position: absolute;
    top: -80px; left: -60px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.footer-arabic::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -60px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.footer-arabic > * {
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    text-decoration: none;
}

.social-link i {
    color: var(--secondary-color);
}

.social-link:hover {
    color: white;
    background: white;
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* About Page Styles */

.text-center {
    text-align: center;
}


.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    display: inline-block;
    padding: 0 20px;
    background: white;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #2c5cc5, transparent);
    z-index: 1;
}


/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════════════ */

/* Mission / Vision */
.about-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}
.about-mv-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(44, 92, 197, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1.5px solid rgba(44, 92, 197, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(44, 92, 197, 0.14);
}
.about-mv-icon-wrap { display: flex; }
.about-mv-icon {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}
.about-mv-mission .about-mv-icon {
    background: linear-gradient(135deg, #1a3a8f 0%, #3d6ee0 100%);
    box-shadow: 0 6px 20px rgba(44, 92, 197, 0.35);
}
.about-mv-vision .about-mv-icon {
    background: linear-gradient(135deg, #e8520f 0%, #ff6b35 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}
.about-mv-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a3a8f;
    margin: 0;
}
.about-mv-text {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.85;
    margin: 0;
}

/* Features */
.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}
.about-feature-card {
    background: white;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1.5px solid rgba(44, 92, 197, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.about-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(44, 92, 197, 0.13);
    border-color: rgba(44, 92, 197, 0.2);
}
.about-feature-icon {
    width: 48px; height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a3a8f 0%, #3d6ee0 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(44, 92, 197, 0.3);
}
.about-feature-body h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.35rem;
}
.about-feature-body p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* Founder */
.about-founder-wrap {
    margin-bottom: 3rem;
}
.about-founder-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(44, 92, 197, 0.1);
    display: flex;
    border: 1.5px solid rgba(44, 92, 197, 0.08);
}
.about-founder-left {
    background: linear-gradient(160deg, #0d2260 0%, #1a3a8f 50%, #2c5cc5 100%);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}
.about-founder-left::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}
.about-founder-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
}
.about-founder-social {
    display: flex;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}
.about-social-btn {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.about-social-btn:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
    color: white;
}
.about-founder-right {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}
.about-founder-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b35, #e8520f);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    width: fit-content;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}
.about-founder-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a3a8f;
    margin: 0;
}
.about-founder-role {
    font-size: 0.92rem;
    font-weight: 600;
    color: #2c5cc5;
    margin: 0;
}
.about-founder-bio {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.8;
    margin: 0.4rem 0 0;
    max-width: 540px;
}

/* Closing */
.about-closing {
    margin: 1rem 0 3rem;
}
.about-closing-inner {
    background: linear-gradient(135deg, #0d2260 0%, #1a3a8f 50%, #2c5cc5 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: right;
}
.about-closing-icon {
    font-size: 1.8rem;
    color: #ff6b35;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.7));
}
.about-closing-inner p {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    line-height: 1.65;
    margin: 0;
}

/* About responsive */
@media (max-width: 768px) {
    .about-mv-grid,
    .about-features-grid { grid-template-columns: 1fr; }
    .about-founder-card { flex-direction: column; }
    .about-founder-left { min-width: unset; flex-direction: row; padding: 1.5rem; }
    .about-founder-right { padding: 1.5rem; }
    .about-closing-inner { flex-direction: column; text-align: center; padding: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════════ */

/* ── Contact channel cards (cc-*) ── */
.contact-channels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}
.cc-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(44, 92, 197, 0.1);
    border: 1.5px solid rgba(44, 92, 197, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(44, 92, 197, 0.16);
}

/* Header strip */
.cc-head {
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.cc-head::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.cc-head--blue  { background: linear-gradient(135deg, #0d2260 0%, #1a3a8f 45%, #2c5cc5 100%); }
.cc-head--orange { background: linear-gradient(135deg, #c43d00 0%, #e8520f 50%, #ff6b35 100%); }

.cc-head-icon {
    width: 46px; height: 46px;
    min-width: 46px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.28);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: white;
    position: relative; z-index: 1;
}
.cc-head-text { position: relative; z-index: 1; }
.cc-head-text h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.2rem;
}
.cc-head-text span {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
}

/* White body */
.cc-body {
    background: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Email rows */
.cc-email-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1.5px solid #e8edf5;
    border-radius: 11px;
    text-decoration: none;
    color: #2c5cc5;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.87rem;
    font-weight: 600;
    transition: all 0.22s;
    direction: ltr;
    justify-content: flex-end;
}
.cc-email-row i { color: #94a3b8; font-size: 0.9rem; flex-shrink: 0; transition: color 0.22s; }
.cc-email-row:hover { background: #2c5cc5; color: white; border-color: #2c5cc5; }
.cc-email-row:hover i { color: rgba(255,255,255,0.7); }

/* Social row */
.cc-social-row {
    display: flex;
    gap: 0.65rem;
}
.cc-social-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 0.5rem;
    border-radius: 13px;
    background: #f8fafc;
    border: 1.5px solid #e8edf5;
    text-decoration: none;
    color: #475569;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.22s;
}
.cc-social-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: white;
    transition: transform 0.22s;
}
.cc-tg .cc-social-icon  { background: #2AABEE; box-shadow: 0 4px 12px rgba(42,171,238,0.35); }
.cc-ig .cc-social-icon  { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); box-shadow: 0 4px 12px rgba(253,29,29,0.3); }
.cc-li .cc-social-icon  { background: #0077b5; box-shadow: 0 4px 12px rgba(0,119,181,0.35); }
.cc-tg:hover { background: #e8f8ff; border-color: #2AABEE; color: #0088cc; }
.cc-ig:hover { background: #fff0f5; border-color: #fd1d1d; color: #c0392b; }
.cc-li:hover { background: #e8f4fb; border-color: #0077b5; color: #005885; }
.cc-social-item:hover .cc-social-icon { transform: scale(1.08); }

@media (max-width: 768px) {
    .contact-channels-grid { grid-template-columns: 1fr; }
}

/* Modern form */
.contact-form-modern {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(44, 92, 197, 0.09);
    border: 1.5px solid rgba(44, 92, 197, 0.08);
    margin-bottom: 3rem;
}
.cfm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.cfm-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.cfm-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a3a8f;
}
.cfm-input-wrap {
    position: relative;
}
.cfm-input-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}
.cfm-input {
    width: 100%;
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-sizing: border-box;
    direction: rtl;
}
.cfm-input:focus {
    outline: none;
    border-color: #2c5cc5;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 92, 197, 0.12);
}
.cfm-textarea {
    padding-top: 0.85rem;
    min-height: 160px;
    resize: vertical;
}
.cfm-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(44, 92, 197, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
}
.cfm-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(44, 92, 197, 0.45);
}

/* Contact responsive */
@media (max-width: 768px) {
    .contact-channels-grid { grid-template-columns: 1fr; }
    .cfm-row { grid-template-columns: 1fr; }
    .contact-form-modern { padding: 1.5rem; }
}

.notification {
    position: fixed;
    justify-self: center;
    top: 100px;
    padding: 15px 15px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInNotif 0.4s ease-out;
}

.notification.success {
    background: #28a745;
    color: #fff;
}

.notification.error {
    background: #dc3545;
    color: #fff;
}

@keyframes fadeInNotif {
    from {
        opacity: 0;
        transform: translate(-50%, -0px);
        -webkit-transform: translate(-50%, -0px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Tooltip */

/* Custom Scrollbar */
::-webkit-scrollbar {
    display: none;
}


/*responsive for university section */
@media (max-width: 992px) {
    .detail-card.large-card {
        grid-column: span 2;
    }

    .horizontal-stack-gallery {
        height: 500px;
    }

    .intro h2 {
        font-size: 2rem;
    }

    .detail-card h3 {
        font-size: 1.6rem;
    }

    .detail-card.prencipal-card {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .content {
        flex-direction: column;
    }

    .horizontal-stack-gallery {
        height: 550px;
        display: flex;
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .detail-card {
        padding: 20px;
    }

    .detail-card h3 {
        font-size: 1.3rem;
    }

    .photo-container {
        width: 100%;
    }

    .center-photo,
    .side-photo {
        width: 80%;
    }

    .center-photo-img,
    .left-photo img,
    .right-photo img {
        width: 100%;
        object-fit: cover;
    }

    .horizontal-stack-gallery {
        flex-direction: row;
        height: 400px;
    }

    .intro {
        width: 100%;
        padding: 15px 8px;
        margin-bottom: 25px;
    }

    .intro h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .intro li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
        padding: 15px 10px;
    }

    .intro li i {
        margin: 0;
    }

    .photo-container {
        width: 100%;
        height: 100%;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .photo-nav {
        font-size: 3.5rem;
        width: 60px;
        height: 60px;
    }

    .detail-card.prencipal-card,
    .detail-card.large-card {
        grid-column: span 1;
    }

    #university-system .details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-card h3 {
        font-size: 1.2rem;
    }

    .detail-card ul li {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links a:hover {
        transform: scale(1.1);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {

    .horizontal-stack-gallery {
        height: 300px;
    }

    .photo-nav {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }

    .left-nav {
        left: 10%;
    }

    .right-nav {
        right: 10%;
    }
}

@media (max-width: 480px) {
    .photo-container {
        height: 300px;
    }

    .photo-nav {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .photo-counter {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    .details {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .detail-card {
        padding: 15px;
    }

    .detail-card h3 {
        font-size: 1rem;
    }

    .detail-card p,
    .detail-card ul li {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/*responsive for about page*/
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.6rem;
    }
}

/*responsive design*/
@media (max-width: 1200px) {
    .dropdown-content a {
        height: 65px;
        display: flex;
        align-items: center;
    }

    .container {
        margin: 2rem auto;
        padding: 1rem 0.5rem;
    }

    .btn-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .main-btn {
        width: 90%
    }
}

@media (max-width: 1100px) {

    .nav-links a {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {

    .container {
        margin: 4rem auto;
        padding: 1rem;
    }

    .nav-brand a {
        font-size: 1.5rem;
    }

    .nav-links a {
        font-size: 1rem;
        line-height: 25px;
        margin-right: 0;
    }

    .calculator-header {
        padding: 1.5rem;
    }

    .field-selection {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a,
    .dropdown-btn {
        padding: 0.5rem 0.7rem;
        font-size: 1rem;
    }

    .btn-container,
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }

    .main-btn {
        width: 90%
    }

    .field-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 1.5rem;
    }

    .field-icon {
        font-size: 2.4rem;
    }

    .field-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        flex-direction: row;
    }

    .nav-links a {
        padding: 15px;
    }

    .nav-brand a {
        font-size: 1.5rem;
    }

    .dropdown-content {
        width: 170px;
    }

    .dropdown-content a {
        height: 60px;
        display: flex;
        align-items: center;
    }

    .main-btn {
        width: 70%;
        height: 100%;
        font-size: 1rem;
    }

    .btn-container,
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .main-btn {
        min-height: 110px;
        font-size: 0.95rem;
        padding: 1rem;
    }

    .main-btn i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .timer-numbers {
        gap: 1rem;
    }

    .timer-number {
        font-size: 2rem;
        padding: 0.75rem 1.25rem;
        min-width: 70px;
    }

    .field-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 1.5rem;
    }

    .main-btn {
        width: 90%;
        height: 120px;
        margin: 20px auto;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .field-card {
        padding: 1.8rem;
    }

    .field-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .field-title {
        font-size: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .result-details {
        flex-direction: column;
        gap: 15px;
    }

    .result-box {
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 576px) {
    .modern-utilities {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 2.2rem;
    }
    .ticker-row {
        display: block;
        overflow: hidden;
        width: 100%;
        direction: ltr;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    }
    .ticker-track {
        display: flex;
        direction: ltr;
        gap: 0.65rem;
        width: max-content;
        animation: tagTicker 10s linear infinite;
    }
    .ticker-track--rev {
        animation: tagTickerRev 10s linear infinite;
    }
    .ticker-dupe { display: flex; }
    .modern-tag {
        flex-direction: row !important;
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 0.6rem 1.1rem;
        gap: 0.5rem;
        direction: rtl;
    }
    .modern-tag i { font-size: 0.95rem; }

    .nav-container {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-btn {
        width: 90%;
        height: 140px;
        font-size: 1rem;
        gap: 0.8rem
    }

    .container {
        margin-top: 4rem;
    }

    .compact-timer {
        width: 90%
    }

    .timer-numbers {
        flex-wrap: nowrap;
    }

    .time-block {
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-container,
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin: 1.5rem 0;
    }

    .main-btn {
        min-height: 110px;
        font-size: 0.95rem;
        padding: 1rem;
    }

    .main-btn i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {

    .nav-container {
        flex-direction: row;
        padding: 0.5rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-container,
    .specialty-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .main-btn {
        width: 100%;
        height: 140px;
        padding: 1rem;
        gap: 0.8rem
    }

    .resource-content {
        margin-top: 1rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .compact-timer {
        padding: 1rem;
    }

    .timer-numbers {
        flex-wrap: wrap;
    }

    .time-block {
        width: 45%;
        margin-bottom: 1rem;
    }

    .advice {
        width: 100%;
        margin-right: 0;
        padding: 1rem;
        height: auto;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .subject-container {
        padding: 1rem;
    }

    .subjects-grid > * {
        flex: 0 0 100%;
    }

    .result-section {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .result-message {
        font-size: 1.5rem;
    }

    .field-selection {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 15px;
    }

    .calculator-section {
        margin: 1.5rem 0.5rem;
    }

    .calculator-header h2 {
        font-size: 1.4rem;
    }

    .calculator-header p {
        font-size: 0.95rem;
    }

    .action-buttons {
        gap: 0.8rem;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .field-card {
        padding: 1.5rem;
        align-self: center;
    }

    .field-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .field-title {
        font-size: 1.4rem;
    }

    .field-description {
        font-size: 1rem;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {

    .advice {
        width: 100%;
        margin-right: 0;
    }

    .subjects-grid > * {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

/*Animations*/

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 143, 0.96) 0%, rgba(44, 92, 197, 0.96) 55%, rgba(61, 110, 224, 0.96) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem 1.5rem;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.search-input-wrapper i {
    color: white;
    font-size: 1.2rem;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    outline: none;
    width: 100%;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.clear-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 0.5rem;
}

.clear-btn.visible {
    opacity: 0.7;
    visibility: visible;
}

.close-search-btn {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-results-area {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-left: 10px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.search-result-item i {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.result-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.result-info p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

.result-specialty-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(44, 92, 197, 0.13);
    color: var(--primary-color);
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid rgba(44, 92, 197, 0.25);
    white-space: nowrap;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.search-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Quick Links Positioning Refinement */
.search-quick-links {
    margin-bottom: 1.5rem;
}

.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.quick-link-item {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-link-item:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Search Footer Section */
.search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.search-footer-logo {
    font-family: 'Pattaya', sans-serif;
    font-size: 1.8rem;
    color: white;
    letter-spacing: 1px;
}

.search-telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #24A1DE;
    /* Telegram Blue */
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.3);
    width: fit-content;
    margin: 0 auto;
}

.search-footer .search-telegram-btn {
    margin: 0;
    /* Keep it on the side in the search overlay */
}
.mobile-menu-footer .search-telegram-btn {
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

.search-telegram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(36, 161, 222, 0.4);
    filter: brightness(1.1);
}

/* Mobile Menu Footer Branding */
.mobile-menu-footer {
    display: none;
    width: 100%;
    margin-top: auto;
    padding-top: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.menu-footer-logo {
    font-family: 'Pattaya', sans-serif;
    font-size: 1.8rem;
    color: white;
    letter-spacing: 1px;
}

@media (max-width: 1100px) {
    .mobile-menu-footer {
        display: flex;
    }
}

@media (max-width: 600px) {
    .search-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1rem;
    }

    .search-placeholder {
        padding: 2rem 1rem;
    }

    .search-overlay {
        z-index: 10000;
        /* Higher than top/bottom bars */
    }

    .navbar:has(.nav-links.active) {
        z-index: 10000;
    }
}

/* ================================================================
   AD STRIP SYSTEM
   ================================================================ */

:root {
    --ad-strip-height: 0px;
}

.ad-strip {
    position: fixed;
    top: var(--navbar-height, 84px);
    left: 0;
    width: 100%;
    height: 65px;
    align-content: center;
    z-index: 999;
    background: linear-gradient(135deg, #1e3fa0 0%, #2c5cc5 55%, #3d6dd8 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    direction: rtl;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
}

.ad-strip.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.ad-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
}

.ad-strip-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* .ad-strip-label removed — kept sponsor watermark on cards only */

.ad-strip-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}



.ad-strip-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow: hidden;
}

.ad-strip-content.rotating-out {
    animation: adStripFadeOut 0.3s ease forwards;
}

.ad-strip-content.rotating-in {
    animation: adStripFadeIn 0.3s ease forwards;
}

@keyframes adStripFadeOut {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@keyframes adStripFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-strip-emoji {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ad-strip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ad-strip-headline {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-strip-subline {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-strip-badge {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    padding: 1px 7px;
    flex-shrink: 0;
}

.ad-strip-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 1.1rem;
    border-radius: 50px;
    background: white;
    border: none;
    color: #1e3fa0;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ad-strip-cta:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    color: #1e3fa0;
    text-decoration: none;
}

.ad-strip-dismiss {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.ad-strip-dismiss:hover {
    background: rgba(255, 255, 255, 0.28);
    color: white;
}

@media (max-width: 640px) {
    .ad-strip-subline {
        display: none;
    }

    .ad-strip-badge {
        display: none;
    }

    .ad-strip-inner {
        gap: 0.45rem;
        padding: 0 0.75rem;
    }

.ad-strip-headline {
        font-size: 0.8rem;
    }

    .ad-strip-cta {
        padding: 0.35rem 0.75rem;
        font-size: 0.78rem;
    }
}

/* ================================================================
   INLINE AD CARD
   ================================================================ */

/* Card placeholder transition for global rotation */
.ad-card-inject {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ad-card-inject.ad-card-fade-out {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.ad-card-inject.ad-card-fade-in {
    animation: adCardFadeIn 0.4s ease forwards;
}

@keyframes adCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-card-wrap {
    margin: 1.5rem 0 2rem;
    direction: rtl;
}
@media (max-width: 768px) {
    .ad-card-wrap {
        margin-top: 0.4rem;
    }
}

.ad-card {
    background: white;
    border-radius: 16px;
    border: 1.5px solid rgba(44, 92, 197, 0.1);
    box-shadow: 0 6px 24px rgba(44, 92, 197, 0.08);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.ad-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(44,92,197,0.5), #2c5cc5);
    border-radius: 0 16px 16px 0;
}

.ad-card:hover {
    box-shadow: 0 12px 36px rgba(44, 92, 197, 0.14);
    transform: translateY(-2px);
}

.ad-card-sponsor {
    position: absolute;
    top: 0.55rem;
    left: 0.75rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.4px;
    opacity: 0.75;
}

.ad-card-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: white;
    /* shadow injected inline via JS to match avatarColor */
}

.ad-card-body {
    flex: 1;
    min-width: 0;
}

.ad-card-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 0.25rem;
}

.ad-card-meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.ad-card-subject {
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    background: var(--primary-color);
    border-radius: 20px;
    padding: 1px 8px;
}

.ad-card-specialty {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(44, 92, 197, 0.08);
    border: 1px solid rgba(44, 92, 197, 0.15);
    border-radius: 20px;
    padding: 1px 8px;
}

.ad-card-pitch {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.55;
    margin: 0;
}

.ad-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #2c5cc5, #1e3fa0);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(44, 92, 197, 0.3);
    transition: var(--transition);
}

.ad-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(44, 92, 197, 0.4);
    color: white;
    text-decoration: none;
}

@media (max-width: 540px) {
    .ad-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.1rem 1rem;
    }

    .ad-card-cta {
        width: 100%;
        justify-content: center;
    }

    .ad-card-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ================================================================
   NAVBAR — ADVERTISE LINK
   ================================================================ */

/* ================================================================
   ADVERTISE PAGE (/advertise.html) — Premium Redesign
   ================================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.adp-hero {
    background: linear-gradient(135deg, #1e3fa0 0%, #2c5cc5 55%, #3d6dd8 100%);
    padding: 7rem 1.5rem 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.adp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.adp-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.adp-hero-content {
    position: relative;
    z-index: 1;
}

@keyframes adpLivePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(1.4);
    }
}

.adp-hero-eyebrow {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.9rem;
}

.adp-hero-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    color: white;
    line-height: 1.22;
    margin-bottom: 1rem;
}

.adp-hero-hl {
    color: #ff6b35;
}

.adp-hero-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.adp-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6b35, #d44500);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 3.5rem;
}

.adp-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(255, 107, 53, 0.6);
    color: white;
    text-decoration: none;
}

.adp-stats-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.adp-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    padding: 1.2rem 1.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 115px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.adp-stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.adp-stat-val {
    font-family: 'Tajawal', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.adp-stat-lbl {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ── SHARED LAYOUT ────────────────────────────────────────── */
.adp-section-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    direction: rtl;
}

.adp-tag {
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(44, 92, 197, 0.08);
    border: 1px solid rgba(44, 92, 197, 0.14);
    border-radius: 50px;
    padding: 0.25rem 0.9rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.adp-tag--light {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

/* ── AUDIENCE INSIGHTS ────────────────────────────────────── */
.adp-audience {
    padding: 5.5rem 1.5rem;
    background: #f8faff;
}

.adp-audience-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.adp-audience-text h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 900;
    color: #0b1437;
    line-height: 1.28;
    margin-bottom: 0.75rem;
}

.adp-audience-text>p {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.adp-cities-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.adp-city-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.adp-city-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.87rem;
    font-weight: 700;
    color: #333;
    min-width: 110px;
    text-align: right;
    flex-shrink: 0;
}

.adp-city-track {
    flex: 1;
    height: 7px;
    background: rgba(44, 92, 197, 0.09);
    border-radius: 50px;
    overflow: hidden;
}

.adp-city-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5cc5, #5b86e5);
    border-radius: 50px;
}

.adp-cities-more {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    color: #aaa;
    margin: 0.25rem 0 0;
}

.adp-audience-card {
    background: linear-gradient(145deg, #1a2e6e, #2c5cc5);
    border-radius: 26px;
    padding: 2.25rem 2rem;
    color: white;
    box-shadow: 0 24px 64px rgba(11, 20, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.adp-audience-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.adp-audience-num {
    font-family: 'Pattaya', serif;
    font-size: 5.5rem;
    color: white;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.adp-audience-num-lbl {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.75rem;
}

.adp-audience-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
}

/* ── TELEGRAM CHANNEL CARD ────────────────────────────────── */
.adp-tg-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
}

.adp-tg-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.adp-tg-desc strong {
    color: white;
}

.adp-tg-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.adp-tg-visit-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
}

/* Center the audience card content */
.adp-audience-card {
    text-align: center;
}

.adp-audience-num {
    font-size: 4.5rem;
}

/* ── DUAL PACKAGE CTAs ────────────────────────────────────── */
.adp-pkg-ctas {
    display: flex;
    gap: 0.6rem;
}

.adp-pkg-btn--tg {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex: 1;
}

.adp-pkg--featured .adp-pkg-btn--tg {
    background: linear-gradient(135deg, #2c5cc5, #1e3fa0);
    border: none;
    box-shadow: 0 6px 22px rgba(44, 92, 197, 0.35);
    color: white;
}

.adp-pkg--featured .adp-pkg-btn--tg:hover {
    background: linear-gradient(135deg, #3d6dd8, #2c5cc5);
    box-shadow: 0 10px 28px rgba(44, 92, 197, 0.45);
    color: white;
}

.adp-pkg-btn--tg:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    text-decoration: none;
}

/* ── URGENCY DUAL CONTACT ─────────────────────────────────── */
.adp-contact-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.adp-urgency-btn--tg {
    background: #2AABEE;
    color: white;
    box-shadow: 0 8px 28px rgba(42, 171, 238, 0.4);
}

.adp-urgency-btn--tg:hover {
    background: #1d9bdd;
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(42, 171, 238, 0.55);
    color: white;
    text-decoration: none;
}

.adp-urgency-btn--email {
    background: white;
    color: #c43d00;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.adp-urgency-btn--email:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
    color: #c43d00;
    text-decoration: none;
}

@media (max-width: 500px) {
    .adp-contact-btns {
        flex-direction: column;
        align-items: center;
    }

    .adp-urgency-btn {
        width: 100%;
        justify-content: center;
    }

    .adp-pkg-ctas {
        flex-direction: column;
    }
}

/* ── WHY SECTION ──────────────────────────────────────────── */
.adp-why {
    padding: 5.5rem 1.5rem;
    background: white;
}

.adp-why-header {
    text-align: center;
    margin-bottom: 3rem;
}

.adp-why-header h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
    color: #0b1437;
    margin: 0;
}

.adp-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.adp-why-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border: 1.5px solid #eef2f6;
    border-radius: 20px;
    padding: 1.75rem 1.6rem 1.6rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.25s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.25s cubic-bezier(0.25,0.8,0.25,1);
    text-align: right;
    position: relative;
    overflow: hidden;
}

.adp-why-card {
    --why-grad-start: #1a3a8f;
    --why-grad-end:   #3d6ee0;
    --why-shadow-rgb: 44,92,197;
}

.adp-why-card--orange {
    --why-grad-start: #c0392b;
    --why-grad-end:   #ff6b35;
    --why-shadow-rgb: 255,107,53;
}

.adp-why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, transparent, var(--why-grad-end));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 2;
}

.adp-why-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--why-grad-end) 35%, transparent);
    box-shadow: 0 14px 35px color-mix(in srgb, var(--why-grad-end) 15%, transparent);
}

.adp-why-card:hover::before {
    transform: scaleX(1);
}

.adp-why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a3a8f, #3d6ee0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 14px rgba(44,92,197,0.28);
}

.adp-why-icon--orange {
    background: linear-gradient(135deg, #c0392b, #ff6b35);
    box-shadow: 0 4px 14px rgba(255,107,53,0.28);
}

.adp-why-card h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: #0b1437;
    margin-bottom: 0.5rem;
}

.adp-why-card p {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.875rem;
    color: #6b7a99;
    line-height: 1.7;
    margin: 0;
}

/* ── PACKAGES ─────────────────────────────────────────────── */
.adp-packages {
    padding: 5.5rem 1.5rem;
    background: linear-gradient(145deg, #162560 0%, #1e3fa0 100%);
    direction: rtl;
    position: relative;
    overflow: hidden;
}

.adp-packages::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.adp-packages-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.adp-packages-header h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: white;
    margin-bottom: 0.4rem;
}

.adp-packages-header p {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.adp-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
    position: relative;
}

.adp-pkg {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.adp-pkg:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.adp-pkg--featured {
    background: white;
    border: 2px solid rgba(255, 107, 53, 0.25);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    transform: translateY(-12px);
}

.adp-pkg--featured:hover {
    transform: translateY(-17px);
    border-color: rgba(255, 107, 53, 0.45);
    background: white;
}

.adp-pkg-badge {
    position: absolute;
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, #ff6b35, #d44500);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.45);
    animation: announcePulse 2s ease-in-out infinite;
}

.adp-pkg-top {
    text-align: center;
    margin-bottom: 1.5rem;
}

.adp-pkg-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(44, 92, 197, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: #5b86e5;
}

.adp-pkg--featured .adp-pkg-icon {
    background: rgba(44, 92, 197, 0.08);
    color: var(--primary-color);
}

.adp-pkg h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
}

.adp-pkg--featured h3 {
    color: #0b1437;
}

.adp-pkg-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
}

.adp-pkg--featured .adp-pkg-sub {
    color: #999;
}

.adp-pkg-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex: 1;
}

.adp-pkg-list li {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.adp-pkg--featured .adp-pkg-list li {
    color: #444;
    border-bottom-color: #f3f3f3;
}

.adp-pkg-list li:last-child {
    border-bottom: none;
}

.adp-pkg-list li i {
    color: #4ade80;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.adp-pkg--featured .adp-pkg-list li i {
    color: var(--primary-color);
}

.adp-pkg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.adp-pkg-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.adp-pkg--featured .adp-pkg-btn {
    background: linear-gradient(135deg, #2c5cc5, #1e3fa0);
    border: none;
    box-shadow: 0 6px 22px rgba(44, 92, 197, 0.35);
}

.adp-pkg--featured .adp-pkg-btn:hover {
    background: linear-gradient(135deg, #3d6dd8, #2c5cc5);
    box-shadow: 0 12px 32px rgba(44, 92, 197, 0.5);
    color: white;
}

/* ── STEPS ────────────────────────────────────────────────── */
.adp-steps {
    padding: 5.5rem 1.5rem;
    background: #f8faff;
}

.adp-steps-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.adp-steps-header h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
    color: #0b1437;
    margin: 0;
}

.adp-steps-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 820px;
    margin: 0 auto;
}

.adp-step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.adp-step-line {
    flex-shrink: 0;
    width: 70px;
    height: 0;
    border-top: 2px dashed rgba(44, 92, 197, 0.28);
    margin-top: 29px;
    align-self: flex-start;
}

.adp-step-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5cc5, #1e3fa0);
    color: white;
    font-family: 'Pattaya', serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 26px rgba(44, 92, 197, 0.3);
}

.adp-step h4 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0b1437;
    margin-bottom: 0.4rem;
}

.adp-step p {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* ── URGENCY CTA ──────────────────────────────────────────── */
.adp-urgency {
    background: linear-gradient(135deg, #e85a1a 0%, #c43d00 100%);
    padding: 5.5rem 1.5rem;
    text-align: center;
    direction: rtl;
    position: relative;
    overflow: hidden;
}

.adp-urgency::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.adp-urgency::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.adp-urgency-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.adp-urgency-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    padding: 0.6rem 1.75rem;
    margin-bottom: 1.75rem;
}

.adp-urgency-num {
    font-family: 'Pattaya', serif;
    font-size: 3.2rem;
    color: white;
    line-height: 1;
}

.adp-urgency-unit {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.adp-urgency h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 0.6rem;
}

.adp-urgency-inner>p {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.adp-urgency-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.75rem;
    border-radius: 50px;
    background: white;
    color: #c43d00;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 1.25rem;
    word-break: break-all;
}

.adp-urgency-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
    color: #c43d00;
    text-decoration: none;
}

.adp-urgency-note {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .adp-audience-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .adp-why-grid {
        grid-template-columns: 1fr;
    }

    .adp-packages-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .adp-pkg--featured {
        transform: none;
        order: -1;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    }

    .adp-pkg--featured:hover {
        transform: translateY(-5px);
    }

    .adp-steps-track {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .adp-step-line {
        width: 2px;
        height: 32px;
        border-top: none;
        border-left: 2px dashed rgba(44, 92, 197, 0.28);
        margin: 0;
        align-self: auto;
    }
}

@media (max-width: 600px) {
    .adp-stats-row {
        gap: 0.65rem;
    }

    .adp-stat-card {
        padding: 0.9rem 1.1rem;
        min-width: 85px;
    }

    .adp-stat-val {
        font-size: 1.55rem;
    }

    .adp-audience-num {
        font-size: 4rem;
    }

    .adp-urgency-btn {
        font-size: 0.82rem;
        padding: 0.9rem 1.5rem;
    }

    .adp-urgency-countdown {
        padding: 0.45rem 1.25rem;
    }

    .adp-urgency-num {
        font-size: 2.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   UNIVERSITY PAGE — ENHANCED DESIGN v2
═══════════════════════════════════════════════════════════ */

/* Enhanced section header — orange accent underline */
.modern-section-header h2::after {
    content: '';
    display: block;
    width: 38px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin-top: 5px;
}

/* ── University Hero Banner ───────────────────────────── */
.uni-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-color) 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uni-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.uni-hero::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -8%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.uni-hero h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

.uni-hero p {
    font-size: 1.02rem;
    line-height: 1.85;
    opacity: 0.93;
    max-width: 680px;
    position: relative;
    z-index: 1;
    margin: 0;
}

.uni-hero-chips {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.uni-hero-chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 0.52rem 1.2rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.uni-hero-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* ── Study Path Comparison ────────────────────────────── */
.study-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.study-path {
    background: white;
    border-radius: 16px;
    padding: 1.65rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1.5px solid #eef2f6;
}

.study-path:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-theme) 25%, transparent);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--card-theme) 10%, transparent);
}

.study-path--lmd {
    --card-theme: var(--primary-color);
    --grad-start: #1a3a8f;
    --grad-end: #3d6ee0;
}

.study-path--ing {
    --card-theme: var(--secondary-color);
    --grad-start: #d4530a;
    --grad-end: #ff885e;
}

.study-path-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #eee;
}

.study-path-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: white;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--card-theme) 25%, transparent);
    transition: all 0.25s ease;
}

.study-path:hover .study-path-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--card-theme) 40%, transparent);
}

.study-path-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.study-path--lmd .study-path-header h3 {
    color: var(--primary-color);
}

.study-path--ing .study-path-header h3 {
    color: var(--secondary-color);
}

.study-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.study-stage {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: background 0.2s;
}

.study-stage:hover {
    background: #eef2f7;
}

.study-stage-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    color: white;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    box-shadow: 0 3px 8px color-mix(in srgb, var(--card-theme) 35%, transparent);
    transition: all 0.25s ease;
}

.study-stage:hover .study-stage-dot {
    transform: scale(1.1);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--card-theme) 50%, transparent);
}

.study-stage-info strong {
    display: block;
    font-size: 0.93rem;
    font-weight: 700;
    color: #222;
}

.study-stage-info span {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── Comparison Table ─────────────────────────────────── */
.study-compare-table {
    background: white;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.study-compare-table table {
    width: 100%;
    border-collapse: collapse;
}

.study-compare-table th {
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: right;
}

.study-compare-table th:first-child {
    background: #f1f4fb;
    color: var(--primary-color);
}

.study-compare-table .lmd-head {
    background: var(--primary-color);
    color: white;
}

.study-compare-table .ing-head {
    background: var(--secondary-color);
    color: white;
}

.study-compare-table td {
    padding: 0.8rem 1.1rem;
    font-size: 0.91rem;
    color: #444;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
    text-align: right;
    vertical-align: top;
}

.study-compare-table tr:hover td {
    background: #f8f9ff;
}

.study-compare-table td:first-child {
    font-weight: 700;
    color: var(--primary-color);
    background: #fafbff;
    white-space: nowrap;
}

/* ── University Life Icon Grid ────────────────────────── */
.uni-life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.uni-life-card:nth-child(1) {
    --card-theme: #2c5cc5;
    --grad-start: #1a3a8f;
    --grad-end: #3d6ee0;
}

.uni-life-card:nth-child(2) {
    --card-theme: #ff6b35;
    --grad-start: #d4530a;
    --grad-end: #ff885e;
}

.uni-life-card:nth-child(3) {
    --card-theme: #28a745;
    --grad-start: #1a7a38;
    --grad-end: #34ce57;
}

.uni-life-card:nth-child(4) {
    --card-theme: #9b59b6;
    --grad-start: #7d3c98;
    --grad-end: #9b59b6;
}

.uni-life-card:nth-child(5) {
    --card-theme: #e74c3c;
    --grad-start: #c0392b;
    --grad-end: #e74c3c;
}

.uni-life-card:nth-child(6) {
    --card-theme: #f39c12;
    --grad-start: #b7770d;
    --grad-end: #f39c12;
}

.uni-life-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1.3rem 1.4rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1.5px solid #eef2f6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uni-life-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--card-theme, #2c5cc5));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 1;
}

.uni-life-card:hover::before {
    transform: scaleX(1);
}

.uni-life-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--card-theme, #2c5cc5) 30%, transparent);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--card-theme, #2c5cc5) 12%, transparent);
}

.uni-life-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, var(--grad-start, #1a3a8f), var(--grad-end, #3d6ee0)) !important;
    color: white !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--card-theme, #2c5cc5) 30%, transparent);
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.uni-life-card:hover .uni-life-card-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--card-theme, #2c5cc5) 45%, transparent);
}

.uni-life-card h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1a2340;
    margin-bottom: 0.25rem;
    transition: color 0.25s ease;
}

.uni-life-card:hover h4 {
    color: var(--card-theme, #1a2340);
}

.uni-life-card p {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── Common Mistakes Callout ──────────────────────────── */
.mistake-callout {
    background: #fff8f7;
    border: 2px solid #e74c3c;
    border-radius: 16px;
    padding: 1.65rem 1.85rem;
    margin-bottom: 2rem;
}

.mistake-callout-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.mistake-callout-header i {
    font-size: 1.5rem;
    color: #e74c3c;
}

.mistake-callout-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #e74c3c;
    margin: 0;
}

.mistake-callout ol {
    padding-right: 0.5rem;
    margin: 0;
    list-style: none;
    counter-reset: mistake-counter;
}

.mistake-callout ol li {
    counter-increment: mistake-counter;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.6rem 0;
    font-size: 0.97rem;
    color: #444;
    border-bottom: 1px dashed #f5c5bf;
    line-height: 1.6;
}

.mistake-callout ol li::before {
    content: counter(mistake-counter);
    background: #e74c3c;
    color: white;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.mistake-callout ol li:last-child {
    border-bottom: none;
}

/* ── Speciality Filter Bar ────────────────────────────── */
/* ── Spec Filter Bar ──────────────────────────────────── */
.spec-filter-bar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 1rem 1.4rem;
    margin-bottom: 1.4rem;
}

.spec-chips-row {
    margin-bottom: 0.75rem;
    /* inline-block flow — zero RTL/flex ambiguity */
    font-size: 0;
    line-height: 1;
}

.filter-chip {
    display: inline-block !important;
    width: max-content !important;
    margin: 0.22rem 0.2rem !important;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: none;
    color: white;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Tajawal', sans-serif;
    user-select: none;
    margin: 0.22rem 0.2rem;
    vertical-align: middle;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.filter-chip[data-filter-val="all"],
.filter-chip[data-filter-val="engineering"] { background: linear-gradient(135deg, #1a3a8f, #3d6ee0); box-shadow: 0 3px 10px rgba(44,92,197,0.28); }
.filter-chip[data-filter-val="medical"]     { background: linear-gradient(135deg, #c0392b, #e74c3c); box-shadow: 0 3px 10px rgba(231,76,60,0.28); }
.filter-chip[data-filter-val="business"]    { background: linear-gradient(135deg, #b7770d, #f39c12); box-shadow: 0 3px 10px rgba(243,156,18,0.28); }
.filter-chip[data-filter-val="science"]     { background: linear-gradient(135deg, #1a7a38, #28a745); box-shadow: 0 3px 10px rgba(40,167,69,0.28); }
.filter-chip[data-filter-val="education"]   { background: linear-gradient(135deg, #7d3c98, #9b59b6); box-shadow: 0 3px 10px rgba(155,89,182,0.28); }
.filter-chip[data-filter-val="law"]         { background: linear-gradient(135deg, #922b21, #c0392b); box-shadow: 0 3px 10px rgba(192,57,43,0.28); }
.filter-chip[data-filter-val="humanities"]  { background: linear-gradient(135deg, #0e7490, #06b6d4); box-shadow: 0 3px 10px rgba(6,182,212,0.28); }
.filter-chip[data-filter-val="double"]     { background: linear-gradient(135deg, #5b21b6, #7c3aed); box-shadow: 0 3px 10px rgba(124,58,237,0.28); }
.filter-chip[data-filter-val="new"]       { background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 3px 10px rgba(245,158,11,0.28); }
.filter-chip[data-filter-val="arts"]      { background: linear-gradient(135deg, #c2185b, #e91e8c); box-shadow: 0 3px 10px rgba(233,30,140,0.28); }

.spec-card-img { position: relative; }
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.22rem 0.6rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.45);
    z-index: 2;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 0.02em;
}

.filter-chip:not(.active)  { filter: brightness(1) saturate(1); }
.filter-chip:hover         { filter: brightness(1); transform: translateY(-2px); }
.filter-chip.active        { filter: brightness(1); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.22); }

.spec-search-wrap {
    position: relative;
    width: 100%;
}

.spec-search-wrap i {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.88rem;
    pointer-events: none;
}

.spec-search-input {
    width: 100%;
    padding: 0.48rem 2.1rem 0.48rem 0.85rem;
    border: 1.5px solid #dde3f0;
    border-radius: 50px;
    font-size: 0.86rem;
    font-family: 'Tajawal', sans-serif;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
    color: #333;
    background: #f4f6fb;
    direction: rtl;
}

.spec-search-input:focus {
    border-color: var(--primary-color);
    background: white;
}

/* ── Speciality Cards — Horizontal Layout ─────────────── */
.Speciality-container-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0.5rem 0 2rem;
}

.spec-card[data-category="engineering"] {
    --card-theme: #2c5cc5;
    --grad-start: #1a3a8f;
    --grad-end: #3d6ee0;
}

.spec-card[data-category="medical"] {
    --card-theme: #e74c3c;
    --grad-start: #c0392b;
    --grad-end: #e74c3c;
}

.spec-card[data-category="business"] {
    --card-theme: #f39c12;
    --grad-start: #b7770d;
    --grad-end: #f39c12;
}

.spec-card[data-category="science"] {
    --card-theme: #28a745;
    --grad-start: #1a7a38;
    --grad-end: #28a745;
}

.spec-card[data-category="education"] {
    --card-theme: #9b59b6;
    --grad-start: #7d3c98;
    --grad-end: #9b59b6;
}

.spec-card[data-category="law"] {
    --card-theme: #c0392b;
    --grad-start: #922b21;
    --grad-end: #e74c3c;
}

.spec-card[data-category="humanities"] {
    --card-theme: #06b6d4;
    --grad-start: #0e7490;
    --grad-end: #06b6d4;
}

.spec-card[data-category="double"] {
    --card-theme: #7c3aed;
    --grad-start: #5b21b6;
    --grad-end: #7c3aed;
}

.spec-card[data-category="arts"] {
    --card-theme: #e91e8c;
    --grad-start: #c2185b;
    --grad-end: #e91e8c;
}

.spec-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1.5px solid #eef2f6;
    text-align: right;
    position: relative;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, transparent, var(--card-theme, #2c5cc5));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 2;
}

.spec-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--card-theme, #2c5cc5) 35%, transparent);
    box-shadow: 0 14px 35px color-mix(in srgb, var(--card-theme, #2c5cc5) 15%, transparent);
}

.spec-card:hover::before {
    transform: scaleX(1);
}

.spec-card-img {
    width: 100%;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.spec-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, color-mix(in srgb, var(--card-theme, #2c5cc5) 15%, transparent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.spec-card:hover .spec-card-img::after {
    opacity: 1;
}

.spec-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spec-card:hover .spec-card-img img {
    transform: scale(1.1) rotate(1deg);
}

.spec-card-body {
    padding: 1.1rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.spec-card-top {
    flex: 1;
}

.spec-card-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1a2340;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    transition: color 0.25s ease;
}

.spec-card:hover .spec-card-name {
    color: var(--card-theme, #1a2340);
}

.cat-badge {
    padding: 0.28rem 0.78rem;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--grad-start, #1a3a8f), var(--grad-end, #3d6ee0));
    color: white;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--card-theme, #2c5cc5) 30%, transparent);
    transition: all 0.25s ease;
}

.spec-card:hover .cat-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--card-theme, #2c5cc5) 45%, transparent);
}

.spec-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.spec-detail-btn {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid color-mix(in srgb, var(--card-theme, #2c5cc5) 40%, transparent);
    background: transparent;
    color: var(--card-theme, #2c5cc5);
    font-size: 0.84rem;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    box-shadow: none;
}

.spec-detail-btn i {
    font-size: 0.75rem;
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spec-card:hover .spec-detail-btn {
    transform: scale(1.03);
    border-color: var(--card-theme, #2c5cc5);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--card-theme, #2c5cc5) 20%, transparent);
}

.spec-card:hover .spec-detail-btn i {
    transform: translateX(-4px);
}

.spec-detail-btn:hover {
    background: color-mix(in srgb, var(--card-theme, #2c5cc5) 8%, transparent);
}

/* Empty state */
.spec-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    display: none;
}

.spec-empty-state i {
    font-size: 2.8rem;
    color: #ccc;
    display: block;
    margin-bottom: 0.9rem;
}

.spec-empty-state p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ── School Detail Tabs ───────────────────────────────── */
.school-tab-bar {
    position: relative;
    display: flex;
    width: max-content;
    height: fit-content;
    margin: 0 auto 1.5rem auto;
    justify-content: flex-start;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    padding: 0.3rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: #eef1f8;
    border-radius: 50px;
    scroll-behavior: smooth;
    max-width: 100%;
}

.school-tab-bar::-webkit-scrollbar {
    display: none;
}

.school-tab-indicator {
    position: absolute;
    top: 0.3rem;
    bottom: 0.3rem;
    left: 0;
    width: 0;
    background: var(--primary-color);
    border-radius: 50px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(44, 92, 197, 0.3);
}

.school-tab-btn {
    position: relative;
    z-index: 2;
    padding: 0.45rem 1.1rem;
    margin: 0;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #5a6270;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: 'Tajawal', sans-serif;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.school-tab-btn:hover {
    color: var(--primary-color);
}

.school-tab-btn.active {
    color: #fff;
}

.detail-card.tab-hidden {
    display: none !important;
}

/* ── Scroll-to-top Button ─────────────────────────────── */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    left: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(44, 92, 197, 0.38);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: #1e44a8;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(44, 92, 197, 0.48);
}

/* Floating tooltip for scroll-top and share buttons */
.scroll-top-btn,
.uni-share-btn {
    overflow: visible;
}
.scroll-top-btn::after,
.uni-share-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--primary-color);
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(44, 92, 197, 0.28);
    z-index: 1100;
    direction: rtl;
}
.scroll-top-btn::before,
.uni-share-btn::before {
    content: '';
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid var(--primary-color);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1100;
}
.scroll-top-btn:hover::after,
.uni-share-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.scroll-top-btn:hover::before,
.uni-share-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.uni-share-btn {
    position: fixed;
    bottom: 144px;
    left: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(44, 92, 197, 0.38);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}
.uni-share-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.uni-share-btn:hover {
    background: #1e44a8;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(44, 92, 197, 0.48);
}

.uni-share-toast {
    position: fixed;
    bottom: 144px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1a3a8f;
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(26,58,143,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
    white-space: nowrap;
}
.uni-share-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media screen and (max-width: 1100px) {
    .scroll-top-btn {
        bottom: 80px;
    }
    .uni-share-btn {
        bottom: 134px;
    }
    .uni-share-toast {
        bottom: 134px;
    }
}


/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .study-comparison {
        grid-template-columns: 1fr;
    }

    .uni-life-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .Speciality-container-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-card-name {
        font-size: 0.9rem;
    }

    .study-compare-table {
        overflow-x: auto;
    }

    .study-compare-table table {
        min-width: 520px;
    }
}

@media (max-width: 600px) {
    .uni-life-grid {
        grid-template-columns: 1fr;
    }

    .Speciality-container-new {
        grid-template-columns: 1fr;
    }

    .spec-card-img {
        height: 160px;
    }

    .spec-card-body {
        padding: 0.85rem 1rem;
    }

    .spec-card-name {
        font-size: 0.88rem;
    }

    .spec-detail-btn {
        font-size: 0.8rem;
        padding: 0.38rem 0.95rem;
    }

    .uni-hero {
        padding: 1.8rem 1.3rem;
    }

    .uni-hero h2 {
        font-size: 1.35rem;
    }

    .mistake-callout {
        padding: 1.3rem 1.2rem;
    }
}

/* ============================================
   NEW FEATURE BADGE (NAVBAR)
   ============================================ */
.nav-badge {
    background: linear-gradient(135deg, #ff6b35, #e8520f);
    color: white;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 12px;
    margin-right: 5px;
    font-weight: 800;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(255, 107, 53, 0.4);
    animation: navBadgePulse 2s infinite;
}

@keyframes navBadgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   BAC SIMULATION PAGE — PREMIUM
   ============================================ */

/* Exam Layout — Side by Side */
.sim-exam-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    background: #f8fafc;
    transition: var(--transition);
    border-radius: 24px;
    overflow: hidden;
    margin: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
    .sim-exam-layout.exam-active {
        /* On RTL, PDF will be on left, Timer on right */
        flex-direction: row-reverse;
    }
}

/* PDF Side */
.sim-pdf-side {
    flex: 1;
    position: relative;
    background: #f8fafc;
    overflow-y: auto;
}

/* Framed PDF inside simulation */
.sim-pdf-side .pdf-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.sim-pdf-side .responsive-pdf {
    height: calc(100vh - 180px);
    min-height: 500px;
    max-height: none;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 4px solid var(--primary-color);
    border-bottom: none;
}

/* Pre-start Overlay */
.sim-prestart {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sim-prestart-card {
    background: white;
    border-radius: 28px;
    padding: 2.4rem 2.2rem 2rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.03);
    border: none;
    animation: heroReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.sim-prestart-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.6rem;
    box-shadow: 0 8px 24px rgba(44, 92, 197, 0.12);
}

.sim-prestart-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.sim-prestart-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}

.sim-prestart-sub {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.6rem;
}

.sim-prestart-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.sim-prestart-tags span {
    background: #f0f7ff;
    border-radius: 100px;
    padding: 0.42rem 1rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sim-availability-msg {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1rem;
    animation: fadeIn 0.5s ease;
}

.sim-availability-msg i {
    font-size: 1.4rem;
}

.sim-go-btn {
    background: var(--primary-color);
    color: white !important;
    border: none;
    padding: 0.75rem 2.2rem;
    border-radius: 100px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: auto;
    margin: 0 auto 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(44, 92, 197, 0.2);
}

.sim-go-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(44, 92, 197, 0.3);
}

.sim-back-link {
    background: transparent;
    color: var(--text-light);
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.sim-back-link:hover {
    color: var(--primary-color);
}

.sim-duration-text {
    color: #ff6b35 !important;
    /* Premium orange for visibility */
    font-weight: 700;
}

/* ── Timer Side Panel — Premium (uni-style) ───────────── */
.sim-timer-side {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(155deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    padding: 2.2rem 1.8rem 2rem;
    width: 100%;
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.sim-timer-side::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.sim-timer-side::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -50px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

@media (min-width: 992px) {
    .sim-exam-layout.exam-active .sim-timer-side {
        display: flex;
        width: 320px;
        flex-shrink: 0;
        min-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}
@media (max-width: 991px) {
    .sim-exam-layout.exam-active { flex-direction: column-reverse; }
    .sim-exam-layout.exam-active .sim-timer-side {
        display: flex;
        width: 100%;
        padding: 1.2rem 1.2rem;
        overflow-y: visible;
    }
}

/* Live badge — centered, green shining */
.sim-timer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: rgba(52, 211, 153, 0.18);
    border: 1.5px solid rgba(52, 211, 153, 0.55);
    color: #6ee7b7;
    border-radius: 100px;
    padding: 0.42rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin: 0 auto 1.8rem;
    width: fit-content;
    align-self: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.35), inset 0 0 10px rgba(52, 211, 153, 0.08);
}
.sim-timer-badge i { font-size: 0.6rem; color: #34d399; animation: livePulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 4px #34d399); }
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

/* Clock — fixed-width digits, no shifting */
.sim-timer-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-align: center;
    margin-bottom: 1.1rem;
    direction: ltr;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 24px rgba(0,0,0,0.2);
    font-variant-numeric: tabular-nums;
    font-family: 'Tajawal', sans-serif;
}
.sim-timer-clock span:not(.sep) {
    display: inline-block;
    width: 2.4ch;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.sim-timer-clock .sep {
    color: rgba(255,255,255,0.5);
    padding: 0 0.05em;
    font-weight: 300;
    font-family: 'Tajawal', sans-serif;
}
.sim-timer-clock.critical { color: #fca5a5; -webkit-text-fill-color: #fca5a5; animation: simPulse 1s infinite; }
.sim-timer-clock.critical span { color: #fca5a5; -webkit-text-fill-color: #fca5a5; }
@keyframes simPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.85; }
}

/* Progress bar */
.sim-timer-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 2rem;
    direction: ltr;
    position: relative;
    z-index: 1;
}
.sim-timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #34d399, #6ee7b7);
    border-radius: 100px;
    transition: width 1s linear, background 0.5s ease;
    box-shadow: 0 0 10px rgba(52,211,153,0.6);
}
.sim-timer-bar.warning { background: linear-gradient(90deg, #fbbf24, #fde68a); box-shadow: 0 0 10px rgba(251,191,36,0.5); }
.sim-timer-bar.critical { background: linear-gradient(90deg, #f87171, #fca5a5); box-shadow: 0 0 10px rgba(248,113,113,0.5); }

/* Meta info — icon chips */
.sim-timer-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.sim-meta-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 0.75rem 1rem;
}
.sim-meta-chip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 0.9rem;
}
.sim-meta-chip-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.sim-meta-chip-body span { color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 500; }
.sim-meta-chip-body strong { color: #ffffff; font-size: 0.92rem; font-weight: 800; }

/* Finish button — solid red gradient */
.sim-finish-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.28s ease;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(185,28,28,0.4);
}
.sim-finish-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 8px 28px rgba(185,28,28,0.55);
    transform: translateY(-2px);
    color: #ffffff;
    transform: translateY(-2px);
}

.sim-done-badge {
    font-size: 6rem;
    color: var(--success-color);
    filter: drop-shadow(0 10px 20px rgba(40, 167, 69, 0.1));
    margin-bottom: 1.5rem;
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Hero Actions Container */
.hero-actions-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
    animation: fadeIn 1.6s ease-out;
}

.hero-actions-container .modern-cta-btn {
    margin: 0 !important; 
    min-width: 280px;
}

/* Informational Sections */
.sim-info-section {
    margin-top: 6rem;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.sim-info-card {
    background: white;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.schedule-img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* Strategy Grid Design */
.strategy-main-card {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 900px;
    margin: 0 auto;
}

.strategy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fff9e6, #fff2cc);
    color: #b45309;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border: 1px solid #fde68a;
}

.strategy-header h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.strategy-header p {
    color: #64748b;
    font-size: 1.15rem;
}

.strategy-steps-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.s-step {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.s-step:hover {
    background: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: #e2e8f0;
    transform: translateY(-5px);
}

.s-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.s-icon.success { background: #ecfdf5; border: 1px solid #10b981; }
.s-icon.warning { background: #fffbeb; border: 1px solid #f59e0b; }
.s-icon.danger { background: #fef2f2; border: 1px solid #ef4444; }

.s-text h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.s-text p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.strategy-footer {
    border-top: 1px dashed #e2e8f0;
    padding-top: 2.5rem;
}

.conclusion-box {
    background: linear-gradient(135deg, #f0f7ff, #e0efff);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.conclusion-box p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e40af;
}

.conclusion-box span {
    background: white;
    padding: 2px 8px;
    border-radius: 8px;
    margin: 0 4px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .strategy-steps-modern {
        grid-template-columns: 1fr;
    }
    .strategy-main-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-actions-container .modern-cta-btn {
        width: 100%;
        min-width: 0;
    }
    .strategy-header h3 {
        font-size: 1.8rem;
    }
}

/* ======== SOURCE SELECTION STEP ======== */
.sim-source-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.sim-source-card {
    background: var(--card-bg, #fff);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.sim-source-card:hover {
    border-color: var(--primary-color, #2c5cc5);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(44,92,197,0.18);
}

.sim-source-icon {
    font-size: 2.6rem;
    color: var(--primary-color, #2c5cc5);
    margin-bottom: 1rem;
}

.sim-source-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--heading-color, #1e293b);
}

.sim-source-card p {
    color: var(--text-muted, #64748b);
    font-size: 0.88rem;
    line-height: 1.5;
}

.sim-custom-form {
    background: var(--card-bg, #fff);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 2rem;
    margin: 1.5rem auto 0;
    max-width: 520px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.sim-custom-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #2c5cc5);
    margin-bottom: 1rem;
}

.sim-url-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 2px solid var(--border-color, #e2e8f0);
    background: var(--bg, #f8fafc);
    color: var(--text, #1e293b);
    font-size: 0.9rem;
    margin: 0.4rem 0;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.sim-url-input:focus {
    outline: none;
    border-color: var(--primary-color, #2c5cc5);
}

.sim-duration-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    font-weight: 600;
    color: var(--text, #1e293b);
}

.sim-duration-row select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color, #e2e8f0);
    background: var(--bg, #f8fafc);
    color: var(--text, #1e293b);
    font-size: 0.9rem;
    font-family: inherit;
}

/* Source badge on exam list buttons */
.sim-src-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}
.sim-src-badge.channel{ background: linear-gradient(135deg, #c0390b, #ff6b35); color: white; box-shadow: 0 4px 10px rgba(255,107,53,0.35); }
.sim-src-badge.nafi   { background: linear-gradient(135deg, #a83d02, #d4530a); color: white; box-shadow: 0 4px 10px rgba(212,83,10,0.35); }
.sim-src-badge.other  { background: linear-gradient(135deg, #125426, #28a745); color: white; box-shadow: 0 4px 10px rgba(40,167,69,0.35); }

@media (max-width: 768px) {
    .sim-source-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   SIMULATION — SOURCE SELECTION REDESIGN
═══════════════════════════════════════════════════════════ */

/* Hero header inside sim steps */
.sim-source-hero {
  background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
  border-radius: 24px;
  padding: 2.6rem 2rem 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.sim-source-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.sim-source-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.sim-source-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}
.sim-source-hero h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}
.sim-source-hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Source selection 3-column grid */
.sim-source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 1.5rem 0;
}
@media (max-width: 768px) {
  .sim-source-grid { grid-template-columns: 1fr; }
}

/* Source card */
.sim-source-card {
  background: #fff;
  border: 1.5px solid #e8edf5;
  border-radius: 16px;
  padding: 1.5rem 1.3rem 1.2rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.sim-source-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card-theme, #2c5cc5) 40%, transparent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.sim-source-card:hover::before { transform: scaleX(1); }
.sim-source-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-theme, #2c5cc5) 30%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--card-theme, #2c5cc5) 12%, transparent);
}
.sim-source-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.sim-source-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.2s;
  background: linear-gradient(135deg, var(--grad-start, #1a3a8f), var(--grad-end, #3d6ee0)) !important;
  color: white !important;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--card-theme, #2c5cc5) 35%, transparent) !important;
}
.sim-source-card:hover .sim-source-icon { transform: scale(1.08); }
.sim-src-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--grad-start, #1a3a8f), var(--grad-end, #3d6ee0)) !important;
  color: white !important;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--card-theme, #2c5cc5) 35%, transparent) !important;
}
.sim-source-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}
.sim-source-card p {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.sim-source-card-footer { display: flex; justify-content: flex-end; margin-top: 0.4rem; }
.sim-source-card:nth-child(1) { --card-theme: #2c5cc5; --grad-start: #1a3a8f; --grad-end: #3d6ee0; }
.sim-source-card:nth-child(2) { --card-theme: #ff6b35; --grad-start: #d4530a; --grad-end: #ff885e; }
.sim-source-card:nth-child(3) { --card-theme: #28a745; --grad-start: #1a7a38; --grad-end: #34ce57; }

.sim-source-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f1f5fb;
  display: flex; align-items: center; justify-content: center;
  color: var(--card-theme, #2c5cc5);
  font-size: 0.8rem;
  transition: background 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--card-theme, #2c5cc5) 35%, transparent);
}
.sim-source-card:hover .sim-source-arrow {
  background: var(--card-theme, #2c5cc5);
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--card-theme, #2c5cc5) 50%, transparent);
}

/* Custom form redesign */
.sim-custom-form { margin-top: 1rem; }
.sim-custom-form-inner {
  background: #f8faff;
  border: 1.5px solid rgba(44,92,197,0.15);
  border-radius: 16px;
  padding: 1.6rem;
  max-width: 560px;
  margin: 0 auto;
}
.sim-custom-form-inner h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-color, #2c5cc5);
  margin: 0 0 1.2rem;
}

/* Exam list — card grid */
.sim-exam-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}
.sim-exam-entry-card {
  background: #fff;
  border: 1.5px solid #e8edf5;
  border-radius: 14px;
  padding: 1.1rem 1.1rem 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.sim-exam-entry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44,92,197,0.3);
  box-shadow: 0 8px 24px rgba(44,92,197,0.12);
}
.sim-exam-entry-card .exam-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a3a8f, #3d6ee0);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(44,92,197,0.35);
}
.sim-exam-entry-card .exam-card-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}
.sim-exam-entry-card .exam-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
/* override old badge styles for new cards */
.sim-src-badge.channel { background: linear-gradient(135deg, #c0390b, #ff6b35) !important; color: white !important; border-radius: 50px; padding: 0.25rem 0.7rem; font-size: 0.75rem; font-weight: 700; box-shadow: 0 4px 10px rgba(255,107,53,0.35) !important; }
.sim-src-badge.nafi    { background: linear-gradient(135deg, #a83d02, #d4530a) !important; color: white !important; border-radius: 50px; padding: 0.25rem 0.7rem; font-size: 0.75rem; font-weight: 700; box-shadow: 0 4px 10px rgba(212,83,10,0.35) !important; }
.sim-src-badge.other   { background: linear-gradient(135deg, #125426, #28a745) !important; color: white !important; border-radius: 50px; padding: 0.25rem 0.7rem; font-size: 0.75rem; font-weight: 700; box-shadow: 0 4px 10px rgba(40,167,69,0.35) !important; }
.sim-src-badge.tamayoz { background: linear-gradient(135deg, #511c9c, #8b5cf6) !important; color: white !important; border-radius: 50px; padding: 0.25rem 0.7rem; font-size: 0.75rem; font-weight: 700; box-shadow: 0 4px 10px rgba(139,92,246,0.35) !important; }

.sim-exam-entry-card .exam-card-start {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f4fb;
}
.sim-exam-entry-card .exam-card-start span {
  font-size: 0.78rem;
  color: var(--primary-color, #2c5cc5);
  font-weight: 700;
}

/* ── Premium Subject Selection Cards ─────────────────────────── */
.sim-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.sim-subject-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
  outline: none;
}
.sim-subject-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(44,92,197,0.4));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}
.sim-subject-card:hover,
.sim-subject-card:focus {
  box-shadow: 0 8px 28px rgba(44,92,197,0.13);
  transform: translateY(-2px);
  border-color: rgba(44,92,197,0.25);
}
.sim-subject-card:hover::before,
.sim-subject-card:focus::before { transform: scaleX(1); }
.sim-subj-icon-wrap {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a3a8f, #3d6ee0);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(44,92,197,0.35);
}
.sim-subject-card:hover .sim-subj-icon-wrap {
  transform: scale(1.08);
}
.sim-subj-info { flex: 1; min-width: 0; }
.sim-subj-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2340;
  line-height: 1.3;
}
.sim-subj-dur {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #7a8aab;
  margin-top: 0.25rem;
}
.sim-subj-dur i { font-size: 0.72rem; }
.sim-subj-arrow {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a8f, #3d6ee0);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(44,92,197,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sim-subject-card:hover .sim-subj-arrow {
  transform: translateX(-3px);
  box-shadow: 0 6px 14px rgba(44,92,197,0.45);
}
.sim-exam-entry-card .exam-card-start i { font-size: 0.75rem; }

/* ══════════════════════════════════════════════════════
   Custom Exam Page — Premium
   ══════════════════════════════════════════════════════ */

/* Hero banner */
.sim-custom-hero {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    border-radius: 24px;
    padding: 2.8rem 2.5rem 2.5rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sim-custom-hero::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.sim-custom-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.sim-custom-hero-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin: 0 auto 1.2rem;
    position: relative; z-index: 1;
}
.sim-custom-hero-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    position: relative; z-index: 1;
}
.sim-custom-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    position: relative; z-index: 1;
}
.sim-custom-hero-chips {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    position: relative; z-index: 1;
}
.sim-custom-hero-chips span {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.38rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Form card */
.sim-custom-form-card {
    background: white;
    border-radius: 24px;
    padding: 2.2rem 2rem;
    box-shadow: 0 8px 40px rgba(44,92,197,0.08), 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #eef2fb;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Field */
.sim-custom-field { display: flex; flex-direction: column; gap: 0.5rem; }
.sim-custom-label {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.sim-custom-label i { color: var(--primary-color, #2c5cc5); }
.sim-custom-label .req { color: #ef4444; font-size: 0.85rem; }
.sim-custom-label .opt {
    background: #f0f4ff;
    color: #6b7280;
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Input */
.sim-custom-input-wrap { position: relative; }
.sim-custom-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: #1e293b;
    background: #fafbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.sim-custom-input:focus {
    outline: none;
    border-color: var(--primary-color, #2c5cc5);
    box-shadow: 0 0 0 3px rgba(44,92,197,0.1);
    background: white;
}
.sim-custom-input::placeholder { color: #94a3b8; font-family: 'Tajawal', sans-serif; }
.sim-custom-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

/* Duration chips */
.sim-duration-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sim-dur-chip {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1.5px solid #e2e8f0;
    background: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sim-dur-chip:hover { border-color: var(--primary-color, #2c5cc5); color: var(--primary-color, #2c5cc5); background: #f0f4ff; }
.sim-dur-chip.active {
    background: var(--primary-color, #2c5cc5);
    border-color: var(--primary-color, #2c5cc5);
    color: white;
    box-shadow: 0 4px 14px rgba(44,92,197,0.3);
}

/* Start button */
.sim-custom-start-btn {
    background: linear-gradient(135deg, #2c5cc5 0%, #3d6ee0 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(44,92,197,0.3);
    margin-top: 0.5rem;
}
.sim-custom-start-btn:hover {
    background: linear-gradient(135deg, #1e4db7 0%, #2c5cc5 100%);
    box-shadow: 0 10px 32px rgba(44,92,197,0.4);
    transform: translateY(-2px);
}

/* Duration auto info row */
.sim-custom-dur-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #f0f4ff;
    border: 1.5px solid rgba(44,92,197,0.15);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: #374151;
}
.sim-custom-dur-info i { color: var(--primary-color, #2c5cc5); font-size: 1rem; }
.sim-custom-dur-info strong { color: var(--primary-color, #2c5cc5); font-weight: 800; }

/* ══════════════════════════════════════════════════════
   Strategy Section — Premium Redesign
   ══════════════════════════════════════════════════════ */
.sim-strategy-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Label pill */
.sim-strategy-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color, #2c5cc5);
    background: rgba(44,92,197,0.08);
    border: 1.5px solid rgba(44,92,197,0.18);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    align-self: flex-start;
}

/* Hero banner */
.sim-strategy-hero {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    border-radius: 24px;
    padding: 2.4rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}
.sim-strategy-hero::before {
    content: '';
    position: absolute;
    top: -40px; left: -40px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.sim-strategy-hero-left { position: relative; z-index: 1; }
.sim-strategy-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.sim-strategy-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.6rem;
}
.sim-strategy-desc {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.82);
    margin: 0;
    max-width: 480px;
    line-height: 1.7;
}
.sim-strategy-hero-icon {
    width: 90px; height: 90px;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    flex-shrink: 0;
    position: relative; z-index: 1;
}

/* 3 step cards */
.sim-strategy-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.sim-strategy-step {
    background: white;
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1.5px solid #eef2fb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}
.sim-strategy-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.sim-strategy-step::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 3px;
    border-radius: 14px 14px 0 0;
}
.step-green::before { background: linear-gradient(90deg, transparent, rgba(16,185,129,0.5), #10b981); }
.step-yellow::before { background: linear-gradient(90deg, transparent, rgba(245,158,11,0.5), #f59e0b); }
.step-red::before { background: linear-gradient(90deg, transparent, rgba(239,68,68,0.5), #ef4444); }

.sim-strategy-step-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.step-green .sim-strategy-step-icon { background: linear-gradient(135deg, #10b981, #34d399); color: white; box-shadow: 0 6px 20px rgba(16,185,129,0.45), 0 2px 6px rgba(16,185,129,0.3); }
.step-yellow .sim-strategy-step-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; box-shadow: 0 6px 20px rgba(245,158,11,0.45), 0 2px 6px rgba(245,158,11,0.3); }
.step-red .sim-strategy-step-icon { background: linear-gradient(135deg, #ef4444, #f87171); color: white; box-shadow: 0 6px 20px rgba(239,68,68,0.45), 0 2px 6px rgba(239,68,68,0.3); }

.sim-strategy-step-body { flex: 1; }
.sim-strategy-step-body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.sim-strategy-step-body span {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}
.sim-strategy-step-tag {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Conclusion */
.sim-strategy-conclusion {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5cc5 55%, #3d6ee0 100%);
    border-radius: 20px;
    padding: 1.6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(26,58,143,0.28);
}
.sim-strategy-conclusion::before {
    content: '';
    position: absolute;
    top: -50px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.sim-strategy-conclusion::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -30px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.sim-strategy-conclusion-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    position: relative; z-index: 1;
    box-shadow: 0 6px 20px rgba(245,158,11,0.5), 0 2px 6px rgba(245,158,11,0.3);
}
.sim-strategy-conclusion p {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.7;
    position: relative; z-index: 1;
}
.sim-strategy-conclusion strong { color: #fbbf24; }

@media (max-width: 768px) {
    .sim-strategy-steps { grid-template-columns: 1fr; }
    .sim-strategy-hero { flex-direction: column; text-align: center; }
    .sim-strategy-hero-icon { width: 70px; height: 70px; font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════
   BAC 2026 — SUBJECT CARDS
═══════════════════════════════════════════════ */
#bac2026-subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

.bac2026-subject-card {
    background: var(--card-bg, #fff);
    border: 1.5px solid rgba(44, 92, 195, 0.12);
    border-radius: 16px;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(44, 92, 195, 0.07);
    transition: box-shadow 0.25s, transform 0.25s;
}

.bac2026-subject-card:hover {
    box-shadow: 0 6px 24px rgba(44, 92, 195, 0.15);
    transform: translateY(-2px);
}

.bac2026-subject-label {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color, #1a2a4a);
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bac2026-subject-label i {
    color: var(--primary-color, #2c5cc5);
    font-size: 1.05rem;
}

.bac2026-subject-actions {
    display: flex;
    gap: 8px;
}

.bac2026-subject-actions .main-btn {
    flex: 1;
    font-size: 0.88rem;
    padding: 10px 8px;
    border-radius: 10px;
    min-width: 0;
    white-space: nowrap;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Exam button — pending state (no link yet) */
.bac2026-btn-pending {
    background: linear-gradient(135deg, #6b7fa3, #8a99bb) !important;
    opacity: 0.75;
    cursor: default;
}

/* Solution button — disabled (no solution yet) */
.bac2026-btn-disabled {
    background: transparent !important;
    border: 1.5px solid rgba(44, 92, 195, 0.25) !important;
    color: #8a99bb !important;
    cursor: pointer;
    position: relative;
}

.bac2026-btn-disabled:hover {
    background: rgba(44, 92, 195, 0.06) !important;
    border-color: rgba(44, 92, 195, 0.4) !important;
}

/* "قريباً" badge inside solution button */
.bac2026-soon-badge {
    background: #ff6b35;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    margin-inline-start: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

@media (max-width: 480px) {
    #bac2026-subjects-grid {
        grid-template-columns: 1fr;
    }
    .bac2026-subject-actions {
        flex-direction: column;
    }
}

/* UI/UX Architect Card Designs */
.welcome-announcement-card {
    background: linear-gradient(135deg, #1a3c8d 0%, #1e40af 50%, #2563eb 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.welcome-announcement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-badge-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1.2rem;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); }
    100% { transform: scale(1.03); box-shadow: 0 0 10px rgba(255,255,255,0.2); }
}

.welcome-announcement-card h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.3;
}

.welcome-announcement-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: 2rem;
}

.card-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card-cta-btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.card-cta-primary {
    background: #ffffff;
    color: #1a3c8d;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
    background: #f8fafc;
}

.card-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.card-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.card-cta-telegram {
    background: #0088cc;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.15);
}

.card-cta-telegram:hover {
    background: #0099e0;
    box-shadow: 0 15px 25px rgba(0, 136, 204, 0.3);
    transform: translateY(-3px);
    color: #ffffff;
}

@media (max-width: 768px) {
    .welcome-announcement-card {
        padding: 2rem 1.5rem;
    }
    .welcome-announcement-card h3 {
        font-size: 1.8rem;
    }
    .welcome-announcement-card p {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-announcement-card {
        padding: 1.8rem 1.2rem 1.5rem 1.2rem;
        border-radius: 20px;
    }
    .welcome-announcement-card h3 {
        font-size: 1.45rem;
        margin-bottom: 0.8rem;
    }
    .welcome-announcement-card p {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    .welcome-badge-pill {
        padding: 4px 12px;
        font-size: 0.78rem;
        margin-bottom: 1rem;
    }
    
    .card-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
    }
    .card-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .announcement-modal-close {
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

.bac2026-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 16px;
    pointer-events: none;
    box-sizing: border-box !important;
}
.bac2026-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Announcement Modal Close Button */
.announcement-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}
.announcement-modal-close:hover {
    background: #ffffff;
    color: #1a3c8d;
    transform: rotate(90deg);
}

.welcome-announcement-card.modal-version {
    max-width: 650px;
    width: 100%;
    margin: 0;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalScaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Announce Feature Mini-Cards (inside modal) ── */
.announce-features {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1.4rem 0 0.25rem;
}

.announce-feature-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

.announce-feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.announce-feature-card:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.announce-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.announce-feature--correct .announce-feature-icon { background: rgba(34,197,94,0.22);  color: #86efac; }
.announce-feature--calc    .announce-feature-icon { background: rgba(251,191,36,0.22);  color: #fde68a; }
.announce-feature--uni     .announce-feature-icon { background: rgba(167,139,250,0.22); color: #c4b5fd; }

.announce-feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: right;
}

.announce-feature-text strong {
    font-size: 0.97rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.announce-feature-text span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

.announce-feature-arrow {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.announce-feature-card:hover .announce-feature-arrow {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 480px) {
    .announce-feature-card  { padding: 0.75rem 0.9rem; gap: 0.7rem; }
    .announce-feature-icon  { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }
    .announce-feature-text strong { font-size: 0.88rem; }
    .announce-feature-text span   { font-size: 0.76rem; }
}


.breadcrumb-nav { display: none !important; }
