/* =============================================
   Agileblox custom styles (menu revamp 2026)
   ============================================= */

/* =============================================
   SITE FONT — single source of truth
   ---------------------------------------------
   To change the website font in the future, edit ONLY the
   --site-font value below (and load the new font in
   includes/header_tags.php). Everything else inherits from it.
   ============================================= */
:root {
    --site-font: 'Poppins', sans-serif;

    /* Re-map the theme's font variables to the single source */
    --font-family-body: var(--site-font);
    --font-family-primary: var(--site-font);
    --font-family-secondary: var(--site-font);
}

/* Enforce the font everywhere EXCEPT icon glyphs (icon fonts must keep
   their own font-family) and code elements (which must stay monospace). */
body,
body *:not([class*="icon-"]):not([class*="fa-"]):not(code):not(pre):not(kbd):not(samp),
input, select, textarea, button {
    font-family: var(--site-font) !important;
}

/* Code stays monospace */
code, pre, kbd, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* --- Header CTA button --- */
.primary-menu .menu-container > .menu-item-cta {
    display: flex;
    align-items: center;
}

.primary-menu .menu-item-cta > .menu-link {
    margin: 0 0 0 12px;
    padding: 0 !important;
}

.primary-menu .menu-item-cta > .menu-link > div {
    background-color: #1abc9c;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.primary-menu .menu-item-cta > .menu-link:hover > div {
    background-color: #16a085;
    transform: translateY(-1px);
}

/* Remove the default underline/active indicator on the CTA */
.primary-menu .menu-item-cta > .menu-link::before,
.primary-menu .menu-item-cta > .menu-link::after {
    display: none !important;
}

/* --- Homepage service grid (2 or 3 pillars) --- */
.services-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 980px;
    margin: 0 auto;
}

.services-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1140px;
    margin: 0 auto;
}

.service-card-pillar {
    padding: 36px 32px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

@media (max-width: 991px) {
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .services-grid-2,
    .services-grid-3 {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* On mobile, let the CTA sit as a normal full-width item */
@media (max-width: 991px) {
    .primary-menu .menu-container > .menu-item-cta {
        display: block;
    }
    .primary-menu .menu-item-cta > .menu-link {
        margin: 0;
    }
    .primary-menu .menu-item-cta > .menu-link > div {
        display: inline-block;
        margin: 8px 0;
    }
}

/* =============================================
   Cloud Services page (revamp 2026)
   ============================================= */

/* --- Hero --- */
.cs-hero {
    position: relative;
    background: linear-gradient(135deg, #0b1f3a 0%, #123a6b 45%, #1f6feb 100%);
    color: #fff;
    padding: 40px 0;
    overflow: hidden;
}
.cs-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(26,188,156,0.35) 0%, rgba(26,188,156,0) 70%);
    pointer-events: none;
}
.cs-hero .container { position: relative; z-index: 2; }
.cs-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: #6fe7cf;
    margin-bottom: 16px;
}
.cs-hero h1 {
    color: #fff;
    font-size: 39px;
    line-height: 1.14;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.cs-hero h1 span { color: #6fe7cf; }
.cs-hero-sub {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 620px;
    margin-bottom: 24px;
}
.cs-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

@media (max-width: 991px) {
    .cs-hero { padding: 32px 0; }
}
.cs-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.cs-btn-primary { background: #1abc9c; color: #fff !important; }
.cs-btn-primary:hover { background: #16a085; transform: translateY(-2px); color: #fff !important; }
.cs-btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.55); }
.cs-btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }
.cs-hero-platforms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
}
.cs-hero-platforms span {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.cs-hero-platforms img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }

/* --- Stats strip --- */
.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: -42px auto 0;
    position: relative;
    z-index: 5;
    max-width: 1040px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 44px rgba(0,0,0,0.10);
    padding: 34px 24px;
}
.cs-stat { text-align: center; padding: 6px 10px; }
.cs-stat-num { font-size: 34px; font-weight: 700; color: #123a6b; line-height: 1; }
.cs-stat-num span { color: #1abc9c; }
.cs-stat-label { font-size: 14px; color: #6b7280; margin-top: 8px; }

/* --- Section heading --- */
.cs-section { padding: 70px 0; }
/* First section (What We Do) sits tighter under the hero now that the stats strip is gone */
.cs-section#capabilities { padding-top: 44px; }
.cs-section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.cs-section-head .cs-kicker {
    display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: #1abc9c; font-weight: 700; margin-bottom: 12px;
}
.cs-section-head h2 { font-size: 34px; font-weight: 700; color: #1a1a1a; letter-spacing: -0.5px; margin-bottom: 14px; }
.cs-section-head p { font-size: 17px; color: #6b7280; line-height: 1.6; }
.cs-section-alt { background: #f7f9fc; }

/* --- Capability cards --- */
.cs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cs-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 32px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    scroll-margin-top: 110px;
}
.cs-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(18,58,107,0.10); border-color: #dbe6f5; }
.cs-card-icon {
    width: 58px; height: 58px; border-radius: 12px;
    background: linear-gradient(135deg, #e8f7f3 0%, #e6f0fb 100%);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.cs-card-icon img { width: 32px; height: 32px; object-fit: contain; }
.cs-card-icon i { font-size: 28px; color: #1abc9c; line-height: 1; }
.cs-card h3 { font-size: 19px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.cs-card p { font-size: 15px; color: #5b6472; line-height: 1.65; margin: 0; }

/* --- Platform expertise --- */
.cs-platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cs-platform {
    background: #fff; border: 1px solid #eef1f5; border-radius: 12px;
    padding: 32px 28px; box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.cs-platform-logo { height: 40px; width: auto; margin-bottom: 18px; }
.cs-platform h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; }
.cs-platform ul { list-style: none; padding: 0; margin: 0; }
.cs-platform li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14.5px; color: #5b6472; line-height: 1.5; }
.cs-platform li::before {
    content: "\2713"; position: absolute; left: 0; top: 0;
    color: #1abc9c; font-weight: 700;
}

/* --- Process steps --- */
.cs-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.cs-step { position: relative; padding: 28px 20px; background: #fff; border-radius: 12px; border: 1px solid #eef1f5; text-align: center; }
.cs-step-num {
    width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 16px;
    background: #123a6b; color: #fff; font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
}
.cs-step h4 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.cs-step p { font-size: 13.5px; color: #6b7280; line-height: 1.55; margin: 0; }

/* --- Why choose us --- */
.cs-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cs-why-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #eef1f5; border-radius: 12px; padding: 24px 26px; }
.cs-why-item i { color: #1abc9c; font-size: 26px; line-height: 1; margin-top: 2px; }
.cs-why-item h4 { font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.cs-why-item p { font-size: 14.5px; color: #5b6472; line-height: 1.6; margin: 0; }

/* --- Final CTA band --- */
.cs-cta-band {
    background: linear-gradient(135deg, #123a6b 0%, #1f6feb 100%);
    border-radius: 16px;
    padding: 52px 48px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
    color: #fff;
}
.cs-cta-band h2 { color: #fff; font-size: 30px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.cs-cta-band p { color: rgba(255,255,255,0.85); font-size: 17px; margin: 0; }

/* --- Responsive --- */
@media (max-width: 991px) {
    .cs-hero h1 { font-size: 36px; }
    .cs-stats { grid-template-columns: repeat(2, 1fr); }
    .cs-cards, .cs-platform-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-process { grid-template-columns: repeat(2, 1fr); }
    .cs-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .cs-hero { padding: 64px 0 60px; }
    .cs-hero h1 { font-size: 29px; }
    .cs-hero-sub { font-size: 17px; }
    .cs-stats { grid-template-columns: 1fr; }
    .cs-cards, .cs-platform-grid, .cs-process { grid-template-columns: 1fr; }
    .cs-cta-band { padding: 36px 28px; text-align: center; justify-content: center; }
}

/* =============================================
   API Services page — blue theme override (revamp 2026)
   Reuses .cs-* components; only re-colors them blue.
   ============================================= */

.api-theme .cs-hero {
    background: linear-gradient(135deg, #0a1b4d 0%, #1e3a8a 48%, #2f6bff 100%);
}
.api-theme .cs-hero::after {
    background: radial-gradient(circle, rgba(99,102,241,0.40) 0%, rgba(99,102,241,0) 70%);
}
.api-theme .cs-hero-eyebrow { color: #9db8ff; }
.api-theme .cs-hero h1 span { color: #9db8ff; }

.api-theme .cs-stat-num { color: #1e3a8a; }
.api-theme .cs-stat-num span { color: #2563eb; }

.api-theme .cs-section-head .cs-kicker { color: #2563eb; }

/* Blue card borders + hover */
.api-theme .cs-card { border: 1px solid #d7e1fb; }
.api-theme .cs-card:hover { border-color: #2563eb; box-shadow: 0 16px 40px rgba(37,99,235,0.14); }
.api-theme .cs-card-icon { background: linear-gradient(135deg, #e6edfd 0%, #eef2fe 100%); }
.api-theme .cs-card-icon i { color: #2563eb; }
.api-theme .cs-card h3 a { color: inherit; }
.api-theme .cs-card h3 a:hover { color: #2563eb; }

/* Platform + process + why, blue accents */
.api-theme .cs-platform { border: 1px solid #d7e1fb; }
.api-theme .cs-platform li::before { color: #2563eb; }
.api-theme .cs-step { border: 1px solid #d7e1fb; }
.api-theme .cs-step-num { background: #1e3a8a; }
.api-theme .cs-why-item { border: 1px solid #d7e1fb; }
.api-theme .cs-why-item i { color: #2563eb; }

/* Buttons + CTA band */
.api-theme .cs-btn-primary { background: #2563eb; }
.api-theme .cs-btn-primary:hover { background: #1d4ed8; }
.api-theme .cs-cta-band { background: linear-gradient(135deg, #1e3a8a 0%, #2f6bff 100%); }

/* Section alt tint, slightly cooler blue */
.api-theme .cs-section-alt { background: #f5f8ff; }

/* =============================================
   Lead forms — contact & consultation (2026)
   ============================================= */

/* Honeypot: visually hidden but present in the DOM for bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Left intro column */
.lead-intro h2 { font-size: 30px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; letter-spacing: -0.5px; }
.lead-intro > p { font-size: 16px; color: #5b6472; line-height: 1.7; margin-bottom: 26px; }

.lead-contact-list { list-style: none; padding: 0; margin: 0 0 30px; }
.lead-contact-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.lead-contact-list i { color: #1abc9c; font-size: 20px; margin-top: 3px; }
.lead-contact-list span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #9aa3b0; margin-bottom: 2px; }
.lead-contact-list a { color: #123a6b; font-weight: 600; }

.lead-intro-cta { padding-top: 8px; }
.lead-intro-cta p { font-size: 15px; color: #5b6472; margin-bottom: 12px; }

/* Consultation benefits */
.consult-benefits { list-style: none; padding: 0; margin: 0 0 30px; }
.consult-benefits li { font-size: 15.5px; color: #41495a; line-height: 1.6; margin-bottom: 14px; padding-left: 4px; }
.consult-benefits i { color: #2563eb; margin-right: 8px; font-weight: 700; }

.consult-trust { display: flex; align-items: center; gap: 16px; background: #f5f8ff; border: 1px solid #d7e1fb; border-radius: 12px; padding: 20px 22px; }
.consult-trust-num { font-size: 36px; font-weight: 700; color: #1e3a8a; line-height: 1; }
.consult-trust-text { font-size: 14px; color: #5b6472; line-height: 1.5; }

/* Form card */
.lead-form-card {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(18, 58, 107, 0.07);
    padding: 36px 34px;
}
.lead-form-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 22px; }

.lead-row { display: flex; gap: 18px; }
.lead-row .lead-field { flex: 1; }
.lead-field { margin-bottom: 18px; }
.lead-field label { display: block; font-size: 13.5px; font-weight: 600; color: #41495a; margin-bottom: 7px; }
.lead-field label span { color: #e23b3b; }

.lead-field input,
.lead-field select,
.lead-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.lead-field textarea { resize: vertical; min-height: 120px; }
.lead-field select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'14'%20height%3D'8'%20viewBox%3D'0%200%2014%208'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M1%201l6%206%206-6'%20stroke%3D'%236b7280'%20stroke-width%3D'2'%20fill%3D'none'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.lead-field .has-error { border-color: #e23b3b; }
.lead-field small.err { display: block; color: #e23b3b; font-size: 12.5px; margin-top: 6px; }

.lead-captcha input { max-width: 140px; }
.lead-submit { border: none; cursor: pointer; margin-top: 6px; }
.lead-privacy { font-size: 12.5px; color: #9aa3b0; margin: 16px 0 0; line-height: 1.5; }
.lead-privacy a { color: #6b7280; text-decoration: underline; }

/* Alerts */
.lead-alert { display: flex; gap: 14px; align-items: flex-start; border-radius: 10px; padding: 18px 20px; }
.lead-alert i { font-size: 22px; margin-top: 2px; }
.lead-alert strong { display: block; font-size: 16px; margin-bottom: 4px; }
.lead-alert p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.lead-alert-success { background: #e9f9f2; border: 1px solid #b8ecd6; color: #137a52; }
.lead-alert-success i { color: #1abc9c; }
.lead-alert-error { background: #fdeced; border: 1px solid #f6c9cd; color: #b13540; }
.lead-alert-error i { color: #e23b3b; }

@media (max-width: 575px) {
    .lead-row { flex-direction: column; gap: 0; }
    .lead-form-card { padding: 26px 20px; }
}

/* =============================================
   Architecture Services page — light-indigo theme (2026)
   Reuses .cs-* components; re-colors them indigo.
   ============================================= */

.arch-theme .cs-hero {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 48%, #6366f1 100%);
}
.arch-theme .cs-hero::after {
    background: radial-gradient(circle, rgba(129,140,248,0.42) 0%, rgba(129,140,248,0) 70%);
}
.arch-theme .cs-hero-eyebrow { color: #c7d2fe; }
.arch-theme .cs-hero h1 span { color: #c7d2fe; }

.arch-theme .cs-stat-num { color: #3730a3; }
.arch-theme .cs-stat-num span { color: #6366f1; }

.arch-theme .cs-section-head .cs-kicker { color: #4f46e5; }

/* Indigo card borders + hover */
.arch-theme .cs-card { border: 1px solid #dee0fb; }
.arch-theme .cs-card:hover { border-color: #6366f1; box-shadow: 0 16px 40px rgba(99,102,241,0.16); }
.arch-theme .cs-card-icon { background: linear-gradient(135deg, #eceefe 0%, #f4f5ff 100%); }
.arch-theme .cs-card-icon i { color: #4f46e5; }
.arch-theme .cs-card h3 a { color: inherit; }
.arch-theme .cs-card h3 a:hover { color: #4f46e5; }

.arch-theme .cs-platform { border: 1px solid #dee0fb; }
.arch-theme .cs-platform li::before { color: #6366f1; }
.arch-theme .cs-step { border: 1px solid #dee0fb; }
.arch-theme .cs-step-num { background: #3730a3; }
.arch-theme .cs-why-item { border: 1px solid #dee0fb; }
.arch-theme .cs-why-item i { color: #4f46e5; }

.arch-theme .cs-btn-primary { background: #6366f1; }
.arch-theme .cs-btn-primary:hover { background: #4f46e5; }
.arch-theme .cs-cta-band { background: linear-gradient(135deg, #3730a3 0%, #6366f1 100%); }

.arch-theme .cs-section-alt { background: #f5f6ff; }

/* Hero framework chips (no logos for architecture) */
.cs-hero-frameworks { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cs-hero-frameworks .lbl {
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-right: 4px;
}
.cs-hero-frameworks .hero-fw {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 500; color: #fff;
}

/* =============================================
   Tabbed services interface (API page, 2026)
   ============================================= */
.api-tabs { scroll-margin-top: 100px; }
.api-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    border-bottom: 1px solid #e7ecf3;
    margin-bottom: 40px;
}
.api-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.api-tab i { font-size: 18px; line-height: 1; }
.api-tab:hover { color: #1a1a1a; }
.api-tab.is-active { color: #2563eb; border-bottom-color: #2563eb; }

.api-panel { display: none; }
.api-panel.is-active { display: block; animation: apiPanelFade 0.35s ease; }
@keyframes apiPanelFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.api-panel__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.api-panel__head .cs-card-icon { flex: 0 0 auto; margin-bottom: 0; }
.api-panel__head h3 { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.api-panel__lead { font-size: 16px; color: #5b6472; line-height: 1.65; margin: 0; max-width: 780px; }

.api-panel__list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 30px;
}
.api-panel__list li { position: relative; padding-left: 28px; font-size: 15px; color: #5b6472; line-height: 1.6; }
.api-panel__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #2563eb; font-weight: 700; }
.api-panel__list li strong { color: #1a1a1a; font-weight: 600; }
.api-panel__cta { margin-top: 30px; }

@media (max-width: 767px) {
    .api-tabs__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .api-tab { white-space: nowrap; padding: 13px 15px; font-size: 14px; }
    .api-panel__list { grid-template-columns: 1fr; }
    .api-panel__head { flex-direction: column; gap: 14px; }
}

/* =============================================
   AI Services page — iris-violet theme (#5D3FD3, 2026)
   Reuses .cs-* and .api-* components; re-colors them violet.
   ============================================= */
.ai-theme .cs-hero {
    background: linear-gradient(135deg, #2e1c73 0%, #4324a8 48%, #5D3FD3 100%);
}
.ai-theme .cs-hero::after {
    background: radial-gradient(circle, rgba(124,93,211,0.45) 0%, rgba(124,93,211,0) 70%);
}
.ai-theme .cs-hero-eyebrow { color: #c8b8f5; }
.ai-theme .cs-hero h1 span { color: #c8b8f5; }

.ai-theme .cs-stat-num { color: #2e1c73; }
.ai-theme .cs-stat-num span { color: #5D3FD3; }

.ai-theme .cs-section-head .cs-kicker { color: #5D3FD3; }

.ai-theme .cs-card { border: 1px solid #e2dbf9; }
.ai-theme .cs-card:hover { border-color: #5D3FD3; box-shadow: 0 16px 40px rgba(93,63,211,0.16); }
.ai-theme .cs-card-icon { background: linear-gradient(135deg, #efeafd 0%, #f6f3ff 100%); }
.ai-theme .cs-card-icon i { color: #5D3FD3; }
.ai-theme .cs-card h3 a { color: inherit; }
.ai-theme .cs-card h3 a:hover { color: #5D3FD3; }

.ai-theme .cs-platform { border: 1px solid #e2dbf9; }
.ai-theme .cs-platform li::before { color: #5D3FD3; }
.ai-theme .cs-step { border: 1px solid #e2dbf9; }
.ai-theme .cs-step-num { background: #2e1c73; }
.ai-theme .cs-why-item { border: 1px solid #e2dbf9; }
.ai-theme .cs-why-item i { color: #5D3FD3; }

.ai-theme .cs-btn-primary { background: #5D3FD3; }
.ai-theme .cs-btn-primary:hover { background: #4a2fb0; }
.ai-theme .cs-cta-band { background: linear-gradient(135deg, #2e1c73 0%, #5D3FD3 100%); }

.ai-theme .cs-section-alt { background: #f6f4ff; }

/* Tabs recolored for the AI theme */
.ai-theme .api-tab.is-active { color: #5D3FD3; border-bottom-color: #5D3FD3; }
.ai-theme .api-panel__list li::before { color: #5D3FD3; }

/* Homepage 4-pillar grid */
.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}
@media (max-width: 1100px) {
    .services-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
@media (max-width: 575px) {
    .services-grid-4 { grid-template-columns: 1fr; max-width: 420px; }
}

/* AI hero slide background — matched to the AI image's background for a seamless blend */
.embla__slide--ai { background-color: #e9e3fa; }

/* =============================================
   Remove the theme's default disc bullets from our custom
   content lists (#content ul forces list-style:disc via an ID
   selector, so we override it with higher specificity).
   Our own ✓ / icon markers are kept.
   ============================================= */
#content .api-panel__list,
#content .cs-platform ul,
#content .consult-benefits,
#content .lead-contact-list {
    list-style: none;
    padding-left: 0;
}

/* =============================================
   Blog — listing & article (Stablo-inspired, 2026)
   ============================================= */
.blog-head { text-align: center; max-width: 720px; margin: 20px auto 50px; }
.blog-kicker { display:inline-block; font-size:12px; letter-spacing:2px; text-transform:uppercase; color:#1abc9c; font-weight:700; margin-bottom:14px; }
.blog-head h1 { font-size:40px; font-weight:700; letter-spacing:-1px; color:#1a1a1a; margin-bottom:14px; }
.blog-head p { font-size:18px; color:#6b7280; }

/* Shared bits */
.blog-cat { display:inline-block; font-size:12px; letter-spacing:1px; text-transform:uppercase; font-weight:700; color:#1abc9c; margin-bottom:12px; }
.blog-excerpt { color:#5b6472; line-height:1.65; }
.blog-meta { display:flex; align-items:center; gap:8px; font-size:13.5px; color:#8a93a0; margin-top:16px; }
.blog-meta .blog-author { font-weight:600; color:#41495a; }
.blog-dot { color:#cbd2da; }
.blog-avatar {
    width:30px; height:30px; border-radius:50%; flex:0 0 auto;
    background:linear-gradient(135deg,#1abc9c,#1f6feb); color:#fff;
    display:inline-flex; align-items:center; justify-content:center;
    font-size:12px; font-weight:700; margin-right:2px;
}

/* Cover images / fallback */
.blog-cover-img { width:100%; height:100%; object-fit:cover; display:block; }
.blog-cover-fallback {
    width:100%; height:100%; min-height:200px;
    background:linear-gradient(135deg,#123a6b,#1f6feb);
    display:flex; align-items:center; justify-content:center;
}
.blog-cover-fallback span { color:rgba(255,255,255,0.9); font-weight:700; letter-spacing:2px; text-transform:uppercase; font-size:14px; }

/* Featured post */
.blog-featured {
    display:grid; grid-template-columns:1.1fr 1fr; gap:0; align-items:stretch;
    border:1px solid #eef1f5; border-radius:16px; overflow:hidden;
    margin-bottom:56px; background:#fff; transition:box-shadow .2s ease, transform .2s ease;
    color:inherit;
}
.blog-featured:hover { box-shadow:0 18px 50px rgba(0,0,0,0.10); transform:translateY(-3px); }
.blog-featured-media { min-height:320px; }
.blog-featured-body { padding:42px 44px; align-self:center; }
.blog-featured-body h2 { font-size:30px; font-weight:700; line-height:1.2; color:#1a1a1a; margin-bottom:14px; letter-spacing:-0.5px; }
.blog-featured-body .blog-excerpt { font-size:16px; }

/* Grid */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.blog-card {
    display:flex; flex-direction:column; border:1px solid #eef1f5; border-radius:14px;
    overflow:hidden; background:#fff; transition:box-shadow .2s ease, transform .2s ease; color:inherit;
}
.blog-card:hover { box-shadow:0 14px 36px rgba(0,0,0,0.09); transform:translateY(-4px); }
.blog-card-media { height:200px; }
.blog-card-body { padding:24px 24px 26px; display:flex; flex-direction:column; flex:1; }
.blog-card-body h3 { font-size:19px; font-weight:700; line-height:1.35; color:#1a1a1a; margin-bottom:10px; }
.blog-card-body .blog-excerpt { font-size:14.5px; flex:1; }

/* ---------- Article ---------- */
.article-head { max-width:760px; margin:10px auto 28px; text-align:center; }
.article-back { display:inline-block; font-size:14px; color:#1abc9c; font-weight:600; margin-bottom:22px; }
.article-title { font-size:42px; font-weight:700; line-height:1.15; letter-spacing:-1px; color:#1a1a1a; margin-bottom:18px; }
.article-meta { justify-content:center; }
.article-cover { max-width:1000px; margin:0 auto 44px; border-radius:16px; overflow:hidden; max-height:460px; }
.article-cover .blog-cover-img { max-height:460px; }

/* Article prose */
.article-body { max-width:760px; margin:0 auto; font-size:18px; line-height:1.8; color:#33384a; }
.article-body h2 { font-size:28px; font-weight:700; letter-spacing:-0.4px; color:#1a1a1a; margin:42px 0 16px; }
.article-body h3 { font-size:22px; font-weight:700; color:#1a1a1a; margin:32px 0 12px; }
.article-body p { margin:0 0 22px; }
.article-body a { color:#1f6feb; text-decoration:underline; }
.article-body ul, .article-body ol { margin:0 0 22px; padding-left:1.5rem; }
.article-body li { margin-bottom:10px; line-height:1.7; }
.article-body img { max-width:100%; height:auto; border-radius:10px; margin:24px 0; }
.article-body hr { border:0; border-top:1px solid #e7ecf3; margin:40px 0; }
.article-body blockquote {
    margin:28px 0; padding:6px 24px; border-left:4px solid #1abc9c;
    background:#f7fbfa; border-radius:0 8px 8px 0; color:#41495a; font-style:italic;
}
.article-body blockquote p { margin:14px 0; }
.article-body table { width:100%; border-collapse:collapse; margin:24px 0; font-size:15.5px; }
.article-body th, .article-body td { border:1px solid #e7ecf3; padding:10px 14px; text-align:left; }
.article-body th { background:#f7f9fc; font-weight:700; }

/* Code */
.article-body pre { margin:26px 0; border-radius:12px; overflow:hidden; font-size:14.5px; line-height:1.6; }
.article-body pre code { display:block; overflow-x:auto; }
/* inline code (not highlighted blocks) */
.article-body :not(pre) > code {
    background:#f1f3f5; color:#c0341d; padding:2px 7px; border-radius:5px; font-size:0.88em;
}

.article-foot { max-width:760px; margin:48px auto 10px; padding-top:26px; border-top:1px solid #eef1f5; }

/* Responsive */
@media (max-width: 991px) {
    .blog-grid { grid-template-columns:repeat(2,1fr); }
    .blog-featured { grid-template-columns:1fr; }
    .blog-featured-media { min-height:240px; }
}
@media (max-width: 600px) {
    .blog-head h1 { font-size:30px; }
    .article-title { font-size:30px; }
    .blog-grid { grid-template-columns:1fr; }
    .blog-featured-body { padding:30px 26px; }
    .article-body { font-size:17px; }
}
