/* ============================================================
   CTD on Artelligence — minimal glue/override layer.
   Artelligence assets/css/style.css + responsive.css remain the
   design foundation. This file only:
     - makes the header work standalone (template header normally
       lives inside .banner_outer),
     - adds sections the template lacks (process, pricing, audit
       form styling, final CTA, industry/service icon chips),
     - normalises real CTD portfolio images in case cards.
   Theme palette (from Artelligence): navy #052b45, teal #249cb3.
   ============================================================ */
:root { --ctd-navy: #052b45; --ctd-teal: #249cb3; --ctd-teal2: #36e0f7; --ctd-soft: #eafcfe; }

/* ---- Standalone dark header bar (lighter / cleaner) ---- */
.ctd-art-header { background: var(--ctd-navy); position: relative; z-index: 30; }
.ctd-art-header .header { background: transparent; }
.ctd-art-header .header .container-fluid { padding: 4px 40px; }
.ctd-art-header .navbar { padding-top: 6px; padding-bottom: 6px; }
.ctd-art-header .navbar-brand img { max-height: 38px; width: auto; }
.ctd-art-header .navbar-nav .nav-item a { font-size: 16px; font-weight: 400; }
/* slimmer "Book a Free Website Audit" pill so the header reads lighter */
.ctd-art-header .navbar-nav .nav-item .lets_talk { font-size: 15px; font-weight: 600; padding: 3px 2px 3px 20px; }
.ctd-art-header .navbar-nav .nav-item .lets_talk .circle { height: 38px; width: 38px; line-height: 38px; margin: 0 2px 0 10px; }
.ctd-art-header .navbar-nav .nav-item .lets_talk .circle:before { font-size: 14px; }
/* ---- Services mega menu (desktop dropdown / mobile accordion) ---- */
.ctd-art-header .ctd-has-mega { position: relative; }
.ctd-mega-caret { font-size: 11px; margin-left: 5px; transition: transform .25s ease; }
.ctd-mega { display: none; }
.ctd-mega__col { min-width: 178px; }
.ctd-mega__h { display: block; color: #36e0f7; font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ctd-mega a { display: block; color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.3; padding: 6px 0; text-decoration: none; white-space: nowrap; transition: color .2s ease, padding-left .2s ease; }
.ctd-mega a:hover { color: #36e0f7; }
@media (min-width: 992px) {
    /* Compact panel, right-aligned under Services so it stays on-screen and covers less hero. */
    .ctd-art-header .ctd-mega {
        position: absolute; top: 100%; right: 0; left: auto; transform: translateY(10px);
        display: flex; gap: 22px; padding: 16px 20px;
        background: linear-gradient(180deg, #06324f 0%, #052b45 100%);
        border: 1px solid rgba(54,224,247,.20); border-radius: 14px;
        box-shadow: 0 20px 46px -28px rgba(0,0,0,.5), 0 0 0 1px rgba(54,224,247,.04);
        opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; z-index: 60;
    }
    .ctd-art-header .ctd-has-mega:hover .ctd-mega,
    .ctd-art-header .ctd-has-mega:focus-within .ctd-mega { opacity: 1; visibility: visible; transform: translateY(0); }
    .ctd-art-header .ctd-has-mega:hover .ctd-mega-caret { transform: rotate(180deg); }
    .ctd-mega a:hover { padding-left: 4px; }
}
@media (max-width: 991px) {
    .ctd-art-header .ctd-has-mega.open .ctd-mega { display: block; padding: 2px 0 6px 14px; margin: 4px 0 4px; border-left: 2px solid rgba(54,224,247,.28); }
    .ctd-art-header .ctd-has-mega.open .ctd-mega-caret { transform: rotate(180deg); }
    .ctd-mega__col { margin-bottom: 12px; }
    .ctd-mega__col:last-child { margin-bottom: 2px; }
    .ctd-mega__h { font-size: 10.5px; letter-spacing: 1.4px; margin-bottom: 6px; padding-bottom: 0; border-bottom: 0; }
    .ctd-art-header .ctd-mega a { color: #fff !important; font-size: 14.5px; line-height: 1.4; padding: 8px 0; white-space: normal; border-bottom: 1px solid rgba(255,255,255,.07); }
    .ctd-art-header .ctd-mega a:hover { color: #36e0f7 !important; }
    .ctd-art-header .ctd-mega__col a:last-child { border-bottom: 0; }
}

/* ---- Premium mobile navigation (<= 991px; desktop unaffected) ---- */
@media (max-width: 991px) {
    /* Clean white hamburger bars (replaces oversized default SVG icons) */
    .ctd-art-header .navbar-toggler { border: 0 !important; padding: 6px 4px; outline: none; box-shadow: none !important; }
    .ctd-art-header .navbar-toggler:focus { outline: none; box-shadow: none !important; }
    .ctd-art-header .navbar-toggler .navbar-toggler-icon {
        display: block; width: 26px; height: 2px; background-color: #fff !important;
        background-image: none !important; border-radius: 2px; margin: 5px 0; transition: .25s ease;
    }
    .ctd-art-header .navbar-toggler:not(.collapsed) .navbar-toggler-icon:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .ctd-art-header .navbar-toggler:not(.collapsed) .navbar-toggler-icon:nth-child(2) { opacity: 0; }
    .ctd-art-header .navbar-toggler:not(.collapsed) .navbar-toggler-icon:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Menu panel: solid premium navy, pushes content down (no awkward overlay) */
    .ctd-art-header .navbar-collapse {
        position: static !important;
        background: linear-gradient(180deg, #06324f 0%, #052b45 100%);
        border: 1px solid rgba(54,224,247,.18);
        border-radius: 14px;
        padding: 10px 18px 18px;
        margin-top: 12px;
        box-shadow: 0 26px 54px -26px rgba(0,0,0,.55);
        /* No inner scrollbar — the page scrolls naturally if the menu is tall. */
    }
    .ctd-art-header .navbar-nav { width: 100%; }
    .ctd-art-header .navbar-collapse .nav-item { width: 100%; }

    /* Readable white links with subtle dividers + comfortable tap targets */
    .ctd-art-header .navbar-collapse .nav-item a.nav-link {
        color: #fff !important; font-size: 16px; font-weight: 500; margin: 0;
        padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .ctd-art-header .navbar-collapse .nav-item a.nav-link:hover { color: #36e0f7 !important; }

    /* CTA button: proper teal pill, not a plain white block */
    .ctd-art-header .navbar-collapse .nav-item a.nav-link.lets_talk {
        display: inline-flex !important; align-items: center; justify-content: center;
        background: linear-gradient(to right, #249cb3, #36e0f7) !important;
        color: #fff !important; font-weight: 700; border: 0 !important; border-radius: 30px;
        padding: 8px 8px 8px 22px !important; margin-top: 16px;
    }
    .ctd-art-header .navbar-collapse .nav-item a.nav-link.lets_talk .circle { background-color: #052b45 !important; height: 34px; width: 34px; line-height: 34px; margin-left: 10px; }
    .ctd-art-header .navbar-collapse .nav-item a.nav-link.lets_talk .circle:before { color: #fff !important; }
}

/* ---- Hero (lighter, premium typography) ---- */
.ctd-hero .banner-section { padding: 56px 0 80px; }
.ctd-hero .banner_content { padding-right: 10px; }
.ctd-hero .banner_content h1 { font-size: 46px; line-height: 1.16; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 18px; padding-right: 0; }
.ctd-hero .banner_content p { font-size: 18px; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,.86); max-width: 540px; padding-right: 0; margin-bottom: 26px; }
.ctd-hero .banner_content .banner-button { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ctd-hero .banner_content .banner-button .button1 { margin-right: 0; }

/* Hero visual = uploaded heroimg (already a dark dashboard mockup — present cleanly, no double frame) */
.ctd-hero-visual { position: relative; }
.ctd-hero-visual::before {
    content: ""; position: absolute; inset: 4% 2%; border-radius: 26px; z-index: 0;
    background: radial-gradient(closest-side, rgba(36,156,179,.35), transparent 72%); filter: blur(34px);
}
.ctd-hero-visual img {
    position: relative; z-index: 1; width: 100%; height: auto; border-radius: 16px;
    box-shadow: 0 36px 90px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(54,224,247,.10);
}
@media (max-width: 991px) {
    .ctd-hero .banner-section { padding: 36px 0 44px; }
    .ctd-hero .banner_content h1 { font-size: 34px; line-height: 1.22; letter-spacing: -0.3px; }
    .ctd-hero .banner_content p { font-size: 16px; line-height: 1.65; max-width: none; }
    .ctd-hero-visual { margin-top: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 575px) {
    .ctd-hero .banner-section { padding: 22px 0 28px; }
    .ctd-hero .banner_content h1 { font-size: 25px; line-height: 1.26; margin-bottom: 12px; letter-spacing: -0.2px; }
    .ctd-hero .banner_content p { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
    .ctd-hero .banner_content .banner-button { gap: 10px; margin-top: 22px; }
    .ctd-hero .banner_content .banner-button .lets_talk { font-size: 14px; padding: 2px 2px 2px 18px; }
    .ctd-hero .banner_content .banner-button .lets_talk .circle { height: 36px; width: 36px; line-height: 36px; margin: 0 2px 0 8px; }
    .ctd-hero-visual { margin-top: 20px; max-width: 360px; }
}

/* ---- Reusable section head ---- */
.ctd-sec-head { margin-bottom: 42px; }
.ctd-sec-head h5 { color: var(--ctd-teal); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 10px; }
.ctd-sec-head h2 { color: var(--ctd-navy); }

/* ---- Icon chip (replaces template robot icon images) ---- */
.ctd-ico { width: 64px; height: 64px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(36,156,179,.16), rgba(54,224,247,.10));
    border: 1px solid rgba(36,156,179,.30); color: var(--ctd-teal); font-size: 26px; margin-bottom: 18px; }

/* service-box (services + industries) tidy + equal height */
.ctd-cards .service-box { height: 100%; background: #fff; border: 1px solid #e7eff2; border-radius: 16px; padding: 30px 26px; transition: .3s; }
.ctd-cards .service-box:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(5,43,69,.30); border-color: rgba(36,156,179,.35); }
.ctd-cards .service-box h4 { color: var(--ctd-navy); font-size: 20px; margin-bottom: 8px; }
.ctd-cards .service-box p { color: #5a6b72; font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.ctd-cards .col-mb { margin-bottom: 26px; }

/* ---- Industry image-led cards (~350x324, premium overlay) ---- */
.ctd-ind-card { position: relative; display: block; height: 324px; border-radius: 16px; overflow: hidden; text-decoration: none;
    box-shadow: 0 18px 40px -24px rgba(5,43,69,.45); transition: transform .35s ease, box-shadow .35s ease; }
.ctd-ind-card:hover { transform: translateY(-6px); box-shadow: 0 30px 62px -28px rgba(5,43,69,.55); }
.ctd-ind-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ctd-ind-card:hover .ctd-ind-card__img { transform: scale(1.06); }
.ctd-ind-card::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,43,69,0) 28%, rgba(5,43,69,.55) 62%, rgba(2,22,45,.92) 100%); }
.ctd-ind-card__overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 22px 24px; }
.ctd-ind-card__title { color: #fff; font-size: 20px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.ctd-ind-card__text { color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.ctd-ind-card__cta { display: inline-flex; align-items: center; gap: 8px; color: var(--ctd-teal2); font-weight: 600; font-size: 14px; letter-spacing: .2px; }
.ctd-ind-card:hover .ctd-ind-card__cta { color: #fff; }
@media (max-width: 767px) {
    .ctd-ind-card { height: 260px; }
    .ctd-ind-card__overlay { padding: 18px 18px 20px; }
    .ctd-ind-card__title { font-size: 18px; }
}

/* ---- Process ---- */
.ctd-process { padding: 90px 0; background: var(--ctd-soft); }
.ctd-step { background: #fff; border: 1px solid #e4eef1; border-radius: 16px; padding: 32px 26px; height: 100%; transition: .3s; }
.ctd-step:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(5,43,69,.3); }
.ctd-step__num { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ctd-teal), var(--ctd-teal2)); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.ctd-step h4 { font-size: 20px; color: var(--ctd-navy); margin-bottom: 8px; }
.ctd-step p { color: #5a6b72; font-size: 16px; margin-bottom: 0; line-height: 1.6; }

/* ---- Portfolio case images (real CTD images vary in ratio) ---- */
.ctd-case .case-box .image { height: 240px; overflow: hidden; border-radius: 14px; }
.ctd-case .case-box .image img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Pricing ---- */
.ctd-pricing { padding: 90px 0; }
.ctd-plan { background: #fff; border: 1px solid #e4eef1; border-radius: 18px; padding: 36px 30px; height: 100%; transition: .3s; }
.ctd-plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(5,43,69,.3); border-color: rgba(36,156,179,.4); }
.ctd-plan h3 { font-size: 22px; color: var(--ctd-navy); margin-bottom: 6px; }
.ctd-plan .price { font-size: 28px; font-weight: 800; color: var(--ctd-teal); margin: 14px 0 18px; }
.ctd-plan .price span { font-size: 15px; font-weight: 500; color: #8597a0; }
.ctd-plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.ctd-plan ul li { padding: 7px 0 7px 28px; position: relative; color: #52636b; font-size: 16px; }
.ctd-plan ul li:before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--ctd-teal); position: absolute; left: 0; top: 7px; font-size: 13px; }

/* ---- Audit / contact (styles OUR _HomeContactForm without modifying it) ---- */
.ctd-audit { padding: 90px 0; background: var(--ctd-navy); }
.ctd-audit .ctd-sec-head h2 { color: #fff; }
.ctd-audit .ctd-audit-lead { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 26px; }
.ctd-audit-form { background: #fff; border-radius: 18px; padding: 34px; }
.ctd-audit-form .form-group { margin-bottom: 16px; }
.ctd-audit-form input, .ctd-audit-form textarea { width: 100%; background: #f3f7f9; border: 1px solid #e0eaee; border-radius: 10px; padding: 14px 16px; font-size: 16px; color: #052b45; font-family: 'Manrope', sans-serif; }
.ctd-audit-form input:focus, .ctd-audit-form textarea:focus { outline: none; border-color: var(--ctd-teal); box-shadow: 0 0 0 3px rgba(36,156,179,.15); }
.ctd-audit-form textarea { min-height: 120px; resize: vertical; }
.ctd-audit-form .form-group .icon { display: none; }
.ctd-audit-form .theme-btn { display: inline-block; border: 0; border-radius: 30px 30px 30px 0; padding: 15px 36px; font-weight: 700; color: #fff; cursor: pointer;
    background-image: linear-gradient(to right, var(--ctd-teal), var(--ctd-teal2)); transition: .3s; }
.ctd-audit-form .theme-btn:hover { filter: brightness(1.05); }
.ctd-audit-form .theme-btn .txt { color: #fff; }

/* ---- Final CTA band ---- */
.ctd-cta-band { padding: 64px 0; background: linear-gradient(120deg, var(--ctd-teal), #17677e); }
.ctd-cta-band h2 { color: #fff; margin-bottom: 10px; }
.ctd-cta-band p { color: rgba(255,255,255,.92); margin-bottom: 0; font-size: 18px; }

/* ---- Footer: real CTD logo ---- */
.footer-section .footer-logo img { max-height: 56px; width: auto; }

/* =============================================================
   MOBILE-FIRST POLISH PASS (declared last → wins on conflicts)
   ============================================================= */

/* Final CTA button: the .lets_talk here sits outside .navbar/.banner-section so it
   gets no template button styling — give it the full Artelligence pill + strong
   contrast (solid white on the teal band, matching the hero button shape). */
.ctd-cta-band .lets_talk {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Manrope', sans-serif; font-size: 18px; line-height: 22px; font-weight: 700;
    padding: 6px 6px 6px 30px; border-radius: 30px 30px 30px 0;
    text-decoration: none; transition: all 0.3s ease-in-out;
    background-image: none !important; background-color: #ffffff !important; color: #052b45 !important;
}
.ctd-cta-band .lets_talk .circle {
    display: inline-flex; align-items: center; justify-content: center;
    height: 46px; width: 46px; border-radius: 100px; margin: 0 0 0 14px;
    background-color: #052b45 !important; color: #ffffff !important; font-size: 16px;
    transition: all 0.3s ease-in-out;
}
.ctd-cta-band .lets_talk .circle:before { color: #ffffff !important; padding: 0; }
.ctd-cta-band .lets_talk:hover { background-color: #eafcfe !important; color: #052b45 !important; }
.ctd-cta-band .lets_talk:hover .circle { background-color: #02162d !important; }
@media (max-width: 575px) {
    .ctd-cta-band .lets_talk { font-size: 16px; padding: 5px 5px 5px 24px; }
    .ctd-cta-band .lets_talk .circle { height: 42px; width: 42px; }
}

@media (max-width: 991px) {
    .ctd-cards .service-box { padding: 26px 24px; }
    .ctd-step, .ctd-plan { padding: 28px 24px; }
}

@media (max-width: 767px) {
    /* Header: slimmer bar + smaller logo, clean toggler */
    .ctd-art-header .header .container-fluid { padding: 2px 18px; }
    .ctd-art-header .navbar { padding-top: 4px; padding-bottom: 4px; }
    .ctd-art-header .navbar-brand img { max-height: 30px; }
    .ctd-art-header .navbar-toggler { padding: 5px 8px; border: none; }

    /* Cards: reduce oversized feel (services, industries, process, pricing, portfolio, faq) */
    .ctd-cards { padding-top: 60px !important; padding-bottom: 60px !important; }
    .ctd-cards .service-box { padding: 24px 22px; }
    .ctd-ico { width: 52px; height: 52px; font-size: 22px; margin-bottom: 14px; }
    .ctd-cards .service-box h4 { font-size: 18px; }
    .ctd-cards .service-box p { font-size: 15px; }
    .ctd-process { padding: 58px 0; }
    .ctd-step { padding: 24px 22px; }
    .ctd-step__num { width: 44px; height: 44px; font-size: 16px; margin-bottom: 12px; }
    .ctd-step h4 { font-size: 18px; }
    .ctd-pricing { padding: 58px 0; }
    .ctd-plan { padding: 26px 24px; }
    .ctd-plan h3 { font-size: 20px; }
    .ctd-plan .price { font-size: 24px; }
    section.study-section.ctd-case { padding-top: 60px !important; padding-bottom: 60px !important; }
    .faq-section { padding-top: 60px !important; padding-bottom: 60px !important; }
    .ctd-sec-head { margin-bottom: 30px; }
    .ctd-sec-head h2 { font-size: 26px; line-height: 1.25; }

    /* Audit / contact: lighter spacing + slightly shorter fields */
    .ctd-audit { padding: 58px 0; }
    .ctd-audit .ctd-sec-head h2 { font-size: 26px; }
    .ctd-audit .ctd-audit-lead { font-size: 16px; margin-bottom: 20px; }
    .ctd-audit-form { padding: 24px; }
    .ctd-audit-form input, .ctd-audit-form textarea { padding: 11px 14px; font-size: 15px; }
    .ctd-audit-form textarea { min-height: 100px; }
    .ctd-audit-form .theme-btn { padding: 12px 28px; }

    /* Final CTA */
    .ctd-cta-band { padding: 48px 0; }
    .ctd-cta-band h2 { font-size: 26px; }
    .ctd-cta-band p { font-size: 16px; }
}

@media (max-width: 575px) {
    .ctd-sec-head h2 { font-size: 23px; }
    .ctd-cta-band h2 { font-size: 23px; }
}

/* =============================================================
   FAQ: keep question text clear of the +/- icon + responsive
   (icon = .faq-section .accordion-card .btn-link:before, a 48px circle at right:0)
   ============================================================= */
.faq-section .accordion-card a.btn.btn-link { padding-right: 66px; }
.faq-section .accordion-card a.btn.btn-link h4 { display: block; font-size: 18px; line-height: 1.45; font-weight: 600; margin: 0; word-break: normal; overflow-wrap: anywhere; }
/* vertically centre the +/- icon for one- and two-line questions */
.faq-section .accordion-card .btn-link:before,
.faq-section .accordion-card .collapsed:before { top: 50%; margin: 0; transform: translateY(-50%); }

@media (max-width: 767px) {
    .faq-section .faq_content h2 { font-size: 26px; line-height: 1.28; }
    .faq-section .accordion-card { padding: 0 16px; margin-left: 0; }
    .faq-section .accordion-card a.btn.btn-link { padding-right: 54px; }
    .faq-section .accordion-card a.btn.btn-link h4 { font-size: 15.5px; line-height: 1.4; }
    .faq-section .accordion-card .btn-link:before,
    .faq-section .accordion-card .collapsed:before { width: 40px; height: 40px; line-height: 40px; font-size: 16px; }
}

/* =============================================================
   Reusable check-list (industry / landing pages)
   ============================================================= */
.ctd-check-list { list-style: none; padding: 0; margin: 0; }
.ctd-check-list li { position: relative; padding: 9px 0 9px 32px; color: #3e454a; font-size: 16px; line-height: 1.55; }
.ctd-check-list li:before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--ctd-teal); position: absolute; left: 0; top: 10px; font-size: 13px; }
.ctd-check-list.on-dark li { color: rgba(255,255,255,.88); }
.ctd-check-list.on-dark li:before { color: var(--ctd-teal2); }
.ctd-split-img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 26px 60px -30px rgba(5,43,69,.45); }
@media (max-width: 991px) { .ctd-split-img { margin-top: 28px; } }

/* Section padding helper (industry / landing pages) */
.ctd-pad { padding: 90px 0; }

/* Dashboard-style panel — replaces repeated imagery in split sections */
.ctd-panel { background: linear-gradient(180deg, #06324f 0%, #052b45 100%); border: 1px solid rgba(54,224,247,.14);
    border-radius: 18px; padding: 26px 26px 12px; box-shadow: 0 30px 70px -34px rgba(5,43,69,.6); }
.ctd-panel__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.ctd-panel__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ctd-panel__bar span:nth-child(1) { background: #ff5f57; }
.ctd-panel__bar span:nth-child(2) { background: #febc2e; }
.ctd-panel__bar span:nth-child(3) { background: #28c840; }
.ctd-panel__row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); }
.ctd-panel__row:first-of-type { border-top: none; }
.ctd-panel__ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(54,224,247,.20), rgba(36,156,179,.12)); border: 1px solid rgba(54,224,247,.30); color: #36e0f7; font-size: 18px; }
.ctd-panel__title { color: #fff; font-size: 16px; font-weight: 600; margin: 0 0 3px; }
.ctd-panel__sub { color: rgba(230,236,245,.72); font-size: 13.5px; line-height: 1.5; margin: 0; }
@media (max-width: 991px) { .ctd-panel { margin-top: 28px; } }
@media (max-width: 767px) {
    .ctd-pad { padding: 56px 0; }
    .ctd-panel { padding: 22px 22px 8px; }
    .ctd-panel__row { padding: 13px 0; }
    .footer-section .footer-logo img { max-height: 42px; } /* smaller footer logo on mobile */
}

/* ---- Pricing card extras (industry landing pages) ---- */
.ctd-plan--featured { border-color: rgba(36,156,179,.55); box-shadow: 0 32px 64px -30px rgba(36,156,179,.42); position: relative; }
.ctd-plan__badge { position: absolute; top: -13px; right: 24px; background: linear-gradient(to right, #249cb3, #36e0f7); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; }
.ctd-plan__for { font-size: 13.5px; color: #8597a0; margin: -6px 0 16px; }
.ctd-note { background: #eafcfe; border: 1px solid rgba(36,156,179,.25); border-radius: 14px; padding: 18px 22px; color: #3e454a; font-size: 15px; line-height: 1.6; }
.ctd-note i { color: #249cb3; margin-right: 8px; }

/* ---- Offer summary band (before pricing) ---- */
.ctd-offer { background: linear-gradient(135deg, rgba(36,156,179,.10), rgba(54,224,247,.06)); border: 1px solid rgba(36,156,179,.22); border-radius: 18px; padding: 28px 30px; margin-bottom: 42px; }
.ctd-offer h3 { color: #052b45; font-size: 20px; margin: 0 0 8px; }
.ctd-offer p { color: #3e454a; font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.ctd-offer__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.ctd-offer__points li { color: #3e454a; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ctd-offer__points li span { display: inline-block; background: #052b45; color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
@media (max-width: 767px) { .ctd-offer { padding: 22px; } .ctd-offer__points li { flex-basis: 100%; } }

/* ---- Premium dark panel: "How SEO Growth Works" ---- */
.ctd-seo-panel { background: linear-gradient(180deg, #06324f 0%, #052b45 100%); border: 1px solid rgba(54,224,247,.16); border-radius: 18px; padding: 28px 30px; box-shadow: 0 30px 70px -34px rgba(5,43,69,.55); }
.ctd-seo-panel h3 { color: #fff; font-size: 20px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.ctd-seo-panel h3 i { color: #36e0f7; }
.ctd-seo-panel p { color: rgba(230,236,245,.82); font-size: 15px; line-height: 1.65; margin: 0; }

/* ---- "What's Included / Separate" panel ---- */
.ctd-incl { background: #fff; border: 1px solid #e4eef1; border-radius: 18px; padding: 32px 30px 16px; box-shadow: 0 26px 60px -34px rgba(5,43,69,.25); }
.ctd-incl__h { font-size: 16px; font-weight: 700; color: #052b45; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #e4eef1; }
.ctd-incl .ctd-check-list li { font-size: 15px; padding: 8px 0 8px 28px; }
.ctd-incl .ctd-check-list li:before { top: 9px; }
.ctd-x-list { list-style: none; padding: 0; margin: 0; }
.ctd-x-list li { position: relative; padding: 8px 0 8px 28px; color: #6a7a82; font-size: 15px; line-height: 1.5; }
.ctd-x-list li:before { content: "\f068"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #9fb0b8; position: absolute; left: 0; top: 10px; font-size: 11px; }
@media (max-width: 767px) { .ctd-incl { padding: 24px 22px 10px; } }

/* ---- Preserved SEO body copy (service pages) ---- */
.ctd-prose { max-width: 920px; margin: 0 auto; }
.ctd-prose h2 { font-size: 24px; line-height: 1.3; color: #052b45; font-weight: 700; margin: 28px 0 10px; }
.ctd-prose h2:first-child { margin-top: 0; }
.ctd-prose p { color: #566377; font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
@media (max-width: 767px) { .ctd-prose h2 { font-size: 20px; } }

/* =============================================================
   PORTFOLIO (Artelligence restyle of existing case-block markup)
   ============================================================= */
.ctd-portfolio { padding: 90px 0; }
.ctd-portfolio .filter-btns { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ctd-portfolio .filter-btns li { cursor: pointer; padding: 10px 22px; border-radius: 30px; background: #fff; border: 1px solid #e4eef1; color: #052b45; font-weight: 600; font-size: 15px; transition: all .25s ease; }
.ctd-portfolio .filter-btns li:hover { border-color: #249cb3; color: #249cb3; }
.ctd-portfolio .filter-btns li.active { background: linear-gradient(to right, #249cb3, #36e0f7); color: #fff; border-color: transparent; }

.ctd-portfolio .filter-list { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.ctd-portfolio .case-block { padding: 12px; flex: 0 0 33.333%; max-width: 33.333%; }
.ctd-portfolio .case-block .inner-box { position: relative; height: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(5,43,69,.4); transition: transform .3s ease, box-shadow .3s ease; }
.ctd-portfolio .case-block .inner-box:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -28px rgba(5,43,69,.5); }
.ctd-portfolio .case-block .image { position: relative; height: 260px; overflow: hidden; margin: 0; }
.ctd-portfolio .case-block .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ctd-portfolio .case-block .inner-box:hover .image img { transform: scale(1.06); }
.ctd-portfolio .overlay-box { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(180deg, rgba(5,43,69,0) 38%, rgba(2,22,45,.92) 100%); }
.ctd-portfolio .overlay-box .content h4 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.ctd-portfolio .overlay-box .content h4 a { color: #fff; text-decoration: none; }
.ctd-portfolio .overlay-box .content h4 a:hover { color: #36e0f7; }
.ctd-portfolio .overlay-box .category { color: #36e0f7; font-size: 13px; font-weight: 600; }
/* magnifier (fancybox trigger) — replace globex flaticon with a FA glyph */
.ctd-portfolio .overlay-box .search-icon { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ctd-portfolio .overlay-box .search-icon:hover { background: rgba(54,224,247,.35); }
.ctd-portfolio .overlay-box .search-icon .icon { display: none; }
.ctd-portfolio .overlay-box .search-icon::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f00e"; font-size: 15px; }
/* hide the empty globex arrow flaticon (title already links to the detail page) */
.ctd-portfolio .overlay-box .arrow { display: none; }

@media (max-width: 991px) { .ctd-portfolio .case-block { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 575px) { .ctd-portfolio { padding: 60px 0; } .ctd-portfolio .case-block { flex: 0 0 100%; max-width: 100%; } .ctd-portfolio .case-block .image { height: 220px; } }

/* ---- Blog (listing card + article prose h3) ---- */
.ctd-prose h3 { font-size: 19px; line-height: 1.35; color: #052b45; font-weight: 700; margin: 22px 0 8px; }
.ctd-prose img { max-width: 100%; height: auto; border-radius: 14px; margin: 0 0 22px; }
.ctd-blog-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #e4eef1; border-radius: 18px; overflow: hidden; box-shadow: 0 26px 60px -34px rgba(5,43,69,.25); }
.ctd-blog-card__media { min-height: 280px; background: #0b1a33; overflow: hidden; }
.ctd-blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ctd-blog-card__body { padding: 36px; }
.ctd-blog-card__cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #249cb3; background: rgba(36,156,179,.10); border-radius: 30px; padding: 3px 11px; }
.ctd-blog-card__body h3 { font-size: 24px; line-height: 1.3; color: #052b45; margin: 10px 0; }
.ctd-blog-card__meta { color: #8597a0; font-size: 14px; margin-bottom: 14px; }
.ctd-blog-card__body p { color: #566377; font-size: 16px; line-height: 1.7; margin-bottom: 18px; }
@media (max-width: 767px) { .ctd-blog-card { grid-template-columns: 1fr; } .ctd-blog-card__media { min-height: 200px; } .ctd-blog-card__body { padding: 26px; } }

/* ---- Dynamic blog listing (cards grid + category chips) ---- */
.ctd-bgrid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.ctd-bcard { padding: 12px; flex: 0 0 33.333%; max-width: 33.333%; }
.ctd-bcard__inner { background: #fff; border: 1px solid #e4eef1; border-radius: 16px; overflow: hidden; height: 100%; box-shadow: 0 18px 40px -24px rgba(5,43,69,.35); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.ctd-bcard__inner:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -28px rgba(5,43,69,.45); }
.ctd-bcard__media { height: 200px; overflow: hidden; background: #0b1a33; display: block; }
.ctd-bcard__media img { width: 100%; height: 100%; object-fit: cover; }
.ctd-bcard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ctd-bcard__date { color: #8597a0; font-size: 13px; margin-bottom: 6px; }
.ctd-bcard__body h4 { font-size: 18px; line-height: 1.35; margin: 0 0 10px; }
.ctd-bcard__body h4 a { color: #052b45; text-decoration: none; }
.ctd-bcard__body h4 a:hover { color: #249cb3; }
.ctd-bcard__excerpt { color: #566377; font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.ctd-bcard .ctd-link { margin-top: auto; }
@media (max-width: 991px) { .ctd-bcard { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 575px) { .ctd-bcard { flex: 0 0 100%; max-width: 100%; } }
.ctd-cat-list { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ctd-cat-list li a { display: inline-block; padding: 9px 18px; border-radius: 30px; background: #fff; border: 1px solid #e4eef1; color: #052b45; font-weight: 600; font-size: 14px; text-decoration: none; transition: all .25s ease; }
.ctd-cat-list li a:hover, .ctd-cat-list li.active a { background: linear-gradient(to right, #249cb3, #36e0f7); color: #fff; border-color: transparent; }
.ctd-empty { text-align: center; padding: 24px; color: #566377; font-size: 17px; }
.ctd-empty a { color: #249cb3; font-weight: 600; }

/* ---- Portfolio case-study detail ---- */
.ctd-ghost-btn { display: inline-block; margin-left: 12px; padding: 14px 26px; border-radius: 30px; border: 1px solid rgba(255,255,255,.45); color: #fff; font-weight: 600; text-decoration: none; transition: all .25s ease; }
.ctd-ghost-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.ctd-cs-hero-img { border-radius: 18px; overflow: hidden; margin-bottom: 34px; border: 1px solid #e4eef1; box-shadow: 0 30px 70px -38px rgba(5,43,69,.5); background: #0b1a33; }
.ctd-cs-hero-img img { width: 100%; height: auto; display: block; }

/* body readability */
.ctd-cs-body { font-size: 16px; }
.ctd-cs-body > p:first-of-type { font-size: 18px; line-height: 1.7; color: #3f4d5a; }
.ctd-cs-body h2 { font-size: 25px; color: #052b45; font-weight: 700; margin: 34px 0 12px; padding-left: 16px; border-left: 4px solid #36e0f7; }
.ctd-cs-body h2:first-child { margin-top: 0; }
.ctd-cs-body h3 { font-size: 18px; color: #052b45; font-weight: 700; margin: 22px 0 8px; }
.ctd-cs-body p { color: #566377; line-height: 1.75; }
.ctd-cs-body .ctd-check-list { margin: 8px 0 6px; }

/* snapshot card */
.ctd-cs-snapshot { position: sticky; top: 100px; background: #fff; border: 1px solid #e4eef1; border-radius: 20px; padding: 0 28px 28px; box-shadow: 0 30px 70px -40px rgba(5,43,69,.4); overflow: hidden; }
.ctd-cs-snapshot::before { content: ""; display: block; height: 5px; margin: 0 -28px 24px; background: linear-gradient(to right, #249cb3, #36e0f7); }
.ctd-cs-snapshot__h { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #052b45; font-weight: 700; margin: 0 0 6px; }
.ctd-cs-snapshot__list { list-style: none; padding: 0; margin: 0 0 22px; }
.ctd-cs-snapshot__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px dashed #e7eef1; font-size: 14px; }
.ctd-cs-snapshot__list li:last-child { border-bottom: 0; }
.ctd-cs-snapshot__k { color: #8597a0; font-weight: 600; flex: 0 0 auto; }
.ctd-cs-snapshot__v { color: #052b45; font-weight: 700; text-align: right; word-break: break-word; }
.ctd-cs-snapshot__v a { color: #249cb3; text-decoration: none; border-bottom: 1px solid rgba(36,156,179,.4); }
.ctd-cs-snapshot__v a:hover { color: #052b45; border-bottom-color: #052b45; }
.ctd-cs-snapshot__v a i { font-size: 11px; }
.ctd-cs-snapshot__cta { display: block; width: 100%; text-align: center; }

/* lead-gen section — typography scoped to match the rest of the case study */
.ctd-cs-support { background: #f5fafb; padding-top: 66px; padding-bottom: 66px; }
.ctd-cs-support .ctd-sec-head { margin-bottom: 34px; }
.ctd-cs-support .ctd-sec-head h5 { color: #249cb3; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.ctd-cs-support .ctd-sec-head h2 { font-size: 26px; line-height: 1.3; font-weight: 700; color: #052b45; }
.ctd-cs-support .service-box { height: 100%; background: #fff; border: 1px solid #e7eff2; border-radius: 16px; padding: 26px 24px; transition: .3s; }
.ctd-cs-support .service-box:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -30px rgba(5,43,69,.30); border-color: rgba(36,156,179,.35); }
.ctd-cs-support .service-box h4 { color: #052b45; font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.ctd-cs-support .service-box p { color: #566377; font-size: 16px; line-height: 1.75; margin-bottom: 0; }
.ctd-cs-support .col-mb { margin-bottom: 24px; }
@media (max-width: 575px) { .ctd-cs-support { padding-top: 50px; padding-bottom: 50px; } .ctd-cs-support .ctd-sec-head h2 { font-size: 22px; } .ctd-cs-support .service-box p { font-size: 15px; } }

/* back to portfolio */
.ctd-cs-back-wrap { padding: 36px 0 60px; text-align: center; }
.ctd-cs-back { display: inline-block; padding: 13px 30px; border-radius: 30px; border: 1px solid #cfe0e6; background: #fff; color: #052b45; font-weight: 700; text-decoration: none; transition: all .25s ease; box-shadow: 0 14px 34px -24px rgba(5,43,69,.4); }
.ctd-cs-back:hover { border-color: #249cb3; color: #249cb3; transform: translateY(-2px); }
.ctd-cs-back i { margin-right: 8px; }

@media (max-width: 991px) { .ctd-cs-snapshot { position: static; margin-top: 34px; } }
@media (max-width: 575px) { .ctd-cs-hero-img { border-radius: 14px; margin-bottom: 26px; } .ctd-cs-body h2 { font-size: 22px; } .ctd-cs-snapshot { padding: 0 22px 24px; } .ctd-cs-snapshot::before { margin: 0 -22px 22px; } .ctd-ghost-btn { margin-left: 0; margin-top: 12px; } }

/* ---- Homepage "Selected Work" preview ---- */
.ctd-work { background: #fff; }
.ctd-work .col-mb { margin-bottom: 26px; }
.ctd-work-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e7eff2; border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 18px 42px -28px rgba(5,43,69,.35); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.ctd-work-card:hover { transform: translateY(-6px); box-shadow: 0 30px 58px -28px rgba(5,43,69,.45); border-color: rgba(36,156,179,.4); }
.ctd-work-card__media { height: 208px; overflow: hidden; background: #0b1a33; }
.ctd-work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.ctd-work-card:hover .ctd-work-card__media img { transform: scale(1.05); }
.ctd-work-card__body { display: flex; align-items: center; gap: 14px; padding: 18px 20px; flex: 1; }
.ctd-work-card__text { flex: 1; min-width: 0; }
.ctd-work-card__cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #249cb3; background: rgba(36,156,179,.10); border-radius: 30px; padding: 4px 12px; margin-bottom: 9px; }
.ctd-work-card__title { font-size: 18px; line-height: 1.3; color: #052b45; font-weight: 700; margin: 0; }
.ctd-work-card__arrow { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef6f8; color: #249cb3; font-size: 14px; transition: all .25s ease; }
.ctd-work-card:hover .ctd-work-card__arrow { background: linear-gradient(to right, #249cb3, #36e0f7); color: #fff; }
.ctd-work-cta { text-align: center; margin-top: 46px; }
.ctd-work-cta p { font-size: 19px; color: #052b45; font-weight: 600; margin-bottom: 18px; }
.ctd-work-cta .button1 { margin: 6px; }
.ctd-work-cta__ghost { display: inline-block; margin: 6px; padding: 14px 28px; border-radius: 30px; border: 1px solid #cfe0e6; background: #fff; color: #052b45; font-weight: 700; text-decoration: none; transition: all .25s ease; }
.ctd-work-cta__ghost:hover { border-color: #249cb3; color: #249cb3; }
@media (max-width: 575px) { .ctd-work-card__media { height: 180px; } .ctd-work-cta p { font-size: 17px; } .ctd-work-cta .button1, .ctd-work-cta__ghost { display: block; margin: 12px auto; max-width: 320px; } }

/* ---- Dynamic blog: card category pill + article container ---- */
.ctd-bcard__cat { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #249cb3; background: rgba(36,156,179,.10); border-radius: 30px; padding: 3px 11px; margin-bottom: 8px; }
.ctd-article { max-width: 860px; margin: 0 auto; }
.ctd-article__back { margin-top: 34px; }

/* ============================================================
   PREMIUM / EDITORIAL BLOG (scoped to blog pages only)
   ============================================================ */

/* Hero richness */
.ctd-blog-hero { position: relative; }
.ctd-blog-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 420px at 82% -12%, rgba(54,224,247,.18), transparent 60%); }
.ctd-blog-hero .banner_content { position: relative; z-index: 1; }
.ctd-blog-pill { display: inline-block; background: rgba(54,224,247,.14); color: #36e0f7; border: 1px solid rgba(54,224,247,.32); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12px; padding: 6px 15px; border-radius: 30px; margin-bottom: 18px; }
.ctd-blog-hmeta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; color: rgba(255,255,255,.78); font-size: 14px; margin-top: 16px; }
.ctd-blog-hmeta-item { display: inline-flex; align-items: center; gap: 8px; }
.ctd-blog-hmeta-item i { color: #36e0f7; }

/* Detail: featured figure */
.ctd-blog-figure { border-radius: 20px; overflow: hidden; border: 1px solid #e4eef1; box-shadow: 0 40px 90px -52px rgba(5,43,69,.6); margin-bottom: 36px; background: #0b1a33; }
.ctd-blog-figure img { width: 100%; height: auto; display: block; }

/* Detail: editorial body — same scale as .ctd-prose / .ctd-cs-body, tuned for premium long-form */
.ctd-blog-body { font-size: 17.5px; color: #3f4d59; line-height: 1.75; }
.ctd-blog-body > p:first-of-type { font-size: 19px; line-height: 1.7; color: #2c3a47; }
.ctd-blog-body p { margin: 0 0 20px; }
.ctd-blog-body h2 { font-size: 31px; line-height: 1.28; color: #052b45; font-weight: 800; margin: 46px 0 16px; letter-spacing: -.4px; scroll-margin-top: 96px; }
.ctd-blog-body h3 { font-size: 23px; line-height: 1.35; color: #052b45; font-weight: 700; margin: 32px 0 10px; scroll-margin-top: 96px; }
.ctd-blog-body h2:first-child, .ctd-blog-body h3:first-child { margin-top: 0; }
.ctd-blog-body h2 br, .ctd-blog-body h3 br { display: none; } /* neutralise CKEditor <br>&nbsp; artifacts */
.ctd-blog-body h2 + p, .ctd-blog-body h3 + p { margin-top: 0; }
.ctd-blog-body ul, .ctd-blog-body ol { margin: 0 0 22px; padding-left: 24px; }
.ctd-blog-body li { margin-bottom: 10px; line-height: 1.75; padding-left: 4px; }
.ctd-blog-body ul li::marker { color: #249cb3; }
.ctd-blog-body ol li::marker { color: #249cb3; font-weight: 700; }
.ctd-blog-body a { color: #249cb3; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ctd-blog-body a:hover { color: #052b45; }
.ctd-blog-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 24px 0; }
.ctd-blog-body blockquote { margin: 28px 0; padding: 18px 26px; border-left: 4px solid #36e0f7; background: #f5fafb; border-radius: 0 12px 12px 0; color: #052b45; font-size: 18px; font-style: italic; }
.ctd-blog-body strong { color: #052b45; font-weight: 700; }
.ctd-blog-body em { color: #41505d; }

/* Detail: sticky aside */
.ctd-blog-aside { position: sticky; top: 100px; background: #fff; border: 1px solid #e4eef1; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -44px rgba(5,43,69,.42); }
.ctd-blog-aside__bar { height: 5px; background: linear-gradient(to right, #249cb3, #36e0f7); }
.ctd-blog-aside__in { padding: 26px; }
.ctd-blog-aside__h { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #8597a0; font-weight: 700; margin: 0 0 14px; }
.ctd-blog-aside__row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #e7eef1; font-size: 14px; }
.ctd-blog-aside__row:last-of-type { border-bottom: 0; }
.ctd-blog-aside__k { color: #8597a0; font-weight: 600; }
.ctd-blog-aside__v { color: #052b45; font-weight: 700; text-align: right; }
.ctd-blog-aside__cta { margin-top: 18px; padding: 20px; border-radius: 14px; background: #f5fafb; text-align: center; }
.ctd-blog-aside__cta p { color: #052b45; font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.ctd-blog-aside .ctd-cs-back { display: block; width: 100%; text-align: center; margin-top: 16px; }
@media (max-width: 991px) { .ctd-blog-aside { position: static; margin-top: 34px; } }

/* Listing: featured first post (reuses .ctd-blog-card) */
.ctd-blog-featured { margin-bottom: 30px; }
.ctd-blog-featured .ctd-blog-card__media { min-height: 320px; }

@media (max-width: 575px) {
    .ctd-blog-body > p:first-of-type { font-size: 17px; }
    .ctd-blog-body h2 { font-size: 22px; }
    .ctd-blog-body h3 { font-size: 18px; }
    .ctd-blog-figure { border-radius: 14px; margin-bottom: 26px; }
    .ctd-blog-featured .ctd-blog-card__media { min-height: 220px; }
}

/* ============================================================
   Artelligence typography alignment pass
   Keeps CTD additions on the original template rhythm.
   ============================================================ */

.ctd-hero .banner_content > span:not(.ctd-blog-hmeta-item),
.ctd-blog-pill {
    display: inline-block !important;
    color: #36e0f7 !important;
    font-family: 'Manrope', sans-serif;
    font-size: 14px !important;
    line-height: 20px;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
    margin-bottom: 16px !important;
}

.ctd-hero .banner_content h1 {
    font-size: 46px;
    line-height: 1.17;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 16px;
    padding-right: 0;
}

.ctd-blog-hero .banner_content h1 {
    font-size: 42px;
    line-height: 1.2;
    max-width: 920px;
}

.ctd-hero .banner_content p {
    font-size: 18px;
    line-height: 1.68;
    font-weight: 400;
    color: rgba(255,255,255,.88) !important;
    margin-bottom: 26px;
}

.ctd-sec-head {
    margin-bottom: 40px;
}

.ctd-sec-head h5,
.faq-section .faq_content h5,
.ctd-cs-support .ctd-sec-head h5 {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #249cb3;
    margin-bottom: 8px;
}

.ctd-sec-head h2,
.faq-section .faq_content h2,
.ctd-cta-band h2,
.ctd-cs-support .ctd-sec-head h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.ctd-sec-head p,
.ctd-audit-lead,
.ctd-cta-band p,
.ctd-offer p,
.ctd-empty,
.ctd-work-cta p {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 400;
}

.ctd-cards .service-box h4,
.ctd-step h4,
.ctd-plan h3,
.ctd-work-card__title,
.ctd-bcard__body h4,
.ctd-blog-card__body h3,
.ctd-portfolio .overlay-box .content h4,
.ctd-cs-support .service-box h4 {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
    color: #052b45;
}

.ctd-cards .service-box p,
.ctd-step p,
.ctd-plan ul li,
.ctd-plan__for,
.ctd-note,
.ctd-offer__points li,
.ctd-panel__sub,
.ctd-work-card__cat,
.ctd-bcard__date,
.ctd-bcard__excerpt,
.ctd-blog-card__meta,
.ctd-blog-card__body p,
.ctd-cs-support .service-box p {
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0;
}

.ctd-cards .service-box p,
.ctd-step p,
.ctd-blog-card__body p,
.ctd-cs-support .service-box p {
    font-size: 16px;
    line-height: 1.68;
}

.ctd-cards .service-box p + p,
.ctd-plan__for,
.ctd-note,
.ctd-offer__points li,
.ctd-incl .ctd-check-list li,
.ctd-x-list li {
    font-size: 15px !important;
    line-height: 1.62 !important;
}

.ctd-ind-card__title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
}

.ctd-ind-card__text,
.ctd-ind-card__cta,
.ctd-plan__badge,
.ctd-blog-card__cat,
.ctd-bcard__cat,
.ctd-work-card__cat,
.ctd-portfolio .overlay-box .category,
.ctd-blog-hmeta,
.ctd-blog-aside__h {
    letter-spacing: 0;
}

.ctd-plan .price {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.ctd-plan .price span {
    font-size: 15px;
    line-height: 1.45;
}

.ctd-pricing > .container > p.text-center,
.ctd-cards > .container > p.text-center {
    font-size: 16px !important;
    line-height: 1.65 !important;
}

.ctd-audit-form h3 {
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}

.ctd-audit-form > p,
.ctd-audit-form input,
.ctd-audit-form textarea {
    font-family: 'Manrope', sans-serif;
    font-size: 16px !important;
    line-height: 1.55;
}

.ctd-check-list li,
.ctd-x-list li {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

.ctd-panel__title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}

.ctd-panel__sub {
    font-size: 14px;
    line-height: 1.55;
}

.ctd-seo-panel h3 {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}

.ctd-seo-panel p {
    font-size: 16px;
    line-height: 1.68;
}

.ctd-prose,
.ctd-blog-body,
.ctd-cs-body {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.76;
    color: #4f5f68;
}

.ctd-prose p,
.ctd-blog-body p,
.ctd-cs-body p {
    font-size: 17px;
    line-height: 1.76;
    color: #4f5f68;
    margin-bottom: 18px;
}

.ctd-prose > p:first-of-type,
.ctd-blog-body > p:first-of-type,
.ctd-cs-body > p:first-of-type {
    font-size: 18px;
    line-height: 1.75;
    color: #344450;
}

.ctd-prose h2,
.ctd-blog-body h2,
.ctd-cs-body h2 {
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
    color: #052b45;
    margin: 42px 0 14px;
}

.ctd-prose h3,
.ctd-blog-body h3,
.ctd-cs-body h3 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0;
    color: #052b45;
    margin: 30px 0 10px;
}

.ctd-prose ul,
.ctd-prose ol,
.ctd-blog-body ul,
.ctd-blog-body ol,
.ctd-cs-body ul,
.ctd-cs-body ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.ctd-prose li,
.ctd-blog-body li,
.ctd-cs-body li {
    font-size: 17px;
    line-height: 1.72;
    margin-bottom: 9px;
}

.faq-section .accordion-card a.btn.btn-link h4 {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0;
}

.faq-section .accordian-inner p,
.faq-section .card-body p,
.faq-section .faq_content p {
    font-size: 16px;
    line-height: 1.68;
}

body a.lets_talk:not(.nav-link),
.ctd-hero .banner_content .lets_talk,
.ctd-audit-form .theme-btn,
.ctd-work-cta__ghost,
.ctd-ghost-btn,
.ctd-cs-back,
.ctd-blog-aside .ctd-cs-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
}

body a.lets_talk:not(.nav-link) {
    padding: 5px 5px 5px 34px;
    border-radius: 30px 30px 30px 0;
    color: #fff !important;
    background-image: linear-gradient(to right, #02162d 0%, #36e0f7 100%);
}

.ctd-hero .banner_content .lets_talk {
    font-size: 18px !important;
    line-height: 22px !important;
    letter-spacing: 0 !important;
    padding: 5px 5px 5px 34px !important;
}

body a.lets_talk:not(.nav-link) .circle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    line-height: 44px;
    margin: 0 0 0 12px;
    border-radius: 100px;
    background: #fff;
    color: #052b45;
}

.ctd-hero .banner_content .lets_talk .circle {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    margin-left: 12px !important;
}

body a.lets_talk:not(.nav-link) .circle:before {
    font-size: 16px;
    padding: 0;
    color: #052b45;
}

body a.lets_talk:not(.nav-link):hover {
    color: #fff !important;
    background-image: linear-gradient(to right, #052b45 0%, #052b45 100%);
}

body a.lets_talk:not(.nav-link):hover .circle {
    background: #02162d;
    color: #fff;
}

body a.lets_talk:not(.nav-link):hover .circle:before {
    color: #fff;
}

.ctd-link,
.ctd-cards .service-box .read_more,
.ctd-portfolio .filter-btns li {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: 0;
}

.ctd-link,
.ctd-cards .service-box .read_more {
    color: #249cb3;
    text-decoration: none;
}

.ctd-link:hover,
.ctd-cards .service-box .read_more:hover {
    color: #052b45;
}

@media (max-width: 991px) {
    .ctd-hero .banner_content h1,
    .ctd-blog-hero .banner_content h1 {
        font-size: 38px;
        line-height: 1.2;
    }

    .ctd-sec-head h2,
    .faq-section .faq_content h2,
    .ctd-cta-band h2,
    .ctd-audit .ctd-sec-head h2,
    .ctd-cs-support .ctd-sec-head h2 {
        font-size: 36px;
        line-height: 1.22;
    }
}

@media (max-width: 767px) {
    .ctd-hero .banner-section {
        padding: 34px 0 44px;
    }

    .ctd-hero .banner_content {
        text-align: left;
    }

    .ctd-hero .banner_content h1,
    .ctd-blog-hero .banner_content h1 {
        font-size: 34px;
        line-height: 1.24;
    }

    .ctd-hero .banner_content p {
        font-size: 16px;
        line-height: 1.62;
        padding: 0;
    }

    .ctd-sec-head h2,
    .faq-section .faq_content h2,
    .ctd-cta-band h2,
    .ctd-audit .ctd-sec-head h2,
    .ctd-cs-support .ctd-sec-head h2 {
        font-size: 31px;
        line-height: 1.25;
    }

    .ctd-sec-head h5,
    .faq-section .faq_content h5,
    .ctd-cs-support .ctd-sec-head h5 {
        font-size: 16px;
        line-height: 1.45;
    }

    .ctd-cards .service-box h4,
    .ctd-step h4,
    .ctd-plan h3,
    .ctd-work-card__title,
    .ctd-bcard__body h4,
    .ctd-blog-card__body h3,
    .ctd-portfolio .overlay-box .content h4,
    .ctd-cs-support .service-box h4 {
        font-size: 19px;
        line-height: 1.35;
    }

    .ctd-prose h2,
    .ctd-blog-body h2,
    .ctd-cs-body h2 {
        font-size: 24px;
        line-height: 1.35;
        margin-top: 34px;
    }

    .ctd-prose h3,
    .ctd-blog-body h3,
    .ctd-cs-body h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .ctd-blog-card__body h3 {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .ctd-hero .banner_content > span:not(.ctd-blog-hmeta-item),
    .ctd-blog-pill {
        font-size: 12px !important;
        line-height: 18px;
        margin-bottom: 12px !important;
    }

    .ctd-hero .banner_content h1,
    .ctd-blog-hero .banner_content h1 {
        font-size: 30px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .ctd-hero .banner_content .banner-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 11px;
    }

    body a.lets_talk:not(.nav-link),
    .ctd-hero .banner_content .lets_talk,
    .ctd-audit-form .theme-btn,
    .ctd-work-cta__ghost,
    .ctd-ghost-btn,
    .ctd-cs-back,
    .ctd-blog-aside .ctd-cs-back {
        font-size: 15px !important;
        line-height: 20px !important;
    }

    body a.lets_talk:not(.nav-link) {
        padding: 4px 4px 4px 22px;
    }

    .ctd-hero .banner_content .lets_talk {
        padding: 4px 4px 4px 22px !important;
    }

    body a.lets_talk:not(.nav-link) .circle {
        width: 38px;
        height: 38px;
        line-height: 38px;
        margin-left: 10px;
    }

    .ctd-hero .banner_content .lets_talk .circle {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        margin-left: 10px !important;
    }

    .ctd-sec-head h2,
    .faq-section .faq_content h2,
    .ctd-cta-band h2,
    .ctd-audit .ctd-sec-head h2,
    .ctd-cs-support .ctd-sec-head h2 {
        font-size: 28px;
        line-height: 1.28;
    }

    .ctd-cards .service-box p,
    .ctd-step p,
    .ctd-blog-card__body p,
    .ctd-cs-support .service-box p,
    .ctd-check-list li,
    .ctd-prose,
    .ctd-blog-body,
    .ctd-cs-body,
    .ctd-prose p,
    .ctd-blog-body p,
    .ctd-cs-body p,
    .ctd-prose li,
    .ctd-blog-body li,
    .ctd-cs-body li {
        font-size: 16px;
        line-height: 1.68;
    }

    .ctd-prose > p:first-of-type,
    .ctd-blog-body > p:first-of-type,
    .ctd-cs-body > p:first-of-type {
        font-size: 17px;
        line-height: 1.68;
    }

    .faq-section .accordion-card a.btn.btn-link h4 {
        font-size: 16px;
        line-height: 1.42;
    }

    .faq-section .accordian-inner p,
    .faq-section .card-body p,
    .faq-section .faq_content p {
        font-size: 15px;
        line-height: 1.62;
    }
}

.ctd-ind-card__text,
.ctd-panel__sub,
.ctd-blog-aside__cta p,
.footer-section .copyright p {
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0;
}

.ctd-check-list li:before,
.ctd-plan ul li:before {
    content: "";
    width: 7px;
    height: 12px;
    border: solid #249cb3;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 11px;
    left: 2px;
    font-family: inherit;
}

.ctd-check-list.on-dark li:before {
    border-color: #36e0f7;
}

.ctd-x-list li:before {
    content: "";
    width: 10px;
    height: 2px;
    background: #9fb0b8;
    top: 18px;
    left: 0;
    font-family: inherit;
}

/* ============================================================
   Mobile responsiveness audit fixes (scoped to mobile; desktop unchanged)
   ============================================================ */
@media (max-width: 991px) {
    /* Prevent any stray element from causing horizontal scroll.
       (Sticky sidebars are already set to static at <=991px, so this is safe.) */
    body { overflow-x: hidden; }
    img { max-width: 100%; height: auto; }

    /* Contact: breathing room between the info column and the form card when stacked */
    .ctd-audit .col-lg-7 { margin-top: 32px; }
    .ctd-audit-form { padding: 28px 24px; }
    .ctd-audit-form .form-group { margin-bottom: 14px; }

    /* Footer: premium spacing for stacked columns */
    .footer-section .middle-portion > .row > [class*="col-"] { margin-bottom: 30px; }
    .footer-section .middle-portion > .row > [class*="col-"]:last-child { margin-bottom: 0; }
}

@media (max-width: 575px) {
    .ctd-audit { padding: 46px 0; }
    .ctd-audit-form { padding: 22px 18px; }
    .ctd-audit .col-lg-7 { margin-top: 24px; }
    /* Full-width, never-clipped submit button on phones */
    .ctd-audit-form .theme-btn { width: 100%; }

    .footer-section .copyright { text-align: center; }
    .footer-section .copyright p { font-size: 13px; line-height: 1.6; }
}

/* ============================================================
   Hero button readability fix
   The theme/brand gradient ends in bright cyan (#36e0f7); with centred
   white text on a wide button the label became invisible. Use a navy ->
   dark-teal gradient so white text stays readable across the whole button
   (brand-consistent, applies to all hero CTAs incl. About on mobile).
   ============================================================ */
.ctd-hero .banner_content .lets_talk,
.ctd-hero .banner_content .button1.lets_talk {
    background-image: linear-gradient(to right, #052b45 0%, #178098 100%) !important;
    color: #fff !important;
}
.ctd-hero .banner_content .lets_talk .txt,
.ctd-hero .banner_content .lets_talk { color: #fff !important; }

/* Final CTA band uses the Artelligence white pill treatment on every viewport. */
.ctd-cta-band a.lets_talk,
.ctd-cta-band a.button1.lets_talk {
    background-image: none !important;
    background-color: #fff !important;
    color: #052b45 !important;
}

.ctd-cta-band a.lets_talk .circle,
.ctd-cta-band a.button1.lets_talk .circle {
    background-color: #052b45 !important;
    color: #fff !important;
}

.ctd-cta-band a.lets_talk .circle:before,
.ctd-cta-band a.button1.lets_talk .circle:before {
    color: #fff !important;
}

body .ctd-cta-band a.lets_talk:not(.nav-link):hover,
body .ctd-cta-band a.button1.lets_talk:not(.nav-link):hover,
body .ctd-cta-band a.lets_talk:not(.nav-link):focus-visible,
body .ctd-cta-band a.button1.lets_talk:not(.nav-link):focus-visible {
    background-image: none !important;
    background-color: #eafcfe !important;
    color: #052b45 !important;
}

body .ctd-cta-band a.lets_talk:not(.nav-link):hover .circle,
body .ctd-cta-band a.button1.lets_talk:not(.nav-link):hover .circle,
body .ctd-cta-band a.lets_talk:not(.nav-link):focus-visible .circle,
body .ctd-cta-band a.button1.lets_talk:not(.nav-link):focus-visible .circle {
    background-color: #02162d !important;
    color: #fff !important;
}

/* ============================================================
   Final mobile navigation polish
   Scoped to the CTD Artelligence header so the desktop mega menu and
   page content stay unchanged.
   ============================================================ */
@media (max-width: 991px) {
    .ctd-art-header .navbar {
        align-items: center;
    }

    .ctd-art-header .navbar-brand {
        display: inline-flex;
        align-items: center;
    }

    .ctd-art-header .navbar-toggler {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        width: 34px;
        min-height: 34px;
        margin-left: auto;
    }

    .ctd-art-header .navbar-collapse {
        width: 100% !important;
        flex-basis: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(54,224,247,.42) rgba(255,255,255,.08);
    }

    .ctd-art-header .navbar-collapse.show {
        height: calc(100vh - 82px);
        height: calc(100dvh - 82px);
        max-height: calc(100vh - 82px);
        max-height: calc(100dvh - 82px);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scroll-behavior: smooth;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .ctd-art-header .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }

    .ctd-art-header .navbar-collapse::-webkit-scrollbar-track {
        background: rgba(255,255,255,.06);
        border-radius: 999px;
    }

    .ctd-art-header .navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(54,224,247,.38);
        border-radius: 999px;
    }

    .ctd-art-header .navbar-collapse .nav-item a.nav-link {
        padding: 11px 4px !important;
        line-height: 1.3;
    }

    .ctd-art-header .navbar-collapse .navbar-nav .active > a.nav-link:not(.lets_talk),
    .ctd-art-header .navbar-collapse .ctd-has-mega.open > a.nav-link {
        color: #fff !important;
        background: rgba(54,224,247,.10) !important;
        border-bottom-color: transparent;
        border-radius: 10px;
        box-shadow: inset 0 0 0 1px rgba(54,224,247,.14);
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ctd-art-header .ctd-has-mega.open .ctd-mega {
        padding: 3px 0 8px 12px;
        margin: 3px 0 7px 6px;
        border-left: 1px solid rgba(54,224,247,.32);
    }

    .ctd-art-header .ctd-has-mega.open .ctd-mega__col {
        margin-bottom: 8px;
    }

    .ctd-art-header .ctd-has-mega.open .ctd-mega__col:last-child {
        margin-bottom: 0;
    }

    .ctd-art-header .ctd-has-mega.open .ctd-mega__h {
        margin: 4px 0 3px;
        color: rgba(54,224,247,.92);
        letter-spacing: 1.1px;
    }

    .ctd-art-header .ctd-has-mega.open .ctd-mega a {
        display: flex;
        align-items: center;
        min-height: 35px;
        padding: 4px 0 !important;
        color: #fff !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .ctd-art-header .ctd-has-mega.open .ctd-mega a:hover,
    .ctd-art-header .ctd-has-mega.open .ctd-mega a:focus-visible {
        color: #36e0f7 !important;
        background: transparent !important;
    }
}

@media (max-width: 575px) {
    .ctd-art-header .navbar-collapse.show {
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        padding: 9px 14px max(16px, env(safe-area-inset-bottom));
    }

    .ctd-art-header .navbar-collapse .nav-item a.nav-link {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .ctd-art-header .ctd-has-mega.open .ctd-mega a {
        min-height: 34px;
        padding-top: 3px !important;
        padding-bottom: 3px !important;
    }
}

/* ============================================================
   Premium hero breadcrumbs + final industry mobile hero polish
   ============================================================ */
.ctd-breadcrumb {
    margin: 0 0 12px;
    font-family: 'Manrope', sans-serif;
}

.ctd-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctd-breadcrumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: rgba(255,255,255,.74);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.ctd-breadcrumb li + li::before {
    content: ">";
    margin: 0 8px;
    color: #36e0f7;
    font-size: 11px;
    line-height: 1;
    opacity: .78;
}

.ctd-breadcrumb a,
.ctd-breadcrumb span {
    color: inherit;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ctd-breadcrumb a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.ctd-breadcrumb a:hover,
.ctd-breadcrumb a:focus-visible {
    color: #36e0f7;
    border-bottom-color: rgba(54,224,247,.45);
}

.ctd-breadcrumb span[aria-current="page"] {
    color: #fff;
}

.ctd-blog-hero .ctd-breadcrumb {
    margin-bottom: 14px;
}

@media (max-width: 767px) {
    .ctd-hero .banner_content h1,
    .ctd-blog-hero .banner_content h1 {
        overflow-wrap: break-word;
    }

    .ctd-hero .banner_content p {
        max-width: 100%;
    }

    .ctd-breadcrumb {
        margin-bottom: 10px;
    }

    .ctd-breadcrumb li {
        font-size: 12.5px;
        line-height: 18px;
    }
}

@media (max-width: 575px) {
    .ctd-hero .banner_content .banner-button {
        width: 100%;
    }

    .ctd-hero .banner_content .banner-button .lets_talk,
    .ctd-hero .banner_content .banner-button .button1.lets_talk {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        max-width: 100%;
        min-height: 46px;
        white-space: normal;
        text-align: left;
    }

    .ctd-hero .banner_content .banner-button .button1.lets_talk {
        width: 100%;
        max-width: 330px;
    }

    .ctd-hero .banner_content .banner-button .lets_talk:not(.button1) {
        max-width: 230px;
    }

    .ctd-hero .banner_content .banner-button .lets_talk .circle {
        flex: 0 0 auto;
    }

    .ctd-hero-visual {
        margin-top: 24px;
    }

    .ctd-breadcrumb ol {
        row-gap: 3px;
    }

    .ctd-breadcrumb li {
        font-size: 12px;
        line-height: 17px;
    }

    .ctd-breadcrumb li + li::before {
        margin: 0 6px;
    }
}

/* ============================================================
   Industry "Related Insights" carousel (real published blog posts)
   ============================================================ */
.ctd-related { padding: 80px 0; background: #f5fafb; }
.ctd-rel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.ctd-rel-arrows { display: flex; gap: 10px; flex: 0 0 auto; }
.ctd-rel-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #cfe0e6; background: #fff; color: #052b45; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s ease; }
.ctd-rel-arrow:hover { background: linear-gradient(to right, #249cb3, #36e0f7); color: #fff; border-color: transparent; }

.ctd-rel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 6px 2px 16px; }
/* A single relevant article: centre it so it reads as intentional, not lonely. */
.ctd-rel-track--single { justify-content: center; }
.ctd-rel-track::-webkit-scrollbar { height: 6px; }
.ctd-rel-track::-webkit-scrollbar-track { background: transparent; }
.ctd-rel-track::-webkit-scrollbar-thumb { background: rgba(5,43,69,.18); border-radius: 10px; }

.ctd-rel-card { scroll-snap-align: start; flex: 0 0 320px; max-width: 320px; display: flex; flex-direction: column; background: #fff; border: 1px solid #e7eff2; border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 18px 42px -28px rgba(5,43,69,.35); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.ctd-rel-card:hover { transform: translateY(-6px); box-shadow: 0 30px 58px -28px rgba(5,43,69,.45); border-color: rgba(36,156,179,.4); }
.ctd-rel-card__media { display: block; height: 180px; overflow: hidden; background: #0b1a33; }
.ctd-rel-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.ctd-rel-card:hover .ctd-rel-card__media img { transform: scale(1.05); }
.ctd-rel-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.ctd-rel-card__cat { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #249cb3; background: rgba(36,156,179,.10); border-radius: 30px; padding: 3px 11px; }
.ctd-rel-card__date { color: #8597a0; font-size: 13px; margin: 9px 0 6px; }
.ctd-rel-card__title { font-size: 18px; line-height: 1.35; color: #052b45; font-weight: 700; margin: 0 0 10px; }
.ctd-rel-card__excerpt { color: #566377; font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.ctd-rel-card .ctd-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }

/* Single related article: premium horizontal card on tablet/desktop so the band never looks empty */
@media (min-width: 768px) {
    .ctd-rel-track--single .ctd-rel-card { flex: 0 0 720px; max-width: 720px; flex-direction: row; }
    .ctd-rel-track--single .ctd-rel-card__media { flex: 0 0 290px; width: 290px; height: auto; min-height: 248px; }
    .ctd-rel-track--single .ctd-rel-card__body { justify-content: center; padding: 30px 34px; }
    .ctd-rel-track--single .ctd-rel-card__title { font-size: 22px; }
    .ctd-rel-track--single .ctd-rel-card__excerpt { font-size: 15px; }
}

@media (max-width: 991px) { .ctd-related { padding: 64px 0; } }
@media (max-width: 575px) {
    .ctd-related { padding: 46px 0; }
    .ctd-related .container { padding-left: 20px; padding-right: 20px; }
    .ctd-rel-head { margin-bottom: 22px; }
    .ctd-rel-arrows { display: none; }                       /* swipe on mobile */
    .ctd-rel-track { gap: 16px; padding: 4px 0 14px; }
    /* Premium swipeable width; multi-card shows a peek of the next, single card centres. */
    .ctd-rel-card { flex: 0 0 87%; max-width: 87%; }
    .ctd-rel-track--single .ctd-rel-card { flex-basis: 100%; max-width: 100%; }
    .ctd-rel-card__media { height: 196px; }
    .ctd-rel-card__title { font-size: 17px; }
}

/* ============================================================
   CTD Website Audit Assistant
   ============================================================ */
.ctd-assistant,
.ctd-assistant * {
    box-sizing: border-box;
}

.ctd-assistant {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    font-family: inherit;
    pointer-events: none;
}

.ctd-assistant__launcher,
.ctd-assistant__panel {
    pointer-events: auto;
}

.ctd-assistant__launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    max-width: calc(100vw - 32px);
    border: 1px solid rgba(54, 224, 247, .38);
    border-radius: 999px;
    padding: 8px 18px 8px 8px;
    background: linear-gradient(135deg, #061a31 0%, #082942 54%, #249cb3 140%);
    color: #fff;
    box-shadow: 0 22px 52px -24px rgba(5, 43, 69, .65);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ctd-assistant__launcher:hover,
.ctd-assistant__launcher:focus {
    transform: translateY(-2px);
    border-color: rgba(54, 224, 247, .7);
    box-shadow: 0 28px 58px -24px rgba(5, 43, 69, .78);
}

.ctd-assistant__launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: rgba(54, 224, 247, .15);
    color: #36e0f7;
}

.ctd-assistant__launcher-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.ctd-assistant__panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    display: flex;
    flex-direction: column;
    width: 392px;
    max-width: calc(100vw - 32px);
    height: min(640px, calc(100dvh - 112px));
    max-height: calc(100dvh - 112px);
    overflow: hidden;
    border: 1px solid rgba(54, 224, 247, .24);
    border-radius: 18px;
    background: #061a31;
    box-shadow: 0 36px 90px -40px rgba(0, 0, 0, .85);
    opacity: 0;
    transform: translateY(14px) scale(.98);
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.ctd-assistant.is-open .ctd-assistant__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.ctd-assistant__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, #071a32, #082a45);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ctd-assistant__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #36e0f7;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.ctd-assistant__head h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.ctd-assistant__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
}

.ctd-assistant__close:hover,
.ctd-assistant__close:focus {
    background: rgba(54, 224, 247, .14);
    border-color: rgba(54, 224, 247, .35);
}

.ctd-assistant__messages {
    flex: 1 1 auto;
    min-height: 150px;
    overflow-y: auto;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(54, 224, 247, .12), transparent 260px),
        linear-gradient(180deg, #061a31 0%, #071e38 100%);
    -webkit-overflow-scrolling: touch;
}

.ctd-assistant__messages::-webkit-scrollbar,
.ctd-assistant__lead::-webkit-scrollbar {
    width: 6px;
}

.ctd-assistant__messages::-webkit-scrollbar-thumb,
.ctd-assistant__lead::-webkit-scrollbar-thumb {
    background: rgba(54, 224, 247, .24);
    border-radius: 999px;
}

.ctd-assistant__message {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 12px;
    border-radius: 14px;
    padding: 11px 13px;
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .75);
}

.ctd-assistant__message p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
}

.ctd-assistant__message--assistant {
    color: #dceef4;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
}

.ctd-assistant__message--user {
    margin-left: auto;
    color: #052b45;
    background: #e7fbff;
    border: 1px solid rgba(54, 224, 247, .34);
}

.ctd-assistant__sources {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.ctd-assistant__sources a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 5px 9px;
    color: #36e0f7;
    background: rgba(54, 224, 247, .1);
    border: 1px solid rgba(54, 224, 247, .2);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

.ctd-assistant__sources a:hover {
    color: #fff;
    border-color: rgba(54, 224, 247, .45);
}

.ctd-assistant__chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    background: #071e38;
    border-top: 1px solid rgba(255, 255, 255, .07);
    -webkit-overflow-scrolling: touch;
}

.ctd-assistant__chips::-webkit-scrollbar {
    display: none;
}

.ctd-assistant__chips button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid rgba(54, 224, 247, .24);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .06);
    color: #e9f7fb;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
}

.ctd-assistant__chips button:hover,
.ctd-assistant__chips button:focus {
    color: #052b45;
    background: #36e0f7;
}

.ctd-assistant__composer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 16px;
    background: #061a31;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.ctd-assistant__composer input {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 0 15px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
    line-height: 46px;
    outline: none;
}

.ctd-assistant__composer input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.ctd-assistant__composer input:focus {
    border-color: rgba(54, 224, 247, .55);
    box-shadow: 0 0 0 3px rgba(54, 224, 247, .12);
}

.ctd-assistant__composer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 0;
    border-radius: 50%;
    background: #36e0f7;
    color: #052b45;
    cursor: pointer;
}

.ctd-assistant__composer button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.ctd-assistant__lead {
    flex: 0 0 auto;
    max-height: min(470px, 58dvh);
    overflow-y: auto;
    padding: 16px;
    background: #08233d;
    border-top: 1px solid rgba(54, 224, 247, .14);
    -webkit-overflow-scrolling: touch;
}

.ctd-assistant__lead[hidden] {
    display: none;
}

.ctd-assistant__lead-head h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.ctd-assistant__lead-head p,
.ctd-assistant__privacy,
.ctd-assistant__status {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12.5px;
    line-height: 1.5;
}

.ctd-assistant__lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.ctd-assistant__lead label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    color: #dceef4;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.ctd-assistant__lead input,
.ctd-assistant__lead textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    padding: 10px 11px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    outline: none;
}

.ctd-assistant__lead textarea {
    min-height: 82px;
    resize: vertical;
}

.ctd-assistant__lead input:focus,
.ctd-assistant__lead textarea:focus {
    border-color: rgba(54, 224, 247, .55);
    box-shadow: 0 0 0 3px rgba(54, 224, 247, .1);
}

.ctd-assistant__lead-wide,
.ctd-assistant__privacy,
.ctd-assistant__lead-actions,
.ctd-assistant__status {
    grid-column: 1 / -1;
}

.ctd-assistant__privacy {
    margin-top: 10px;
}

.ctd-assistant__lead-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.ctd-assistant__lead-submit,
.ctd-assistant__lead-cancel {
    min-height: 42px;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
}

.ctd-assistant__lead-submit {
    border: 0;
    background: #36e0f7;
    color: #052b45;
}

.ctd-assistant__lead-cancel {
    border: 1px solid rgba(255, 255, 255, .15);
    background: transparent;
    color: #fff;
}

.ctd-assistant__status {
    margin-top: 9px;
}

@media (max-width: 575px) {
    .ctd-assistant {
        right: 12px;
        bottom: 14px;
        left: 12px;
    }

    .ctd-assistant__launcher {
        margin-left: auto;
        min-height: 50px;
        padding-right: 14px;
    }

    .ctd-assistant__launcher-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .ctd-assistant__launcher-text {
        font-size: 13px;
        white-space: normal;
        text-align: left;
    }

    .ctd-assistant__panel {
        left: 0;
        right: 0;
        bottom: 66px;
        width: auto;
        max-width: 100%;
        height: min(650px, calc(100dvh - 92px));
        max-height: calc(100dvh - 92px);
        border-radius: 16px;
    }

    .ctd-assistant__head {
        padding: 15px 14px 13px;
    }

    .ctd-assistant__head h2 {
        font-size: 16px;
    }

    .ctd-assistant__messages {
        padding: 14px;
    }

    .ctd-assistant__message {
        max-width: 92%;
        padding: 10px 12px;
    }

    .ctd-assistant__chips {
        padding: 10px 12px;
    }

    .ctd-assistant__composer {
        padding: 12px;
    }

    .ctd-assistant__composer input {
        height: 44px;
        line-height: 44px;
    }

    .ctd-assistant__composer button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .ctd-assistant__lead {
        max-height: 56dvh;
        padding: 14px;
    }

    .ctd-assistant__lead-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .ctd-assistant__launcher-text {
        max-width: 172px;
    }

    .ctd-assistant__message p {
        font-size: 13px;
    }
}

/* ============================================================
   Audit assistant — premium polish (compact, no duplicate launcher)
   ============================================================ */
/* Hide the floating launcher while the panel is open (no duplicate button underneath) */
.ctd-assistant.is-open .ctd-assistant__launcher {
    opacity: 0;
    visibility: hidden;
    transform: scale(.92);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

/* Compact desktop panel — ~70vh, leaves clear space below the navbar, covers less hero */
.ctd-assistant__panel {
    width: 384px;
    height: min(560px, 70dvh);
    max-height: 70dvh;
}
.ctd-assistant__messages { min-height: 120px; }

/* Quick chips wrap cleanly instead of clipping horizontally */
.ctd-assistant__chips {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 8px;
}
.ctd-assistant__chips button {
    flex: 0 1 auto;
    white-space: nowrap;
}

/* Subtle, thin scrollbar (Firefox) in the message area */
.ctd-assistant__messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(54,224,247,.3) transparent;
}

/* A little more breathing room in the input row */
.ctd-assistant__composer {
    padding: 14px 16px 18px;
}

/* Mobile: true bottom sheet anchored to the bottom edge, fully contained within the viewport */
@media (max-width: 575px) {
    /* Dimmed scrim so the sheet clearly reads as a layer above the page (visual only) */
    .ctd-assistant.is-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(4, 18, 32, .5);
        z-index: 0;
        pointer-events: none;
    }
    /* Panel pinned to the bottom; left+right insets guarantee it never exceeds the viewport */
    .ctd-assistant__panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 0;
        width: auto;
        max-width: none;
        height: auto;
        max-height: 80dvh;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
        z-index: 2;
        box-shadow: 0 -18px 60px -28px rgba(0, 0, 0, .7);
    }
    /* Every region stays within the panel (no child wider than 100%) */
    .ctd-assistant__head,
    .ctd-assistant__messages,
    .ctd-assistant__chips,
    .ctd-assistant__composer,
    .ctd-assistant__lead {
        max-width: 100%;
    }
    .ctd-assistant__messages { min-height: 96px; }

    /* Message bubbles wrap and never clip on the right */
    .ctd-assistant__message { max-width: 90%; }
    .ctd-assistant__message--user { max-width: 86%; }
    .ctd-assistant__message p { overflow-wrap: anywhere; word-break: break-word; }
    .ctd-assistant__sources { flex-wrap: wrap; }
    .ctd-assistant__sources a { max-width: 100%; overflow-wrap: anywhere; }

    /* Quick chips wrap cleanly instead of scrolling/clipping */
    .ctd-assistant__chips { flex-wrap: wrap; overflow: visible; gap: 8px; }
    .ctd-assistant__chips button { flex: 0 1 auto; max-width: 100%; white-space: normal; }

    /* Input row stays inside the panel; safe-area padding clears the iOS home indicator */
    .ctd-assistant__composer { gap: 8px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    .ctd-assistant__composer input { min-width: 0; max-width: 100%; }
}

/* ============================================================
   Audit assistant mobile viewport/form hardening
   ============================================================ */
.ctd-assistant__message,
.ctd-assistant__message p,
.ctd-assistant__sources a,
.ctd-assistant__chips button {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ctd-assistant__composer input {
    flex: 1 1 auto;
}

.ctd-assistant__lead-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ctd-assistant__lead-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid rgba(54, 224, 247, .22);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, .06);
    color: #36e0f7;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
}

.ctd-assistant__lead-back:hover,
.ctd-assistant__lead-back:focus {
    background: rgba(54, 224, 247, .12);
    color: #fff;
}

.ctd-assistant.is-lead-open .ctd-assistant__messages,
.ctd-assistant.is-lead-open .ctd-assistant__chips,
.ctd-assistant.is-lead-open .ctd-assistant__composer {
    display: none;
}

.ctd-assistant.is-lead-open .ctd-assistant__lead {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (max-width: 991px) {
    .ctd-assistant.is-lead-open .ctd-assistant__lead-grid {
        grid-template-columns: 1fr;
    }

    .ctd-assistant.is-lead-open .ctd-assistant__lead label,
    .ctd-assistant.is-lead-open .ctd-assistant__lead input,
    .ctd-assistant.is-lead-open .ctd-assistant__lead textarea,
    .ctd-assistant.is-lead-open .ctd-assistant__lead-actions,
    .ctd-assistant.is-lead-open .ctd-assistant__lead-submit,
    .ctd-assistant.is-lead-open .ctd-assistant__lead-cancel,
    .ctd-assistant.is-lead-open .ctd-assistant__privacy,
    .ctd-assistant.is-lead-open .ctd-assistant__status {
        width: 100%;
        max-width: 100%;
    }

    .ctd-assistant.is-lead-open .ctd-assistant__lead-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ctd-assistant.is-lead-open .ctd-assistant__lead-submit,
    .ctd-assistant.is-lead-open .ctd-assistant__lead-cancel {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .ctd-assistant {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
    }

    .ctd-assistant__launcher {
        max-width: calc(100vw - 20px);
        margin-right: 10px;
        margin-bottom: 10px;
    }

    .ctd-assistant__panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: auto;
        max-height: calc(100dvh - 24px);
        min-height: min(520px, calc(100dvh - 24px));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 18px;
        border-bottom: 1px solid rgba(54, 224, 247, .24);
    }

    .ctd-assistant__head {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    .ctd-assistant__head > div {
        min-width: 0;
    }

    .ctd-assistant__head h2 {
        overflow-wrap: anywhere;
    }

    .ctd-assistant__messages {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .ctd-assistant__message {
        width: fit-content;
        max-width: calc(100% - 8px);
    }

    .ctd-assistant__message--user {
        max-width: calc(100% - 18px);
        margin-right: 0;
    }

    .ctd-assistant__chips {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow: visible;
        padding: 10px 12px;
    }

    .ctd-assistant__chips button {
        flex: 0 1 auto;
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }

    .ctd-assistant__composer {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 11px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        overflow: hidden;
    }

    .ctd-assistant__composer input {
        min-width: 0;
        width: auto;
        max-width: 100%;
        flex: 1 1 0;
    }

    .ctd-assistant__composer button {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        max-width: 44px;
    }

    .ctd-assistant__lead {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 14px 14px calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .ctd-assistant__lead-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .ctd-assistant__lead label,
    .ctd-assistant__lead input,
    .ctd-assistant__lead textarea,
    .ctd-assistant__lead-actions,
    .ctd-assistant__lead-submit,
    .ctd-assistant__lead-cancel,
    .ctd-assistant__privacy,
    .ctd-assistant__status {
        width: 100%;
        max-width: 100%;
    }

    .ctd-assistant__lead-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ctd-assistant__lead-submit,
    .ctd-assistant__lead-cancel {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        text-align: center;
    }

    .ctd-assistant.is-lead-open .ctd-assistant__messages,
    .ctd-assistant.is-lead-open .ctd-assistant__chips,
    .ctd-assistant.is-lead-open .ctd-assistant__composer {
        display: none;
    }

    .ctd-assistant.is-lead-open .ctd-assistant__panel {
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .ctd-assistant.is-lead-open .ctd-assistant__lead {
        display: block;
    }
}

/* ============================================================
   Audit assistant — desktop audit-form layout (>= 992px)
   Stack fields (a ~400px panel is too narrow for two columns) and keep the
   submit button reachable by scrolling inside the form.
   ============================================================ */
@media (min-width: 992px) {
    .ctd-assistant__panel { width: 408px; }

    /* When the audit form is open, give it a little more height (still within viewport) */
    .ctd-assistant.is-lead-open .ctd-assistant__panel {
        height: min(620px, 78dvh);
        max-height: 78dvh;
    }

    /* Single-column, full-width fields instead of cramped two columns */
    .ctd-assistant.is-lead-open .ctd-assistant__lead-grid {
        grid-template-columns: 1fr;
    }
    .ctd-assistant.is-lead-open .ctd-assistant__lead label,
    .ctd-assistant.is-lead-open .ctd-assistant__lead input,
    .ctd-assistant.is-lead-open .ctd-assistant__lead textarea {
        width: 100%;
        max-width: 100%;
    }

    /* Submit clearly visible, with breathing room at the bottom of the scroll area */
    .ctd-assistant.is-lead-open .ctd-assistant__lead { padding-bottom: 18px; }
    .ctd-assistant.is-lead-open .ctd-assistant__lead-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .ctd-assistant.is-lead-open .ctd-assistant__lead-submit,
    .ctd-assistant.is-lead-open .ctd-assistant__lead-cancel {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}

/* ============================================================
   Awards & Badges — premium trust section (real third-party badges)
   ============================================================ */
.ctd-awards { padding: 66px 0; background: linear-gradient(180deg, #06243c 0%, #052b45 100%); position: relative; }
.ctd-awards::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(820px 340px at 50% -8%, rgba(54,224,247,.10), transparent 62%); }
.ctd-awards .container { position: relative; z-index: 1; }
.ctd-awards .ctd-sec-head { margin-bottom: 0; }
.ctd-awards .ctd-sec-head h5 { color: #36e0f7; }
.ctd-awards .ctd-sec-head h2 { color: #fff; }
.ctd-awards .ctd-sec-head p { color: rgba(255,255,255,.82); max-width: 720px; margin: 14px auto 0; font-size: 16px; line-height: 1.7; }

.ctd-awards-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 18px; max-width: 880px; margin: 34px auto 0; }
.ctd-award {
    flex: 0 0 200px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(54,224,247,.20);
    border-radius: 16px;
    box-shadow: 0 24px 54px -34px rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ctd-award:hover { transform: translateY(-6px); border-color: rgba(54,224,247,.45); box-shadow: 0 32px 64px -30px rgba(0,0,0,.8); }
.ctd-award__badge {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
}
.ctd-award__badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ctd-award__meta { display: flex; flex-direction: column; justify-content: flex-start; text-align: center; margin-top: 12px; }
.ctd-award__title { display: flex; align-items: center; justify-content: center; min-height: 36px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; }
.ctd-award__src { display: block; color: #36e0f7; font-size: 12px; font-weight: 600; letter-spacing: .4px; margin-top: 4px; }

.ctd-awards-cta { text-align: center; margin-top: 32px; }
.ctd-awards-cta p { color: rgba(255,255,255,.85); font-size: 16px; margin-bottom: 8px; }
.ctd-awards-cta__link { display: inline-flex; align-items: center; gap: 8px; color: #36e0f7; font-weight: 700; font-size: 15px; text-decoration: none; }
.ctd-awards-cta__link:hover { color: #fff; }
.ctd-awards-cta__link i { transition: transform .25s ease; }
.ctd-awards-cta__link:hover i { transform: translateX(3px); }

@media (max-width: 991px) {
    .ctd-awards { padding: 56px 0; }
    .ctd-award { flex-basis: 178px; max-width: 178px; }
}
@media (max-width: 575px) {
    .ctd-awards { padding: 46px 0; }
    .ctd-awards-grid { gap: 12px; margin-top: 28px; }
    .ctd-award { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); padding: 12px 12px 14px; }
    .ctd-award__badge { height: 78px; }
    .ctd-award__title { font-size: 13px; min-height: 34px; }
    .ctd-awards-cta { margin-top: 26px; }
}

/* ============================================================
   Final mobile-first homepage polish (<= 575px)
   ============================================================ */
@media (max-width: 575px) {
    /* Trust badges: compact swipe row instead of a tall 2-column block */
    .ctd-awards-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        max-width: none;
        margin-top: 26px;
        padding: 2px 2px 8px;
        scrollbar-width: none;
    }
    .ctd-awards-grid::-webkit-scrollbar { display: none; }
    .ctd-award { flex: 0 0 152px; max-width: 152px; scroll-snap-align: start; }
    .ctd-award__badge { height: 76px; }

    /* Portfolio: keep the homepage focused — show the best 4 projects on mobile */
    .ctd-work .row > [class*="col-"]:nth-child(n+5) { display: none; }

    /* Clear the floating Website Audit Assistant button at the foot of the page */
    .footer-section .copyright { padding-bottom: 66px; }
}

/* ============================================================
   About — "What Makes CTD Different" premium trust band
   ============================================================ */
.ctd-diff { padding: 84px 0; background: linear-gradient(180deg, #06243c 0%, #052b45 100%); position: relative; }
.ctd-diff::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(820px 360px at 50% -10%, rgba(54,224,247,.10), transparent 62%); }
.ctd-diff .container { position: relative; z-index: 1; }
.ctd-diff .ctd-sec-head h5 { color: #36e0f7; }
.ctd-diff .ctd-sec-head h2 { color: #fff; }
.ctd-diff__lead { color: rgba(255,255,255,.82); max-width: 760px; margin: 14px auto 0; font-size: 17px; line-height: 1.7; }
.ctd-diff .row { margin-top: 38px; }
.ctd-diff-card {
    height: 100%;
    padding: 28px 24px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(54,224,247,.18);
    border-radius: 16px;
    box-shadow: 0 24px 54px -36px rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ctd-diff-card:hover { transform: translateY(-6px); border-color: rgba(54,224,247,.42); box-shadow: 0 32px 64px -32px rgba(0,0,0,.8); }
.ctd-diff-ico {
    width: 54px; height: 54px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; color: #36e0f7;
    background: rgba(54,224,247,.12); border: 1px solid rgba(54,224,247,.25);
    margin-bottom: 16px;
}
.ctd-diff-card h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.ctd-diff-card p { color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.ctd-diff-link { display: inline-flex; align-items: center; gap: 7px; color: #36e0f7; font-weight: 700; font-size: 14px; text-decoration: none; }
.ctd-diff-link:hover { color: #fff; }
.ctd-diff-link i { transition: transform .25s ease; }
.ctd-diff-link:hover i { transform: translateX(3px); }
@media (max-width: 991px) { .ctd-diff { padding: 64px 0; } }
@media (max-width: 575px) {
    .ctd-diff { padding: 50px 0; }
    .ctd-diff__lead { font-size: 15px; }
    .ctd-diff .row { margin-top: 28px; }
    .ctd-diff-card { padding: 22px 20px; }
    .ctd-diff-ico { width: 48px; height: 48px; font-size: 19px; margin-bottom: 12px; }
    .ctd-diff-card h4 { font-size: 16px; }

    /* About "Who We Help": compact 2-up so the page stays short on mobile */
    .ctd-about-help .row { margin-left: -6px; margin-right: -6px; }
    .ctd-about-help .row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; width: 50%; padding-left: 6px; padding-right: 6px; }
    .ctd-about-help .service-box { padding: 20px 14px; height: 100%; }
    .ctd-about-help .service-box h4 { font-size: 15px; }
    .ctd-about-help .service-box p { font-size: 12.5px; line-height: 1.5; }
    .ctd-about-help .ctd-ico { width: 46px; height: 46px; font-size: 18px; }
}

/* ============================================================
   AI Automation & GPT Integrations — shared optional-enhancements section
   ============================================================ */
.ctd-ai { padding: 88px 0; background: #fff; }
.ctd-ai__lead { max-width: 760px; margin: 14px auto 0; color: #566377; font-size: 17px; line-height: 1.7; }
.ctd-ai .row { margin-top: 36px; }
.ctd-ai .service-box { height: 100%; }
/* AI cards inherit .ctd-cards .service-box styling; keep icon spacing tidy */
.ctd-ai .ctd-ico { margin-bottom: 16px; }

/* ------------------------------------------------------------
   Reliability: never let AOS leave content overlapping in
   print/PDF, reduced-motion or stalled mobile capture.
   (Below-the-fold [data-aos] elements otherwise stay at
   opacity:0 + translateY and render stacked/overlapping.)
   ------------------------------------------------------------ */
@media print {
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (max-width: 767px) {
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.ctd-ai__note {
    display: flex; align-items: flex-start; gap: 12px;
    max-width: 880px; margin: 30px auto 0;
    padding: 18px 22px;
    background: #f5fafb; border: 1px solid #e1eef1; border-left: 3px solid #249cb3;
    border-radius: 12px;
    color: #4a5b67; font-size: 15px; line-height: 1.65;
}
.ctd-ai__note i { color: #249cb3; font-size: 18px; margin-top: 2px; flex: 0 0 auto; }
.ctd-ai__cta { text-align: center; margin-top: 30px; }
@media (max-width: 991px) { .ctd-ai { padding: 64px 0; } }
@media (max-width: 575px) {
    .ctd-ai { padding: 52px 0; }
    .ctd-ai__lead { font-size: 15.5px; line-height: 1.65; }
    .ctd-ai .row { margin-top: 24px; }
    .ctd-ai__note { font-size: 14.5px; padding: 16px 18px; margin-top: 24px; }
}

/* ============================================================
   Blog article — editorial enhancements
   (Key Takeaways, Table of Contents, in-article CTA, sidebar links)
   ============================================================ */
.ctd-keytakeaways {
    background: linear-gradient(180deg, #06243c 0%, #052b45 100%);
    border: 1px solid rgba(54,224,247,.22);
    border-radius: 18px;
    padding: 26px 30px;
    margin: 0 0 34px;
    box-shadow: 0 26px 60px -40px rgba(5,43,69,.7);
}
.ctd-keytakeaways__h { color: #36e0f7; font-size: 14px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.ctd-keytakeaways ul { list-style: none; margin: 0; padding: 0; }
.ctd-keytakeaways li { position: relative; padding: 7px 0 7px 30px; color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.6; }
.ctd-keytakeaways li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #36e0f7; position: absolute; left: 0; top: 8px; font-size: 13px; }

/* Mobile collapsible TOC */
.ctd-toc-m { background: #f5fafb; border: 1px solid #e1eef1; border-radius: 14px; padding: 4px 18px; margin: 0 0 30px; }
.ctd-toc-m > summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; color: #052b45; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.ctd-toc-m > summary::-webkit-details-marker { display: none; }
.ctd-toc-m > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #249cb3; font-size: 12px; transition: transform .25s ease; }
.ctd-toc-m[open] > summary::after { transform: rotate(180deg); }
.ctd-toc-m ul { list-style: none; margin: 0; padding: 0 0 14px; }
.ctd-toc-m li { margin: 0; }
.ctd-toc-m a { display: block; padding: 7px 0 7px 16px; border-left: 2px solid #d8e6ea; color: #41505d; font-size: 14.5px; line-height: 1.45; text-decoration: none; }
.ctd-toc-m a:hover { color: #249cb3; border-left-color: #249cb3; }
@media (min-width: 992px) { .ctd-toc-m { display: none; } }

/* Sidebar TOC + related links */
.ctd-toc, .ctd-blog-links { margin-top: 22px; padding-top: 20px; border-top: 1px dashed #e7eef1; }
.ctd-toc__h { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #8597a0; font-weight: 700; margin: 0 0 12px; }
.ctd-toc ul, .ctd-blog-links ul { list-style: none; margin: 0; padding: 0; }
.ctd-toc li { margin: 0; }
.ctd-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid #e1eef1; color: #41505d; font-size: 14px; line-height: 1.4; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.ctd-toc a:hover { color: #249cb3; border-left-color: #249cb3; }
.ctd-blog-links li { margin-bottom: 4px; }
.ctd-blog-links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #052b45; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.ctd-blog-links a i { color: #249cb3; width: 18px; text-align: center; }
.ctd-blog-links a:hover { color: #249cb3; }
/* Sidebar TOC is desktop-only; mobile uses the collapsible .ctd-toc-m near the top (avoids a duplicate TOC) */
.ctd-toc { display: none; }
@media (min-width: 992px) { .ctd-toc { display: block; } }

/* Dedicated FAQ section (rendered only when admin supplies FAQs) */
.ctd-blog-faq { margin-top: 44px; }
.ctd-blog-faq__h { font-size: 27px; color: #052b45; font-weight: 800; margin: 0 0 18px; letter-spacing: -.3px; }
.ctd-faq-item { border: 1px solid #e4eef1; border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.ctd-faq-item[open] { border-color: rgba(36,156,179,.4); box-shadow: 0 18px 40px -30px rgba(5,43,69,.4); }
.ctd-faq-item > summary { list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 700; color: #052b45; font-size: 16.5px; line-height: 1.4; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ctd-faq-item > summary::-webkit-details-marker { display: none; }
.ctd-faq-item > summary::after { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #249cb3; font-size: 13px; flex: 0 0 auto; }
.ctd-faq-item[open] > summary::after { content: "\f068"; }
.ctd-faq-item__a { padding: 0 20px 18px; color: #4a5763; font-size: 16px; line-height: 1.7; }

/* In-article CTA heading */
.ctd-blog-cta__h { font-size: 18px; font-weight: 800; color: #052b45; margin: 0 0 8px; }

/* In-article business CTA callout */
.ctd-blog-cta {
    display: flex; align-items: center; gap: 20px;
    margin: 40px 0 0;
    padding: 26px 30px;
    background: linear-gradient(135deg, rgba(36,156,179,.10), rgba(54,224,247,.06));
    border: 1px solid rgba(36,156,179,.24);
    border-radius: 18px;
}
.ctd-blog-cta__ico { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #249cb3, #36e0f7); }
.ctd-blog-cta__body p { color: #2c3a47; font-size: 16.5px; line-height: 1.6; margin: 0 0 14px; }

/* Single related article looks intentional, not stranded */
.ctd-bgrid--single { justify-content: center; }
.ctd-bgrid--single .ctd-bcard { flex: 0 0 420px; max-width: 420px; }

@media (max-width: 991px) {
    .ctd-blog-body { font-size: 16.5px; line-height: 1.7; }
    .ctd-blog-body > p:first-of-type { font-size: 17.5px; }
    .ctd-blog-body h2 { font-size: 26px; margin: 36px 0 14px; }
    .ctd-blog-body h3 { font-size: 21px; margin: 26px 0 10px; }
}
@media (max-width: 575px) {
    .ctd-keytakeaways { padding: 22px 20px; margin-bottom: 28px; }
    .ctd-keytakeaways li { font-size: 15.5px; }
    .ctd-blog-cta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }
    .ctd-bgrid--single .ctd-bcard { flex: 0 0 100%; max-width: 100%; }
}
