/* ============================================
   Dio Visa Indonesia Homepage Styles
   Extracted from visa-indonesia_default.html
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* put in Customizer ▸ Additional CSS, style.css, or a child-theme file */
/* 1️⃣  Wide alternatives for every breakpoint  ----------------------- */
.dio-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width:576px) {

    /* sm */
    .dio-container {
        max-width: 580px;
    }

    /* BS default 540 → +40  */
}

@media (min-width:768px) {

    /* md */
    .dio-container {
        max-width: 760px;
    }

    /* 720 → +40           */
}

@media (min-width:992px) {

    /* lg */
    .dio-container {
        max-width: 1000px;
    }

    /* 960 → +40           */
}

@media (min-width:1200px) {

    /* xl */
    .dio-container {
        max-width: 1200px;
    }

    /* 1140 → +60          */
}

@media (min-width:1400px) {

    /* xxl */
    .dio-container {
        max-width: 1400px;
    }

    /* 1320 → +80 (or any) */
}

/* ============================================
   HERO SECTION STYLES
   LCP Optimization: Hero image is preloaded via wp_head hook
   ============================================ */
/* Hero section - fullbleed */
section.vi-hero {
    min-height: 89vh;
    /* ≈¾ screen */
    /* LCP: Background image preloaded via preload link in head */
    background: url('https://visa-indonesia.com/wp-content/uploads/welcome-to-indonesia-2025.jpg') top / cover no-repeat;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    left: 0;
    right: 0;
}

/* Hero overlay */
.vi-hero-overlay {
    top: 0;
    left: 0;
    background: #000;
    opacity: .5;
    pointer-events: none;
    mix-blend-mode: multiply;
    /* keeps colours punchy */
}

/* Hero container - properly constrained */
section.vi-hero>.container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Responsive container widths for hero */
@media (min-width: 576px) {
    section.vi-hero>.container {
        max-width: 540px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 768px) {
    section.vi-hero>.container {
        max-width: 720px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 992px) {
    section.vi-hero>.container {
        max-width: 960px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1200px) {
    section.vi-hero>.container {
        max-width: 1140px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1400px) {
    section.vi-hero>.container {
        max-width: 1400px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Hero heading styles - moved from inline */
.vi-hero .desktop-only-text {
    font-size: 52px;
}

.vi-hero .mobile-only-text {
    font-size: 32px;
}

/* Hero card styles - moved from inline */
.vi-hero .card.shadow-lg.h-fit {
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

/* Hero accordion item styles - moved from inline */
.vi-hero #visaAccordion .list-group-item[data-toggle="collapse"] {
    border-radius: 16px;
    color: #083156;
}

.vi-hero #visaAccordion .list-group-item[data-toggle="collapse"]:nth-child(2) {
    margin-top: 24px;
}

.vi-hero #visaAccordion .list-group-item[data-toggle="collapse"] .fa-lg,
.vi-hero #visaAccordion .list-group-item[data-toggle="collapse"] .fa-chevron-right {
    color: #083156 !important;
}

/* Hero accordion submenu image styles - moved from inline */
.vi-hero #visaAccordion .collapse .list-group-item img.rounded.mr-3 {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    /* Prevent layout shift by reserving space immediately */
    min-width: 32px;
    min-height: 32px;
}

/* Hero popular badge styles - moved from inline */
.vi-hero .list-group-item .badge-popular {
    display: inline-block;
    border-radius: 9999px;
    padding: 0 10px;
    font-size: 12px;
    color: #042747;
    margin-left: 0.5em;
    background: transparent;
    vertical-align: middle;
    background-color: #FFE168 !important;
}

/* Hero accordion extend item - moved from inline */
.vi-hero .visa-accordion-extend {
    margin-top: 24px;
}

/* Legacy support for dio-vi-hero class */
.dio-vi-hero {
    min-height: 89vh;
    background: url('https://visa-indonesia.com/wp-content/uploads/welcome-to-indonesia-2025.jpg') top / cover no-repeat;
}

.dio-vi-hero-overlay {
    top: 0;
    left: 0;
    background: #000;
    opacity: .5;
    pointer-events: none;
    mix-blend-mode: multiply;
}


/* stop lazy-load helpers from touching this rule */
.dio-vi-hero[data-no-lazy],
.dio-vi-hero[data-rocket-lazy-bg],
.dio-vi-hero.no-lazyload {}

@media (max-width: 767.98px) {

    /* 1) Make the hero fill the viewport and clear out the old 89vh */
    section.vi-hero,
    section.dio-vi-hero {
        min-height: 135vh !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* 2) Turn the container into a full-height column flex */
    section.vi-hero>.container,
    section.dio-vi-hero>.container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* 3) Stack your two columns vertically and push them apart */
    section.vi-hero .row.g-4.align-items-stretch,
    section.dio-vi-hero .row.g-4.align-items-stretch {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        /* fill the container */
    }

    /* 5) Nix any leftover top/bottom margins on those cols */
    section.vi-hero .col-lg-6,
    section.vi-hero .col-lg-5.offset-lg-1,
    section.dio-vi-hero .col-lg-6,
    section.dio-vi-hero .col-lg-5.offset-lg-1 {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    section.vi-hero .invisible-box,
    section.dio-vi-hero .invisible-box {
        height: 35vh !important;
        width: 100% !important;
    }
}

/* iPhone SE, iPhone XR and any phone ≤ 414 px wide (portrait) */
@media (max-width:414px) {

    section.vi-hero .invisible-box,
    section.dio-vi-hero .invisible-box {
        min-height: 17vh;
        /* shorter hero on very small screens */
    }
}



/* ---------- SUB-ITEMS ONLY (inside .collapse) ---------- */
#dio-visaAccordion .collapse .list-group-item {
    border: 0 !important;

    /* NEW: "fit-content" bubble with rounded ends */
    display: inline-flex;
    /* allows width to shrink to content   */
    /* width: fit-content; */
    /* limits background to just the text  */
    border-radius: 16px;
    /* 16 px pill on both sides            */
    padding: 0.5rem 1rem !important;
    margin-bottom: 5px !important;
    /* Hover animation */
    transition: transform .2s ease, background-color .2s ease;
}

#dio-visaAccordion .collapse .list-group-item:hover,
#dio-visaAccordion .collapse .list-group-item:focus {
    background-color: #DDE7F3;
    transform: scale(1.05);
}

[data-toggle="collapse"][aria-expanded="true"] .fa-chevron-right {
    transform: rotate(90deg);
    /* points down */
}

[data-toggle="collapse"] .fa-chevron-right {
    transition: transform .2s ease;
}

.dio-lc-block.text-center.py-3.bg-light.border.d-none {
    display: none !important;
}

body.livecanvas-is-editing .dio-lc-block.text-center.py-3.bg-light.border.d-none {
    display: block !important;
}

#dio-viVisitedList {
    overflow: hidden;
}

#dio-viVisitedList ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

/* desktop: 4 cards per row */
#dio-viVisitedList ul li {
    flex: 0 0 calc((100% - 3rem) / 4);
}

#dio-viVisitedList ul li .card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 1rem !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

#dio-viVisitedList ul li .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
}

#dio-viVisitedList ul li .card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin-right: .75rem;
    flex-shrink: 0;
}

#dio-viVisitedList ul li .card .flex-grow-1 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
}

/* clamp title to two lines */
#dio-viVisitedList ul li .card .flex-grow-1 p {
    margin: 0 0 .5rem;
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 2);
}

#dio-viVisitedList ul li .card .rating {
    margin-top: auto;
    font-size: .85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: .25rem;
}

#dio-viVisitedList ul li .card .arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #6c757d;
    margin-left: .5rem;
}

/* 3 cards per row on large tablets */
@media (max-width: 1199.98px) {
    #dio-viVisitedList ul li {
        flex: 0 0 calc((100% - 2rem) / 3);
    }
}

/* 2 cards per row on tablets */
@media (max-width: 991.98px) {
    #dio-viVisitedList ul li {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}

/* full width cards on phones */
@media (max-width: 575.98px) {
    #dio-viVisitedList ul li {
        flex: 0 0 100%;
    }

    /* slightly smaller images on mobile */
    #dio-viVisitedList ul li .card img {
        width: 48px;
        height: 48px;
    }
}

/* Hover lift effect */
.dio-service-cards .card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease;
}

.dio-service-cards .card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    text-decoration: none;
}

/* ==== Big outline numbers ==== */
.dio-outline-step {
    position: relative;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    letter-spacing: .02em;
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: 1;
    transform-origin: center;
    transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
    cursor: default;
}

/* glow + bounce on hover */
.dio-outline-step:hover {
    color: #F9C90A;
    -webkit-text-stroke-color: #F9C90A;
    animation: dio-stepBounce 0.6s cubic-bezier(.68, -0.55, .27, 1.55) both;
    text-shadow:
        0 0 8px rgba(249, 201, 10, 0.8),
        0 0 16px rgba(249, 201, 10, 0.6);
}


/* ==== Center the whole steps row ==== */
.dio-steps-container {
    justify-content: center !important;
}

/* ==== Connecting line ==== */
.dio-step-line {
    display: block;
    width: clamp(150px, 20vw, 310px);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
}

/* ==== Cap & center captions ==== */
.dio-text-row .col-md-4>div {
    max-width: 260px;
    margin: 0 auto;
    text-align: center;
}

/* ==== Mobile: vertical stack & vertical lines ==== */
@media (max-width: 767.98px) {
    .dio-steps-container {
        flex-direction: column !important;
    }

    .dio-step-line {
        width: 0 !important;
        height: 40px !important;
        border-top: none !important;
        border-left: 2px solid rgba(255, 255, 255, 0.5) !important;
        margin: .5rem auto !important;
    }

    .dio-text-row .col-md-4>div {
        text-align: left !important;
    }
}

/* narrow the overall wrapper */
.dio-popular-visas .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* equal-width grid + center items */
.dio-popular-visas .row-cols-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    margin: 0 auto;
}

/* card base + smooth hover lift with richer shadow */
.dio-popular-visas .card {
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.dio-popular-visas .card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 1.5rem 2rem rgba(0, 0, 0, 0.15),
        0 .75rem 1rem rgba(0, 0, 0, 0.1);
}

.dio-clamp-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    /* enforce 2 lines of height: */
    min-height: calc(1.2em * 2);
    text-align: center;
}

/* feature icon */
.dio-feature-icon {
    font-size: 26px !important;
    color: #083156 !important;
    width: 26px;
    height: 26px;
}

/* feature title */
.dio-feature-title {
    color: #021B32 !important;
}

/* feature description */
.dio-feature-desc {
    color: #083156 !important;
    font-weight: 700 !important;
}

/* constrain image height */
.dio-feature-img {
    object-fit: cover !important;
    width: 100% !important;
    border-radius: 20px;
}




/* Card container now a flex column */
.dio-testimonial-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px !important;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dio-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Stars */
.dio-testimonial-stars i {
    color: #F9C90A !important;
    margin-right: .25rem;
}

/* Title */
.dio-testimonial-title {
    color: #083156 !important;
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

/* Description grows naturally */
.dio-testimonial-desc {
    color: #5E636E !important;
    font-size: 16px !important;
    margin-bottom: 1.5rem !important;
    flex-grow: 0;
    /* let it take only needed space */
}

/* Footer pushed to bottom */
.dio-testimonial-footer {
    margin-top: auto;
}

/* Avatar */
.dio-testimonial-avatar {
    width: 36px;
    height: 36px;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: #083156 !important;
}

/* Name / Date */
.dio-testimonial-name {
    color: #083156 !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

.dio-badge.bg-success {
    font-size: 0.75rem;
    font-weight: 400;
    background: #083156 !important;
    padding: 5px 10px !important;
    /* optional: rounder pill shape */
    color: white;
    border-radius: 0.75rem;
    margin-left: 5px;
}

.dio-testimonial-date {
    color: #5E636E !important;
    font-size: 14px;
    margin: 0 !important;
}

.dio-testimonial-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 0.3rem;
}

/* Card base + hover lift */
.dio-blog-cards .lc-card {
    border-radius: 16px;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    position: relative;
    /* make stretched-link work */
    transition: transform .3s ease, box-shadow .3s ease;
}

.dio-blog-cards .lc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15);
}

.dio-blog-cards .lc-card-img-wrap {
    padding: .75rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: #f7f7f7;
}

.dio-blog-cards .lc-card-img-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.dio-blog-cards .lc-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.dio-blog-cards .lc-card-title {
    font-size: 16px !important;
    line-height: 1.3;
    margin-bottom: .5rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #021B32 !important;
}

.dio-blog-cards .lc-card-excerpt {
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    color: #555;
}

.dio-blog-cards .lc-card-footer {
    margin-top: auto;
}

.dio-blog-cards .lc-readmore {
    color: #05559F;
    font-weight: 600;
    text-decoration: none;
}

.dio-blog-cards .lc-readmore i {
    margin-left: .25rem;
}

/* ---------- DESKTOP styles (unchanged) ---------- */
.dio-outline-step {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    letter-spacing: .02em;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
}

.dio-step-line {
    display: block;
    width: clamp(150px, 14vw, 310px);
    border-top: 2px solid rgba(255, 255, 255, .5);
}

.dio-steps-container {
    justify-content: center !important;
}

/* ---------- MOBILE (<768 px) overrides ---------- */
@media (max-width:767.98px) {

    /* hide the whole desktop row */
    .dio-steps-container {
        display: none !important;
    }

    /* wrapper: create a full-height vertical guide */
    .dio-text-row {
        position: relative;
        margin-left: 10px;
        /* pulls text a bit right */
    }

    /* each caption row = flex */
    .dio-text-row .col-md-4 {
        display: flex;
        align-items: flex-start;
        text-align: left !important;
        gap: 1rem;
        margin-bottom: 1.75rem;
    }

    /* bigger outline number + centred on the vertical guide */
    .dio-mobile-step-num {
        font-size: 3rem;
        -webkit-text-stroke: 2px #fff;
        color: transparent;
        line-height: 1;
        flex-shrink: 0;
        position: relative;
        left: -10px;
        /* re-centre number on the guide */
        white-space: nowrap;
    }

    /* draw the vertical "continuation" below each number except last */
    .dio-mobile-step-num::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        width: 2px;
        height: calc(100% + 5.75rem);
        /* matches gap between rows */
        background: rgba(255, 255, 255, .4);
    }

    .dio-mobile-step-num.active {
        color: #F9C90A;
        -webkit-text-stroke-color: #F9C90A;
        text-shadow:
            0 0 8px rgba(249, 201, 10, .8),
            0 0 16px rgba(249, 201, 10, .6);
        /* smooth neon look */
    }
}

/* ─── Wrapper for the table (narrower + rounded) ─── */
.dio-vt-compare-wrapper {
    max-width: 1000px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 20px;
}

/* ─── The actual table with its own rounding ─── */
.dio-vt-compare-table {
    width: 100%;
    margin: 0;
    border: none;
}

/* ─── Header cells ─── */
.dio-vt-compare-table thead th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    border: none;
    color: #083156;
    text-align: center;
}

.dio-vt-compare-table thead th:first-child {
    text-align: left;
    border: none;
}

/* ─── Body cells & borders on every row ─── */
.dio-vt-compare-table tbody td {
    padding: 1rem 1.5rem;
    text-align: center;
    border: none;
}

.dio-vt-compare-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #083156;

}

.dio-vt-compare-table tbody td:not(:first-child) {
    background-color: #F5F5F5 !important;
}

/* ─── Colored icons restored ─── */
.dio-vt-compare-table td .fa-check-circle {
    color: #28a745;
    font-size: 1.25rem;
}

.dio-vt-compare-table td .fa-times-circle {
    color: #dc3545;
    font-size: 1.25rem;
}

/* ─── Logos in header ─── */
.dio-vt-compare-table thead th img {
    height: 28px;
    width: 28px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ─── Table spacing controls ─── */
.dio-vt-compare-table {
    /* let the browser draw gaps instead of "gluing" cells together */
    border-collapse: separate;
    border-spacing: 0 0;
    /* keep rows tight; we'll fake the column gap */
}

.dio-vt-compare-table thead th:nth-child(3),
.dio-vt-compare-table tbody td:nth-child(3) {
    border-left: 2px solid #fff;
}

/* ─── Rounded corners for the coloured blocks ─── */
/* top corners (header cells) */
.dio-vt-compare-table thead th:nth-child(2) {
    border-top-left-radius: 12px;
}


/* bottom corners (last body row only) */
.dio-vt-compare-table tbody tr:last-child td:nth-child(2) {
    border-bottom-left-radius: 16px;
}

.dio-vt-compare-table tbody tr:last-child td:nth-child(3) {
    border-bottom-right-radius: 16px;
}


/* ── Quick patch ─────────────────────────────── */
.dio-vt-compare-table .fa-check-circle {
    color: #28a745 !important;
    font-size: 1.25rem !important;
    vertical-align: middle;
}

.dio-vt-compare-table .fa-times-circle {
    color: #dc3545 !important;
    font-size: 1.25rem !important;
    vertical-align: middle;
}

.dio-vt-compare-table .fa-info-circle {
    color: #083156;
    font-size: 1rem;
    vertical-align: middle;
    margin-left: .35rem;
    cursor: pointer;
}

/* tooltip palette */
.dio-tooltip-blue .tooltip-inner {
    background: #FFF;
    color: #083156;
    padding: .5rem 1rem;
    font-size: .85rem;
    border-radius: .25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    max-width: min(380px, 80vw);
    text-align: left;
}

@media (max-width: 767.98px) {

    /* 1. Allow side-scrolling only INSIDE the white card */
    .dio-vt-compare-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* smooth on iOS */
        position: relative;
        padding: 0;
        padding-bottom: 1rem;
        /* space for fingers */
    }

    /* optional visual cue: a subtle "fade" on right edge */
    .dio-vt-compare-wrapper::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 1.5rem;
        pointer-events: none;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #fff 100%);
    }

    /* 2. Table tweaks so it *almost* fits a 360px screen */
    .dio-vt-compare-table {

        table-layout: fixed;
        /* equal-width columns                */
        font-size: .9rem;
        /* global downsize                    */
    }

    .dio-vt-compare-table th,
    .dio-vt-compare-table td {
        padding: .75rem .3rem !important;
        /* tighter cell padding               */
    }

    .dio-vt-compare-table th img {
        height: 22px;
        width: 22px;
        margin-right: .3rem;
    }

    /* 3. Shrink icons  & info buttons */
    .dio-vt-compare-table .fa-check-circle,
    .dio-vt-compare-table .fa-times-circle {
        font-size: 1.05rem;
    }

    .dio-vt-compare-table .fa-info-circle {
        margin-left: .25rem;
    }

    /* 4. Make header stick while user swipes */
    .dio-vt-compare-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        /* match card */
    }

    /* ─── Body cells & borders on every row ─── */
    .dio-vt-compare-table tbody td {
        padding: .75rem .6rem;
    }

    .dio-vt-compare-table thead th {
        padding: .75rem .6rem;
    }

    /* 5. Prevent super-long sentences from exploding cells */
    .dio-vt-compare-table td:first-child {
        white-space: normal;
        word-break: break-word;
    }

    .dio-vt-compare-table thead th:first-child {
        text-align: left;
        border: none;
        vertical-align: bottom;
    }
}

/* ===== vt (unique) tooltip styles: white box, #00234F text, soft shadow ===== */
.dio-vt-tooltip-style {
    --vt-bg: #ffffff;
    --vt-text: #00234F;
    --vt-shadow: 0 8px 20px rgba(0, 35, 79, 0.15);
    --vt-radius: 12px;
    --vt-pad: 10px 14px;
    --vt-z: 1065;
    --vt-maxw: 340px;
    --vt-fs: 14px;
}

#dio-vt-tooltip {
    position: fixed;
    /* avoids clipping inside tables/overflow */
    top: 0;
    left: 0;
    transform: translate(-9999px, -9999px);
    z-index: var(--vt-z);
    pointer-events: none;
}

#dio-vt-tooltip .vt-tooltip-bubble {
    max-width: var(--vt-maxw);
    background: var(--vt-bg);
    color: var(--vt-text);
    border-radius: var(--vt-radius);
    padding: var(--vt-pad);
    font-size: var(--vt-fs);
    line-height: 1.45;
    box-shadow: var(--vt-shadow);
    text-align: left;
    box-sizing: border-box;
    word-wrap: break-word;
}

#dio-vt-tooltip .vt-arrow {
    width: 0;
    height: 0;
    position: absolute;
}

/* Arrow per placement */
#dio-vt-tooltip[data-vt-placement="top"] .vt-arrow {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--vt-bg);
    bottom: -8px;
    left: 20px;
}

#dio-vt-tooltip[data-vt-placement="bottom"] .vt-arrow {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--vt-bg);
    top: -8px;
    left: 20px;
}

#dio-vt-tooltip[data-vt-placement="left"] .vt-arrow {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--vt-bg);
    right: -8px;
    top: 14px;
}

#dio-vt-tooltip[data-vt-placement="right"] .vt-arrow {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--vt-bg);
    left: -8px;
    top: 14px;
}

/* Simple pop animation */
#dio-vt-tooltip.dio-vt-visible {
    animation: dio-vt-pop .12s ease-out;
}

@keyframes dio-vt-pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Triggers */
.dio-vt-tip {
    cursor: help;
    outline: none;
}

.dio-vt-tip:focus {
    outline: 2px solid rgba(0, 35, 79, .35);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {

    /* shrink inner blue card padding & font */
    .dio-visa-cta-card {
        padding: 1.75rem !important;
    }

    .dio-visa-cta-card p {
        font-size: 1.1rem !important;
    }

    /* fs-5 ~= 1.25rem */
}

/* Legacy class support - keep original classes working */
.vi-hero {
    min-height: 89vh;
    background: url('https://visa-indonesia.com/wp-content/uploads/welcome-to-indonesia-2025.jpg') top / cover no-repeat;
}

.vi-hero-overlay {
    top: 0;
    left: 0;
    background: #000;
    opacity: .5;
    pointer-events: none;
    mix-blend-mode: multiply;
}

#visaAccordion .collapse .list-group-item {
    border: 0 !important;
    display: inline-flex;
    border-radius: 16px;
    padding: 0.5rem 1rem !important;
    margin-bottom: 5px !important;
    transition: transform .2s ease, background-color .2s ease;
}

#visaAccordion .collapse .list-group-item:hover,
#visaAccordion .collapse .list-group-item:focus {
    background-color: #DDE7F3;
    transform: scale(1.05);
}

#viVisitedList {
    overflow: hidden;
}

#viVisitedList ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

#viVisitedList ul li {
    flex: 0 0 calc((100% - 3rem) / 4);
}

#viVisitedList ul li .card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 1rem !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

#viVisitedList ul li .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
}

.service-cards .card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-cards .card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    text-decoration: none;
}

.outline-step {
    position: relative;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    letter-spacing: .02em;
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: 1;
    transform-origin: center;
    transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
    cursor: default;
}

.outline-step:hover {
    color: #F9C90A;
    -webkit-text-stroke-color: #F9C90A;
    animation: stepBounce 0.6s cubic-bezier(.68, -0.55, .27, 1.55) both;
    text-shadow: 0 0 8px rgba(249, 201, 10, 0.8), 0 0 16px rgba(249, 201, 10, 0.6);
}

/* ============================================
   Visa Process Section Styles
   ============================================ */
.visa-process-section {
    background: #00234F;
    padding: 60px 0;
}

.visa-process-section h2 {
    color: #fff !important;
}

.steps-container {
    justify-content: center !important;
}

.step-line {
    display: block;
    width: clamp(150px, 20vw, 310px);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
}

.text-row .col-md-4>div {
    max-width: 260px;
    margin: 0 auto;
    text-align: center;
}

.popular-visas .container {
    max-width: 1400px;
    margin: 0 auto;
}

.popular-visas .row-cols-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    margin: 0 auto;
}

.popular-visas .card {
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.popular-visas .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, 0.15), 0 .75rem 1rem rgba(0, 0, 0, 0.1);
}

.clamp-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    min-height: calc(1.2em * 2);
    text-align: center;
}

.feature-icon {
    font-size: 26px !important;
    color: #083156 !important;
    width: 26px;
    height: 26px;
}

.feature-title {
    color: #021B32 !important;
}

.feature-desc {
    color: #083156 !important;
    font-weight: 700 !important;
}

.feature-img {
    object-fit: cover !important;
    width: 100% !important;
    border-radius: 20px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px !important;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-stars i {
    color: #F9C90A !important;
    margin-right: .25rem;
}

.testimonial-title {
    color: #083156 !important;
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.testimonial-desc {
    color: #5E636E !important;
    font-size: 16px !important;
    margin-bottom: 1.5rem !important;
    flex-grow: 0;
}

.testimonial-footer {
    margin-top: auto;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: #083156 !important;
}

.testimonial-name {
    color: #083156 !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

.badge.bg-success {
    font-size: 0.75rem;
    font-weight: 400;
    background: #083156 !important;
    padding: 5px 10px !important;
    color: white;
    border-radius: 0.75rem;
    margin-left: 5px;
}

.testimonial-date {
    color: #5E636E !important;
    font-size: 14px;
    margin: 0 !important;
}

.testimonial-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 0.3rem;
}

.blog-cards .lc-card {
    border-radius: 16px;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}

.blog-cards .lc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15);
}

.blog-cards .lc-card-img-wrap {
    padding: .75rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: #f7f7f7;
}

.blog-cards .lc-card-img-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.blog-cards .lc-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.blog-cards .lc-card-title {
    font-size: 16px !important;
    line-height: 1.3;
    margin-bottom: .5rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #021B32 !important;
}

.blog-cards .lc-card-excerpt {
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    color: #555;
}

.blog-cards .lc-card-footer {
    margin-top: auto;
}

.blog-cards .lc-readmore {
    color: #05559F;
    font-weight: 600;
    text-decoration: none;
}

.vt-compare-wrapper {
    max-width: 1000px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 20px;
}

.vt-compare-table {
    width: 100%;
    margin: 0;
    border: none;
}

.vt-compare-table thead th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    border: none;
    color: #083156;
    text-align: center;
}

.vt-compare-table thead th:first-child {
    text-align: left;
    border: none;
}

.vt-compare-table tbody td {
    padding: 1rem 1.5rem;
    text-align: center;
    border: none;
}

.vt-compare-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #083156;
}

.vt-compare-table tbody td:not(:first-child) {
    background-color: #F5F5F5 !important;
}

.vt-compare-table td .fa-check-circle {
    color: #28a745;
    font-size: 1.25rem;
}

.vt-compare-table td .fa-times-circle {
    color: #dc3545;
    font-size: 1.25rem;
}

.vt-tooltip-style {
    --vt-bg: #ffffff;
    --vt-text: #00234F;
    --vt-shadow: 0 8px 20px rgba(0, 35, 79, 0.15);
    --vt-radius: 12px;
    --vt-pad: 10px 14px;
    --vt-z: 1065;
    --vt-maxw: 340px;
    --vt-fs: 14px;
}

#vt-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-9999px, -9999px);
    z-index: var(--vt-z);
    pointer-events: none;
}

#vt-tooltip .vt-tooltip-bubble {
    max-width: var(--vt-maxw);
    background: var(--vt-bg);
    color: var(--vt-text);
    border-radius: var(--vt-radius);
    padding: var(--vt-pad);
    font-size: var(--vt-fs);
    line-height: 1.45;
    box-shadow: var(--vt-shadow);
    text-align: left;
    box-sizing: border-box;
    word-wrap: break-word;
}

#vt-tooltip .vt-arrow {
    width: 0;
    height: 0;
    position: absolute;
}

#vt-tooltip[data-vt-placement="top"] .vt-arrow {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--vt-bg);
    bottom: -8px;
    left: 20px;
}

#vt-tooltip[data-vt-placement="bottom"] .vt-arrow {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--vt-bg);
    top: -8px;
    left: 20px;
}

#vt-tooltip[data-vt-placement="left"] .vt-arrow {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--vt-bg);
    right: -8px;
    top: 14px;
}

#vt-tooltip[data-vt-placement="right"] .vt-arrow {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--vt-bg);
    left: -8px;
    top: 14px;
}

#vt-tooltip.vt-visible {
    animation: vt-pop .12s ease-out;
}

@keyframes vt-pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vt-tip {
    cursor: help;
    outline: none;
}

.vt-tip:focus {
    outline: 2px solid rgba(0, 35, 79, .35);
    outline-offset: 2px;
}

.visa-cta-card {}

.mobile-step-num {
    font-size: 3rem;
    -webkit-text-stroke: 2px #fff;
    color: transparent;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    left: -10px;
    white-space: nowrap;
}

.mobile-step-num::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 5.75rem);
    background: rgba(255, 255, 255, .4);
}

.mobile-step-num.active {
    color: #F9C90A;
    -webkit-text-stroke-color: #F9C90A;
    text-shadow: 0 0 8px rgba(249, 201, 10, .8), 0 0 16px rgba(249, 201, 10, .6);
}

@media (max-width: 767.98px) {
    section.vi-hero {
        min-height: 135vh !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    section.vi-hero>.container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    section.vi-hero .row.g-4.align-items-stretch {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }

    section.vi-hero .col-lg-6,
    section.vi-hero .col-lg-5.offset-lg-1 {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    section.vi-hero .invisible-box {
        height: 35vh !important;
        width: 100% !important;
    }

    .steps-container {
        flex-direction: column !important;
    }

    .step-line {
        width: 0 !important;
        height: 40px !important;
        border-top: none !important;
        border-left: 2px solid rgba(255, 255, 255, 0.5) !important;
        margin: .5rem auto !important;
    }

    .text-row .col-md-4>div {
        text-align: left !important;
    }

    .steps-container {
        display: none !important;
    }

    .text-row {
        position: relative;
        margin-left: 10px;
    }

    .text-row .col-md-4 {
        display: flex;
        align-items: flex-start;
        text-align: left !important;
        gap: 1rem;
        margin-bottom: 1.75rem;
    }

    #viVisitedList ul li {
        flex: 0 0 calc((100% - 2rem) / 3);
    }

    #viVisitedList ul li {
        flex: 0 0 calc((100% - 1rem) / 2);
    }

    #viVisitedList ul li {
        flex: 0 0 100%;
    }

    #viVisitedList ul li .card img {
        width: 48px;
        height: 48px;
    }

    .vt-compare-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        padding: 0;
        padding-bottom: 1rem;
    }

    .vt-compare-wrapper::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 1.5rem;
        pointer-events: none;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #fff 100%);
    }

    .vt-compare-table {
        table-layout: fixed;
        font-size: .9rem;
    }

    .vt-compare-table th,
    .vt-compare-table td {
        padding: .75rem .3rem !important;
    }

    .vt-compare-table th img {
        height: 22px;
        width: 22px;
        margin-right: .3rem;
    }

    .vt-compare-table .fa-check-circle,
    .vt-compare-table .fa-times-circle {
        font-size: 1.05rem;
    }

    .vt-compare-table .fa-info-circle {
        margin-left: .25rem;
    }

    .vt-compare-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
    }

    .vt-compare-table tbody td {
        padding: .75rem .6rem;
    }

    .vt-compare-table thead th {
        padding: .75rem .6rem;
    }

    .vt-compare-table td:first-child {
        white-space: normal;
        word-break: break-word;
    }

    .vt-compare-table thead th:first-child {
        text-align: left;
        border: none;
        vertical-align: bottom;
    }
}

@media (max-width:414px) {
    section.vi-hero .invisible-box {
        min-height: 17vh;
    }
}

@media (max-width: 575.98px) {
    .visa-cta-card {
        padding: 1.75rem !important;
    }

    .visa-cta-card p {
        font-size: 1.1rem !important;
    }
}

/* ============================================
   Recently Viewed List - Styles for #viVisitedList
   (JavaScript is inline in HTML template for LiveCanvas compatibility)
   ============================================ */
#viVisitedList {
    overflow: hidden;
}

#viVisitedList ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

/* desktop: 4 cards per row */
#viVisitedList ul li {
    flex: 0 0 calc((100% - 3rem) / 4);
}

#viVisitedList ul li .card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 1rem !important;
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

#viVisitedList ul li .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

#viVisitedList ul li .card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin-right: .75rem;
    flex-shrink: 0;
    border-radius: 4px;
}

#viVisitedList ul li .card .flex-grow-1 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    flex: 1;
    min-width: 0;
    /* Allows text truncation */
}

#viVisitedList ul li .card .flex-grow-1 p {
    margin: 0 0 .5rem;
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 2);
}

#viVisitedList ul li .card .rating {
    margin-top: auto;
    font-size: .85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: .25rem;
}

#viVisitedList ul li .card .arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #6c757d;
    margin-left: .5rem;
}

/* 3 cards per row on large tablets */
@media (max-width: 1199.98px) {
    #viVisitedList ul li {
        flex: 0 0 calc((100% - 2rem) / 3);
    }
}

/* 2 cards per row on tablets */
@media (max-width: 991.98px) {
    #viVisitedList ul li {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}

/* full width cards on phones */
@media (max-width: 575.98px) {
    #viVisitedList ul li {
        flex: 0 0 100%;
    }

    #viVisitedList ul li .card img {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   Service Cards Fullbleed Section
   ============================================ */
/* Break the lc-block containing service-cards out of container for fullbleed */
/* Target the lc-block with gray background that contains service-cards */
section.py-6.mb-5>.container>.lc-block.p-lg-5,
section>.container>.lc-block.p-lg-5:has(.service-cards) {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    left: 0;
    right: 0;
}

/* Service cards container - override Bootstrap container constraints */
.lc-block .service-cards.container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Responsive max-width for service-cards container to match Bootstrap breakpoints */
@media (min-width: 576px) {
    .lc-block .service-cards.container {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    .lc-block .service-cards.container {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .lc-block .service-cards.container {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .lc-block .service-cards.container {
        max-width: 1140px !important;
    }
}

@media (min-width: 1400px) {
    .lc-block .service-cards.container {
        max-width: 1400px !important;
    }
}

/* ============================================
   "Why Thousands Choose Us" Section Fullbleed
   ============================================ */
/* Target section by structure - section.py-5 that contains .feature-img */
section.py-5:has(.feature-img) {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    left: 0;
    right: 0;
}

/* Fallback for browsers without :has() support - target section after popular-visas */
@supports not selector(:has(*)) {
    section.popular-visas+section.py-5 {
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative;
        left: 0;
        right: 0;
    }
}

/* Ensure container inside fullbleed section is properly constrained */
section.py-5:has(.feature-img)>.container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Responsive container widths for the fullbleed section */
@media (min-width: 576px) {
    section.py-5:has(.feature-img)>.container {
        max-width: 540px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 768px) {
    section.py-5:has(.feature-img)>.container {
        max-width: 720px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 992px) {
    section.py-5:has(.feature-img)>.container {
        max-width: 960px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1200px) {
    section.py-5:has(.feature-img)>.container {
        max-width: 1140px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1400px) {
    section.py-5:has(.feature-img)>.container {
        max-width: 1400px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ============================================
   Testimonials Section Fullbleed
   ============================================ */
/* Target section containing testimonials - section.py-6 with .testimonial-card */
section.py-6:has(.testimonial-card) {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    left: 0;
    right: 0;
}

/* Fallback for browsers without :has() support */
@supports not selector(:has(*)) {
    section.py-6[style*="background-color: #E9F0F7"] {
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative;
        left: 0;
        right: 0;
    }
}

/* Ensure container inside testimonials fullbleed section is properly constrained */
section.py-6:has(.testimonial-card)>.container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Responsive container widths for testimonials section */
@media (min-width: 576px) {
    section.py-6:has(.testimonial-card)>.container {
        max-width: 540px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 768px) {
    section.py-6:has(.testimonial-card)>.container {
        max-width: 720px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 992px) {
    section.py-6:has(.testimonial-card)>.container {
        max-width: 960px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1200px) {
    section.py-6:has(.testimonial-card)>.container {
        max-width: 1140px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1400px) {
    section.py-6:has(.testimonial-card)>.container {
        max-width: 1400px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ============================================
   Blog Cards Section Fullbleed
   ============================================ */
/* Target section with .blog-cards class */
section.blog-cards {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    left: 0;
    right: 0;
}

/* Ensure container inside blog-cards fullbleed section is properly constrained */
section.blog-cards>.container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Responsive container widths for blog-cards section */
@media (min-width: 576px) {
    section.blog-cards>.container {
        max-width: 540px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 768px) {
    section.blog-cards>.container {
        max-width: 720px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 992px) {
    section.blog-cards>.container {
        max-width: 960px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1200px) {
    section.blog-cards>.container {
        max-width: 1140px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1400px) {
    section.blog-cards>.container {
        max-width: 1400px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ============================================
   Recently Viewed Section Fullbleed
   ============================================ */
/* Target section with id recentlyViewed */
section#recentlyViewed {
    background-color: white;
    display: block;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    left: 0;
    right: 0;
}

/* Ensure container inside recentlyViewed fullbleed section is properly constrained */
section#recentlyViewed>.container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Responsive container widths for recentlyViewed section */
@media (min-width: 576px) {
    section#recentlyViewed>.container {
        max-width: 540px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 768px) {
    section#recentlyViewed>.container {
        max-width: 720px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 992px) {
    section#recentlyViewed>.container {
        max-width: 960px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1200px) {
    section#recentlyViewed>.container {
        max-width: 1140px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 1400px) {
    section#recentlyViewed>.container {
        max-width: 1400px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ============================================
   Visa Finder Iframe - Performance Optimized
   ============================================ */
.visa-finder-iframe {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    height: 100vh;
    border: 0;
    display: block;
}

/* Placeholder for lazy-loaded iframe */
.visa-finder-iframe[data-src]:not([src]) {
    min-height: 600px;
    background: #f5f5f5;
    background-image: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 200% 100%;
    animation: visa-finder-skeleton 1.5s ease-in-out infinite;
}

@keyframes visa-finder-skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive height adjustments */
@media (max-width: 991.98px) {
    .visa-finder-iframe {
        height: 80vh;
        min-height: 500px;
    }
}

@media (max-width: 575.98px) {
    .visa-finder-iframe {
        height: 70vh;
        min-height: 400px;
    }
}

/* ============================================
   Star Rating Color (Homepage Cards)
   ============================================ */
.popular-visas .star-rating span::before,
.popular-visas .review-rating .star-rating span::before {
    color: #F9C90A !important;
}