/**
 * =================================================================
 * Bassmah Landing – Global Stylesheet
 * -----------------------------------------------------------------
 * Covers: Header, Footer, Floating buttons, Scroll-to-top,
 *         Navigation dropdowns, Mobile nav toggle, and responsive
 *         overrides for all global elements.
 *
 * Plugin : bassmah-landing
 * Version: 2.0.0
 */

/* ===== GLOBAL MOBILE OVERFLOW FIX (G1 — strengthened x2) =====
 * Prevents horizontal scroll/wobble caused by:
 *   1. Absolutely-positioned decorative shapes with negative right/left offsets
 *   2. animate.css fadeInRight/fadeInLeft animations translating 100%
 *   3. Floating cards positioned BEYOND their parent (right: -30px etc.)
 *   4. Rubber-band / swipe-back on iOS Safari
 */
html {
    overflow-x: clip;       /* clip is stricter than hidden — prevents scroll hijacking */
    overscroll-behavior-x: none;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: clip;
    overscroll-behavior-x: none;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Fallback for older browsers that don't know `clip` */
@supports not (overflow: clip) {
    html, body { overflow-x: hidden !important; }
}

/* Universal rule: every section-level wrapper clips decorative overflow.
 * Scoped to specific page heroes/CTAs only — removed aggressive [class*="hero"]
 * and [class*="cta"] catch-alls because they broke legitimate designs on
 * other pages (e.g. template-bassmah landing) that need overflow: visible. */
section,
.tr-page, .dm-page, .hr-page, .sales-page,
.tr-hero, .dm-hero, .hr-hero, .sales-hero,
.tr-cta, .dm-cta, .sales-program,
[class*="-section"] {
    overflow: hidden;
}

/* Allow sticky/dropdown content to break out (headers, menus, modals) */
.main-header, .dropdown-menu, #modal-overlay, .tr-lightbox {
    overflow: visible;
}

/* Bassmah landing page (/increase-sales-45-days/) heroes need overflow visible
 * for their decorative shapes to show correctly */
.bassmah-landing [class*="hero"],
.bassmah-landing [class*="cta"] {
    overflow: visible;
}

/* --- Mobile-specific tightening (≤992px) ------------------------ */
@media (max-width: 992px) {
    .container,
    .container-fluid,
    .container-xxl,
    .tr-page .container, .dm-page .container,
    .hr-page .container, .sales-page .container {
        max-width: 100vw;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    img { max-width: 100%; height: auto; }

    /* Sales programs numbered overlay */
    .sales-program__num { max-width: 100%; }

    /* Homepage: tame floating cards that stick out beyond their container edge */
    .about-float-card.afc-1,
    .about-float-card.afc-2 { right: 0 !important; left: 0 !important; }

    /* Hide purely decorative orbs/deco/shapes on mobile — reduce jitter */
    .about-orb, .about-deco,
    .method-orb, .method-deco,
    .activities-deco,
    .expert-orb, .expert-deco,
    .services-deco,
    .social-deco { display: none !important; }

    /* Belt-and-suspenders: nothing inside main content may exceed viewport */
    main#content,
    main#content > *,
    main#content section,
    main#content section > .container {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Kill any element that might have explicit wider-than-viewport width */
    body * {
        max-width: 100vw !important;
    }
}

/* =====================================================
   CRITICAL (all sizes): Override animate.css defaults
   that translate elements OFFSCREEN (100% right/left/bottom).
   These cause scrollWidth > clientWidth during animation →
   browser briefly wobbles / shows horizontal scrollbar.
   We replace the offscreen start with an in-place fade.
   ===================================================== */
@keyframes bassmahFadeInSafe {
    0%   { opacity: 0; transform: translate3d(0, 20px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes bassmahZoomInSafe {
    0%   { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

/* Override ALL offscreen-translate animate.css animations globally */
.animate__animated.animate__fadeInRight,
.animate__animated.animate__fadeInLeft,
.animate__animated.animate__fadeInRightBig,
.animate__animated.animate__fadeInLeftBig,
.animate__animated.animate__slideInRight,
.animate__animated.animate__slideInLeft,
.animate__animated.animate__bounceInRight,
.animate__animated.animate__bounceInLeft,
.animate__animated.animate__zoomInRight,
.animate__animated.animate__zoomInLeft,
.animate__animated.animate__rollIn,
.animate__animated.animate__rollOut {
    animation-name: bassmahFadeInSafe !important;
}

/* Zoom animations also briefly overshoot — use the safe variant */
.animate__animated.animate__zoomIn,
.animate__animated.animate__zoomInUp,
.animate__animated.animate__zoomInDown {
    animation-name: bassmahZoomInSafe !important;
}

/* Sections that should strictly clip even if CSS elsewhere sets visible */
.about-section, .trust-section, .method-section, .method-hook,
.activities-section, .services-section, .expert-section,
.social-section, .packages-section, .contact-section,
.stats-section, .faq-section, .blog-section, .cta-section {
    overflow: hidden !important;
    max-width: 100%;
}

/* ===== HIDE OLD NEVE HEADER/FOOTER (legacy cleanup) ===== */
#masthead.site-header,
header#masthead,
.nv-header-placeholder,
.hfg_header,
[data-elementor-id="41"],
footer#colophon.site-footer,
.nv-footer,
.hfg_footer {
    display: none !important;
}

/* Hide Neve/theme page title and content wrappers on bassmah templates */
.bassmah-frontpage .nv-page-title-wrap,
.bassmah-frontpage .nv-page-title,
.bassmah-frontpage .entry-header,
.bassmah-landing .nv-page-title-wrap,
.bassmah-landing .nv-page-title,
.bassmah-landing .entry-header {
    display: none !important;
}

/* Remove theme content padding/margins on bassmah templates */
.bassmah-frontpage .nv-content-wrap,
.bassmah-frontpage .nv-single-page-wrap,
.bassmah-frontpage .container-fluid.single-page-container,
.bassmah-landing .nv-content-wrap,
.bassmah-landing .nv-single-page-wrap,
.bassmah-landing .container-fluid.single-page-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/**
 * =================================================================
 * Bassmah Global Elements
 * =================================================================
 */

button:focus {
    outline: none !important;
}

/* ----- CSS Variables (shared with page styles) ----- */
:root {
    --brand: #2f5aae;
    --brand-light: #338eaa;
    --green: #27ae60;
    --green-light: #2ecc71;
    --gold: #f39c12;
    --red: #e74c3c;
    --purple: #9b59b6;
    --dark: #0a0f1e;
    --dark-blue: #102a43;
    --light-bg: #f0f4f8;
    --text: #1a1a2e;
    --text-light: #3d4654;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.12);
    --radius: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-color: #1a3a6b;
    --font-heading: 'Cairo', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

/* Cairo font for all major headings */
h1, h2, .section-title, .pkg-hero__title, .pkg-pricing__title,
.pkg-services__title, .pkg-why__title, .pkg-steps__title,
.pkg-faq__title, .pkg-cta__title, .pkg-contact__title,
.pkg-booking__title, .pkg-overview__title, .pkg-gallery__title,
.pkg-testimonials__title {
    font-family: var(--font-heading);
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e8ecf1;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
}

.header-logo,
.header-logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.header-logo img {
    height: 65px;
    transition: var(--transition);
    max-width: none;
}

.main-header.scrolled .header-logo img {
    height: 50px;
}

/* ----- Main Nav ----- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav > a,
.dropdown-toggle {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav > a:hover,
.dropdown-toggle:hover {
    color: var(--brand);
    background: rgba(47,90,174,0.06);
}

/* ----- CTA Button inside nav ----- */
.nav-cta {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(39,174,96,0.25);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}

/* ----- Dropdown ----- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.main-header.scrolled .dropdown-toggle { color: var(--dark); }
.dropdown-toggle:hover { color: #27ae60; }
.dropdown-toggle svg.dd-icon {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.nav-dropdown.is-open .dropdown-toggle svg.dd-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 14px;
    padding: 10px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    min-width: 230px;
    z-index: 9999;
    border: 1px solid #e8ecf1;
    list-style: none;
    margin: 0;
    display: none;
}

.nav-dropdown.is-open > .dropdown-menu {
    display: block;
}

/* Multi-column variant — long lists like 'تسويق الأنشطة' (21 items).
 * Placed AFTER base dropdown rules so its display:grid wins over display:block.
 * Desktop: 4 cols side-by-side (fits 21 items in 6 rows).
 * Mobile (≤992px): falls back to single-col list via @media override later. */
.nav-dropdown.is-open > .dropdown-menu.dropdown-menu--scroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 2px 8px;
    min-width: min(900px, calc(100vw - 40px));
    right: auto;
    left: 0;
    padding: 14px 12px;
}
.dropdown-menu--scroll li { margin: 0; }
.dropdown-menu--scroll a {
    padding: 10px 14px !important;
    font-size: 13px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: none !important;
}

.dropdown-menu li { margin: 0; padding: 0; list-style: none; }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(39,174,96,0.06);
    color: #27ae60;
}

/* "See all categories" button at the end of activities dropdown */
.dropdown-menu__more {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 4px;
    padding-top: 4px;
}
.dropdown-menu__more-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #2f5aae, #27ae60) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border-radius: 8px;
    margin: 4px 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dropdown-menu__more-btn:hover {
    background: linear-gradient(135deg, #1e3f7a, #15803d) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(47, 90, 174, 0.3);
}
.dropdown-menu__more-btn svg { flex-shrink: 0; }

/* ----- Mobile Nav Toggle ----- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--green));
}

.footer-main {
    padding: 70px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 30px;
    width: 100%;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 15px;
    line-height: 2;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    text-align: justify;
    text-align-last: center;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
    fill: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover svg {
    fill: #fff;
}

/* Social media brand colors */
.footer-social .social--x {
    background: rgba(255,255,255,0.1);
}
.footer-social .social--x:hover {
    background: #000;
}
.footer-social .social--x svg {
    fill: #fff;
}

.footer-social .social--ig {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}
.footer-social .social--ig svg {
    fill: #fff;
}
.footer-social .social--ig:hover {
    background: linear-gradient(135deg, #6a1b9a, #e91e1e, #e6a030);
    box-shadow: 0 4px 20px rgba(131,58,180,0.4);
}

.footer-social .social--tt {
    background: #010101;
    position: relative;
    overflow: hidden;
}
.footer-social .social--tt svg {
    fill: #25f4ee;
}
.footer-social .social--tt:hover {
    background: #fe2c55;
    box-shadow: 0 4px 20px rgba(254,44,85,0.4);
}
.footer-social .social--tt:hover svg {
    fill: #fff;
}

.footer-social .social--snap {
    background: #fffc00;
}
.footer-social .social--snap svg {
    fill: #333;
}
.footer-social .social--snap:hover {
    background: #ffe600;
    box-shadow: 0 4px 20px rgba(255,252,0,0.4);
}
.footer-social .social--snap:hover svg {
    fill: #000;
}

.footer-col h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
    text-shadow: 0 0 15px rgba(255,255,255,0.15);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 3px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col li a {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col li a::before {
    content: '\2190';
    font-size: 12px;
    transition: var(--transition);
}

.footer-col li a:hover {
    color: var(--brand-light);
    padding-right: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--brand-light);
    fill: none;
    stroke-width: 2;
}

.footer-contact-item span {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    white-space: nowrap;
}

.footer-contact-item a:hover {
    color: var(--brand-light);
}

/* Trust Badge */
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-badge:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.footer-badge__img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-badge__text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}

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

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
}

.footer-bottom a {
    color: var(--brand-light);
    transition: var(--transition);
}

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

/* Google Maps link — yellow */
.footer-bottom .footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
}
.footer-bottom .footer-map-link:hover {
    color: #fcd34d;
}

/* =====================================================
   FLOATING BUTTONS
   ===================================================== */
.float-btns {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-float,
.profile-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.profile-float {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    box-shadow: 0 6px 25px rgba(47,90,174,0.4);
}

.profile-float:hover {
    transform: scale(1.1);
}

.profile-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.whatsapp-float {
    background: #25d366;
    box-shadow: 0 6px 25px rgba(37,211,102,0.4);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* ----- Profile Float Label ----- */
.profile-float-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.profile-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    background: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* =====================================================
   SCROLL-TO-TOP
   ===================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background: var(--brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    background: var(--brand-light);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* =====================================================
   KEYFRAME – pulse (WhatsApp float)
   ===================================================== */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =====================================================
   RESPONSIVE – Header / Footer / Floats
   ===================================================== */

/* --- Tablet & below (992px) --- */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        padding: 0;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        gap: 0;
        align-items: stretch;
        z-index: 1001;
    }

    .main-nav.open {
        right: 0;
    }

    /* Sidebar Header — blue background */
    .main-nav::after {
        content: 'القائمة';
        display: block;
        padding: 20px 24px;
        font-size: 18px;
        font-weight: 800;
        color: #fff;
        background: linear-gradient(135deg, var(--brand), var(--brand-light));
        order: -1;
        flex-shrink: 0;
    }

    /* Links styling */
    .main-nav > a {
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 600;
        color: var(--dark);
        border-bottom: 1px solid #f1f5f9;
        border-radius: 0;
        background: none;
        text-align: right;
        display: block;
        transition: all 0.2s ease;
    }
    .main-nav > a:hover,
    .main-nav > a:active {
        background: linear-gradient(90deg, rgba(47,90,174,0.08), transparent);
        color: var(--brand);
    }
    .main-nav > a:focus {
        background: rgba(47,90,174,0.05);
        outline: none;
    }

    /* Dropdown in sidebar */
    .nav-dropdown {
        display: block;
    }
    .dropdown-toggle {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 600;
        color: var(--dark);
        border-bottom: 1px solid #f1f5f9;
        justify-content: space-between;
        border-radius: 0;
        transition: all 0.2s ease;
    }
    .dropdown-toggle:hover,
    .dropdown-toggle:active {
        background: linear-gradient(90deg, rgba(47,90,174,0.06), transparent);
        color: var(--brand);
    }
    .nav-dropdown.is-open > .dropdown-toggle {
        background: rgba(47,90,174,0.05);
        color: var(--brand);
    }
    .dropdown-toggle svg.dd-icon {
        width: 14px;
        height: 14px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        display: none;
        background: #f8fafb;
        min-width: auto;
    }
    .nav-dropdown.is-open > .dropdown-menu {
        display: block;
    }
    /* Mobile: the 4-col grid variant collapses back to single-col list */
    .dropdown-menu--scroll {
        grid-template-columns: 1fr;
        min-width: 0;
        padding: 0;
        gap: 0;
    }
    .nav-dropdown.is-open > .dropdown-menu--scroll {
        display: block;
    }
    .dropdown-menu--scroll a {
        white-space: normal;
        border-radius: 0;
    }
    .dropdown-menu a {
        padding: 12px 24px 12px 24px;
        padding-right: 40px;
        font-size: 14px;
        color: #475569;
        border-bottom: 1px solid #f1f5f9;
        display: block;
        transition: all 0.2s ease;
    }
    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        background: linear-gradient(90deg, rgba(39,174,96,0.08), transparent);
        color: #27ae60;
    }
    .dropdown-menu a:focus {
        background: rgba(39,174,96,0.05);
        outline: none;
    }

    /* CTA Button in sidebar */
    .nav-cta {
        margin: 16px 24px !important;
        text-align: center !important;
        border-radius: 12px !important;
        padding: 14px !important;
        font-size: 16px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Mobile (576px) --- */
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ===== GLOBAL SECTION BADGE ===== */
.section-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #2f5aae, #338eaa);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* ===== GLOBAL REVEAL ANIMATION (Animate.css integration) ===== */
.reveal {
    opacity: 0;
    transition: opacity 0.1s;
}
.reveal.animated {
    opacity: 1;
}

/* =====================================================
   REUSABLE: Specialized Courses Section (R4)
   Used by: Customer Service, Sales, Digital Marketing,
            Account Management, etc.
   ===================================================== */
.bsm-specialized {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background: linear-gradient(160deg, #f8fbff, #eaf1fd 30%, #f0f4f8);
}

.bsm-specialized::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #338eaa, #2f5aae);
    z-index: 1;
}

.bsm-specialized__shapes { position: absolute; inset: 0; pointer-events: none; }
.bsm-specialized__shape { position: absolute; border-radius: 50%; }
.bsm-specialized__shape--1 {
    width: 380px; height: 380px;
    top: -120px; right: -100px;
    background: rgba(47, 90, 174, 0.06);
}
.bsm-specialized__shape--2 {
    width: 280px; height: 280px;
    bottom: -80px; left: -60px;
    background: rgba(39, 174, 96, 0.06);
}

.bsm-specialized .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.bsm-specialized__title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.3;
    color: #0c1a2a;
    margin: 0 0 50px;
}

.bsm-specialized__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #2f5aae);
    border-radius: 2px;
    margin: 16px auto 0;
}

.bsm-specialized__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 50px;
    text-align: right;
}

/* Course pill button — large, colored, animated */
.bsm-specialized__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e8ecf1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: #0c1a2a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bsm-specialized__item::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 4px;
    background: linear-gradient(180deg, #27ae60, #2f5aae);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.bsm-specialized__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    border-color: transparent;
    color: #0c1a2a;
}

.bsm-specialized__item:hover::before {
    transform: translateX(0);
}

/* Per-position color cycling (6 themes) */
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+1) { background: linear-gradient(135deg, #eff6ff, #fff); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+2) { background: linear-gradient(135deg, #f0fdf4, #fff); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+3) { background: linear-gradient(135deg, #fffbeb, #fff); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+4) { background: linear-gradient(135deg, #fdf2f8, #fff); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+5) { background: linear-gradient(135deg, #f5f3ff, #fff); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n)   { background: linear-gradient(135deg, #ecfeff, #fff); }

.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+1) .bsm-specialized__item-num { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+2) .bsm-specialized__item-num { background: linear-gradient(135deg, #16a34a, #22c55e); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+3) .bsm-specialized__item-num { background: linear-gradient(135deg, #d97706, #f59e0b); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+4) .bsm-specialized__item-num { background: linear-gradient(135deg, #db2777, #ec4899); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n+5) .bsm-specialized__item-num { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.bsm-specialized__grid .bsm-specialized__item:nth-child(6n)   .bsm-specialized__item-num { background: linear-gradient(135deg, #0891b2, #06b6d4); }

.bsm-specialized__item-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

.bsm-specialized__item-text {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #0c1a2a;
    line-height: 1.4;
}

.bsm-specialized__item-arrow {
    flex-shrink: 0;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.bsm-specialized__item:hover .bsm-specialized__item-arrow {
    color: #27ae60;
    transform: translateX(-4px);
}

/* CTA button below the grid */
.bsm-specialized__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsm-specialized__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(39, 174, 96, 0.5);
    color: #fff;
}

@media (max-width: 768px) {
    .bsm-specialized { padding: 60px 0; }
    .bsm-specialized__grid { grid-template-columns: 1fr; }
    .bsm-specialized__item:hover { transform: translateY(-2px); }
    .bsm-specialized__item-num { width: 36px; height: 36px; font-size: 13px; }
    .bsm-specialized__item-text { font-size: 14px; }
}

/* ==========================================================================
   GLOBAL LIGHTBOX — click any designed image to preview full-size
   Client edit: all images should be clickable + show full content (not cropped)
   ========================================================================== */

/* Force "contain" for design/poster images so they show fully inside frames */
.ap-gallery-strip__item,
.ap-section-divider,
.ap-snap-card__media,
.zk-spec-card__poster,
.hp-gallery__item,
.fs-bank__img {
    overflow: hidden;
}
.ap-gallery-strip__item img,
.ap-section-divider img,
.zk-spec-card__poster img,
.hp-gallery__item img,
.fs-bank__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Clickable cue */
img.bassmah-clickable {
    cursor: zoom-in;
    transition: opacity 0.2s ease, transform 0.25s ease;
}
img.bassmah-clickable:hover {
    opacity: 0.95;
}

/* Lightbox overlay */
.bassmah-lb {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 30px;
}
.bassmah-lb.is-active {
    display: flex;
    animation: bassmahLbFade 0.3s ease;
}
.bassmah-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}
.bassmah-lb__figure {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.bassmah-lb__img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    background: #fff;
}
.bassmah-lb__caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
}
.bassmah-lb__prev, .bassmah-lb__next { display: none !important; }
.bassmah-lb__close,
.bassmah-lb__prev,
.bassmah-lb__next {
    position: absolute;
    z-index: 3;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(6px);
}
.bassmah-lb__close:hover,
.bassmah-lb__prev:hover,
.bassmah-lb__next:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}
.bassmah-lb__close { top: 18px; right: 24px; font-size: 2rem; }
.bassmah-lb__prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.bassmah-lb__next  { right: 24px; top: 50%; transform: translateY(-50%); }
.bassmah-lb__prev:hover { transform: translateY(-50%) scale(1.08); }
.bassmah-lb__next:hover { transform: translateY(-50%) scale(1.08); }

@keyframes bassmahLbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 640px) {
    .bassmah-lb__close { top: 12px; right: 12px; width: 42px; height: 42px; }
    .bassmah-lb__prev  { left: 8px; width: 42px; height: 42px; font-size: 1.2rem; }
    .bassmah-lb__next  { right: 8px; width: 42px; height: 42px; font-size: 1.2rem; }
    .bassmah-lb__img   { max-height: 72vh; }
}
