/* =========================================================
   Allied Business Consultancy — Premium Frontend Theme
   Colors come from CSS variables emitted by <x-theme-styles>
   ========================================================= */

body {
    background: var(--theme-bg);
    color: var(--theme-text);
    -webkit-font-smoothing: antialiased;
}

/* Images may never overflow their container. Images sized via height
   attribute (logo, avatars, signature) keep their intended height. */
img { max-width: 100%; }
img:not([height]) { height: auto; }

/* AOS fade-left/right park elements ±100px sideways before animating in,
   which widens the page until they enter the viewport. Shorten the travel
   distance (root fix)… */
html:not(.no-js) [data-aos="fade-left"] { transform: translate3d(36px, 0, 0); }
html:not(.no-js) [data-aos="fade-right"] { transform: translate3d(-36px, 0, 0); }

/* …and clip the transient pre-animation offsets at the content edge.
   overflow-x: clip does NOT create a scroll container (unlike hidden) —
   all static overflow causes are fixed at the source; this only guards
   the animation library's momentary off-screen states. */
main { overflow-x: clip; }

h1, h2, h3, h4, h5, h6 {
    color: var(--theme-heading);
    font-weight: 700;
}

.section-pad { padding: 96px 0; }
@media (max-width: 767.98px) { .section-pad { padding: 64px 0; } }

/* ---------- Section headings ---------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--theme-secondary);
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.section-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--theme-accent);
}

.section-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: .75rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--theme-btn-radius); font-weight: 600; padding: .65rem 1.5rem; }

.btn-primary {
    --bs-btn-bg: var(--theme-primary);
    --bs-btn-border-color: var(--theme-primary);
    --bs-btn-hover-bg: var(--theme-secondary);
    --bs-btn-hover-border-color: var(--theme-secondary);
    --bs-btn-active-bg: var(--theme-secondary);
    --bs-btn-active-border-color: var(--theme-secondary);
}

.btn-accent {
    background: var(--theme-accent);
    border: 1px solid var(--theme-accent);
    color: #1a1a1a;
    transition: all .2s ease;
}

.btn-accent:hover {
    background: color-mix(in srgb, var(--theme-accent) 85%, black);
    border-color: color-mix(in srgb, var(--theme-accent) 85%, black);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light:hover { color: var(--theme-primary); }

/* ---------- Header (compact) ---------- */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--theme-border);
    transition: box-shadow .25s ease, background .25s ease;
    z-index: 1030;
}

/* Padding set in exact px, not Bootstrap's py-* steps (0/.25rem/.5rem…) —
   those jump in 4px increments, too coarse to land a precise compact
   target. 3px is the practical floor: enough that the logo doesn't touch
   the header's bottom border, no more. */
.site-header .navbar {
    padding-top: 3px;
    padding-bottom: 3px;
    transition: padding .3s ease;
}

/* .container is already a flex row in Bootstrap, but reinforced here so
   logo, nav and CTA stay on one vertical center line regardless of their
   individual heights (62px logo vs ~30px nav links vs ~34px button). */
.site-header .navbar > .container {
    align-items: center;
}

/* Sticky shrink: tighter once scrolled — smooth, no jump */
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.site-header.scrolled .navbar { padding-top: 2px; padding-bottom: 2px; }

/* Kill the .navbar-brand default padding/line-height (Bootstrap adds
   ~5px top+bottom and a 1.25rem line-height) — those are what created the
   dead space above the logo even though py-0 was already applied. */
.site-header .navbar-brand {
    padding: 0;
    line-height: 1;
}

/* display:block removes the few px of inline/baseline gap browsers add
   under images by default — invisible until you're aligning by eye. */
.site-header .navbar-brand img {
    display: block;
    width: auto;
    transition: transform .3s ease;
    transform-origin: left center;
}

/* Logo shrinks 10% on scroll, matching the navbar's own compression */
.site-header.scrolled .navbar-brand img {
    transform: scale(.9);
}

.site-header .nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--theme-heading);
    font-weight: 500;
    line-height: 1;
    padding: .5rem .75rem !important;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--theme-secondary); background: rgba(31, 111, 235, .06); }

/* Header CTA: same width and styling, height matched to the nav-link row
   above so button, links and logo all share one visual baseline. */
.site-header .btn-accent {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding-top: .5rem;
    padding-bottom: .5rem;
    border-radius: 8px;
}

.site-header .navbar-toggler { padding-block: .1rem; }

.brand-mark {
    width: 38px;
    height: 38px;
    background: var(--theme-primary);
    color: #fff;
    font-size: 1.15rem;
    transition: width .3s ease, height .3s ease;
}

/* Fallback (no uploaded logo) brand mark reads small next to the 62px
   logo elsewhere on the site — scaled up to match in the header only. */
.site-header .brand-mark {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
}

.brand-text { color: var(--theme-primary); }

/* ---------- Announcement bar (slimmer) ---------- */
.announcement-bar {
    font-size: .8rem;
    line-height: 1.9;
}

/* ---------- Services mega menu ---------- */
.mega-dropdown .dropdown-toggle::after { transition: transform .2s ease; }
.mega-dropdown.show .dropdown-toggle::after,
.mega-dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }

.mega-menu {
    left: 0;
    right: 0;
    top: 100%;
    border-radius: 0 0 18px 18px;
    border-top: 3px solid var(--theme-accent) !important;
    box-shadow: 0 30px 60px rgba(11, 60, 93, .18);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Hover-open on desktop pointers (click/touch still works via Bootstrap) */
@media (min-width: 992px) and (hover: hover) {
    .mega-dropdown:hover > .mega-menu {
        display: block;
        animation: megaFade .18s ease-out;
    }
}

@keyframes megaFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: color-mix(in srgb, var(--theme-primary) 8%, #fff);
    color: var(--theme-primary);
    font-size: 1rem;
    transition: all .2s ease;
}

.mega-category-title {
    color: var(--theme-heading);
    font-weight: 700;
    font-size: .92rem;
}

.mega-category:hover .mega-icon {
    background: var(--theme-primary);
    color: var(--theme-accent);
}

.mega-category-title:hover { color: var(--theme-primary); }

.mega-services { padding-left: 42px; }

.mega-services a {
    display: block;
    padding: .18rem 0;
    font-size: .84rem;
    color: var(--theme-text);
    text-decoration: none;
    transition: color .15s ease, padding-left .15s ease;
}

.mega-services a:hover {
    color: var(--theme-secondary);
    padding-left: 4px;
}

.mega-services .mega-more {
    color: var(--theme-accent);
    font-weight: 600;
}

.mega-footer {
    border-top: 1px solid var(--theme-border);
    background: var(--theme-primary);
    color: rgba(255, 255, 255, .85);
    margin-inline: -12px;
    padding: 1rem 1.5rem !important;
    border-radius: 12px;
}

.mobile-services-accordion .accordion-button { box-shadow: none; }
.mobile-services-accordion .accordion-button:not(.collapsed) {
    background: color-mix(in srgb, var(--theme-secondary) 6%, #fff);
    color: var(--theme-primary);
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    background: linear-gradient(115deg, var(--theme-primary) 0%, color-mix(in srgb, var(--theme-primary) 70%, #000) 100%);
    color: #fff;
    overflow: hidden;
}

.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .22;
}

.hero-min { min-height: min(88vh, 860px); }

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50rem;
    padding: .4rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    backdrop-filter: blur(6px);
}

.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; color: #fff; }

.hero-title .highlight {
    color: var(--theme-accent);
    position: relative;
}

.hero-desc { color: rgba(255, 255, 255, .78); max-width: 540px; font-size: 1.06rem; }

.hero-stats .h3 { color: var(--theme-accent); margin-bottom: 0; }
.hero-stats small { color: rgba(255, 255, 255, .65); }

.hero-media { position: relative; }

.hero-media img.main {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    color: var(--theme-heading);
    border-radius: 14px;
    padding: .9rem 1.1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
    display: flex;
    align-items: center;
    gap: .7rem;
    animation: floatY 4s ease-in-out infinite;
}

.floating-card .fc-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--theme-secondary) 12%, #fff);
    color: var(--theme-secondary);
    font-size: 1.2rem;
}

/* Overhang stays within the column's px-lg-4 (24px) padding — never the viewport */
.floating-card.pos-1 { top: 8%; left: -12px; animation-delay: 0s; }
.floating-card.pos-2 { bottom: 10%; right: -12px; animation-delay: 2s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.experience-badge {
    position: absolute;
    bottom: -18px;
    left: 8%;
    background: var(--theme-accent);
    color: #1a1a1a;
    border-radius: 14px;
    padding: .9rem 1.3rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(212, 175, 55, .4);
}

.experience-badge .num { font-size: 1.6rem; line-height: 1; display: block; }

@media (max-width: 991.98px) {
    .floating-card.pos-1 { left: 0; }
    .floating-card.pos-2 { right: 0; }
}

/* ---------- Cards ---------- */
.premium-card {
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, .10);
    border-color: transparent;
}

/* ---------- Premium form (Contact page) ---------- */
.premium-form .form-control,
.premium-form .form-select {
    border-color: var(--theme-border);
    border-radius: var(--theme-radius, .5rem);
    padding: .65rem .9rem;
}

.premium-form .form-control:focus,
.premium-form .form-select:focus {
    border-color: var(--theme-secondary);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--theme-secondary) 15%, transparent);
}

.premium-form .form-check-input:checked {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
}

.icon-badge {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: color-mix(in srgb, var(--theme-secondary) 10%, #fff);
    color: var(--theme-secondary);
    transition: all .25s ease;
}

.premium-card:hover .icon-badge {
    background: var(--theme-primary);
    color: #fff;
    transform: scale(1.05) rotate(-3deg);
}

.card-link {
    color: var(--theme-secondary);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}

.card-link i { transition: transform .2s ease; }
.card-link:hover i { transform: translateX(4px); }

/* ---------- Stats strip ---------- */
.stats-section {
    background: linear-gradient(115deg, var(--theme-primary), color-mix(in srgb, var(--theme-primary) 72%, #000));
    color: #fff;
}

.stat-value { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; }
.stat-value .affix { color: var(--theme-accent); }
.stat-icon-lg { font-size: 2rem; color: var(--theme-accent); opacity: .9; }

/* ---------- Process timeline ---------- */
.process-step {
    position: relative;
    text-align: center;
    padding: 0 .75rem;
    max-width: 300px;
    margin-inline: auto;
}

.process-step .step-icon {
    font-size: 1.6rem;
    color: var(--theme-secondary);
    margin-top: 1rem;
    line-height: 1;
}

.process-step h6 { margin-top: .75rem; margin-bottom: .5rem; }

.process-num {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    border: 2px dashed var(--theme-secondary);
    color: var(--theme-secondary);
    font-weight: 800;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all .25s ease;
}

.process-step:hover .process-num {
    background: var(--theme-secondary);
    color: #fff;
    border-style: solid;
}

@media (min-width: 992px) {
    .process-line::before {
        content: "";
        position: absolute;
        top: 34px;
        left: 12%;
        right: 12%;
        border-top: 2px dashed var(--theme-border);
    }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1.8rem;
    height: 100%;
}

.testimonial-card .quote-mark { font-size: 2.6rem; color: var(--theme-accent); line-height: 1; }
.rating-stars { color: var(--theme-accent); }

/* ---------- Team ---------- */
.team-card { text-align: center; }

.team-photo-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 3.4;
    background: var(--theme-border);
}

.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.team-card:hover .team-photo-wrap img { transform: scale(1.05); }

.team-socials {
    position: absolute;
    inset-inline: 0;
    bottom: -60px;
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(11, 60, 93, .85));
    transition: bottom .3s ease;
}

.team-card:hover .team-socials { bottom: 0; }

.team-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--theme-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

.team-socials a:hover { background: var(--theme-accent); color: #1a1a1a; }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item {
    border: 1px solid var(--theme-border) !important;
    border-radius: 16px !important;
    margin-bottom: .85rem;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: color-mix(in srgb, var(--theme-secondary) 35%, var(--theme-border)) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--theme-heading);
    background: #fff;
    box-shadow: none;
    padding: 1.2rem 1.4rem;
    transition: background .2s ease, color .2s ease;
}

.faq-accordion .accordion-button:hover {
    background: color-mix(in srgb, var(--theme-secondary) 4%, #fff);
}

.faq-accordion .accordion-button::after { transition: transform .25s ease; }

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--theme-secondary);
    background: color-mix(in srgb, var(--theme-secondary) 5%, #fff);
}

.faq-accordion .accordion-body { padding: .35rem 1.4rem 1.25rem; color: var(--theme-text); }

/* ---------- CTA ---------- */
.cta-section {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(115deg, var(--theme-primary), color-mix(in srgb, var(--theme-primary) 65%, #000));
    color: #fff;
}

.cta-section .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }

.cta-phone { color: var(--theme-accent); font-weight: 700; font-size: 1.25rem; text-decoration: none; }

/* ---------- Clients ---------- */
.client-logo {
    max-height: 54px;
    max-width: 100%;
    filter: grayscale(1) opacity(.6);
    transition: filter .25s ease, transform .25s ease;
}

.client-logo:hover { filter: none; transform: scale(1.06); }

/* ---------- Blog cards ---------- */
.blog-card .img-wrap {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    aspect-ratio: 16 / 9;
    background: color-mix(in srgb, var(--theme-border) 55%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.blog-card:hover img { transform: scale(1.03); }

.blog-meta { font-size: .8rem; color: var(--theme-text); }

/* ---------- Newsletter section ---------- */
.newsletter-panel {
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .07);
}

/* ---------- Footer ---------- */
.site-footer { background: #0a1626; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.footer-text { color: rgba(255, 255, 255, .55); }
.footer-links li { margin-bottom: .55rem; }
.footer-links li > span { color: rgba(255, 255, 255, .65); }
.footer-links a { color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .15s ease, padding-left .15s ease; }
.footer-links a:hover { color: var(--theme-accent); padding-left: 3px; }
.footer-bottom { border-color: rgba(255, 255, 255, .08) !important; }

.social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .75);
    transition: all .2s ease;
}

.social-btn:hover { background: var(--theme-accent); color: #1a1a1a; transform: translateY(-3px); }

.newsletter-form .form-control {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
    color: #fff;
}

.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, .4); }

.newsletter-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1080;
    background: #16a34a;
    color: #fff;
    padding: .9rem 1.3rem;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(12px);
    transition: all .3s ease;
}

.newsletter-toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Back to top ---------- */
#backToTop {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

#backToTop.visible { display: inline-flex; }

/* ---------- Swiper tweaks ---------- */
.swiper-pagination-bullet-active { background: var(--theme-secondary); }

.swiper-button-prev, .swiper-button-next { color: var(--theme-secondary); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1.3rem; font-weight: 700; }

/* ---------- Service pages ---------- */
.service-hero {
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(31, 111, 235, .25), transparent 60%),
        linear-gradient(115deg, var(--theme-primary) 0%, color-mix(in srgb, var(--theme-primary) 72%, #000) 100%);
    color: #fff;
}

.service-hero .breadcrumb,
.service-hero .breadcrumb a { color: rgba(255, 255, 255, .65); text-decoration: none; font-size: .85rem; }
.service-hero .breadcrumb .active { color: var(--theme-accent); }
.service-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .4); }

.service-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.service-hero .lead { color: rgba(255, 255, 255, .78); }

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50rem;
    padding: .4rem 1rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
}

.trust-chip i { color: var(--theme-accent); }

/* Equal-height CTA buttons + aligned icons on service hero */
.service-hero .btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

/* Phones: hero CTAs go full width for comfortable tapping */
@media (max-width: 575.98px) {
    .service-hero .btn-lg,
    .hero-section .btn-lg {
        width: 100%;
    }

    .hero-min { min-height: auto; }
}

/* Hero illustration composition (pure CSS/icons — no image request) */
.hero-illustration {
    position: relative;
}

.hero-illustration .ill-panel {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    padding: 2rem;
}

.hero-illustration .ill-row {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #fff;
    border-radius: 12px;
    padding: .8rem 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    color: var(--theme-heading);
}

.hero-illustration .ill-row + .ill-row { margin-top: .8rem; }

.hero-illustration .ill-row .ill-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--theme-secondary) 12%, #fff);
    color: var(--theme-secondary);
    font-size: 1.15rem;
}

.hero-illustration .ill-check { color: #16a34a; margin-left: auto; }

/* Documents grid */
.doc-card {
    background: #fff;
    border: 1px dashed var(--theme-border);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    height: 100%;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.doc-card:hover {
    border-color: var(--theme-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .07);
}

.doc-card i {
    font-size: 1.35rem;
    color: var(--theme-secondary);
    width: 28px;
    min-width: 28px;
    text-align: center;
}

/* Compact feature tiles (eligibility / why-us) — height grows with content
   only; never stretched to fill a column. */
.feature-tile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.feature-tile:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .1);
}

.feature-tile p { line-height: 1.5; }

/* Mini-CTA card on service pages (static — no sticky overlap) */
.service-cta-card {
    background:
        radial-gradient(420px 180px at 110% -20%, rgba(212, 175, 55, .25), transparent 60%),
        radial-gradient(300px 160px at -20% 120%, rgba(31, 111, 235, .3), transparent 60%),
        linear-gradient(160deg, var(--theme-primary), color-mix(in srgb, var(--theme-primary) 70%, #000));
    border-radius: 16px;
    color: #fff;
}

.service-cta-card .accent-line { width: 44px; height: 3px; background: var(--theme-accent); border-radius: 2px; }

/* ---------- Blog: featured post ---------- */
.featured-post-card {
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .08);
}

.featured-post-card .featured-post-media {
    min-height: 260px;
    background: color-mix(in srgb, var(--theme-border) 55%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-post-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: contain;
}
.blog-post-hero-image {
    width: 100%;
    max-height: none;
    height: auto;
    object-fit: contain;
    background: color-mix(in srgb, var(--theme-border) 45%, #fff);
}
.widget-category-list a .cat-thumb {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: color-mix(in srgb, var(--theme-border) 55%, #fff);
    margin-right: .65rem;
}
.widget-category-list a .cat-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

/* ---------- Blog: sidebar widgets ---------- */
.widget-card {
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.widget-title {
    font-weight: 700;
    color: var(--theme-heading);
    margin-bottom: 1.1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--theme-accent);
    display: inline-block;
}

.widget-post-list li + li { margin-top: 1rem; }

.widget-post {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
}

.widget-post img {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 10px;
    object-fit: contain;
    background: color-mix(in srgb, var(--theme-border) 55%, #fff);
}

.widget-post-title {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    color: var(--theme-heading);
    line-height: 1.35;
    transition: color .15s ease;
}

.widget-post:hover .widget-post-title { color: var(--theme-secondary); }

.widget-post-date {
    display: block;
    font-size: .74rem;
    color: var(--theme-text);
    margin-top: .25rem;
}

.widget-category-list li + li { margin-top: .4rem; }

.widget-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .75rem;
    border-radius: 10px;
    color: var(--theme-heading);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.widget-category-list a:hover,
.widget-category-list a.active {
    background: color-mix(in srgb, var(--theme-secondary) 8%, #fff);
    color: var(--theme-secondary);
}

.widget-category-list .badge {
    background: var(--theme-border);
    color: var(--theme-text);
    font-weight: 600;
    border-radius: 50rem;
    padding: .3em .65em;
}

.widget-category-list a:hover .badge,
.widget-category-list a.active .badge {
    background: var(--theme-secondary);
    color: #fff;
}

.widget-newsletter {
    background: linear-gradient(160deg, var(--theme-primary), color-mix(in srgb, var(--theme-primary) 70%, #000));
    border: none;
}

.widget-newsletter .widget-title { border-bottom-color: var(--theme-accent); }

/* ---------- Blog: social share ---------- */
.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-heading);
    font-size: 1rem;
    transition: all .2s ease;
}

.share-btn:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.share-facebook:hover { background: #1877f2; }
.share-twitter:hover { background: #000; }
.share-linkedin:hover { background: #0a66c2; }
.share-whatsapp:hover { background: #25d366; }
.share-copy:hover { background: var(--theme-secondary); }

/* ---------- Blog: table of contents ---------- */
.toc-card {
    background: color-mix(in srgb, var(--theme-secondary) 4%, #fff);
    border: 1px solid var(--theme-border);
    border-left: 3px solid var(--theme-accent);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.toc-card ul { padding-left: 0; }
.toc-card li { margin-bottom: .4rem; }
.toc-card li.toc-h3 { padding-left: 1rem; font-size: .85rem; }

.toc-card a {
    color: var(--theme-text);
    text-decoration: none;
    font-size: .9rem;
    transition: color .15s ease;
}

.toc-card a:hover { color: var(--theme-secondary); }

/* ---------- Blog: post content typography ---------- */
.post-content {
    color: var(--theme-text);
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--theme-heading);
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.post-content h2 { font-size: 1.55rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content p { margin-bottom: 1.25rem; }

.post-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
}

.post-content ul,
.post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: .5rem; }

.post-content blockquote {
    border-left: 4px solid var(--theme-accent);
    background: color-mix(in srgb, var(--theme-accent) 6%, #fff);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--theme-heading);
}

.post-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content code {
    background: color-mix(in srgb, var(--theme-secondary) 8%, #fff);
    color: var(--theme-secondary);
    padding: .15em .4em;
    border-radius: 4px;
    font-size: .9em;
}

.post-content pre code { background: none; color: inherit; padding: 0; }

.post-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.post-content table th,
.post-content table td {
    border: 1px solid var(--theme-border);
    padding: .6rem .9rem;
    text-align: left;
}

.post-content table th { background: var(--theme-bg); color: var(--theme-heading); }

.post-content a { color: var(--theme-secondary); text-decoration: underline; }

.post-content iframe {
    max-width: 100%;
    border-radius: 12px;
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
}

/* ---------- Blog: tags & post navigation ---------- */
.tag-chip {
    display: inline-block;
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
    padding: .3rem .9rem;
    border-radius: 50rem;
    font-size: .82rem;
    text-decoration: none;
    transition: all .15s ease;
}

.tag-chip:hover { background: var(--theme-secondary); border-color: var(--theme-secondary); color: #fff; }

.post-nav-card {
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.post-nav-card:hover { border-color: var(--theme-secondary); transform: translateY(-2px); }
.post-nav-card strong { color: var(--theme-heading); }

/* ---------- Bootstrap pagination — theme colors ---------- */
.pagination .page-link {
    color: var(--theme-heading);
    border-color: var(--theme-border);
    margin: 0 .2rem;
    border-radius: 8px !important;
    font-weight: 500;
}

.pagination .page-link:hover { background: color-mix(in srgb, var(--theme-secondary) 8%, #fff); color: var(--theme-secondary); }

.pagination .page-item.active .page-link {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

.pagination .page-item.disabled .page-link { color: #ced4da; }

/* ---------- Utilities ---------- */
.text-accent { color: var(--theme-accent) !important; }
.bg-soft { background: color-mix(in srgb, var(--theme-secondary) 5%, #fff); }
.rounded-16 { border-radius: 16px; }
