/* =====================================================================
   estatixX — Premium Minimal Design System
   Layered ON TOP of style.css / enhanced.css (loaded last).
   Goal: ultra-clean, high-contrast, refined typography, subtle
   micro-interactions. Keeps Bootstrap ONLY for layout utilities.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens  (override the legacy style.css variables so the
      whole site retones without touching markup)
   --------------------------------------------------------------------- */
:root {
    /* Surfaces */
    --bg:            #ffffff;
    --bg-soft:       #f6f7f9;
    --bg-softer:     #fbfbfc;
    --bg-inset:      #f2f4f7;

    /* Ink / text */
    --ink:           #0b1020;
    --ink-2:         #141a2e;
    --heading:       #0b1020;
    --text:          #565f6e;
    --text-soft:     #7a8493;
    --white:         #ffffff;

    /* Brand */
    --primary:       #1b3fa0;   /* refined royal blue — accents */
    --primary-600:   #15337f;
    --primary-700:   #0f275f;
    --primary-050:   rgba(27, 63, 160, .06);
    --primary-100:   rgba(27, 63, 160, .12);
    --accent:        #f26b37;   /* brand orange — primary actions */
    --accent-600:    #d8551f;
    --accent-050:    rgba(242, 107, 55, .10);
    --accent-100:    rgba(242, 107, 55, .16);

    /* Lines & elevation */
    --border:        rgba(11, 16, 32, .10);
    --border-strong: rgba(11, 16, 32, .16);
    --ring:          rgba(27, 63, 160, .35);

    --shadow-xs:     0 1px 2px rgba(11, 16, 32, .04);
    --shadow-sm:     0 2px 8px rgba(11, 16, 32, .05);
    --shadow-md:     0 12px 30px -12px rgba(11, 16, 32, .14);
    --shadow-lg:     0 28px 60px -24px rgba(11, 16, 32, .22);

    /* Dark sections (hero / footer) */
    --background:    #0b1020;
    --dark-2:        #111733;
    --on-dark:       rgba(255, 255, 255, .86);
    --on-dark-soft:  rgba(255, 255, 255, .62);

    /* Geometry & motion */
    --radius-sm:     10px;
    --radius:        16px;
    --radius-lg:     24px;
    --radius-xl:     32px;
    --radius-pill:   999px;

    --ease:          cubic-bezier(.22, 1, .36, 1);
    --dur:           .4s;
    --maxw:          1240px;

    /* Legacy aliases used across the template */
    --Secondary:     var(--bg);
    --SecondaryTwo:  var(--primary-050);
    --Heading:       var(--heading);
    --Text:          var(--text);
    --Border:        var(--border);
    --Background:    var(--background);
    --White:         var(--white);
    --Animation-Duration: all var(--dur) var(--ease);
}

/* ---------------------------------------------------------------------
   2. Base / reset refinements
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--Font-Secondary, "Inter", system-ui, sans-serif);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--primary);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Headings — tighter, more editorial */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--Font-Primary, "Poppins", "Inter", sans-serif);
    color: var(--heading);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 .55em;
}

h1, .h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2, .h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4, .h4 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -0.01em; }
h5, .h5 { font-size: 1.15rem; }
h6, .h6 { font-size: 1rem; }

p { margin: 0 0 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
a:hover { color: var(--primary-600); }

.container { max-width: var(--maxw); }

/* ---------------------------------------------------------------------
   3. Layout rhythm — calm, generous whitespace
   --------------------------------------------------------------------- */
section { position: relative; }

.section-padding,
.py-section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }

.section-heading { margin-bottom: clamp(28px, 4vw, 48px); }
.section-heading h2,
.section-heading .h2 { margin-bottom: .35em; }
.section-heading p { font-size: 1.05rem; color: var(--text); max-width: 60ch; }

.subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--Font-Secondary, "Inter", sans-serif);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.subtitle::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Subtle alternating backdrop for premium rhythm */
.bg-soft { background: var(--bg-soft); }
.bg-grid {
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center;
}

/* ---------------------------------------------------------------------
   4. Buttons — refined, calm, tactile
   --------------------------------------------------------------------- */
.btn {
    --bs-btn-border-radius: var(--radius-pill);
    font-family: var(--Font-Secondary, "Inter", sans-serif);
    font-weight: 600;
    letter-spacing: .01em;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary,
.btn.bg-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover,
.btn.bg-primary:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff;
}

/* .btn-outline-light is for DARK sections (hero) — keep it light */
.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
}

/* Generic neutral outline for LIGHT sections */
.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--heading);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-050);
}

.btn-light,
.bg-white.btn {
    background: #fff;
    color: var(--heading);
    border-color: var(--border);
}

.btn-sm { padding: 10px 18px; }
.btn-lg { padding: 17px 32px; }

/* The duplicated "slide" label inside CTAs */
.btn span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------------
   5. Cards & surfaces — clean borders, soft depth
   --------------------------------------------------------------------- */
.card,
.single-card,
.feature-card,
.team-card,
.blog-card,
.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
    overflow: hidden;
}
.card:hover,
.single-card:hover,
.feature-card:hover,
.team-card:hover,
.blog-card:hover,
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.card-body { padding: 28px; }

/* Glass surface (used by hero / footer where appropriate) */
.glass {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ---------------------------------------------------------------------
   6. Forms — crisp, modern
   --------------------------------------------------------------------- */
.form-control,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    font-family: var(--Font-Secondary, "Inter", sans-serif);
    font-size: 15px;
    color: var(--heading);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 16px;
    transition: border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}
.form-control::placeholder,
textarea::placeholder { color: var(--text-soft); }
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-050);
}

label,
.form-label {
    font-weight: 600;
    color: var(--heading);
    font-size: .9rem;
    margin-bottom: 6px;
}

/* ---------------------------------------------------------------------
   7. Header / navigation — refined (scoped to beat style.css specificity)
   --------------------------------------------------------------------- */
.header-section {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

/* Top contact bar — keep it a dark brand band with white text (no light-on-light) */
.header-section .header-top {
    background: var(--primary-700);
    color: #fff;
    height: auto;
    padding: 8px 0;
}
.header-section .header-top .left-side i,
.header-section .header-top .left-side span,
.header-section .header-top .social-nav a { color: #fff; }
.header-section .header-top .social-nav a:hover { color: var(--accent); }
.header-section .header-top a { color: #fff; }
.header-section .header-top a:hover { color: var(--accent); }

.header-section .navbar-brand img { height: 32px; width: auto; }

/* Tighten nav, stop labels wrapping */
.header-section .navbar-nav { gap: 2px; margin: 0; }
.header-section .navbar-nav li > a,
.header-section .navbar-nav li.startix-dd > a {
    font-weight: 600;
    font-size: 14px;
    color: var(--heading);
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.header-section .navbar-nav li > a:hover,
.header-section .navbar-nav li.startix-dd > a:hover,
.header-section .navbar-nav li.active > a,
.header-section .navbar-nav li.startix-dd.active > a {
    color: var(--primary);
    background: var(--primary-050);
}

/* Dropdown menus */
.header-section .startix-dd-menu {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    overflow: hidden;
}
.header-section .startix-dd-menu a {
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.header-section .startix-dd-menu a:hover { color: var(--primary); background: var(--primary-050); }

.header-section .navbar-toggler {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--heading);
    padding: 8px 12px;
}
.header-section .header-navigation .btn { padding: 9px 16px; font-size: 14px; }

/* ---------------------------------------------------------------------
   8. CTA + footer polish
   --------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--background) 70%);
    color: #fff;
    border-radius: var(--radius-xl);
    margin: 0 clamp(16px, 4vw, 40px) clamp(28px, 4vw, 56px);
    padding: clamp(56px, 7vw, 100px) 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.cta-section .divider { background: rgba(255, 255, 255, .12); }
.cta-section .cta-circles span { opacity: .5; }
.cta-section .text-white { color: #fff !important; }
.cta-section .btn-dark {
    background: #fff;
    border-color: #fff;
    color: var(--heading);
}
.cta-section .btn-dark:hover { background: var(--bg-soft); border-color: var(--bg-soft); color: var(--heading); }
.cta-section .btn-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.cta-section .btn-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; }

.site-footer {
    background: var(--background);
    color: var(--on-dark);
    position: relative;
    overflow: hidden;
}
.site-footer .site-footer-title { color: #fff; }
.site-footer .site-footer-about { color: var(--on-dark-soft); }
.site-footer .site-footer-nav a { color: var(--on-dark-soft); }
.site-footer .site-footer-nav a:hover { color: #fff; }
.site-footer .site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: var(--on-dark-soft);
}
.site-footer-glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 63, 160, .55), transparent 70%);
    filter: blur(20px);
    opacity: .5;
    pointer-events: none;
}
.site-footer-glow-2 {
    right: -80px; top: -120px;
    background: radial-gradient(circle, rgba(242, 107, 55, .35), transparent 70%);
}

/* ---------------------------------------------------------------------
   9. Misc premium details
   --------------------------------------------------------------------- */
.divider { height: 1px; background: var(--border); border: 0; }
.divider-sm { height: 1px; background: var(--border); border: 0; opacity: .6; }

/* ---------------------------------------------------------------------
   11. Page section components (home + inner pages)
   --------------------------------------------------------------------- */
.how-works-section,
.about-section,
.features-section,
.solutions-section,
.team-section,
.blog-section,
.faq-section,
.contact-section {
    padding: clamp(64px, 8vw, 112px) 0 clamp(30px, 4vw, 60px);
}

/* Service cards (swiper) */
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px 28px;
    height: 100%;
}
.service-card .service-icon {
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: var(--radius);
    background: var(--primary-050);
    border: 1px solid var(--primary-100);
    color: var(--primary);
    font-size: 26px;
    margin-bottom: 20px;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.service-card:hover .service-icon { transform: translateY(-4px); background: var(--primary); color: #fff; }
.service-card h3,
.service-card .service-title { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text); font-size: 14.5px; margin: 0; }

/* Featured / about media — calm framing */
.about-img img,
.featured-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* Checked feature lists */
.about-list,
.featured-list { margin: 0; }
.about-list li,
.featured-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-weight: 500;
    color: var(--heading);
}
.about-list li svg,
.featured-list li svg {
    flex: 0 0 auto;
    color: var(--primary);
}

/* Subtle eyebrow used in hero (keep refined) */
.hero-eyebrow { letter-spacing: .04em; }

/* Defensive: hero sits on a dark video — keep all text light */
.hero-video-section { color: rgba(255, 255, 255, .92); }

/* Round the custom video modal + keep premium */
.video-modal-inner { border-radius: var(--radius-lg); }

/* ---------------------------------------------------------------------
   13. Hero orbit / network effect (logo center, modules around it)
   --------------------------------------------------------------------- */
.hero-orbit-col { display: flex; align-items: center; justify-content: center; min-height: 460px; }
.hero-orbit-scaler { position: relative; width: min(480px, 100%); aspect-ratio: 1 / 1; }
.hero-orbit {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 3; pointer-events: none;
}
.hero-orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-line { stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; }
.orbit-pulse { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(242, 107, 55, .85)); }
.hero-orbit-core {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 23%; height: 23%; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle, rgba(27, 63, 160, .55), rgba(11, 16, 32, .25));
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 0 0 6px rgba(27, 63, 160, .18), 0 0 50px rgba(242, 107, 55, .30);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    animation: orbitCorePulse 3.4s ease-out infinite;
}
.hero-orbit-core img { width: 52%; height: auto; filter: brightness(0) invert(1); }
.hero-orbit-core::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .30);
    animation: orbitRing 3.4s ease-out infinite;
}
@keyframes orbitCorePulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(27, 63, 160, .18), 0 0 50px rgba(242, 107, 55, .30); }
    50%      { box-shadow: 0 0 0 10px rgba(27, 63, 160, .10), 0 0 70px rgba(242, 107, 55, .45); }
}
@keyframes orbitRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.hero-orbit-node {
    position: absolute; transform: translate(-50%, -50%);
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .20);
    color: #fff; font-size: 12px; font-weight: 600;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    white-space: nowrap;
}
.hero-play-btn { pointer-events: auto; z-index: 5; }
@media (max-width: 991px) { .hero-orbit-col { min-height: 380px; } }
@media (max-width: 575px) { .hero-orbit-col { min-height: 300px; } }

/* ---------------------------------------------------------------------
   15. Shared page hero (.header-bg) — used by inner pages
   --------------------------------------------------------------------- */
.header-bg {
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(280px, 40vh, 440px);
    background:
        radial-gradient(900px 420px at 88% -25%, rgba(242, 107, 55, .20), transparent 60%),
        linear-gradient(135deg, var(--primary-700) 0%, var(--background) 82%);
    color: #fff;
    padding: 220px 0 56px;
}
.header-bg-glow {
    position: absolute; top: -120px; left: -80px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 63, 160, .55), transparent 70%);
    filter: blur(20px); opacity: .5; pointer-events: none;
}
.header-bg-corner {
    position: absolute; top: 0; right: 0;
    width: 30%; min-width: 200px; height: 100%;
    background: linear-gradient(155deg, var(--accent), #ff8a5c);
    border-bottom-left-radius: 130px;
    opacity: .95; z-index: 0;
}
.header-bg .container { position: relative; z-index: 2; }
.brand-logo {
    font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -.5px;
    color: #fff; display: inline-flex; align-items: center;
}
.brand-logo i { color: var(--accent); font-size: 1.8rem; }
.brand-logo span { color: var(--accent); }
.brand-tagline {
    margin-top: 0; font-size: .7rem; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.header-content { align-items: center; }
.header-title-box { border-left: 2px solid rgba(255, 255, 255, .3); padding-left: 1.5rem; }
.header-title {
    font-family: var(--Font-Primary, "Poppins", "Inter", sans-serif);
    font-weight: 800; letter-spacing: .5px;
    font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1;
    color: #fff; margin: 0;
}
.header-crumbs { margin-top: 1.5rem; text-align: center; }
.header-crumbs ul { gap: 6px 12px; justify-content: center; }
.header-crumbs li { font-size: .85rem; color: rgba(255, 255, 255, .65); display: inline-flex; align-items: center; }
.header-crumbs li:not(:last-child)::after { content: "/"; margin-left: 12px; color: rgba(255, 255, 255, .4); }
.header-crumbs li a { color: rgba(255, 255, 255, .85); transition: color var(--dur) var(--ease); }
.header-crumbs li a:hover { color: #fff; }
.header-crumbs li .current { color: var(--accent); font-weight: 600; }

@media (max-width: 767px) {
    .header-crumbs, .header-crumbs ul { text-align: left; justify-content: flex-start; }
}

@media (max-width: 991px) {
    .header-bg-corner { display: none; }
}
.insights-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 15% -10%, rgba(27, 63, 160, .22), transparent 60%),
        linear-gradient(160deg, #0b1020 0%, #111733 55%, #0b1020 100%);
    padding: clamp(56px, 7vw, 96px) 0 clamp(16px, 2vw, 24px);
}
.insights-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(20px); opacity: .5; }
.insights-glow-1 { width: 420px; height: 420px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(27, 63, 160, .5), transparent 70%); }
.insights-glow-2 { width: 360px; height: 360px; bottom: -120px; left: -80px; background: radial-gradient(circle, rgba(242, 107, 55, .32), transparent 70%); }
.insights-section .container { position: relative; z-index: 2; }
.insights-section .section-heading .subtitle {
    background: var(--accent-050); border-color: var(--accent-100); color: var(--accent);
}
.insights-section .section-heading .subtitle::before { content: none; }

.blog-carousel { overflow: hidden; padding: 6px 6px 10px; margin: -6px -6px 0; }
.blog-carousel .swiper-slide { height: auto; }

.insight-card {
    position: relative;
    display: flex; flex-direction: column; height: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    overflow: hidden; color: #fff;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.insight-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
}
.insight-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.insight-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.insight-card:hover .insight-card-media img { transform: scale(1.08); }
.insight-card-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11, 16, 32, .55) 100%);
}
.insight-cat {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: #fff; background: rgba(27, 63, 160, .55);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 5px 11px; border-radius: 999px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.insight-card-body {
    padding: 18px 18px 18px;
    display: flex; flex-direction: column; gap: 14px;
    flex: 1;
}
.insight-title {
    font-size: 1.05rem; line-height: 1.35; color: #fff; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--dur) var(--ease);
}
.insight-card:hover .insight-title { color: #fff; }
.insight-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.insight-date { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.insight-go {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-size: 17px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.insight-card:hover .insight-go {
    background: var(--accent); border-color: var(--accent);
    transform: rotate(0) translate(2px, -2px);
}

.blog-carousel-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.blog-carousel-pagination .swiper-pagination-bullet {
    width: 9px; height: 9px; background: rgba(255, 255, 255, .35); opacity: 1;
    transition: width .3s var(--ease), background .3s var(--ease);
}
.blog-carousel-pagination .swiper-pagination-bullet-active {
    background: var(--accent); width: 28px; border-radius: 999px;
}

/* ---------------------------------------------------------------------
   12. Header search — full-page DARK overlay, horizontal results
   --------------------------------------------------------------------- */
.header-search-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    max-width: none;
    color: #fff;
    background:
        radial-gradient(1100px 540px at 50% -12%, rgba(27, 63, 160, .30), transparent 60%),
        linear-gradient(160deg, #0b1020 0%, #141a2e 100%);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-radius: 0;
    box-shadow: none;
    padding: 110px 24px 48px;
    display: flex;
    flex-direction: column;
    transform: translateY(-14px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.header-search-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }
.header-search.open .header-search-panel { transform: translateY(0); }

.header-search-panel form {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header-search-panel form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-050); }
.header-search-panel .ti-search { font-size: 20px; color: rgba(255, 255, 255, .6); }
.header-search-panel input { font-size: 18px; padding: 14px 0; color: #fff; }
.header-search-panel input::placeholder { color: rgba(255, 255, 255, .45); }

.header-search-close {
    position: fixed;
    top: 24px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: grid; place-items: center; font-size: 20px;
    z-index: 2;
}
.header-search-close:hover { background: rgba(255, 255, 255, .16); }

.header-search-results {
    max-width: 1040px;
    width: 100%;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-height: none;
}
.header-search-results a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    overflow: hidden;
    transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.header-search-results a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .24);
}
.header-search-thumb {
    width: 96px; height: 72px;
    border-radius: 10px;
    flex: 0 0 96px;
    object-fit: cover;
}
.header-search-text { min-width: 0; }
.header-search-text strong { display: block; font-size: 15px; line-height: 1.35; }
.header-search-text span { display: block; font-size: 13px; margin-top: 3px; color: rgba(255, 255, 255, .6); }
.header-search-all {
    grid-column: 1 / -1;
    text-align: center;
    padding: 14px;
    font-weight: 600;
    color: var(--accent);
}

@media (max-width: 1024px) {
    .header-search-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-search-panel { padding: 104px 18px 56px; }
    .header-search-results { grid-template-columns: 1fr; margin: 24px auto 28px; overflow: hidden; }
    .header-search-results a { padding: 16px; min-height: 94px; }
    .header-search-thumb { width: 92px; height: 72px; flex: 0 0 92px; }
    .header-search-text strong { font-size: 15px; }
}

.badge,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--primary-050);
    color: var(--primary);
    border: 1px solid var(--primary-100);
}

/* Reveal already handled by enhanced.css; ensure smooth premium easing */
.js [data-reveal] { transition-timing-function: var(--ease); }

/* Higher-specificity subtitle override (beats enhanced.css orange pill) */
.section-heading .subtitle {
    display: inline-flex;
    padding: 7px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-pill);
    background: var(--primary-050);
    border: 1px solid var(--primary-100);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.section-heading .subtitle::before { content: none; }

/* Section heading h2 tightened for editorial feel */
.section-heading h2 { letter-spacing: -0.02em; }

/* Respect reduced motion globally */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ---------------------------------------------------------------------
   10. Dark-mode-ready surface helper (optional hook)
   --------------------------------------------------------------------- */
html[data-theme="dark"] {
    --bg: #0b1020;
    --bg-soft: #111733;
    --bg-softer: #0e1430;
    --bg-inset: #141a2e;
    --heading: #f3f5fb;
    --text: #aab2c5;
    --text-soft: #8b94a8;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);
    --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] .header-section { background: rgba(11, 16, 32, .82); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .blog-card { background: var(--bg-soft); }
html[data-theme="dark"] .btn-outline-light { color: #fff; border-color: var(--border-strong); }
