/* ==========================================================
   SYNTELL MODERN DESIGN SYSTEM
   Complete visual modernization override
   ========================================================== */

/* ---------------------------------------------------------
   CSS CUSTOM PROPERTIES
   --------------------------------------------------------- */
:root {
    /* Brand */
    --brand-primary: #f15a22;
    --brand-primary-dark: #f15a22;
    --brand-primary-light: #f15a22;
    --brand-secondary: #1a1a2e;
    --brand-white: #ffffff;
    --brand-dark: #0f0f1a;

    /* Gradients */
    --gradient-primary: #f15a22;
    --gradient-hero: linear-gradient(135deg, rgba(15, 15, 26, 0.85) 0%, rgba(241, 90, 34, 0.3) 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    --gradient-section-alt: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 4px 20px rgba(241, 90, 34, 0.3);
    --shadow-card-hover: 0 12px 40px rgba(241, 90, 34, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------------------------------------
   GLOBAL RESETS & BASE
   --------------------------------------------------------- */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #2d2d3a;
    background-color: #fafbfe;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(241, 90, 34, 0.2);
    color: #1a1a2e;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f15a22;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f15a22;
}

/* ---------------------------------------------------------
   NAVBAR - GLASSMORPHISM
   --------------------------------------------------------- */
.menu {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: auto !important;
    padding: 4px 0 !important;
    display: flex;
    align-items: center;
    background: rgba(15, 15, 26, 0.75) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(241, 90, 34, 0.15);
    transition: var(--transition-base);
}

.menu.scrolled {
    background: rgba(15, 15, 26, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(241, 90, 34, 0.3);
}

.menu .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2rem;
}

.navbar-dropdown {
    background-color: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
    height: auto !important;
    box-shadow: none;
    -webkit-justify-content: space-between !important;
    justify-content: space-between !important;
}

.navbar-brand {
    padding: 0 !important;
    height: auto !important;
    display: flex;
    align-items: center;
    margin-right: 0 !important;
    flex-shrink: 0;
}

.navbar-brand .navbar-logo img {
    height: 3rem !important;
    max-height: 3rem !important;
    width: auto;
    transition: var(--transition-base);
    display: block;
}

.navbar-brand .navbar-logo img:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
}

/* Collapse: grow to fill remaining space */
.navbar-expand-lg .navbar-collapse,
.menu .navbar-collapse {
    -webkit-flex-grow: 1 !important;
    -webkit-flex-shrink: 1 !important;
    -webkit-flex-basis: 0% !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: 0% !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-align-items: center !important;
    align-items: center !important;
    -webkit-justify-content: center !important;
    justify-content: center !important;
}

/* Nav list: centered */
.menu .navbar-nav.nav-dropdown.nav-right {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    -webkit-justify-content: center !important;
    justify-content: center !important;
    -webkit-align-items: center !important;
    align-items: center !important;
}

/* WhatsApp icon: sits at the right naturally */
.menu .icons-menu {
    flex-shrink: 0;
}

.nav-item {
    padding: 0 2px;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    padding: 7px 18px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.84rem !important;
    display: block;
    line-height: 1;
    transition: var(--transition-base);
    position: relative;
    text-transform: uppercase;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
}

.nav-link::after {
    display: none;
}

.nav-link:hover,
.nav-link:focus,
.nav-item:hover .nav-link {
    color: #f15a22 !important;
    text-decoration: none !important;
    background: transparent !important;
    box-shadow: none;
    transform: none;
}

/* Active nav link */
.nav-link.nav-link-active {
    color: #f15a22 !important;
    opacity: 1;
}

/* Contact CTA nav link — same style as other links */
.nav-item.nav-cta .nav-link {
    margin-left: 0;
    padding: 7px 18px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    background: transparent !important;
    border-radius: 0;
    border: none !important;
}

.nav-item.nav-cta .nav-link:hover,
.nav-item.nav-cta .nav-link:focus {
    color: #f15a22 !important;
    background: transparent !important;
    box-shadow: none;
    transform: none;
}

.nav-item.nav-cta .nav-link::after {
    display: none;
}

/* WhatsApp icon — modern circle */
.icons-menu .iconfont-wrapper {
    transition: var(--transition-base);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.icons-menu .iconfont-wrapper .mbr-iconfont {
    font-size: 1rem !important;
    padding: 0 !important;
}

.icons-menu .iconfont-wrapper:hover {
    background: rgba(241, 90, 34, 0.15);
    border-color: rgba(241, 90, 34, 0.4);
    box-shadow: 0 0 18px rgba(241, 90, 34, 0.25);
    transform: scale(1.1);
}

.icons-menu .iconfont-wrapper:hover .mbr-iconfont {
    color: var(--brand-primary) !important;
    fill: var(--brand-primary) !important;
}

/* Mobile Toggler - hidden on desktop, shown on mobile */
.navbar-toggler {
    margin: 0;
    padding: 0;
    height: 36px;
    width: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.navbar-toggler:hover {
    background: rgba(241, 90, 34, 0.15);
}

@media (max-width: 991px) {
    .navbar-toggler {
        display: flex;
    }

    /* Override the desktop flex rule — must match specificity to win */
    .navbar-expand-lg .navbar-collapse,
    .menu .navbar-collapse {
        display: none !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
    }

    /* When open: full-width row below the brand/toggler */
    .navbar-expand-lg .navbar-collapse.show,
    .navbar-expand-lg .navbar-collapse.collapsing,
    .menu .navbar-collapse.show,
    .menu .navbar-collapse.collapsing {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start !important;
        flex-basis: 100% !important;
        flex-grow: 1 !important;
        width: 100%;
    }

    .menu .navbar-nav.nav-dropdown.nav-right {
        flex-direction: column;
        flex-wrap: wrap !important;
        width: 100%;
        margin: 0 !important;
    }

    /* Larger touch targets on mobile */
    .menu .navbar-nav .nav-item .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 44px;
        display: flex !important;
        align-items: center;
    }

    .menu .icons-menu {
        margin-top: 0.5rem;
        margin-left: 0;
    }
}

.hamburger span {
    background-color: #ffffff !important;
    height: 2px !important;
    margin: 3px 0 !important;
    transition: var(--transition-base);
    border-radius: 2px;
    display: block;
    width: 22px;
}

/* Hamburger → X when menu is open */
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2),
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(4) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 991px) {

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: rgba(15, 15, 26, 0.98) !important;
        backdrop-filter: blur(20px);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: 1rem;
        margin-top: 0;
        border: 1px solid rgba(241, 90, 34, 0.1);
        border-top: none;
    }
}

/* ---------------------------------------------------------
   HERO SECTION
   --------------------------------------------------------- */
.header6 {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
    margin-top: 4.5rem !important;
    padding-top: 2rem !important;
}

/* Hero video background */
.header6 .hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    pointer-events: none;
}

/* Hero dark overlay */
.header6 .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Ensure content sits above overlay/video */
.header6>.container {
    position: relative;
    z-index: 2;
}

/* Hero CTA button */
.header6 .hero-cta .btn {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(241, 90, 34, 0.3);
}

.header6 .hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(241, 90, 34, 0.5);
}

/* Hero Gradient Overlay */
.header6 .mbr-overlay {
    background: var(--gradient-hero);
    opacity: 0.9;
}

.header6 h1,
.header6 .mbr-section-title {
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: none;
    letter-spacing: -1px;
    line-height: 1.1 !important;
}

.header6 h1 strong {
    color: #f15a22 !important;
    -webkit-text-fill-color: #f15a22;
}

.header6 p,
.header6 .mbr-text {
    font-weight: 300;
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: none;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating subtle animation for hero */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ---------------------------------------------------------
   SCROLL ANIMATIONS
   --------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.animate-on-scroll .item:nth-child(1),
.animate-on-scroll .card:nth-child(1),
.animate-on-scroll [class*="col-"]:nth-child(1) {
    transition-delay: 0.05s;
}

.animate-on-scroll .item:nth-child(2),
.animate-on-scroll .card:nth-child(2),
.animate-on-scroll [class*="col-"]:nth-child(2) {
    transition-delay: 0.15s;
}

.animate-on-scroll .item:nth-child(3),
.animate-on-scroll .card:nth-child(3),
.animate-on-scroll [class*="col-"]:nth-child(3) {
    transition-delay: 0.25s;
}

.animate-on-scroll .item:nth-child(4),
.animate-on-scroll .card:nth-child(4),
.animate-on-scroll [class*="col-"]:nth-child(4) {
    transition-delay: 0.35s;
}

/* ---------------------------------------------------------
   SECTIONS - GENERAL
   --------------------------------------------------------- */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
}

/* Alternating section backgrounds */
section:nth-of-type(even):not(.menu):not(.footer3):not(.header6) {
    background: var(--gradient-section-alt);
}

.mbr-section-title strong,
.mbr-section-title1 strong {
    font-weight: 800;
    color: var(--brand-secondary);
    letter-spacing: -0.5px;
}

/* Section title accent line */
.mbr-section-head .mbr-section-title::after,
.mbr-section-title1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0.8rem auto 0;
    border-radius: 3px;
}

.mbr-section-head .mbr-section-title.align-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   ABOUT SECTION (header14)
   --------------------------------------------------------- */
.header14 {
    overflow: hidden;
    position: relative;
    padding: 6rem 0 !important;
    background: linear-gradient(170deg, #f8f9fc 0%, #eef1f8 40%, #f0ebe4 100%) !important;
}

/* Decorative background shape */
.header14 .about-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(241, 90, 34, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Image with decorative frame */
.header14 .about-image-frame {
    position: relative;
    z-index: 1;
}

.header14 .about-image-frame img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.header14 .about-image-frame:hover img {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

/* Orange accent block behind image */
.header14 .about-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.15;
    transition: var(--transition-base);
}

.header14 .about-image-frame:hover .about-image-accent {
    opacity: 0.25;
    transform: translate(4px, 4px);
}

/* Text wrapper */
.header14 .text-wrapper {
    padding: 2rem 1rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
}

/* "ABOUT SYNTELL" label */
.header14 .about-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: rgba(241, 90, 34, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 1.2rem;
    border: 1px solid rgba(241, 90, 34, 0.15);
}

/* Title */
.header14 .text-wrapper h1 {
    position: relative;
    padding-bottom: 1.2rem;
    line-height: 1.15 !important;
    color: var(--brand-secondary) !important;
}

.header14 .text-wrapper h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Lead paragraph */
.header14 .about-lead {
    font-size: 1.05rem !important;
    color: #333 !important;
    line-height: 1.8 !important;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Override mbr-additional.css blanket text-align: justify on all body text */
.mbr-text {
    text-align: left !important;
}
.align-center .mbr-text {
    text-align: center !important;
}

/* Body paragraphs */
.header14 .mbr-text {
    color: #666;
    line-height: 1.75 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem;
}

/* Stats row */
.header14 .about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.header14 .about-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header14 .about-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.header14 .about-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #888;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   PRODUCT & FEATURE CARDS
   --------------------------------------------------------- */
.item-wrapper,
.card-wrapper {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Orange accent top line */
.item-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.item-wrapper:hover::before {
    transform: scaleX(1);
}

.item-wrapper:hover,
.card-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(241, 90, 34, 0.1);
}

.item-img img {
    transition: var(--transition-slow);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.item-wrapper:hover .item-img img {
    transform: scale(1.05);
}

.item-content {
    padding: 1.5rem !important;
}

.item-title {
    font-weight: 700 !important;
    color: var(--brand-secondary) !important;
    margin-bottom: 0.5rem;
    text-align: left !important;
}

.item-footer {
    padding: 0 1.5rem 1.5rem !important;
}

/* Current product card — highlighted on sub-pages */
.item-wrapper.current-product {
    border-color: rgba(241, 90, 34, 0.25);
    box-shadow: 0 4px 20px rgba(241, 90, 34, 0.1);
}

.item-wrapper.current-product::before {
    transform: scaleX(1);
}

.item-wrapper.current-product .item-footer .btn {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* ---------------------------------------------------------
   PRODUCT CARD VARIANTS
   --------------------------------------------------------- */

/* Contain mode — shows full image with neutral background */
.item-img.contain-mode {
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.item-img.contain-mode img {
    object-fit: contain !important;
    border-radius: 0 !important;
    transform: none !important;
}

.item-wrapper:hover .item-img.contain-mode img {
    transform: scale(1.03) !important;
}

/* Compact card — tighter spacing */
.compact-card .item-content {
    padding: 1rem 1.25rem !important;
}

.compact-card .item-footer {
    padding: 0 1.25rem 1.25rem !important;
}

.compact-card .item-title {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
}

.compact-card .mbr-text {
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
    line-height: 1.55 !important;
}

/* Overlay card — text floats over image with gradient */
.item-wrapper.overlay-card {
    background: transparent;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Suppress the orange top-line — image fills the whole card */
.overlay-card::before {
    display: none !important;
}

/* Dark gradient rising from the bottom */
.overlay-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(10, 12, 28, 0.88) 100%);
    z-index: 1;
    transition: background 0.4s ease;
    pointer-events: none;
}

.overlay-card:hover::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 10%, rgba(10, 12, 28, 0.94) 100%);
}

/* Stop the card from lifting — it clips the absolutely-positioned image */
.overlay-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-lg) !important;
}

.overlay-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.overlay-card:hover .overlay-body {
    transform: translateY(-4px);
}

.overlay-title {
    color: #ffffff !important;
    margin-bottom: 0.25rem;
}

.overlay-text {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.88rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.4rem !important;
}

/* btn-outline-white used in overlay cards */
.btn.btn-outline-white {
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #ffffff !important;
    background: transparent;
    border-radius: var(--radius-pill);
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.btn.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* ---------------------------------------------------------
   SERVICE CARDS (features1)
   --------------------------------------------------------- */
/* Override Mobirise mbr-additional.css which references the missing mbr-8.jpg */
.features1.cid-sFzyUE9AaP {
    background-image: none !important;
}

.features1 .card-wrapper {
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.features1 .card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.features1 .card-wrapper:hover::before {
    transform: scaleX(1);
}

.features1 .iconfont-wrapper {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(241, 90, 34, 0.1) 0%, rgba(255, 122, 69, 0.1) 100%);
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.features1 .card-wrapper:hover .iconfont-wrapper {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.features1 .card-wrapper:hover .iconfont-wrapper .mbr-iconfont {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.features1 .mbr-iconfont {
    font-size: 1.8rem !important;
    transition: var(--transition-base);
}

.features1 .card-title {
    font-weight: 700 !important;
    color: var(--brand-secondary);
    margin-top: 0.5rem;
}

.features1 .card-text {
    color: #666;
    line-height: 1.7 !important;
    font-size: 0.95rem !important;
}

/* ---------------------------------------------------------
   BUTTONS - MODERN GRADIENT
   --------------------------------------------------------- */
.btn {
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none !important;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px);
}

/* Outline style button alternative */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* ---------------------------------------------------------
   PARTNERS SECTION — COMPACT HORIZONTAL CARDS
   --------------------------------------------------------- */
.partners-compact {
    padding: 4rem 0 !important;
    background: linear-gradient(170deg, #f8f9fc 0%, #eef1f8 40%, #f0ebe4 100%) !important;
}

.partners-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: rgba(241, 90, 34, 0.08);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    border: 1px solid rgba(241, 90, 34, 0.15);
}

.partners-subtitle {
    color: #777 !important;
    max-width: 500px;
    margin: 0.75rem auto 0;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* Description text: left-align for readability in narrow columns */
.partners-compact .card-wrapper .mbr-text {
    text-align: left !important;
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
    color: #555 !important;
}

.partners-grid {
    margin-top: 0.5rem;
    overflow: hidden;
}

/* Horizontal card layout */
.partner-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
    position: relative;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.partner-card:hover::before {
    transform: scaleY(1);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(241, 90, 34, 0.12);
}

/* Image area */
.partner-img {
    flex: 0 0 35%;
    max-width: 220px;
    min-width: 140px;
    overflow: hidden;
    position: relative;
}

.partner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: grayscale(var(--partner-logo-grayscale, 20%));
}

.partner-card:hover .partner-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Body content */
.partner-body {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.3px;
}

.partner-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    margin-top: auto;
}

.partner-link span {
    transition: transform 0.2s ease;
}

.partner-link:hover {
    color: var(--brand-primary-dark);
}

.partner-link:hover span {
    transform: translateX(4px);
}

/* Responsive: stack on mobile */
@media (max-width: 575px) {
    .partner-card {
        flex-direction: column;
    }

    .partner-img {
        flex: none;
        height: 180px;
    }

    .partner-body {
        padding: 1rem 1.25rem 1.25rem;
    }
}

/* ---------------------------------------------------------
   WHY CHOOSE US (content10)
   --------------------------------------------------------- */
.content10 {
    background: var(--gradient-dark) !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 !important;
}

.content10::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(241, 90, 34, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.content10::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(241, 90, 34, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Label */
.content10 .choose-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: rgba(241, 90, 34, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    border: 1px solid rgba(241, 90, 34, 0.25);
}

.content10 .mbr-section-subtitle strong {
    color: #ffffff !important;
    font-weight: 700;
}

.content10 .choose-intro {
    color: rgba(255, 255, 255, 0.65) !important;
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Cards grid */
.content10 .choose-grid {
    position: relative;
    z-index: 1;
}

.content10 .choose-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-base);
    height: 100%;
}

.content10 .choose-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(241, 90, 34, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.content10 .choose-icon {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(241, 90, 34, 0.2);
    position: relative;
    animation: iconPulse 3s ease-in-out infinite;
    transition: var(--transition-spring);
}

/* Subtle idle pulse */
@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

/* Glow ring behind icon on hover */
.content10 .choose-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.4s ease;
}

.content10 .choose-card:hover .choose-icon {
    animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-color: rgba(241, 90, 34, 0.5);
}

.content10 .choose-card:hover .choose-icon::after {
    opacity: 0.35;
}

@keyframes iconBounce {
    0% {
        transform: scale(1) translateY(0);
    }

    40% {
        transform: scale(1.18) translateY(-6px);
    }

    70% {
        transform: scale(0.95) translateY(2px);
    }

    100% {
        transform: scale(1.1) translateY(0);
    }
}

/* Stagger the idle pulse per card */
.content10 .choose-grid [class*="col-"]:nth-child(1) .choose-icon {
    animation-delay: 0s;
}

.content10 .choose-grid [class*="col-"]:nth-child(2) .choose-icon {
    animation-delay: 0.75s;
}

.content10 .choose-grid [class*="col-"]:nth-child(3) .choose-icon {
    animation-delay: 1.5s;
}

.content10 .choose-grid [class*="col-"]:nth-child(4) .choose-icon {
    animation-delay: 2.25s;
}

.content10 .choose-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.content10 .choose-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

.content10 .mbr-text {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.8 !important;
}

/* ---------------------------------------------------------
   XTE PRODUCT SECTION (sub-page override)
   --------------------------------------------------------- */
.xte-product-section {
    background: #ffffff !important;
    padding: 4rem 0 3rem !important;
}

.xte-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.xte-image-wrap img {
    width: 100%;
    display: block;
    transition: var(--transition-slow);
}

.xte-image-wrap:hover img {
    transform: scale(1.03);
}

.xte-intro {
    padding: 1rem 1rem 1rem 2rem !important;
}

.xte-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: rgba(241, 90, 34, 0.08);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    border: 1px solid rgba(241, 90, 34, 0.15);
}

.xte-product-section .mbr-section-title {
    padding-bottom: 0.8rem;
    position: relative;
}

.xte-product-section .mbr-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    margin-top: 0.6rem;
    border-radius: 3px;
}

.xte-product-section .mbr-text {
    color: #555 !important;
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
}

/* Feature cards grid */
.xte-features-grid {
    gap: 0;
}

.xte-feature-card {
    background: #fafbfd;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    height: 100%;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.xte-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.xte-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(241, 90, 34, 0.12);
}

.xte-feature-card:hover::before {
    transform: scaleX(1);
}

.xte-feature-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.xte-feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin-bottom: 0.75rem;
}

.xte-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xte-feature-list li {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    padding: 4px 0 4px 16px;
    position: relative;
}

.xte-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary);
    opacity: 0.6;
}

@media (max-width: 767px) {
    .xte-intro {
        padding: 1.5rem 0.5rem !important;
    }

    .xte-features-grid .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* ---------------------------------------------------------
   FEATURE COMPARISON MATRIX (product pages)
   --------------------------------------------------------- */
.comparison-matrix-section {
    padding: 4rem 0 !important;
    background: #0f0f1a !important;
    color: #fff !important;
}

.comparison-matrix-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.comparison-matrix-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.comparison-matrix-header p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.comparison-matrix-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45);
}

.comparison-matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a2e;
    min-width: 480px;
}

.comparison-matrix-table thead th {
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    background: #12122a;
    border-bottom: 2px solid rgba(241, 90, 34, 0.3);
}

.comparison-matrix-table thead th.cm-feature-col {
    text-align: left;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 2px;
}

.comparison-matrix-table thead th.cm-tier-primary {
    color: #f15a22 !important;
    background: rgba(241, 90, 34, 0.1);
    border-bottom-color: #f15a22;
}

.comparison-matrix-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.comparison-matrix-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-matrix-table tbody tr:hover {
    background: rgba(241, 90, 34, 0.05);
}

.comparison-matrix-table td {
    padding: 0.9rem 1.5rem;
    text-align: center;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    vertical-align: middle;
}

.comparison-matrix-table td.cm-feature-name {
    text-align: left;
    font-weight: 500;
    color: #fff;
}

.comparison-matrix-table td.cm-tier-primary {
    background: rgba(241, 90, 34, 0.04);
}

.cm-yes {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f15a22;
    font-weight: 700;
}

.cm-no {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
}

.cm-text {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

@media (max-width: 767px) {
    .comparison-matrix-section {
        padding: 3rem 0;
    }

    .comparison-matrix-header h2 {
        font-size: 1.5rem;
    }

    .comparison-matrix-table thead th,
    .comparison-matrix-table td {
        padding: 0.75rem 0.875rem;
        font-size: 0.82rem;
    }
}

/* ---------------------------------------------------------
   CLIENTS SECTION
   --------------------------------------------------------- */
.clients1 {
    background: #ffffff !important;
    padding: 5rem 0 !important;
}

.clients-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: rgba(241, 90, 34, 0.08);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    border: 1px solid rgba(241, 90, 34, 0.15);
}

.clients-subtitle {
    color: #777 !important;
    max-width: 480px;
    margin: 0 auto;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.clients-grid {
    gap: 0;
}

/* Clickable link wrapper */
.client-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
    color: inherit;
}

.client-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.client-card {
    background: #fafbfd;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    transition: var(--transition-base);
    text-align: center;
}

.client-card img {
    max-height: 70px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(var(--client-logo-grayscale, 60%)) opacity(var(--client-logo-opacity, 0.7));
    transition: var(--transition-slow);
    margin-bottom: 0.75rem;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(241, 90, 34, 0.15);
}

.client-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.client-name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
    text-transform: uppercase;
    transition: var(--transition-base);
}

.client-card:hover .client-name {
    color: var(--brand-secondary);
}

/* Dark card variant for white logos */
.client-card.client-card-dark {
    background: #1a1a2e;
}

.client-card.client-card-dark img {
    filter: grayscale(60%) opacity(0.6) brightness(1.2);
}

.client-card.client-card-dark:hover img {
    filter: grayscale(0%) opacity(1) brightness(1);
}

.client-card.client-card-dark .client-name {
    color: rgba(255, 255, 255, 0.5);
}

.client-card.client-card-dark:hover .client-name {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
    .client-card {
        min-height: 130px;
        padding: 1rem 0.75rem;
    }

    .client-card img {
        max-height: 50px;
        max-width: 110px;
    }
}

/* ---------------------------------------------------------
   TEAM SECTION
   --------------------------------------------------------- */
.team1 .card-wrap {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.team1 .card-wrap:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team1 .image-wrap {
    overflow: hidden;
    position: relative;
}

.team1 .image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team1 .card-wrap:hover .image-wrap img {
    transform: scale(1.08);
}

/* Gradient overlay on hover */
.team1 .image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 15, 26, 0.6), transparent);
    opacity: 0;
    transition: var(--transition-base);
    pointer-events: none;
}

.team1 .card-wrap:hover .image-wrap::after {
    opacity: 1;
}

.team1 .content-wrap {
    padding: 1.5rem;
}

.team1 .card-title {
    font-weight: 700 !important;
    color: var(--brand-secondary);
}

.team1 .mbr-role {
    color: var(--brand-primary) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------------------------------------------------------
   TEAM HIERARCHY / ORG-CHART LAYOUT
   --------------------------------------------------------- */
.team-hierarchy-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}

/* Each tier row */
.team-tier-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Connector arrow between tiers */
.team-tier-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0.25rem 0;
    width: 100%;
}

.team-tier-connector::before {
    content: '';
    width: 2px;
    height: 28px;
    background: var(--brand-primary);
    opacity: 0.45;
}

.team-tier-connector::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--brand-primary);
    opacity: 0.45;
}

/* Card sizing per tier */
.team-hierarchy-card {
    width: 200px;
    flex: 0 0 200px;
}

/* Tier 1 (top): slightly larger, orange accent border */
.team-tier-1 .team-hierarchy-card {
    width: 230px;
    flex: 0 0 230px;
}

.team-tier-1 .card-wrap {
    border-top: 3px solid var(--brand-primary) !important;
    box-shadow: 0 8px 32px rgba(241, 90, 34, 0.18) !important;
}

/* Tier 2: navy accent */
.team-tier-2 .card-wrap {
    border-top: 2px solid var(--brand-secondary) !important;
}

/* Tier 3+: default card */

/* Responsive: stack on mobile */
@media (max-width: 767px) {

    .team-hierarchy-card,
    .team-tier-1 .team-hierarchy-card {
        width: 160px;
        flex: 0 0 160px;
    }
}

/* ---------------------------------------------------------
   CLIENTS SECTION
   --------------------------------------------------------- */
.clients1 {
    background: var(--gradient-section-alt);
}

.clients1 .card {
    padding: 1.5rem;
    transition: var(--transition-base);
}

.clients1 .card img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition-slow);
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.clients1 .card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ---------------------------------------------------------
   CONTACT SECTION
   --------------------------------------------------------- */
.contacts2 .card-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-base);
}

.contacts2 .card-wrapper:hover {
    border-color: rgba(241, 90, 34, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contacts2 .image-wrapper {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(241, 90, 34, 0.1) 0%, rgba(255, 122, 69, 0.08) 100%);
    transition: var(--transition-base);
}

.contacts2 .card-wrapper:hover .image-wrapper {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.contacts2 .image-wrapper .mbr-iconfont {
    font-size: 1.4rem !important;
    color: var(--brand-primary) !important;
    fill: var(--brand-primary) !important;
    transition: var(--transition-base);
}

.contacts2 .card-wrapper:hover .image-wrapper .mbr-iconfont {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.contacts2 .card-title {
    font-weight: 700 !important;
    color: var(--brand-secondary);
}

.contacts2 .text-primary {
    color: var(--brand-primary) !important;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contacts2 .text-primary:hover {
    color: var(--brand-primary-dark) !important;
}

/* ---------------------------------------------------------
   MAP SECTION
   --------------------------------------------------------- */
.map2 {
    padding-top: 3rem;
    padding-bottom: 0;
}

.map2 .mbr-section-subtitle {
    font-weight: 600;
    color: var(--brand-secondary);
    letter-spacing: -0.3px;
}

.google-map {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.google-map iframe {
    min-height: 400px;
}

/* ---------------------------------------------------------
   FOOTER - MODERN
   --------------------------------------------------------- */
.footer3 {
    background: var(--gradient-dark) !important;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-top: none;
    position: relative;
    overflow: hidden;
}

/* Gradient top accent */
.footer3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* Subtle background glow */
.footer3::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(241, 90, 34, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer3 .mbr-text {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer3 .text-primary {
    color: var(--brand-primary) !important;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer3 .text-primary:hover {
    color: var(--brand-primary-light) !important;
    text-decoration: underline !important;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .header6 {
        min-height: 60vh;
        margin-top: 4.5rem !important; /* JS overrides this precisely via fixHeroOffset() */
    }

    section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .header14 {
        padding: 4rem 0 !important;
    }

    .header14 .about-image-accent {
        bottom: -10px;
        right: -10px;
    }

    .header14 .text-wrapper {
        padding: 2rem 0.5rem;
    }

    .content10::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .header6 {
        min-height: 50vh;
    }

    .header14 .about-image-frame img {
        border-radius: var(--radius-md);
        margin-bottom: 1.5rem;
    }

    .header14 .about-image-accent {
        display: none;
    }

    .header14 .text-wrapper {
        padding: 2rem 0.5rem;
    }

    .header14 .about-stats {
        gap: 1.2rem;
    }

    .header14 .about-stat-number {
        font-size: 1.6rem;
    }

    .header14 .about-stats {
        flex-wrap: wrap;
    }

    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .item-wrapper::before {
        transform: scaleX(1);
    }

    .team1 .card-wrap {
        margin-bottom: 1.5rem;
    }
}

/* ---------------------------------------------------------
   UTILITY: Subtle background pattern
   --------------------------------------------------------- */
.pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ---------------------------------------------------------
   LINK STYLING
   --------------------------------------------------------- */
a.text-primary {
    color: var(--brand-primary) !important;
    transition: var(--transition-fast);
}

a.text-primary:hover {
    color: var(--brand-primary-dark) !important;
}

/* ---------------------------------------------------------
   IMAGES GLOBAL
   --------------------------------------------------------- */
.item-img {
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ---------------------------------------------------------
   PRODUCTS SECTION TITLE FIX (features3)
   --------------------------------------------------------- */
.features3 .mbr-section-title {
    margin-bottom: 1rem;
}

section.features3,
.cid-vaWGMOA4i6,
.cid-vb0vdVEYyL,
.cid-vb0vpResf4,
.cid-vb0vQXItDC {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

.features3 .mbr-overlay {
    display: none !important;
}

/* product.html / product.php — first content sections; padding-top clears fixed navbar as CSS fallback */
.cid-vb0vdVEYyL,
#product-overview.header14 {
    padding-top: 6rem !important;
}

/* Product overview image — cap height so portrait images don't make the section enormous */
#product-overview .image-wrapper {
    max-height: 480px;
    overflow: hidden;
}
#product-overview .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Ensure overview text is always visible (dark on white) regardless of animate-on-scroll state */
#product-overview .text-wrapper h1,
#product-overview .text-wrapper p {
    color: var(--brand-secondary) !important;
}

/* ---------------------------------------------------------
   NEWSLETTER CTA BANNER (index.html)
   --------------------------------------------------------- */
.newsletter-cta {
    padding: 3.5rem 0 !important;
    background: #0f0f1a !important;
    background-image: none !important;
    position: relative;
    overflow: hidden;
}

/* Ambient orange glow — top-left */
.newsletter-cta::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(241, 90, 34, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Ambient glow — bottom-right */
.newsletter-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(241, 90, 34, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.newsletter-cta-text {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.newsletter-cta-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(241, 90, 34, 0.2) 0%, rgba(255, 122, 69, 0.1) 100%);
    border: 1px solid rgba(241, 90, 34, 0.3);
    border-radius: var(--radius-md);
    color: var(--brand-primary);
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(241, 90, 34, 0);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(241, 90, 34, 0.15);
    }
}

.newsletter-cta-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.35rem;
    letter-spacing: 0.3px;
}

.newsletter-cta-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.6;
    max-width: 480px;
}

.newsletter-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 0.85rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(241, 90, 34, 0.25);
}

.newsletter-cta-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(241, 90, 34, 0.4);
}

.newsletter-cta-btn span {
    transition: var(--transition-base);
    display: inline-block;
    font-size: 1.1rem;
}

.newsletter-cta-btn:hover span {
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .newsletter-cta {
        padding: 2.5rem 0;
    }

    .newsletter-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-cta-text {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-cta-desc {
        max-width: 100%;
    }

    .newsletter-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   NEWSLETTER PAGE
   --------------------------------------------------------- */

/* Newsletter nav — no hero behind it, so force solid background */
[data-page="newsletter"] {
    background: rgba(15, 15, 26, 0.97) !important;
}

/* Featured Article Section */
.newsletter-featured {
    padding: 7rem 0 4rem;
    background: var(--gradient-section-alt);
}

.newsletter-featured-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.newsletter-featured-image-link {
    flex: 0 0 45%;
    display: block;
    overflow: hidden;
}

.newsletter-featured-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Featured Image Modes */
.newsletter-featured-image-link.mode-contain {
    background: #0f0f1a !important;
}

.newsletter-featured-image-link.mode-contain .newsletter-featured-img {
    object-fit: contain !important;
}

.newsletter-featured-image-link.mode-auto .newsletter-featured-img {
    height: auto !important;
    max-height: 500px !important;
    object-fit: contain !important;
}

/* Archive Grid Modes */
.newsletter-card-image.mode-contain {
    background: #0f0f1a !important;
}

.newsletter-card-image.mode-contain img {
    object-fit: contain !important;
}

.newsletter-card-image.mode-auto img {
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
}

.newsletter-featured-image-link:hover .newsletter-featured-img {
    transform: scale(1.03);
}

.newsletter-featured-body {
    flex: 1;
    padding: 2rem 2.5rem 2rem 0;
}

.newsletter-featured-title {
    font-size: 1.6rem !important;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.newsletter-featured-excerpt {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem !important;
}

.newsletter-featured .row {
    gap: 0;
}

.newsletter-featured-img::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40%;
    height: 40%;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    transition: var(--transition-base);
}

.newsletter-featured-img:hover::after {
    bottom: -12px;
    right: -12px;
}

.newsletter-featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

/* Featured Inner Img Modes */
.newsletter-featured-image-link.mode-contain .newsletter-featured-img img {
    object-fit: contain;
}

.newsletter-featured-image-link.mode-auto .newsletter-featured-img img {
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.newsletter-featured-img:hover img {
    transform: scale(1.03);
}

.newsletter-featured-img .newsletter-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.newsletter-featured-content {
    padding: 1.5rem 0 1.5rem 2rem;
}

.newsletter-featured-content .newsletter-label {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.newsletter-featured-content .newsletter-card-date {
    display: block;
    margin-bottom: 1rem;
}

.newsletter-featured-content h2 {
    font-weight: 800;
    color: var(--brand-secondary);
    line-height: 1.2;
}

.newsletter-featured-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Newsletter Label (Pill) */
.newsletter-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: rgba(241, 90, 34, 0.08);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(241, 90, 34, 0.15);
}

/* Newsletter Subtitle */
.newsletter-subtitle {
    max-width: 560px;
    margin: 1rem auto 0;
    color: #777;
}

/* Archive Section */
.newsletter-section {
    padding: 5rem 0;
    background: #ffffff;
}

/* Newsletter Card Grid */
.newsletter-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Newsletter Card */
.newsletter-card {
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
    z-index: 2;
}

.newsletter-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.newsletter-card:hover::before {
    transform: scaleX(1);
}

/* Card Image */
.newsletter-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.newsletter-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.newsletter-card:hover .newsletter-card-img img {
    transform: scale(1.08);
}

.newsletter-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
}

/* Category Pill */
.newsletter-card-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand-primary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

/* Card Body */
.newsletter-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Date */
.newsletter-card-date {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-primary);
    opacity: 0.85;
}

/* Card Title */
.newsletter-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin: 0.5rem 0 0.75rem;
    line-height: 1.35;
}

/* Card Excerpt */
.newsletter-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

/* Card wrapper link — must not inherit any text styling into the card */
.newsletter-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Read More CTA inside card */
.newsletter-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.newsletter-card-link span {
    transition: var(--transition-base);
    display: inline-block;
}

.newsletter-card-link:hover {
    color: var(--brand-primary-dark);
    gap: 10px;
}

.newsletter-card-link:hover span {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 991px) {
    .newsletter-featured-card {
        flex-direction: column;
        gap: 0;
    }

    .newsletter-featured-image-link {
        flex: none;
        width: 100%;
    }

    .newsletter-featured-img {
        height: 280px;
    }

    .newsletter-featured-body {
        padding: 1.5rem 2rem 2rem;
    }
}

@media (max-width: 767px) {

    .newsletter-featured {
        padding: 6rem 0 3rem; /* top must clear fixed navbar (~3rem) + breathing room */
    }

    .newsletter-section {
        padding: 3rem 0;
    }

    .newsletter-featured-img {
        height: 220px;
    }

    .newsletter-card-img {
        height: 180px;
    }

    .newsletter-card-title {
        font-size: 1.05rem;
    }
}

/* ---------------------------------------------------------
   NEWSLETTER ARTICLE PAGE
   --------------------------------------------------------- */

/* Article Hero */
.article-hero {
    padding: 8rem 0 3rem;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #ffffff, transparent);
    z-index: 1;
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition-base);
}

.article-hero-image.mode-contain {
    background: #0f0f1a !important;
}

.article-hero-image.mode-contain img {
    object-fit: contain !important;
}

.article-hero-image.mode-auto img {
    height: auto !important;
    max-height: 700px !important;
    object-fit: contain !important;
}

.article-back:hover {
    color: var(--brand-primary);
    gap: 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-hero .newsletter-card-category {
    font-size: 0.7rem;
}

.article-hero .newsletter-card-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.article-hero h1 {
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Article Hero Image */
.article-hero-image {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.article-hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Image Display Modes */
.article-hero-image.mode-contain {
    background: #0f0f1a;
}

.article-hero-image.mode-contain img {
    object-fit: contain;
}

.article-hero-image.mode-auto img {
    height: auto;
    max-height: 700px;
    object-fit: contain;
}

/* Article Body */
.article-body {
    padding: 3rem 0 4rem;
    background: #fff;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-secondary);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--brand-secondary);
}

.article-content blockquote {
    border-left: 4px solid var(--brand-primary);
    background: rgba(241, 90, 34, 0.04);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #555;
}

/* Article Footer Nav */
.article-footer-nav {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.article-footer-nav .btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.75rem 2rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.article-footer-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Article Responsive */
@media (max-width: 991px) {
    .article-hero-image img {
        height: 320px;
    }
}

@media (max-width: 767px) {
    .article-hero {
        padding: 6rem 0 2rem;
    }

    .article-hero-image img {
        height: 220px;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-body {
        padding: 2rem 0 3rem;
    }
}

/* ---------------------------------------------------------
   PAGE TRANSITION FEEL
   --------------------------------------------------------- */
body {
    animation: pageIn 0.6s ease both;
}

@keyframes pageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------------------------------------------------------
   ADMIN PANEL
   --------------------------------------------------------- */

/* Login */
.admin-login {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 4rem 0;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.admin-login-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.admin-login-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.admin-login-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Dashboard */
.admin-dashboard {
    padding: 7rem 0 4rem;
    min-height: 70vh;
}

/* [Consolidated to end of file] */
.admin-table th {
    background: var(--brand-secondary);
    color: #fff;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(241, 90, 34, 0.03);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Badges */
.admin-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(241, 90, 34, 0.1);
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-badge-featured {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(241, 90, 34, 0.35);
}

/* Buttons */
.admin-btn {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    background: var(--gradient-primary);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-pill);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.admin-btn-full {
    width: 100%;
    text-align: center;
}

.admin-btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    background: transparent;
    color: var(--brand-primary) !important;
    border: 1.5px solid var(--brand-primary);
    border-radius: var(--radius-pill);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.admin-btn-secondary:hover {
    background: rgba(241, 90, 34, 0.08);
    transform: translateY(-2px);
}

.admin-btn-sm {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--brand-secondary);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.admin-btn-sm:hover {
    opacity: 0.85;
}

.admin-btn-sm-outline {
    background: transparent;
    color: var(--brand-primary) !important;
    border: 1px solid var(--brand-primary);
}

.admin-btn-sm-danger {
    background: #dc3545;
}

.admin-btn-sm-danger:hover {
    background: #c82333;
}

/* Alerts */
.admin-alert {
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.admin-alert-success {
    background: rgba(40, 167, 69, 0.08);
    border-left-color: #28a745;
    color: #1e7e34;
}

.admin-alert-error {
    background: rgba(220, 53, 69, 0.08);
    border-left-color: #dc3545;
    color: #c82333;
}

/* Form */
.admin-form-wrap {
    max-width: 820px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.admin-form-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-field {
    margin-bottom: 1.3rem;
}

.admin-label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-secondary);
    margin-bottom: 0.4rem;
}

.admin-char-count {
    float: right;
    font-weight: 400;
    font-size: 0.75rem;
    color: #999;
    text-transform: none;
    letter-spacing: 0;
}

.admin-input,
.admin-textarea,
.admin-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #333;
    background: #fafafa;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(241, 90, 34, 0.12);
    background: #fff;
}

.admin-input--muted {
    background: #fef9ec;
    border-color: #f59e0b;
    color: #78350f;
}

.admin-input[readonly] {
    background: #f0f0f0;
    color: #888;
    cursor: not-allowed;
}

.admin-hint {
    display: block;
    font-size: 0.78rem;
    color: #999;
    margin-top: 0.3rem;
}

.admin-row {
    display: flex;
    gap: 1.2rem;
}

.admin-field-half {
    flex: 1;
}

.admin-image-preview {
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 300px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Admin URL Fetch Row */
.admin-url-row {
    display: flex;
    gap: 0.5rem;
}

.admin-url-row .admin-input {
    flex: 1;
}

.admin-url-row .admin-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-hint-success {
    color: #28a745 !important;
}

.admin-hint-error {
    color: #dc3545 !important;
}

.admin-fetch-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(241, 90, 34, 0.04);
    border: 1px solid rgba(241, 90, 34, 0.15);
    border-radius: 8px;
}

.admin-fetch-preview img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.admin-fetch-preview-info {
    flex: 1;
    min-width: 0;
}

.admin-fetch-preview-info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-fetch-preview-info small {
    color: #888;
    font-size: 0.8rem;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    color: #f15a22;
}

.admin-tab-active {
    color: #f15a22;
    border-bottom-color: #f15a22;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-row {
        flex-direction: column;
        gap: 0;
    }

    /* [Consolidated] */

    .admin-form-wrap {
        padding: 1.2rem;
    }

    .admin-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* ---------------------------------------------------------
   ANNOUNCEMENT BANNER STRIP
   --------------------------------------------------------- */
/* Ensure the hero section-wrapper doesn't create a covering stacking context */
#hero.section-wrapper {
    z-index: 0;
}

/* Ensure the banner section-wrapper sits above siblings (About has -64px margin overlap) */
#banners.section-wrapper {
    position: relative;
    z-index: 100;
}

/* When a section directly follows the banner, neutralise its negative margin
   so it doesn't overlap the banner strip. */
#banners.section-wrapper+.section-wrapper>section {
    margin-top: 0 !important;
}

.announcement-strip {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.announcement-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(241, 90, 34, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.announcement-strip-hidden {
    max-height: 0;
    padding: 0 !important;
    margin-top: 0 !important;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, margin-top 0.4s ease;
}

.announcement-strip-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1.1rem 3rem 1.1rem 1rem;
    gap: 1rem;
}

.announcement-slide {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    animation: bannerFadeIn 0.4s ease;
}

.announcement-slide-active {
    display: flex;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.announcement-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.announcement-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.announcement-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 400;
}

.announcement-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f15a22;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(241, 90, 34, 0.25);
}

.announcement-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(241, 90, 34, 0.4);
}

.announcement-cta span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.announcement-cta:hover span {
    transform: translateX(3px);
}

.announcement-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.announcement-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.announcement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.announcement-dot-active {
    background: #f15a22;
    width: 18px;
    border-radius: 3px;
}

@media (max-width: 767px) {
    .announcement-strip-inner {
        flex-direction: column;
        padding: 1rem 2.5rem 1.25rem 1rem;
        min-height: auto;
    }

    .announcement-slide-active {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .announcement-text {
        flex-direction: column;
        gap: 0.25rem;
    }

    .announcement-title {
        font-size: 0.88rem;
    }

    .announcement-subtitle {
        font-size: 0.8rem;
    }

    .announcement-dots {
        position: static;
        transform: none;
        margin-top: 0.5rem;
    }
}

/* ---------------------------------------------------------
   ADMIN FAQ MANAGEMENT
   --------------------------------------------------------- */

.admin-faq-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-faq-cat-block {
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.admin-faq-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-faq-cat-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.admin-faq-cat-name small {
    color: #888;
    font-weight: 400;
    font-size: 0.85rem;
}

.admin-table-compact {
    margin-bottom: 0;
}

/* Higher specificity (0,2,1) to beat the duplicate .admin-table td rule (0,1,1) */
.admin-table.admin-table-compact th,
.admin-table.admin-table-compact td {
    padding: 0.45rem 0.75rem;
}

.action-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
}

.action-buttons .btn-action-primary,
.action-buttons .btn-action-danger,
.action-buttons .btn-action-secondary,
.action-buttons .btn-action-outline {
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.admin-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .admin-faq-cat-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .admin-faq-summary {
        flex-wrap: wrap;
    }
}

/* ---------------------------------------------------------
   PRINT STYLES
   --------------------------------------------------------- */
@media print {

    /* Hide chrome */
    .menu,
    .navbar,
    [data-page="newsletter"],
    .footer3,
    #scrollToTop,
    .article-back,
    .article-footer-nav,
    .newsletter-cta,
    .contacts2,
    .admin-dashboard,
    .admin-login,
    input[name="animation"] {
        display: none !important;
    }

    /* Reset backgrounds */
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .article-hero {
        background: #fff !important;
        padding: 0 !important;
    }

    .article-hero-inner {
        padding: 0 !important;
    }

    .article-hero .newsletter-card-category {
        background: none !important;
        color: #666 !important;
        border: 1px solid #999;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .article-hero .newsletter-card-date {
        color: #666 !important;
    }

    .article-hero h1,
    .article-hero h1 strong {
        color: #000 !important;
        font-size: 1.8rem !important;
    }

    /* Hero image */
    .article-hero-image {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-top: 1rem !important;
        max-height: 300px !important;
        overflow: hidden;
    }

    .article-hero-image img {
        max-height: 300px !important;
        object-fit: cover;
    }

    /* Article body */
    .article-body {
        padding: 1rem 0 !important;
    }

    .article-content {
        max-width: 100% !important;
        font-size: 11pt !important;
        line-height: 1.6 !important;
        color: #000 !important;
    }

    .article-content h2 {
        font-size: 14pt !important;
        color: #000 !important;
        margin-top: 1.2rem !important;
        page-break-after: avoid;
    }

    .article-content h3 {
        font-size: 12pt !important;
        color: #000 !important;
        page-break-after: avoid;
    }

    .article-content p,
    .article-content li {
        orphans: 3;
        widows: 3;
    }

    .article-content blockquote {
        border-left: 3px solid #999 !important;
        background: none !important;
        padding: 0.5rem 0 0.5rem 1rem !important;
        font-style: italic;
        color: #333 !important;
        page-break-inside: avoid;
    }

    .article-content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Links show URL */
    .article-content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }

    /* Newsletter listing print */
    .newsletter-featured,
    .newsletter-section {
        background: #fff !important;
        padding: 1rem 0 !important;
    }

    .newsletter-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }

    .newsletter-featured-card {
        box-shadow: none !important;
    }

    /* General print cleanup */
    * {
        box-shadow: none !important;
    }

    a {
        text-decoration: none !important;
        color: #000 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 1cm !important;
    }
}

/* ---------------------------------------------------------
   EXTERNAL / INDUSTRY NEWS SECTION
   --------------------------------------------------------- */
.external-news-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
}

.external-news-section .mbr-section-title,
.external-news-section .mbr-section-title strong {
    color: #fff !important;
}

.external-news-section .newsletter-subtitle {
    color: rgba(255, 255, 255, 0.6) !important;
}

.external-news-section .newsletter-label {
    color: #f15a22 !important;
}

.external-news-section .newsletter-card-date {
    color: rgba(255, 255, 255, 0.5) !important;
}

.external-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.external-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.external-card:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 90, 34, 0.3);
    box-shadow: 0 12px 40px rgba(241, 90, 34, 0.1);
}

.external-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.external-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.external-card:hover .external-card-image img {
    transform: scale(1.05);
}

.external-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.external-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.external-card-source {
    background: rgba(241, 90, 34, 0.15);
    color: #f15a22;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.external-card-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.external-card-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.external-card-cta {
    color: #f15a22;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s ease;
}

.external-card:hover .external-card-cta {
    gap: 0.6rem;
}

@media (max-width: 767px) {
    .external-news-section {
        padding: 2.5rem 0;
    }

    .external-card-image {
        height: 160px;
    }
}

/* ---------------------------------------------------------
   FAQ PAGE
   --------------------------------------------------------- */

/* Hero */
.faq-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
}

.faq-label {
    display: inline-block;
    background: rgba(241, 90, 34, 0.15);
    color: #f15a22;
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.faq-hero-title {
    color: #fff !important;
    margin-bottom: 1rem;
}

.faq-hero-title strong {
    color: #fff !important;
}

.faq-hero-subtitle {
    color: rgba(255, 255, 255, 0.6) !important;
    max-width: 600px;
    margin: 0 auto;
}

/* Category pills nav */
.faq-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-category-pill {
    display: inline-block;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-category-pill:hover {
    color: #f15a22;
    border-color: rgba(241, 90, 34, 0.3);
    background: rgba(241, 90, 34, 0.06);
}

.faq-category-pill.active {
    color: #fff;
    background: #f15a22;
    border-color: transparent;
}

/* Section */
.faq-section {
    padding: 2rem 0 4rem;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Category blocks */
.faq-category-block {
    margin-bottom: 3rem;
}

.faq-category-title {
    color: #1a1a2e !important;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f15a22;
    display: inline-block;
}

/* Accordion items */
.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.faq-item:hover {
    border-color: rgba(241, 90, 34, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-item.open {
    border-color: rgba(241, 90, 34, 0.3);
    box-shadow: 0 8px 24px rgba(241, 90, 34, 0.08);
}

/* Force reduce gap between about and products */
#about .text-wrapper,
#about .image-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#products .mbr-section-head {
    margin-top: -2rem !important;
}

#about .about-stats {
    margin-bottom: 0 !important;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #f15a22;
}

.faq-item.open .faq-question {
    color: #f15a22;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(241, 90, 34, 0.1);
    color: #f15a22;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.faq-item.open .faq-icon {
    background: #f15a22;
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* CTA section */
.faq-cta-section {
    padding: 0 0 4rem;
}

.faq-cta-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
}

.faq-cta-title {
    color: #fff !important;
    margin-bottom: 0.75rem;
}

.faq-cta-title strong {
    color: #fff !important;
}

.faq-cta-text {
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 1.5rem;
}

.faq-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.faq-cta-actions .btn-primary {
    background: #f15a22 !important;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-weight: 600;
}

.faq-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.faq-cta-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

/* Responsive */
@media (max-width: 767px) {
    .faq-hero {
        padding: 7rem 0 2rem;
    }

    .faq-category-nav {
        gap: 0.4rem;
        top: 60px;
        padding: 1rem 0;
    }

    .faq-category-pill {
        font-size: 0.78rem;
        padding: 0.35rem 0.9rem;
    }

    .faq-question {
        padding: 1rem 1.2rem;
        font-size: 0.92rem;
    }

    .faq-answer {
        padding: 0 1.2rem;
    }

    .faq-item.open .faq-answer {
        padding: 0 1.2rem 1rem;
    }

    .faq-cta-card {
        padding: 2rem 1.5rem;
    }
}

/* ---------------------------------------------------------
   MOBILE RESPONSIVENESS TWEAKS
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .header14 {
        padding: 4rem 0 !important;
    }

    .header14 .text-wrapper {
        padding: 2rem 1rem !important;
    }
}

@media (max-width: 767px) {
    .header14 {
        padding: 3rem 0 !important;
    }

    /* Reduce side padding on text wrapper */
    .header14 .text-wrapper {
        padding: 1.5rem 1rem !important;
        text-align: center;
    }

    /* Center the title underline */
    .header14 .text-wrapper h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Scale down title size */
    .header14 .text-wrapper h1 {
        font-size: 1.75rem !important;
    }

    /* Adjust decorative background shape */
    .header14 .about-bg-shape {
        width: 280px;
        height: 280px;
        top: -5%;
        right: -10%;
    }

    /* Ensure images have margin */
    .header14 .image-wrapper {
        margin-bottom: 2rem;
    }

    /* Partners section padding */
    .partners-compact {
        padding: 3rem 0 !important;
    }

    /* Hero text sizing */
    .header6 h1 {
        font-size: 2.5rem !important;
    }

    .header6 .mbr-text {
        font-size: 1.1rem !important;
    }
}


/* ==========================================================
   GLOBAL MOBILE OPTIMIZATIONS (Step 2)
   ========================================================== */

@media (max-width: 767px) {

    /* 1. Global Typography Scaling */
    .display-1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    .display-2 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .display-4 {
        font-size: 0.9rem !important;
    }

    .display-5 {
        font-size: 1.4rem !important;
    }

    .display-7 {
        font-size: 0.95rem !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* 2. Newsletter CTA - Stack content */
    .newsletter-cta-inner {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 2rem !important;
    }

    .newsletter-cta-text {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 1rem;
    }

    .newsletter-cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* 3. Clients Grid - ensure padding */
    .clients-grid .col-6 {
        padding: 0 8px;
    }

    .client-card {
        padding: 1rem 0.5rem;
        min-height: 120px;
    }

    /* 4. Map */
    .google-map iframe {
        min-height: 300px;
    }

    /* 5. Contact Cards */
    .contacts2 .card-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .contacts2 .image-wrapper {
        margin-bottom: 1rem;
    }

    /* 6. Footer Center Align */
    .footer3 {
        text-align: center;
    }
}


/* Newsletter Featured Mobile */
@media (max-width: 767px) {
    .newsletter-featured-card {
        flex-direction: column !important;
    }

    .newsletter-featured-image-link {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .newsletter-featured-img {
        width: 100% !important;
        height: auto !important;
    }
}


/* ---------------------------------------------------------
   ADMIN SIDEBAR LAYOUT
   --------------------------------------------------------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f4f6f9;
}

.admin-sidebar {
    width: 260px;
    background: #0f0f1a;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Changed from gap to space-between */
    flex-wrap: nowrap;
}

.admin-sidebar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Increased gap */
    white-space: nowrap;
    /* Prevent wrapping */
    flex-shrink: 0;
}

.admin-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.admin-help-icon:hover {
    background: #f15a22;
    color: #fff;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.nav-group-title:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

.nav-group-title::after {
    content: '›';
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.5;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
    display: inline-block;
}

.nav-group.is-open .nav-group-title::after {
    transform: rotate(90deg);
}

.nav-group-items {
    display: none;
    padding-top: 0.15rem;
    padding-bottom: 0.5rem;
}

.nav-group.is-open .nav-group-items {
    display: block;
}

.nav-item-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.nav-item-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item-link.active {
    color: #fff;
    background: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(241, 90, 34, 0.3);
}

.nav-item-sub {
    padding-left: 1.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    opacity: 0.85;
}

.admin-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-main {
    flex: 1;
    padding: 2.5rem;
    min-width: 0;
    /* Prevent overflow */
    background: #f8f9fc;
}

/* Hide old tabs if present */
.admin-tabs {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        overflow: visible;
    }

    .admin-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
        gap: 1.5rem;
        white-space: nowrap;
    }

    .nav-group {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .nav-group-title {
        display: flex;
        font-size: 0.65rem;
        margin: 0;
        margin-right: 0.5rem;
        padding: 0.3rem 0.5rem;
        white-space: nowrap;
        cursor: pointer;
    }

    .nav-group-title::after {
        display: none;
    }

    .nav-group-items {
        display: flex !important;
        gap: 0.5rem;
        align-items: center;
        padding: 0;
    }

    .admin-main {
        padding: 1.5rem;
    }
}

/* ---------------------------------------------------------
   ACTION BUTTONS
   --------------------------------------------------------- */
.btn-action-edit {
    display: inline-block;
    background: #f15a22;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #f15a22;
}

.btn-action-edit:hover {
    background: #f15a22;
    border-color: #f15a22;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(241, 90, 34, 0.2);
}

.btn-action-delete {
    display: inline-block;
    background: transparent;
    color: #f15a22 !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #f15a22;
}

.btn-action-delete:hover {
    background: rgba(241, 90, 34, 0.1);
    transform: translateY(-1px);
}

.btn-action-outline {
    display: inline-block;
    background: transparent;
    color: #f15a22 !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #f15a22;
}

.btn-action-outline:hover {
    background: rgba(241, 90, 34, 0.1);
    transform: translateY(-1px);
}

.btn-action-primary {
    display: inline-block;
    background: #f15a22;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #f15a22;
    box-shadow: 0 4px 12px rgba(241, 90, 34, 0.25);
    cursor: pointer;
}

.btn-action-primary:hover {
    background: #f15a22;
    border-color: #f15a22;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(241, 90, 34, 0.35);
}

.btn-action-secondary {
    display: inline-block;
    background: transparent;
    color: #666 !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #ccc;
    cursor: pointer;
}

.btn-action-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333 !important;
    border-color: #bbb;
}

.btn-action-danger {
    display: inline-block;
    background: #ef4444;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    cursor: pointer;
}

.btn-action-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

/* ---------------------------------------------------------
   ADMIN COMPONENTS & LAYOUT
   --------------------------------------------------------- */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.admin-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ── Admin user badge (top-right header) ───────────────────── */
.admin-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 50px;
    background: rgba(241, 90, 34, 0.08);
    border: 1px solid rgba(241, 90, 34, 0.2);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.admin-user-badge:hover {
    background: rgba(241, 90, 34, 0.15);
}

.admin-user-badge__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f15a22;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-user-badge__info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-user-badge__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a2e;
}

.admin-user-badge__role {
    font-size: 0.68rem;
    color: #64748b;
}

/* ── Site Live / Disabled toggle pill ──────────────────────── */
.site-live-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px 5px 8px;
    border: none;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-live-toggle__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.site-live-toggle--live {
    background: #dcfce7;
    color: #166534;
}

.site-live-toggle--live .site-live-toggle__dot {
    background: #16a34a;
}

.site-live-toggle--live:hover {
    background: #bbf7d0;
}

.site-live-toggle--disabled {
    background: #fee2e2;
    color: #991b1b;
}

.site-live-toggle--disabled .site-live-toggle__dot {
    background: #dc2626;
    animation: pulse-red 1.2s infinite;
}

.site-live-toggle--disabled:hover {
    background: #fecaca;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ── Online visitors pill (admin header) ───────────────────── */
.admin-visitors-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065f46;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
}

.admin-visitors-online__dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* ── Site Disabled warning banner ─────────────────────────── */
.site-disabled-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    color: #92400e;
    border-bottom: 2px solid #f59e0b;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

/* Table Design */
.admin-table-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8f9fc;
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.admin-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fc;
    color: #333;
}

.admin-table tr:hover td {
    background: rgba(241, 90, 34, 0.02);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Form Layouts */
.admin-form-wrap,
.admin-form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.admin-field {
    margin-bottom: 1.25rem;
}

.admin-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #444;
}

.admin-input,
.admin-textarea,
.admin-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
    outline: none;
    border-color: #f15a22;
    box-shadow: 0 0 0 3px rgba(241, 90, 34, 0.1);
}

.admin-textarea {
    resize: vertical;
}

.admin-row {
    display: flex;
    gap: 1.5rem;
}

.admin-field-half {
    flex: 1;
}

/* Status & Badges */
.admin-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #eee;
    color: #666;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-faq-summary {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.admin-alert-success {
    background: #e6fffa;
    color: #2c7a7b;
    border: 1px solid #b2f5ea;
}

.admin-alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.admin-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: #888;
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-hint {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.35rem;
}

/* ---------------------------------------------------------
   ANIMATED GLOW EFFECT
   --------------------------------------------------------- */
.glow-text {
    animation: glow-pulse 3s infinite ease-in-out;
    text-shadow: 0 0 10px rgba(241, 90, 34, 0.4);
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 5px rgba(241, 90, 34, 0.4), 0 0 10px rgba(241, 90, 34, 0.2);
    }

    50% {
        text-shadow: 0 0 15px rgba(241, 90, 34, 0.7), 0 0 20px rgba(241, 90, 34, 0.4);
    }

    100% {
        text-shadow: 0 0 5px rgba(241, 90, 34, 0.4), 0 0 10px rgba(241, 90, 34, 0.2);
    }
}

/* ---------------------------------------------------------
   404 ERROR PAGE
   --------------------------------------------------------- */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 100%);
    color: #fff;
    padding: 8rem 0;
}

.error-card {
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(241, 90, 34, 0.2);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.traffic-light-wrapper {
    width: 120px;
}

.traffic-light {
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
}

.light {
    fill: #333;
}

/* Traffic Light Animation Sequence */
.light-green {
    animation: traffic-green-once 3s forwards;
}

.light-amber {
    animation: traffic-amber-once 3s forwards;
}

.light-red {
    animation: traffic-red-flash-infinite 0.8s infinite 3s;
}

@keyframes traffic-green-once {

    0%,
    35% {
        fill: #2ecc71;
        filter: drop-shadow(0 0 12px #2ecc71);
    }

    40%,
    100% {
        fill: #333;
        filter: none;
    }
}

@keyframes traffic-amber-once {

    0%,
    40% {
        fill: #333;
        filter: none;
    }

    45%,
    95% {
        fill: #f1c40f;
        filter: drop-shadow(0 0 12px #f1c40f);
    }

    100% {
        fill: #333;
        filter: none;
    }
}

@keyframes traffic-red-flash-infinite {

    0%,
    50% {
        fill: #e74c3c;
        filter: drop-shadow(0 0 15px #e74c3c);
    }

    51%,
    100% {
        fill: #333;
        filter: none;
    }
}


.error-title {
    font-weight: 900;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.error-subtitle {
    font-weight: 700;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.error-text {
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
    margin: 0 auto 2.5rem;
}

.error-actions .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .error-card {
        flex-direction: row;
        text-align: left;
        padding: 4rem;
        justify-content: space-between;
    }

    .error-card .error-content {
        padding: 0 3rem;
        flex: 1;
    }

    .error-text {
        margin-left: 0;
    }
}

/* ============================================================
   KNOWLEDGE HUB — .kh-* namespace
   ============================================================ */

/* Hero */
.kh-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(241, 90, 34, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.kh-hero-label {
    display: inline-block;
    background: rgba(241, 90, 34, 0.15);
    border: 1px solid rgba(241, 90, 34, 0.35);
    color: #f15a22;
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.kh-hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.kh-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.kh-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.kh-search-wrap svg {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.kh-search-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.25s;
    outline: none;
}

.kh-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.kh-search-input:focus {
    border-color: #f15a22;
    background: rgba(255, 255, 255, 0.12);
}

/* Filter bar */
.kh-filter-bar {
    padding: 1.5rem 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.kh-filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.kh-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 1.5px solid #334155;
    background: transparent;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.kh-pill:hover {
    border-color: #f15a22;
    color: #f15a22;
}

.kh-pill.active {
    background: #f15a22;
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

/* Difficulty badge */
.kh-difficulty-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kh-difficulty-badge.basic {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.kh-difficulty-badge.intermediate {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.kh-difficulty-badge.advanced {
    background: rgba(241, 90, 34, 0.15);
    color: #f15a22;
}

/* Article card */
.kh-card {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.kh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(241, 90, 34, 0.15);
    border-color: rgba(241, 90, 34, 0.3);
    text-decoration: none;
    color: inherit;
}

.kh-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.kh-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 2rem;
}

.kh-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kh-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.kh-card-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f15a22;
}

.kh-card-readtime {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.kh-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.kh-card p {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 0.75rem;
    flex: 1;
}

.kh-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
}

.kh-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: rgba(241, 90, 34, 0.12);
    border: 1px solid rgba(241, 90, 34, 0.25);
    border-radius: 50px;
    font-size: 0.72rem;
    color: #f0a080;
    white-space: normal;
}

/* Featured cards */
.kh-featured-section {
    background: #0f172a;
    padding: 3rem 0;
}

.kh-featured-card {
    background: #1e293b;
    border-radius: 14px;
    border: 1px solid rgba(241, 90, 34, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.kh-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(241, 90, 34, 0.2);
    text-decoration: none;
    color: inherit;
}

.kh-featured-card-img {
    width: 220px;
    min-height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.kh-featured-card-img-placeholder {
    width: 220px;
    min-height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 3rem;
    flex-shrink: 0;
}

.kh-featured-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kh-featured-badge {
    display: inline-block;
    background: #f15a22;
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.kh-featured-card-body h3 {
    color: #f1f5f9;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.kh-featured-card-body p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

/* Grid section */
.kh-grid-section {
    background: #0a0f1e;
    padding: 3rem 0;
}

.kh-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.kh-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.kh-empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* Acronym section */
.kh-acronym-section {
    background: #0f172a;
    color: #e2e8f0;
    padding: 4rem 0;
}

.kh-acronym-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.kh-alpha-btn {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 30px;
    font-family: inherit;
}

.kh-alpha-btn:hover {
    background: rgba(241, 90, 34, 0.15);
    border-color: #f15a22;
    color: #f15a22;
}

.kh-alpha-btn.active {
    background: #f15a22;
    border-color: #f15a22;
    color: #fff;
}

.kh-acronym-filter-input {
    margin-left: auto;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1.5px solid #334155;
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    min-width: 200px;
    transition: border-color 0.2s;
}

.kh-acronym-filter-input:focus {
    border-color: #f15a22;
}

.kh-acronym-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.kh-acronym-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #334155;
}

.kh-acronym-table td {
    padding: 0.9rem 1rem;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: break-word;
}

.kh-acronym-table tr:hover td {
    background: #263a52 !important;
}

.kh-acronym-abbr {
    font-weight: 800;
    color: #f15a22;
    font-size: 1rem;
    font-family: monospace;
    white-space: nowrap;
    display: inline-block;
}

.kh-acronym-row-hidden {
    display: none;
}

/* Article page */
.kh-article-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    padding: 4rem 0 3rem;
}

.kh-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.kh-article-meta-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.kh-article-hero h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.kh-article-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 2rem;
}

.kh-article-body {
    background: #0a0f1e;
    padding: 3.5rem 0;
}

.kh-article-content {
    max-width: 760px;
    margin: 0 auto;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.85;
}

.kh-article-content h2 {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.kh-article-content h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}

.kh-article-content p {
    margin-bottom: 1.25rem;
}

.kh-article-content ul,
.kh-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.kh-article-content li {
    margin-bottom: 0.4rem;
}

.kh-article-content a {
    color: #f15a22;
    text-decoration: underline;
}

.kh-article-content blockquote {
    border-left: 4px solid #f15a22;
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: rgba(241, 90, 34, 0.08);
    border-radius: 0 8px 8px 0;
    color: #e2e8f0;
    font-style: italic;
}

.kh-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kh-related {
    background: #0f172a;
    padding: 3rem 0;
}

.kh-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
    transition: color 0.2s;
}

.kh-back-btn:hover {
    color: #f15a22;
    text-decoration: none;
}

/* Concepts section */
.kh-concepts-section {
    background: #060d1a;
    padding: 4rem 0;
}

.kh-concept-card {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.kh-concept-card:hover {
    border-color: rgba(241, 90, 34, 0.25);
}

.kh-concept-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.kh-concept-term {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
}

.kh-concept-abbr {
    display: inline-block;
    background: rgba(241, 90, 34, 0.15);
    border: 1px solid rgba(241, 90, 34, 0.3);
    color: #f15a22;
    padding: 0.15rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: monospace;
}

.kh-concept-category {
    margin-left: auto;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.kh-concept-definition {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 0.5rem;
}

.kh-concept-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.kh-concept-related-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin-right: 0.25rem;
    align-self: center;
}

.kh-concepts-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.kh-concepts-search {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1.5px solid #334155;
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    min-width: 220px;
    transition: border-color 0.2s;
    margin-left: auto;
}

.kh-concepts-search:focus {
    border-color: #f15a22;
}

/* Responsive */
@media (max-width: 767px) {
    .kh-featured-card {
        flex-direction: column;
    }

    .kh-featured-card-img,
    .kh-featured-card-img-placeholder {
        width: 100%;
        min-height: 180px;
    }

    .kh-filter-bar {
        gap: 0.35rem;
    }

    .kh-alpha-btn {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
        line-height: 26px;
    }

    .kh-acronym-filter-input {
        margin-left: 0;
        width: 100%;
    }

    .kh-concepts-search {
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================================
   TENDERS SECTION
   ============================================================ */
.tenders-section {
    padding: 5rem 0;
    background: #0d1117;
}

.tenders-header {
    margin-bottom: 3rem;
}

.tenders-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.tenders-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

.tenders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.tenders-panel {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    overflow: hidden;
}

.tenders-panel-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #21262d;
}

.tenders-panel-header--current {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.06);
}

.tenders-panel-header--expired {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.05);
}

.tenders-panel-icon {
    display: flex;
    align-items: center;
}

.tenders-count {
    margin-left: auto;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border-radius: 50px;
    padding: 0.1rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.tenders-count--expired {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.tenders-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.tenders-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.tenders-item:last-child {
    border-bottom: none;
}

.tenders-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.tenders-item--expired .tenders-item-title {
    color: #64748b;
}

.tenders-item-title {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.4;
    flex: 1;
}

.tenders-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.tenders-badge--active {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.tenders-badge--awarded {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.tenders-badge--ended {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.tenders-empty {
    padding: 1.5rem 1.25rem;
    color: #475569;
    font-size: 0.88rem;
    font-style: italic;
}

@media (max-width: 767px) {
    .tenders-grid {
        grid-template-columns: 1fr;
    }

    .tenders-section {
        padding: 3rem 0;
    }

    .tenders-title {
        font-size: 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────
   SERVICES — DARK STYLISH MODE
   ───────────────────────────────────────────────────────────── */
#services.services-dark {
    position: relative;
}

#services.services-dark .mbr-section-title,
#services.services-dark .mbr-section-title strong {
    color: #f15a22 !important;
}

#services.services-dark .item-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

#services.services-dark .item-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#services.services-dark .item-wrapper:hover::before {
    transform: scaleX(1);
}

#services.services-dark .item-wrapper:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(241, 90, 34, 0.25);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

#services.services-dark .mbr-card-title {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

#services.services-dark .mbr-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
}

#services.services-dark .mbr-iconfont {
    color: var(--brand-primary) !important;
}

#services.services-dark .iconfont-wrapper {
    background: rgba(241, 90, 34, 0.12);
    border: 1px solid rgba(241, 90, 34, 0.25);
}

#services.services-dark .iconfont-wrapper:hover,
#services.services-dark .item-wrapper:hover .iconfont-wrapper {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(241, 90, 34, 0.35);
}

#services.services-dark .item-wrapper:hover .iconfont-wrapper .mbr-iconfont {
    color: #ffffff !important;
}

/* ============================================================
   MAP PRESENCE SECTION - PREMIUM MODERN THEME
   ============================================================ */
.map-presence-section {
    background: #0b1121 !important;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Background ambient glows */
.map-presence-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(241, 90, 34, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.map-presence-section .container {
    position: relative;
    z-index: 1;
}

.map-presence-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #ffffff !important;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.map-presence-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    max-width: 600px;
}

/* ── SVG map wrapper ───────────────────────────────────── */
.mp-map-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #0d1b2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    padding: 1.5rem 1rem 1rem;
    transition: var(--transition-slow);
}

.mp-map-wrap:hover {
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    border-color: rgba(241, 90, 34, 0.2);
}

/* The SVG element itself */
.mp-svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 65vh;
}

/* Graticule grid lines */
.mp-grid {
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 0.6;
    fill: none;
}

/* Neighboring countries (Namibia, Botswana, Zimbabwe, Mozambique) */
.mp-neighbor {
    fill: #0c2136;
    stroke: #143350;
    stroke-width: 0.8;
    stroke-linejoin: round;
}

/* South Africa polygon fill */
.mp-sa-fill {
    fill: #112f4c;
    stroke: #1e5a9a;
    stroke-width: 1.4;
    stroke-linejoin: round;
    filter: url(#mp-coast-glow);
}

/* Enclaves: Lesotho and Eswatini */
.mp-enclave {
    fill: #0e2840;
    stroke: #1a4570;
    stroke-width: 0.8;
    stroke-linejoin: round;
}

/* Country name labels */
.mp-ctry-lbl {
    fill: rgba(255, 255, 255, 0.22);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

/* Enclave labels (tiny) */
.mp-enclave-lbl {
    fill: rgba(255, 255, 255, 0.18);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

/* Ocean text labels */
.mp-ocean-lbl {
    fill: rgba(255, 255, 255, 0.1);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

/* ── City markers ─────────────────────────────────────── */
.mp-marker {
    cursor: pointer;
}

/* Expanding pulse ring */
.mp-pulse {
    fill: rgba(241, 90, 34, 0.2);
    stroke: rgba(241, 90, 34, 0.45);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: mp-pulse 2.6s ease-out infinite;
    animation-delay: var(--mpd, 0s);
}

/* Main dot */
.mp-dot {
    fill: #f15a22;
    stroke: #ffffff;
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.2s ease;
    filter: drop-shadow(0 0 4px rgba(241, 90, 34, 0.45));
}

.mp-marker:hover .mp-dot {
    transform: scale(1.3);
    fill: #f15a22;
    filter: drop-shadow(0 0 10px rgba(241, 90, 34, 0.85));
}

.mp-marker:hover .mp-pulse {
    animation-play-state: paused;
    opacity: 0;
}

/* Count label inside dot */
.mp-dot-lbl {
    fill: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    user-select: none;
}

@keyframes mp-pulse {
    0%   { transform: scale(1);   opacity: 0.75; }
    100% { transform: scale(2.8); opacity: 0; }
}

/* ── Hover tooltip ────────────────────────────────────── */
.mp-tt {
    position: absolute;
    pointer-events: none;
    background: rgba(8, 16, 34, 0.97);
    border: 1px solid rgba(241, 90, 34, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 190px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 50;
    font-family: Arial, Helvetica, sans-serif;
}

.mp-tt.mp-tt-on {
    opacity: 1;
    transform: translateY(0);
}

.mp-tt-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.mp-tt-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mp-tt-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.mp-tt-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f15a22;
    margin-right: 3px;
}

/* ── Legend ───────────────────────────────────────────── */
.mp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    justify-content: center;
    padding: 3rem 1rem 0;
}

.mp-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.mp-legend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(241, 90, 34, 0.3);
    transform: translateY(-3px);
    color: #ffffff;
}

.mp-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f15a22;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(241, 90, 34, 0.5);
    position: relative;
}

.mp-legend-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(241, 90, 34, 0.4);
    border-radius: 50%;
}

.mp-legend-name {
    font-weight: 600;
}

.mp-legend-count {
    color: #f15a22;
    font-weight: 800;
    background: rgba(241, 90, 34, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

@media (max-width: 991px) {
    .map-presence-section {
        padding: 5rem 0;
    }
}

@media (max-width: 767px) {
    .mp-svg {
        max-height: 55vw;
    }

    .mp-legend {
        gap: 0.75rem;
    }

    .mp-legend-item {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================================
   CLIENT PORTAL  (.cp-*)
   ============================================================ */
.cp-topbar {
    background: #1a1a2e;
    border-bottom: 3px solid var(--brand-primary, #f15a22);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.cp-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cp-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.cp-site-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    flex: 1;
}

.cp-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.cp-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 0.3rem 0.75rem 0.3rem 0.4rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
}

.cp-user-avatar {
    width: 26px;
    height: 26px;
    background: var(--brand-primary, #f15a22);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.cp-logout-btn {
    background: rgba(241,90,34,0.15);
    border: 1px solid rgba(241,90,34,0.4);
    color: #f15a22;
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.cp-logout-btn:hover {
    background: rgba(241,90,34,0.28);
    border-color: #f15a22;
}

.cp-page {
    min-height: calc(100vh - 67px);
    background: #f8fafc;
    padding: 2.5rem 0 4rem;
}

.cp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cp-welcome {
    margin-bottom: 2rem;
}

.cp-welcome h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.3rem;
}

.cp-welcome p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.cp-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cp-section-title svg {
    color: var(--brand-primary, #f15a22);
    flex-shrink: 0;
}

.cp-category-group {
    margin-bottom: 2.5rem;
}

.cp-category-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.cp-download-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 0.6rem;
}

.cp-download-card:hover {
    border-color: rgba(241,90,34,0.35);
    box-shadow: 0 4px 16px rgba(241,90,34,0.07);
}

.cp-file-type {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.cp-file-info {
    flex: 1;
    min-width: 0;
}

.cp-file-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-file-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cp-file-meta .cp-restricted-badge {
    color: var(--brand-primary, #f15a22);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cp-download-btn {
    flex-shrink: 0;
    background: var(--brand-primary, #f15a22);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cp-download-btn:hover {
    color: #fff;
    opacity: 0.88;
}

.cp-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.cp-empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.4;
}

.cp-empty-state p {
    font-size: 0.95rem;
    margin: 0;
}

.cp-footer {
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .cp-file-title {
        white-space: normal;
    }
    .cp-download-btn span {
        display: none;
    }
}

/* ── Product Roadmap ──────────────────────────────────── */
/* Shared styles used by both product.php (server-rendered)
   and product-page.js (injected inline on product.html).  */

.timeline-content.glass-card {
    background: rgba(30, 41, 59, .8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    transition: transform .3s ease, border-color .3s ease;
    position: relative;
    z-index: 10;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.roadmap-status-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    display: inline-block;
    white-space: nowrap;
}

.timeline-date {
    font-size: .9rem;
    color: #f15a22;
    font-weight: 500;
}

.timeline-desc {
    color: #94a3b8;
    line-height: 1.6;
}

/* Vertical layout */
.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.roadmap-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(241, 90, 34, .5) 10%, rgba(241, 90, 34, .5) 90%, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    top: 20px;
    left: -42px;
    width: 16px;
    height: 16px;
    background: #0f172a;
    border: 3px solid #f15a22;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(241, 90, 34, .5);
}

.timeline-item:hover .timeline-content.glass-card {
    transform: translateX(10px);
    border-color: #f15a22;
    background: rgba(30, 41, 59, .9);
}

/* Horizontal layout */
.roadmap-horizontal-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #f15a22 rgba(255, 255, 255, .05);
}

.roadmap-horizontal-wrap::-webkit-scrollbar { height: 6px; }
.roadmap-horizontal-wrap::-webkit-scrollbar-thumb { background: #f15a22; border-radius: 10px; }

.roadmap-horizontal-timeline {
    position: relative;
    width: 100%;
    height: 640px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.horiz-timeline-axis {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, rgba(241, 90, 34, .5) 10%, rgba(241, 90, 34, .5) 90%, transparent);
    transform: translateY(-50%);
    z-index: 1;
}

.horiz-items-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.horiz-item {
    position: relative;
    width: 180px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.horiz-dot-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.horiz-dot {
    width: 22px;
    height: 22px;
    background: #0f172a;
    border: 4px solid #f15a22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(241, 90, 34, 1);
}

.horiz-dot-inner { width: 6px; height: 6px; border-radius: 50%; }

.horiz-connector {
    position: absolute;
    width: 2px;
    background: rgba(241, 90, 34, 0.6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.item-top { justify-content: flex-start; padding-top: 10px; }
.item-top .horiz-connector { top: 50%; height: 160px; transform: translateX(-50%) translateY(-100%); }

.item-bottom { justify-content: flex-end; padding-bottom: 10px; }
.item-bottom .horiz-connector { top: 50%; height: 160px; }

.roadmap-horizontal-timeline .timeline-content.glass-card {
    width: 170px;
    padding: 14px;
    text-align: left;
    position: relative;
    margin-bottom: 0;
}

.item-top .timeline-content { margin-bottom: 170px; }
.item-bottom .timeline-content { margin-top: 170px; }

@media (max-width: 768px) {
    .roadmap-timeline { padding-left: 40px; }
    .timeline-marker { left: -32px; }

    /* Force horizontal roadmap to vertical on mobile */
    .roadmap-horizontal-wrap { overflow-x: visible; padding: 0; }
    .roadmap-horizontal-timeline {
        min-width: 0;
        height: auto;
        flex-direction: column;
    }
    .horiz-timeline-axis { display: none; }
    .horiz-items-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        padding-left: 40px;
        gap: 40px;
    }
    .horiz-items-wrapper::before {
        content: "";
        position: absolute;
        top: 0; bottom: 0; left: 14px;
        width: 2px;
        background: linear-gradient(to bottom, transparent, rgba(241,90,34,.5) 10%, rgba(241,90,34,.5) 90%, transparent);
    }
    .horiz-item {
        width: 100%;
        height: auto;
        padding: 0;
        position: relative;
    }
    .horiz-dot-wrap {
        position: absolute;
        top: 20px;
        left: -32px;
        transform: none;
    }
    .horiz-connector { display: none; }
    .item-top, .item-bottom { justify-content: flex-start; }
    .item-top .timeline-content,
    .item-bottom .timeline-content { margin: 0 !important; }
    .roadmap-horizontal-timeline .timeline-content.glass-card { width: 100%; }
}

/* ============================================================
   PRINT STYLES — System Health Report
   ============================================================ */

.print-header { display: none; }

@media print {
    /* --- Page setup --- */
    @page {
        size: A4 portrait;
        margin: 14mm 12mm;
    }

    /* --- Hide admin chrome --- */
    .admin-sidebar,
    .admin-layout > main > header,
    .no-print {
        display: none !important;
    }

    /* --- Full-width layout --- */
    .admin-layout {
        display: block !important;
    }
    .admin-layout > main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .admin-content {
        padding: 0.5rem 0 !important;
    }

    /* --- Print report header --- */
    .print-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        border-bottom: 2px solid #f15a22;
        padding-bottom: 0.6rem;
        margin-bottom: 1rem;
    }
    .print-header__logo { font-size: 1rem; font-weight: 700; color: #333; }
    .print-header__meta { font-size: 0.75rem; color: #666; text-align: right; }

    /* --- Cards & tables --- */
    .admin-form-wrap,
    .admin-table-wrap {
        break-inside: avoid;
    }

    /* --- Shadows → borders for print --- */
    [style*="box-shadow"] {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* --- Dark terminal code blocks → light for print --- */
    code[style*="background:#0f172a"],
    code[style*="background: #0f172a"] {
        background: #f8f9fc !important;
        color: #1e293b !important;
        border: 1px solid #ddd !important;
    }

    /* --- Chart canvas: let browser render what it drew --- */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* --- Badge colours survive --- */
    .admin-badge-success { background: #dcfce7 !important; color: #166534 !important; }
    .admin-badge-error   { background: #fee2e2 !important; color: #991b1b !important; }
    .admin-badge-warning { background: #fef9c3 !important; color: #854d0e !important; }

    /* --- Links: show URL in parentheses --- */
    a[href]::after { content: none; }

    /* --- Grid columns: collapse to 1 on narrow pages --- */
    [style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}