.header .logo-header img {
    width: 170px;
}

/* ── Burger / hamburger menu button ── */
/* Hidden on desktop, visible on mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 4px;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .burger-menu {
        display: flex;
    }
    .main-menu {
        display: none;
    }
}

/* ===== MEGA MENU LARGE ===== */
.sub-menu-large {
    position: fixed;
    width: 100vw;
    left: 0;
    /* top is set dynamically by JS based on actual header height */
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    pointer-events: none;
    background-color: var(--main-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.menu-primary-menu .menu-item:hover .sub-menu-large {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Inner layout: sidebar + content side by side */
.mega-menu-inner {
    display: flex;
    /* max-width: 1200px; */
    margin: 0 auto;
    min-height: 360px;
}

/* ===== LEFT SIDEBAR ===== */
.mega-menu-sidebar {
    width: 300px;
    min-width: 300px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.mega-menu-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mega-cat-item:hover,
.mega-cat-item.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.mega-cat-item.active {
    background-color: rgba(var(--primary-rgb), 0.08);
}

.mega-cat-item i {
    font-size: 12px;
    opacity: 0.5;
}

/* ===== RIGHT CONTENT AREA ===== */
.mega-menu-content {
    flex: 1;
    padding: 28px 36px;
}

/* Tab panels */
.mega-tab {
    display: none;
}

.mega-tab.active {
    display: block;
}

/* 2-column grid (matching Peiko) */
.header-desktop--services-list {
    display: grid;
    gap: 8px 40px;
    grid-template-columns: repeat(2, 1fr);
}

/* Individual service card */
.mega-service-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mega-service-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mega-service-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background-color: rgba(var(--primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.mega-service-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-service-title {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-service-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.5;
}

.badge-hot {
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.12);
    padding: 2px 7px;
    border-radius: 20px;
}

/* ===== COMPANY MEGA MENU - LEFT AWARDS PANEL ===== */
.mega-menu-sidebar--awards {
    width: 300px;
    min-width: 300px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.award-item {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all 0.2s ease;
}

.award-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.award-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== TECHNOLOGIES - LEFT PROMO PANEL ===== */
.mega-menu-sidebar--promo {
    width: 300px;
    min-width: 300px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    align-items: flex-start;
}

.promo-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.promo-card-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.promo-card-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.promo-card-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.promo-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    transition: all 0.2s ease;
}

.promo-card-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.08);
}

.promo-card-btn i {
    font-size: 15px;
}

/* ===== NO-ICON variant for Technologies list ===== */
.mega-service-item--no-icon {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-service-item--no-icon:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom-color: transparent;
}

.mega-service-item--no-icon .mega-service-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mega-service-item--no-icon .mega-service-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.45);
}

/* SERVICES SERVICES SERVICES SERVICES SERVICES SERVICES SERVICES SERVICSS  */

/* ── Marquee dot separator ── */
.marquee-dot {
    margin: 0 12px;
    opacity: 0.4;
}

.srv-new-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* featured spans col 1, rows 1–2 */
.srv-featured-card {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.srv-featured-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(99, 179, 237, 0.12) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.srv-featured-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

/* mini-grid spans col 2–3, row 1 */
.srv-mini-grid {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* bottom cards: col 1, 2, 3 on row 2 */
.srv-bottom-card {
    grid-row: 2 / 3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.srv-bottom-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

/* ── mini cards (inside the 2×2 grid) ── */
.srv-mini-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.srv-mini-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

/* ── Featured card internals ── */
.srv-featured-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(99, 179, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.srv-featured-icon i {
    font-size: 22px;
    color: #63b3ed;
}

.srv-featured-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(99, 179, 237, 0.15);
    color: #63b3ed;
    margin-bottom: 14px;
}

.srv-featured-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 14px;
}

.srv-featured-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0;
    flex: 1;
}

.srv-featured-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 20px;
}

.srv-view-all-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.srv-view-all-link:hover {
    color: #fff;
}

.srv-view-all-link i {
    font-size: 11px;
}

/* ── Shared mini/bottom card internals ── */
.srv-mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.srv-mini-icon i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.srv-mini-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

.srv-mini-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

/* ── badge-new override (if not globally defined) ── */
.badge-new {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    vertical-align: middle;
    margin-left: 5px;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .srv-new-grid {
        grid-template-columns: 1fr 1fr;
    }

    .srv-mini-grid {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .srv-bottom-card {
        grid-row: auto;
        grid-column: auto;
    }

    .srv-bottom-card:nth-child(4) {
        grid-column: 1 / 2;
    }

    .srv-bottom-card:nth-child(5) {
        grid-column: 2 / 3;
    }

    .srv-bottom-card:nth-child(6) {
        grid-column: 1 / 3;
    }
}

@media (max-width: 767px) {
    .srv-new-grid {
        grid-template-columns: 1fr;
    }

    .srv-featured-card {
        grid-column: auto;
        grid-row: auto;
    }

    .srv-mini-grid {
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: 1fr 1fr;
    }

    .srv-bottom-card {
        grid-column: auto !important;
    }

    .srv-bottom-card:nth-child(6) {
        grid-column: auto !important;
    }
}

@media (max-width: 480px) {
    .srv-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   SERVICE DETAIL PAGE — custom styles
   Fixes line-height, spacing, and typography
═══════════════════════════════════════════════════ */

/* All Quill-generated content: proper line-height and paragraph spacing */
.svc-rich-text p,
.svc-rich-text li {
    line-height: 1.85;
    margin-bottom: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
}

.svc-rich-text p + p {
    margin-top: 12px;
}

.svc-rich-text ul,
.svc-rich-text ol {
    padding-left: 20px;
    margin: 8px 0;
}

/* Benefit card */
.svc-benefit-card {
    padding: 40px 36px;
    border: 1px solid var(--stroke-2);
    border-radius: 16px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.svc-benefit-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.svc-benefit-card .svc-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.svc-benefit-card .svc-ghost-num {
    position: absolute;
    top: -15px;
    right: 16px;
    font-size: 100px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    user-select: none;
}

.svc-benefit-card h4 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 14px;
    color: var(--white);
}

/* Process step card */
.svc-step-card {
    padding: 40px 32px;
    border: 1px solid var(--stroke-2);
    border-radius: 16px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.svc-step-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.svc-step-card .svc-ghost-num {
    position: absolute;
    bottom: -25px;
    right: 10px;
    font-size: 130px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.035);
    pointer-events: none;
    user-select: none;
}

.svc-step-card .svc-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.svc-step-card h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 14px;
    color: var(--white);
}

/* Talk To Us banner */
.svc-talk-banner {
    border-radius: 20px;
    padding: 56px 64px;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.svc-talk-banner h3 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 14px;
    color: var(--white);
}

.svc-talk-banner p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* Tech stack card */
.svc-tech-card {
    padding: 32px;
    border: 1px solid var(--stroke-2);
    border-radius: 16px;
    height: 100%;
}

.svc-tech-card .svc-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.svc-tech-card .svc-group-label::before {
    content: "";
    display: block;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

.svc-tech-card .svc-group-label span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.svc-tag {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
}

.svc-tag--featured {
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    color: var(--primary);
    font-weight: 600;
}

.svc-tag--normal {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Section heading spacing fix */
.svc-section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.svc-section-heading .sub-title {
    margin-bottom: 16px;
}

.svc-section-heading h2 {
    line-height: 1.3;
}

/* ── Numbered list layout (Peiko-style) ── */
.svc-numbered-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.svc-numbered-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 28px;
    padding: 36px 0;
    border-bottom: 1px solid var(--stroke-2);
    align-items: start;
}

.svc-numbered-item:first-child {
    border-top: 1px solid var(--stroke-2);
}

.svc-numbered-item__num {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    padding-top: 4px;
}

.svc-numbered-item__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--white);
    margin-bottom: 12px;
}

.svc-numbered-item__desc {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.svc-numbered-item__desc p {
    margin: 0;
    line-height: 1.85;
}

.svc-numbered-item__desc p + p {
    margin-top: 10px;
}

/* Two-column numbered list */
.svc-numbered-list--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
}

.svc-numbered-list--2col .svc-numbered-item {
    border-bottom: 1px solid var(--stroke-2);
}

/* Talk to us — redesigned */
.svc-cta-strip {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--stroke-2);
    border-bottom: 1px solid var(--stroke-2);
    padding: 60px 0;
    margin-bottom: 80px;
}

/* Process steps — horizontal numbered */
.svc-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--stroke-2);
    border: 1px solid var(--stroke-2);
    border-radius: 16px;
    overflow: hidden;
}

.svc-process-item {
    background: var(--main-dark);
    padding: 40px 32px;
    position: relative;
    transition: background 0.3s;
}

.svc-process-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.svc-process-item__num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.svc-process-item__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--white);
    margin-bottom: 14px;
}

.svc-process-item__desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.svc-process-item__desc p {
    margin: 0;
    line-height: 1.8;
}

@media (max-width: 991px) {
    .svc-talk-banner {
        padding: 40px 32px;
    }
    .svc-talk-banner h3 {
        font-size: 24px;
    }
    .svc-numbered-list--2col {
        grid-template-columns: 1fr;
    }
    .svc-process-grid {
        grid-template-columns: 1fr;
    }
    .svc-benefit-card,
    .svc-step-card {
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .svc-numbered-item {
        grid-template-columns: 40px 1fr;
        gap: 0 16px;
        padding: 28px 0;
    }
    .svc-numbered-item__title {
        font-size: 16px;
    }
    .svc-process-item {
        padding: 28px 24px;
    }
}

/* ════════════════════════════════════════════════════════════
   TECHNOLOGY PAGE — COMPLETE CSS
   1. Hero  (tech-hero__)
   2. Shared tokens  (td-section, td-label, td-heading …)
   3. Advantages  (td-adv-)
   4. Benefits  (td-ben-)
   5. Why Choose Us  (td-why-)
   6. Process  (td-proc-)
   7. Contact  (td-contact-)
   8. FAQ  (td-faq-)
   9. Tech Stack  (td-stack-)
  10. Responsive
════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   1. HERO
════════════════════════════════════════════════════════════ */
.tech-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--main-dark);
    padding: 60px 0 80px;
}

/* Animated gradient orbs */
.tech-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}
.tech-hero__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(67, 186, 255, 0.18) 0%,
        transparent 70%
    );
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}
.tech-hero__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.15) 0%,
        transparent 70%
    );
    bottom: -50px;
    left: 10%;
    animation-delay: -3s;
}
.tech-hero__orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(16, 185, 129, 0.1) 0%,
        transparent 70%
    );
    top: 40%;
    left: 40%;
    animation-delay: -5s;
}
@keyframes orbFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Grid overlay */
.tech-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Container sits above orbs */
.tech-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Breadcrumb */
.tech-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.tech-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.tech-hero__breadcrumb a:hover {
    color: var(--primary);
}
.tech-hero__breadcrumb .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}
.tech-hero__breadcrumb--current {
    color: rgba(255, 255, 255, 0.7);
}

/* Badge */
.tech-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(67, 186, 255, 0.1);
    border: 1px solid rgba(67, 186, 255, 0.25);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* Headline */
.tech-hero__headline {
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}
.tech-hero__highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.tech-hero__desc {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.6);
    max-width: 540px;
    margin-bottom: 44px;
}
.tech-hero__desc p {
    margin: 0;
    line-height: inherit;
}
.tech-hero__desc p + p {
    margin-top: 12px;
}

/* ✅ Hero CTA — now uses tf-btn (theme button), no custom class needed */
/* The tf-btn styles come from your theme. Nothing extra needed here. */

/* Right visual */
.tech-hero__visual {
    position: relative;
    height: 500px;
}
.tech-hero__center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(67, 186, 255, 0.08);
    border: 2px solid rgba(67, 186, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}
.tech-hero__center-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Orbiting bubbles */
.tech-hero__orbit-item {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    padding: 12px;
    animation: orbitPulse 4s ease-in-out infinite;
    cursor: default;
    transition: all 0.3s;
}
.tech-hero__orbit-item:hover {
    background: rgba(67, 186, 255, 0.1);
    border-color: rgba(67, 186, 255, 0.3);
    color: var(--primary);
}
.tech-hero__orbit-item:nth-child(2) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}
.tech-hero__orbit-item:nth-child(3) {
    top: 15%;
    right: 0;
    animation-delay: -0.8s;
}
.tech-hero__orbit-item:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -1.6s;
}
.tech-hero__orbit-item:nth-child(5) {
    top: 15%;
    left: 0;
    animation-delay: -2.4s;
}
.tech-hero__orbit-item:nth-child(6) {
    bottom: 20%;
    right: 5%;
    animation-delay: -3.2s;
}
.tech-hero__orbit-item:nth-child(7) {
    bottom: 20%;
    left: 5%;
    animation-delay: -4s;
}

@keyframes orbitPulse {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-12px);
        opacity: 1;
    }
}
.tech-hero__orbit-item:nth-child(2),
.tech-hero__orbit-item:nth-child(4) {
    animation: orbitPulseCenter 4s ease-in-out infinite;
}
@keyframes orbitPulseCenter {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(-12px);
        opacity: 1;
    }
}

/* ════════════════════════════════════════════════════════════
   2. SHARED TOKENS
════════════════════════════════════════════════════════════ */
.td-section {
    padding: 100px 0;
}
.td-section--alt {
    background: rgba(255, 255, 255, 0.018);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Eyebrow label */
.td-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.td-label::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Section heading */
.td-heading {
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 56px;
}
.td-heading--contact {
    margin-bottom: 0;
}
.td-heading--light {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

/* Section header row (heading left + button right) */
.td-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 60px;
}
.td-section-head .td-heading {
    margin-bottom: 0;
}
.td-section-head__btn {
    flex-shrink: 0;
}

/* Rich text from CMS */
.td-adv-card__desc p,
.td-ben-desc p,
.td-why-desc p,
.td-proc-desc p,
.td-faq-body p {
    margin: 0;
    line-height: 1.85;
}
.td-adv-card__desc p + p,
.td-ben-desc p + p,
.td-why-desc p + p,
.td-proc-desc p + p {
    margin-top: 10px;
}

/* ════════════════════════════════════════════════════════════
   3. ADVANTAGES  —  card grid (3 cols)
   Replaced the 3-col numbered row layout with cards.
   Each card has a large number, title, description.
════════════════════════════════════════════════════════════ */
.td-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px; /* hairline gaps between cards */
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
}

.td-adv-card {
    padding: 44px 36px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    transition: background 0.3s;
}

/* Remove right border on last in each row, bottom on last row */
.td-adv-card:nth-child(3n) {
    border-right: none;
}
.td-adv-card:last-child,
.td-adv-card:nth-last-child(-n + 3) {
    border-bottom: none;
}

.td-adv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.td-adv-card:hover {
    background: rgba(67, 186, 255, 0.04);
}
.td-adv-card:hover::before {
    opacity: 1;
}

.td-adv-card__num {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.td-adv-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 14px;
}

.td-adv-card__desc {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.5);
}

/* ════════════════════════════════════════════════════════════
   4. BENEFITS  —  3-col cards with glowing top line
════════════════════════════════════════════════════════════ */
.td-ben-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.td-ben-card {
    padding: 36px 28px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s,
        border-color 0.3s;
}
.td-ben-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
}
.td-ben-card:hover {
    transform: translateY(-5px);
    border-color: rgba(67, 186, 255, 0.2);
}
.td-ben-card:hover::before {
    opacity: 1;
}

.td-ben-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--primary);
    opacity: 0.7;
    display: block;
    margin-bottom: 20px;
}
.td-ben-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 12px;
}
.td-ben-desc {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.48);
}

/* ════════════════════════════════════════════════════════════
   5. WHY CHOOSE US  —  sticky left + scrolling right
════════════════════════════════════════════════════════════ */
.td-why-sticky {
    position: sticky;
    top: 100px;
}
.td-why-sticky .td-heading {
    margin-bottom: 0;
}

.td-why-item {
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.td-why-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.td-why-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.td-why-title::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(67, 186, 255, 0.7);
    flex-shrink: 0;
}
.td-why-desc {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.48);
    padding-left: 19px;
}

/* ════════════════════════════════════════════════════════════
   6. PROCESS  —  2-col staggered cards
════════════════════════════════════════════════════════════ */
.td-proc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.td-proc-card {
    padding: 40px 34px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition:
        border-color 0.3s,
        background 0.3s;
}
.td-proc-card:nth-child(even) {
    margin-top: 40px;
}
.td-proc-card:hover {
    border-color: rgba(67, 186, 255, 0.2);
    background: rgba(67, 186, 255, 0.03);
}

.td-proc-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--primary);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.td-proc-num::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(67, 186, 255, 0.2);
}
.td-proc-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 12px;
}
.td-proc-desc {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.48);
}

/* ════════════════════════════════════════════════════════════
   7. CONTACT FORM  —  ✅ top padding fixed
════════════════════════════════════════════════════════════ */
.td-contact {
    padding: 100px 0; /* ✅ was 0 before — now has proper space */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.td-contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.td-contact__left {
    padding-top: 20px;
}
.td-contact__left .td-label {
    margin-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════
   8. FAQ  —  ✅ centered, max-width, no col split
════════════════════════════════════════════════════════════ */
.td-faq-wrap {
    max-width: 760px; /* ✅ sits in the middle, doesn't go full 12 cols */
    margin: 0 auto;
    text-align: left;
}
.td-faq-wrap .td-heading {
    margin-bottom: 48px;
}

.td-faq-list {
    width: 100%;
}

.td-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.td-faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.td-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.td-faq-toggle:hover {
    color: var(--primary);
}

.td-faq-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}
.td-faq-toggle:not(.collapsed) .td-faq-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--main-dark);
    transform: rotate(45deg);
}

.td-faq-body {
    padding: 0 0 24px;
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.48);
}

/* ════════════════════════════════════════════════════════════
   9. TECH STACK  —  pill chips
════════════════════════════════════════════════════════════ */
.td-stack-group {
    margin-bottom: 48px;
}
.td-stack-group:last-child {
    margin-bottom: 0;
}

.td-stack-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.td-stack-group-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.055);
}

.td-stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.td-stack-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s;
    cursor: default;
}
.td-stack-item:hover {
    border-color: rgba(67, 186, 255, 0.35);
    background: rgba(67, 186, 255, 0.07);
    transform: translateY(-2px);
}
.td-stack-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.td-stack-fallback {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}
.td-stack-item-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
  10. RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .tech-hero {
        padding: 120px 0 80px;
    }

    .td-section {
        padding: 72px 0;
    }
    .td-contact {
        padding: 72px 0;
    }

    .td-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .td-adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .td-adv-card:nth-child(2n) {
        border-right: none;
    }

    .td-ben-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .td-proc-grid {
        grid-template-columns: 1fr;
    }
    .td-proc-card:nth-child(even) {
        margin-top: 0;
    }

    .td-why-sticky {
        position: static;
        margin-bottom: 40px;
    }

    .td-contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .td-faq-wrap {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .tech-hero {
        padding: 100px 0 60px;
    }

    .td-section {
        padding: 56px 0;
    }
    .td-contact {
        padding: 56px 0;
    }

    .td-adv-grid {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }
    .td-adv-card {
        border-right: none;
    }
    .td-adv-card:nth-last-child(-n + 3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .td-adv-card:last-child {
        border-bottom: none;
    }

    .td-ben-grid {
        grid-template-columns: 1fr;
    }
    .td-ben-card {
        padding: 28px 22px;
    }
    .td-proc-card {
        padding: 28px 22px;
    }
}

/* ═══════════════════════════════════════════════════════════
   BLOG DETAIL PAGE — Fixes and improvements
═══════════════════════════════════════════════════════════ */

/* ── Featured image: fixed height, proper cover ── */
.img-details {
    border-radius: 16px;
    overflow: hidden;
}

.img-details img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* ── Author + date row ── */
.date-user-post {
    gap: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--stroke-2);
    margin-bottom: 36px !important;
}

.date-user-post .user-details,
.date-user-post .date-post {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-user-post p.by,
.date-user-post p.fw-5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.date-user-post h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.date-user-post h5 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.date-user-post h5 a:hover {
    color: var(--primary);
}

/* ── Author box ── */
.author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    border: 1px solid var(--stroke-2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 40px;
    margin-bottom: 40px;
}

.author .author-content .name a {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.author .author-content .text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* ── Comments section ── */
.comment {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--stroke-2);
}

.comment h4.title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--white);
}

/* Comment item */
.comment-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item .comment-content .top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-item .comment-content .name {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

.comment-item .comment-content .date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.comment-item .comment-content .text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
}

/* Reply button */
.reply-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
}

.reply-toggle-btn:hover {
    opacity: 0.75;
}

/* ── REPLY FORM — properly styled ── */
.reply-form {
    margin-top: 20px;
    margin-left: 24px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
}

.reply-form .reply-form-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-form .reply-form-title::before {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Reply form input row */
.reply-form .reply-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.reply-form fieldset {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s;
}

.reply-form fieldset:focus-within {
    border-color: rgba(67, 186, 255, 0.4);
}

.reply-form fieldset i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 15px;
    pointer-events: none;
}

.reply-form fieldset input,
.reply-form fieldset textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 14px 12px 40px;
    font-size: 14px;
    color: var(--white);
    line-height: 1.5;
}

.reply-form fieldset input::placeholder,
.reply-form fieldset textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.reply-form .reply-textarea {
    margin-bottom: 16px;
}

.reply-form .reply-textarea fieldset {
    border-radius: 8px;
}

.reply-form .reply-textarea fieldset i {
    top: 16px;
    transform: none;
}

.reply-form .reply-textarea textarea {
    padding: 12px 14px 12px 40px;
    resize: vertical;
    min-height: 90px;
}

/* Reply form buttons */
.reply-form .reply-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reply-form .reply-cancel-btn {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-form .reply-cancel-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

/* Nested reply items */
.comment-item.reply {
    margin-left: 28px;
    padding: 18px 0;
    border-left: 2px solid rgba(67, 186, 255, 0.15);
    padding-left: 20px;
    border-bottom: none;
}

/* ── Leave a Reply form ── */
.form-comment {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--stroke-2);
}

.form-comment h4.title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--white);
}

@media (max-width: 767px) {
    .img-details img {
        height: 260px;
    }

    .reply-form .reply-inputs {
        grid-template-columns: 1fr;
    }

    .reply-form {
        margin-left: 0;
        padding: 20px;
    }

    .comment-item.reply {
        margin-left: 16px;
    }
}

/* ===== MOBILE NAV — full width + nested collapsible menus ===== */
.mobile-nav-wrap.offcanvas {
    --bs-offcanvas-width: 100%;
    max-width: 100%;
    width: 100%;
}

.mobile-nav-wrap .inner-mobile-nav {
    padding: 20px 24px;
}

/* Level 1 dropdown links (Company, Technologies, All Services) */
#menu-mobile .sub-menu-mobile > .menu-item > a {
    font-size: 14px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Level 2 — service categories */
#menu-mobile .sub-menu-mobile--categories {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#menu-mobile .menu-item-nested {
    border-bottom: none;
}

#menu-mobile .menu-item-nested > a {
    font-size: 13px;
    padding: 10px 0 10px 12px;
    color: rgba(255, 255, 255, 0.75);
}

#menu-mobile .menu-item-nested.menu-item-has-children-mobile > a::after {
    right: 4px;
    font-size: 5px;
}

/* Level 3 — individual services / nested links */
#menu-mobile .sub-menu-mobile--nested {
    padding-left: 12px;
    margin-bottom: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

#menu-mobile .sub-menu-mobile--nested .menu-item a {
    font-size: 12px;
    padding: 6px 0 6px 8px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    line-height: 1.4;
}

#menu-mobile .sub-menu-mobile--nested .menu-item a:hover {
    color: var(--primary);
}

.mobile-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

.mobile-badge--hot {
    background: rgba(255, 100, 50, 0.2);
    color: #ff6b35;
}

.mobile-badge--new {
    background: #43baff;
    color: #fff;
}

/* ===== SERVICES PAGE — mobile carousel ===== */
.services-slider-mobile {
    display: none;
}

.services-grid-desktop {
    display: flex;
}

@media (max-width: 767px) {
    .services-grid-desktop {
        display: none !important;
    }

    .services-slider-mobile {
        display: block;
    }

    .section-services.p-services .sw-services-page {
        overflow: hidden;
        padding-bottom: 4px;
    }

    .section-services.p-services .sw-services-page .swiper-slide {
        height: auto;
    }

    .section-services.p-services .sw-services-page .services-item.no-img {
        padding: 32px 24px;
        border: 1px solid var(--stroke-2);
        border-left: 1px solid var(--stroke-2);
        max-width: 100%;
        height: 100%;
    }

    .section-services.p-services .sw-services-page .services-item .icon {
        margin-bottom: 24px;
    }

    .section-services.p-services .sw-services-page .services-item .icon i {
        font-size: 44px;
    }

    .section-services.p-services .sw-pagination-services {
        display: flex;
    }
}

@media (min-width: 768px) {
    .section-services.p-services .sw-pagination-services {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — comprehensive overrides
   Breakpoints: 767px (phone), 575px (small phone)
═══════════════════════════════════════════════════ */

/* ── Mobile nav: nested category collapse ── */
.menu-item-nested > a {
    font-size: 13px !important;
    padding: 9px 12px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sub-menu-mobile--categories {
    margin-top: 4px;
}
.sub-menu-mobile--nested .menu-item a {
    font-size: 12px !important;
    padding: 8px 24px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border-left: 2px solid rgba(67, 186, 255, 0.25);
    margin-left: 8px;
    display: block;
}
.sub-menu-mobile--nested .menu-item a:hover {
    color: var(--primary) !important;
    border-left-color: var(--primary);
}
.mobile-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}
.mobile-badge--hot {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.mobile-badge--new {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

/* ── Home page: Popular Services mobile carousel ── */
@media (max-width: 767px) {
    .srv-mobile-carousel {
        padding: 0 4px;
    }
    .srv-featured-card--mobile {
        margin-bottom: 20px;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .srv-mobile-swiper-wrap {
        position: relative;
    }
    .srv-mini-card--mobile {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 200px;
        padding: 20px 18px;
    }
    .srv-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-top: 20px;
    }
    /* Services page: readmore button always visible on mobile */
    .services-item .tf-btn-readmore {
        width: 132px !important;
    }
    .services-item .tf-btn-readmore .plus {
        transform: translateY(-50%) !important;
        left: 20px !important;
    }
    .services-item .tf-btn-readmore .text {
        padding-left: 23px !important;
        position: unset !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    /* tf-btn-readmore: always expanded on mobile (no hover needed) */
    .tf-btn-readmore {
        width: 132px !important;
    }
    .tf-btn-readmore .plus {
        transform: translateY(-50%) !important;
        left: 20px !important;
    }
    .tf-btn-readmore .text {
        padding-left: 23px !important;
        position: unset !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ── Blog page: mobile swiper ── */
.blog-mobile-swiper {
    position: relative;
}
.blog-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}
@media (min-width: 576px) {
    .d-sm-grid {
        display: grid !important;
    }
}

/* ── Careers page: form mobile fixes ── */
@media (max-width: 767px) {
    /* Hide the image panel on mobile to save space */
    .section-form .left {
        display: none;
    }
    .section-form .right {
        padding: 30px 15px !important;
    }
    .section-form .section-inner {
        flex-direction: column;
    }
    /* Force form fields to single column on mobile */
    .form-contact-us .cols {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .form-contact-us .cols .item,
    .form-contact-us .cols .nice-select {
        max-width: 100% !important;
        width: 100% !important;
        flex: unset !important;
    }
    /* Phone country dropdown: prevent horizontal overflow */
    .career-country-wrap {
        flex-shrink: 0;
    }
    #countryBtn {
        min-width: 76px !important;
        font-size: 12px !important;
        padding: 0 8px !important;
    }
    #countryDropdown {
        min-width: 180px !important;
    }
    /* Careers job rows: stack on mobile */
    .career-job-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ── General font size reductions on mobile ── */
@media (max-width: 767px) {
    /* Hero headline on home */
    .page-title-home .title.fw-6 {
        font-size: 30px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.5px;
    }
    .page-title-home .highlight {
        font-size: inherit !important;
    }
    /* .page-title-home .top-page-title .sub-title {
        font-size: 1px !important;
    } */
    /* Counter numbers */
    .page-title-home .fs-65 {
        font-size: 36px !important;
        line-height: 1.1 !important;
    }
    /* Page titles */
    .page-title h1.title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    /* Section h2 headings */
    .heading-section h2.title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    /* Featured service title on home */
    .srv-featured-title {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }
    /* Marquee ticker text */
    .big-text {
        font-size: 60px !important;
    }
    /* Technology hero headline */
    .tech-hero__headline {
        font-size: clamp(28px, 8vw, 42px) !important;
    }
    /* Section sub-titles */

    /* Blog titles */
    .tf-post-grid .title a {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    /* Service detail hero */
    .svc-hero-title,
    h1.svc-hero-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    /* Technology advantages heading */
    .td-heading {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    /* "Read More" button always active on touch */
    .tf-btn-readmore {
        pointer-events: auto;
    }
    /* CTA banner */
    .wg-cta .cta-inner h5.title {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    /* Services item heading on /services page */
    .services-item h5 {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    /* Technology page advantage/benefit numbers */
    .td-adv-card__num {
        font-size: 28px !important;
    }
    .td-adv-card__title {
        font-size: 15px !important;
    }
    .td-adv-card__desc {
        font-size: 13px !important;
    }

    .page-title-home .top-page-title {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .page-title-home .title.fw-6 {
        font-size: 26px !important;
    }
    .page-title h1.title {
        font-size: 24px !important;
    }
    .heading-section h2.title {
        font-size: 21px !important;
    }
    .big-text {
        font-size: 48px !important;
    }
    .tech-hero__headline {
        font-size: 24px !important;
    }
    /* Reduce section padding on very small screens */
    .td-section {
        padding: 60px 0 !important;
    }
    .svc-talk-banner {
        padding: 32px 20px !important;
    }
    .svc-talk-banner h3 {
        font-size: 18px !important;
    }
    /* Career hero tagline */
    .career-tagline h2 {
        font-size: 22px !important;
    }
    /* srv featured card */
    .srv-featured-title {
        font-size: 18px !important;
    }
    .srv-featured-desc {
        font-size: 13px !important;
    }
}

/* ── Services page: show grid on desktop, slider on mobile ── */
.services-grid-desktop {
    display: flex !important;
}
.services-slider-mobile {
    display: none !important;
}
@media (max-width: 767px) {
    .services-grid-desktop {
        display: none !important;
    }
    .services-slider-mobile {
        display: block !important;
    }
}

/* ── Technology detail page: orbit bubbles too large on mobile ── */
@media (max-width: 767px) {
    .tech-hero__visual {
        display: none;
    }
    .tech-hero {
        min-height: unset;
        padding: 50px 0 60px;
    }
    .tech-hero__desc {
        font-size: 14px !important;
    }
    .tech-hero__badge {
        font-size: 11px !important;
        padding: 6px 14px !important;
    }
    /* Advantages grid: single column */
    .td-adv-grid {
        grid-template-columns: 1fr !important;
    }
    .td-adv-card {
        border-right: none !important;
    }
    .td-adv-card:nth-last-child(-n + 3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    }
    .td-adv-card:last-child {
        border-bottom: none !important;
    }
    /* Benefits grid */
    .td-ben-grid {
        grid-template-columns: 1fr !important;
    }
    /* Process grid */
    .svc-process-grid {
        grid-template-columns: 1fr !important;
    }
    /* Service numbered list */
    .svc-numbered-list--2col {
        grid-template-columns: 1fr !important;
    }
    /* Numbered item */
    .svc-numbered-item {
        grid-template-columns: 36px 1fr !important;
        gap: 0 12px !important;
    }
}

/* ── Portfolio page: prevent image overflow on mobile ── */
@media (max-width: 767px) {
    .project-gird-item img {
        height: 220px !important;
        object-fit: cover;
    }
}

/* ── Blog detail: comment section stacking ── */
@media (max-width: 575px) {
    .form-comment .cols {
        flex-direction: column !important;
    }
    .comment-item {
        padding: 20px 15px !important;
    }
}

/* ── CTA banner mobile fix ── */
@media (max-width: 767px) {
    .wg-cta .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .wg-cta .cta-inner .right {
        align-self: stretch;
    }
    .wg-cta .cta-inner .tf-btn-close {
        align-self: flex-end;
    }
}

/* ── Footer: mobile stacking ── */
@media (max-width: 575px) {
    .footer .footer-bottom .list-bottom {
        flex-wrap: wrap;
        gap: 10px !important;
    }
    .footer .footer-bottom .list-bottom li a {
        font-size: 12px;
    }
}

/* ── Section about on services page: image layout ── */
@media (max-width: 767px) {
    .section-about.p-services .left {
        display: block !important;
    }
    .section-about.p-services .left .image {
        height: 220px;
    }
    .section-about.p-services .left .img-secion-item {
        display: none;
    }
}

/* ── Topbar: hide on very small screens ── */
@media (max-width: 480px) {
    .top-bar {
        display: none;
    }
}

/* ── d-sm-grid utility (Bootstrap doesn't include this) ── */
@media (min-width: 576px) {
    .d-sm-grid {
        display: grid !important;
    }
    .d-sm-none {
        display: none !important;
    }
}
@media (max-width: 575px) {
    .d-sm-grid {
        display: none !important;
    }
    .d-sm-none {
        display: block !important;
    }
}

/* ── Careers page: job row mobile stacking ── */
@media (max-width: 600px) {
    .career-job-row,
    [style*="display:flex"][style*="align-items:center"][style*="justify-content:space-between"][style*="flex-wrap:wrap"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ── Home page hero: mobile font fixes ── */
@media (max-width: 767px) {
    .page-title-home .fs-20 {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .page-title-home .lh-40 {
        line-height: 1.6 !important;
    }
    .page-title-home .wg-counter {
        flex-direction: row;
        gap: 20px !important;
    }
    .page-title-home .image {
        margin-right: 0 !important;
    }
    .section-about .about-inner {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .section-about .about-inner .left {
        display: none;
    }
    .section-about .about-inner .right {
        width: 100%;
    }
    .section-counting .section-counting-inner {
        flex-direction: column;
        gap: 40px;
    }
    .section-counting .wg-counter {
        flex-wrap: wrap;
        gap: 20px !important;
    }
    .section-counting .counter-item.style-2 {
        min-width: 140px;
        flex: 1 1 140px;
    }
}

/* ── Mobile services page: swiper card height ── */
@media (max-width: 767px) {
    .sw-services-page .services-item {
        min-height: 260px;
        border: 1px solid var(--stroke-2) !important;
        border-radius: 12px;
        padding: 24px 20px !important;
    }
    .sw-services-page .services-item .icon {
        margin-bottom: 16px;
    }
}

/* ── Footer mobile: column layout ── */
@media (max-width: 767px) {
    .footer .footer-middle {
        flex-direction: column;
    }
    .footer .footer-middle .left {
        max-width: 100% !important;
    }
    .footer-content ul {
        margin-top: 16px;
    }
    .footer-content li {
        margin-bottom: 14px;
    }
}

/* ── Section about on services page ── */
@media (max-width: 767px) {
    .section-about.p-services .left .image {
        max-height: 240px;
        overflow: hidden;
        border-radius: 12px;
    }
    .section-about.p-services .left .img-secion-item {
        display: none !important;
    }
    .section-about.p-services .right {
        padding-left: 0 !important;
        margin-top: 24px;
    }
    .section-about.p-services .list-benefit {
        margin-bottom: 20px;
    }
    .section-about.p-services .fs-20 {
        font-size: 15px !important;
    }
}

/* ── Blog mobile swiper: contain images ── */
.blog-mobile-swiper .tf-post-grid .image img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

/* ── Topbar: hide on very small screens (already defined, ensure no conflict) ── */
@media (max-width: 480px) {
    .top-bar {
        display: none !important;
    }
}

/* ── CTA widget: mobile stack fix ── */
@media (max-width: 767px) {
    .wg-cta .cta-inner .left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .wg-cta .cta-inner .left .icon {
        display: none;
    }
    .wg-cta .cta-inner h5.title {
        font-size: 15px !important;
    }
    .wg-cta .cta-inner .list-agent {
        display: none;
    }
    .wg-cta .cta-inner .text h5 {
        font-size: 13px !important;
    }
}

/* ── Arrow button sizing for mobile prev/next ── */
@media (max-width: 767px) {
    .arrow-btn.w-50 {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid var(--stroke-2);
        cursor: pointer;
        background: transparent;
        color: var(--white);
        font-size: 14px;
        transition: all 0.2s;
    }
    .arrow-btn.w-50:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    .arrow-btn.w-50.swiper-button-disabled {
        opacity: 0.35;
        pointer-events: none;
    }
}

/* ── Section testimonials on mobile ── */
@media (max-width: 767px) {
    .section-testimonials-inner {
        flex-direction: column !important;
    }
    .section-testimonials-inner .left {
        max-width: 100% !important;
    }
    .section-testimonials-inner .right {
        max-width: 100% !important;
        width: 100%;
    }
    .section-testimonials-inner .list-btn {
        display: flex !important;
    }
}

/* ── Company section: accordion content on mobile ── */
@media (max-width: 767px) {
    .according-content {
        flex-direction: column !important;
    }
    .according-content .image {
        max-width: 100% !important;
    }
    .according-content .right {
        padding-left: 0 !important;
        margin-top: 16px;
    }
}

/* ── Page title: reduce padding on mobile ── */
@media (max-width: 767px) {
    .page-title .page-title-content {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .page-title h1.title {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    .page-title .breadkcum {
        font-size: 13px !important;
        margin-top: 8px;
    }
}

/* ── Mobile nav: full width offcanvas ── */
@media (max-width: 767px) {
    .offcanvas.mobile-nav-wrap {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}


/* ═══════════════════════════════════════════════════
   HOME BLOG SWIPER CARD
   Image always on top, content below — no side-by-side
═══════════════════════════════════════════════════ */
.home-blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--stroke-2);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: border-color 0.3s;
}
.home-blog-card:hover {
    border-color: rgba(255,255,255,0.2);
}

.home-blog-card__image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}
.home-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.home-blog-card:hover .home-blog-card__image img {
    transform: scale(1.04);
}

.home-blog-card__content {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Controls row: prev, pagination dots, next */
.home-blog-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* Swiper takes full width */
.sw-home-blog {
    width: 100%;
}

@media (max-width: 767px) {
    .home-blog-card__image {
        height: 180px;
    }
    .home-blog-card__content {
        padding: 18px 20px 22px;
    }
}


/* ═══════════════════════════════════════════════════
   BLOG DETAIL PAGE  —  bd- prefix
═══════════════════════════════════════════════════ */

/* ── Article wrapper ── */
.bd-article {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Meta bar ── */
.bd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.bd-meta__cat {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(67,186,255,0.12);
    border: 1px solid rgba(67,186,255,0.25);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}
.bd-meta__cat:hover {
    background: rgba(67,186,255,0.2);
    color: var(--primary);
}
.bd-meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.bd-meta__date,
.bd-meta__author,
.bd-meta__comments {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

/* ── Featured image — constrained, never gigantic ── */
.bd-featured-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 36px;
    position: relative;
}
.bd-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    max-height: 480px;
}

/* ── Body content typography ── */
.bd-body {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
}
.bd-body h1,
.bd-body h2,
.bd-body h3,
.bd-body h4 {
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
    margin: 32px 0 16px;
}
.bd-body h2 { font-size: clamp(20px, 3vw, 28px); }
.bd-body h3 { font-size: clamp(18px, 2.5vw, 22px); }
.bd-body h4 { font-size: 18px; }
.bd-body p {
    margin-bottom: 18px;
    line-height: 1.85;
}
.bd-body p:last-child { margin-bottom: 0; }
.bd-body ul,
.bd-body ol {
    padding-left: 22px;
    margin-bottom: 18px;
}
.bd-body ul { list-style: disc; }
.bd-body ol { list-style: decimal; }
.bd-body li {
    list-style: inherit;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
}
.bd-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bd-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    height: auto;
}
.bd-body blockquote {
    border-left: 3px solid var(--primary);
    margin: 28px 0;
    padding: 16px 24px;
    background: rgba(67,186,255,0.05);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    line-height: 1.7;
}
.bd-body strong, .bd-body b { color: #fff; font-weight: 700; }

/* ── Tags + Share footer row ── */
.bd-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--stroke-2);
    border-bottom: 1px solid var(--stroke-2);
    margin-bottom: 36px;
}
.bd-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bd-tags__label,
.bd-share__label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.bd-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Author card ── */
.bd-author-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    border: 1px solid var(--stroke-2);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    margin-bottom: 40px;
}
.bd-author-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(67,186,255,0.15);
    border: 2px solid rgba(67,186,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.bd-author-card__label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.bd-author-card__name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

/* ── Section title (shared) ── */
.bd-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bd-comments__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(67,186,255,0.15);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 0 6px;
}

/* ── Related posts grid ── */
.bd-related {
    margin-bottom: 40px;
}
.bd-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.bd-related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--stroke-2);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.25s;
}
.bd-related-card:hover {
    border-color: rgba(255,255,255,0.2);
}
.bd-related-card__image {
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}
.bd-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.bd-related-card:hover .bd-related-card__image img {
    transform: scale(1.05);
}
.bd-related-card__body {
    padding: 12px 14px;
}
.bd-related-card__date {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}
.bd-related-card__title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.45;
}

/* ── Comments ── */
.bd-comments {
    margin-bottom: 40px;
}
.bd-no-comments {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    padding: 20px 0;
}
.bd-alert-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(67,186,255,0.08);
    border: 1px solid rgba(67,186,255,0.3);
    border-radius: 8px;
    padding: 12px 18px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 24px;
}
.bd-comment {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--stroke-2);
}
.bd-comment--reply {
    padding-left: 20px;
    border-bottom: none;
    padding-top: 16px;
    padding-bottom: 0;
}
.bd-comment__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(67,186,255,0.12);
    border: 1px solid rgba(67,186,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.bd-comment__avatar--sm {
    width: 34px;
    height: 34px;
    font-size: 14px;
}
.bd-comment__body {
    flex: 1;
    min-width: 0;
}
.bd-comment__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bd-comment__name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.bd-comment__date {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.bd-comment__text {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
}
.bd-reply-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: opacity 0.2s;
}
.bd-reply-btn:hover { opacity: 0.75; }

/* ── Inline reply form ── */
.bd-reply-form {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid var(--stroke-2);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
}
.bd-reply-form__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
}
.bd-reply-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bd-reply-form__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.bd-reply-cancel {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.bd-reply-cancel:hover { color: rgba(255,255,255,0.7); }

/* ── Comment form ── */
.bd-comment-form {
    padding-top: 8px;
}
.bd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bd-form-errors {
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #ff6b6b;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .bd-related__grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767px) {
    .bd-featured-image {
        max-height: 280px;
        border-radius: 12px;
        margin-bottom: 24px;
    }
    .bd-featured-image img {
        max-height: 280px;
    }
    .bd-meta {
        gap: 8px;
        font-size: 12px;
    }
    .bd-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .bd-related__grid {
        grid-template-columns: 1fr;
    }
    .bd-form-row,
    .bd-reply-form__row {
        grid-template-columns: 1fr;
    }
    .bd-author-card {
        padding: 18px 20px;
    }
    .bd-body {
        font-size: 15px;
    }
    .bd-body h2 { font-size: 20px; }
    .bd-body h3 { font-size: 18px; }
}
@media (max-width: 480px) {
    .bd-featured-image {
        max-height: 220px;
        border-radius: 10px;
    }
    .bd-featured-image img {
        max-height: 220px;
    }
    .bd-comment {
        gap: 12px;
    }
    .bd-comment__avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}


/* ═══════════════════════════════════════════════════
   BLOG LISTING PAGE  —  bl- prefix
═══════════════════════════════════════════════════ */

/* ── Category badge ── */
.bl-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(67,186,255,0.12);
    border: 1px solid rgba(67,186,255,0.25);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 14px;
    transition: background 0.2s;
}
.bl-cat-badge:hover {
    background: rgba(67,186,255,0.22);
    color: var(--primary);
}
.bl-cat-badge--sm {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 10px;
}

/* ── Meta row ── */
.bl-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.bl-meta--sm {
    margin-top: 12px;
}
.bl-meta__item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}
.bl-meta--sm .bl-meta__item {
    font-size: 12px;
}
.bl-meta__item i {
    font-size: 12px;
    opacity: 0.7;
}
.bl-meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

/* ── FEATURED CARD ── */
.bl-featured-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    display: block;
}
.bl-featured-card__image {
    display: block;
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
}
.bl-featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.bl-featured-card:hover .bl-featured-card__image img {
    transform: scale(1.03);
}
.bl-featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,22,28,0.92) 0%,
        rgba(10,22,28,0.5) 45%,
        rgba(10,22,28,0.05) 100%
    );
}
.bl-featured-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 36px;
    z-index: 2;
}
.bl-featured-card__title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 12px;
}
.bl-featured-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.bl-featured-card__title a:hover {
    color: var(--primary);
}
.bl-featured-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin: 0;
    max-width: 540px;
}

/* ── REGULAR CARD GRID ── */
.bl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.bl-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--stroke-2);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.25s, background 0.25s;
}
.bl-card:hover {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
}
.bl-card__image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.bl-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.bl-card:hover .bl-card__image img {
    transform: scale(1.04);
}
.bl-card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bl-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    margin: 0 0 8px;
}
.bl-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.bl-card__title a:hover {
    color: var(--primary);
}
.bl-card__excerpt {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.5);
    margin: 0;
    flex: 1;
}

/* ── Empty state ── */
.bl-empty {
    padding: 60px 20px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 15px;
    border: 1px dashed var(--stroke-2);
    border-radius: 16px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .bl-featured-card__image { height: 340px; }
    .bl-featured-card__body { padding: 24px 28px; }
    .bl-featured-card__title { font-size: 22px; }
}
@media (max-width: 767px) {
    .bl-featured-card__image { height: 260px; }
    .bl-featured-card__body { padding: 20px 20px; }
    .bl-featured-card__title { font-size: 18px; }
    .bl-featured-card__excerpt { display: none; }
    .bl-grid { grid-template-columns: 1fr; gap: 16px; }
    .bl-card__image { height: 180px; }
    .bl-card__title { font-size: 15px; }
}
@media (max-width: 480px) {
    .bl-featured-card__image { height: 220px; }
    .bl-featured-card__body { padding: 16px; }
    .bl-featured-card__title { font-size: 16px; }
}
