.country-detail-hero {
    background:
        radial-gradient(circle at top left, rgba(14,148,255,0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(0,51,102,0.08), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #f8f9fb 100%);
    padding: 62px 0 30px;
}

.country-detail-hero-inner {
    max-width: 920px;
    margin: 0 auto;
}

.country-detail-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0e94ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.country-detail-flag-wrap {
    margin-bottom: 20px;
}

.country-detail-flag {
    width: 110px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.country-detail-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.12;
    color: #12344d;
    margin-bottom: 16px;
}

.country-detail-subtitle {
    max-width: 780px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.85;
    color: #64748b;
}

.country-detail-hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.country-detail-hero-pills span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.90);
    border: 1px solid #e3edf8;
    color: #12344d;
    font-size: 13px;
    font-weight: 700;
}

.country-detail-section-tuned {
    background: #f0f4f9;
    padding: 48px 0 96px;
}

.country-detail-main-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 44px 48px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.detail-block {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #eef2f7;
}

.detail-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f2235;
    margin-bottom: 20px;
    line-height: 1.25;
}

/* ── Rich content typography ── */
.detail-content-text {
    font-size: 18px;
    line-height: 2;
    color: #3d5166;
}

.detail-content-text h2,
.country-content h2 {
    font-size: 29px;
    font-weight: 800;
    color: #0f2235;
    margin: 44px 0 18px;
    padding-left: 18px;
    border-left: 5px solid var(--thm-primary);
    line-height: 1.3;
}

.detail-content-text h2:first-child,
.country-content h2:first-child {
    margin-top: 0;
}

.detail-content-text h3,
.country-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f2235;
    margin: 36px 0 14px;
    padding-left: 14px;
    border-left: 3px solid #94a3b8;
    line-height: 1.35;
}

.detail-content-text h4,
.country-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a52;
    margin: 28px 0 12px;
}

.country-content p {
    margin-bottom: 22px;
    line-height: 2;
    color: #3d5166;
    font-size: 18px;
}

.country-content p:last-child {
    margin-bottom: 0;
}

.detail-content-text ul,
.country-content ul,
.detail-content-text ol,
.country-content ol {
    margin: 0 0 26px 0;
    padding-left: 0;
    list-style: none;
}

.detail-content-text ul li,
.country-content ul li {
    position: relative;
    padding: 9px 0 9px 30px;
    font-size: 17px;
    line-height: 1.8;
    color: #3d5166;
    border-bottom: 1px solid #f1f5f9;
}

.detail-content-text ul li:last-child,
.country-content ul li:last-child {
    border-bottom: none;
}

.detail-content-text ul li::before,
.country-content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--thm-primary);
    flex-shrink: 0;
}

.detail-content-text ol li,
.country-content ol li {
    padding: 9px 0 9px 10px;
    font-size: 17px;
    line-height: 1.8;
    color: #3d5166;
    list-style: decimal;
    margin-left: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-content-text ol li:last-child,
.country-content ol li:last-child {
    border-bottom: none;
}

.detail-content-text strong,
.country-content strong {
    color: #0f2235;
    font-weight: 700;
}

.detail-content-text a,
.country-content a {
    color: #0e94ff;
    text-decoration: underline;
    text-decoration-color: rgba(14,148,255,0.3);
    text-underline-offset: 3px;
}

.detail-content-text a:hover,
.country-content a:hover {
    color: #0077d6;
    text-decoration-color: rgba(0,119,214,0.6);
}

/* ── Structured HTML content (embedded full-page HTML) ── */
.country-html-render {
    font-size: 18px !important;
    line-height: 1.9 !important;
}

/* Force wrapper to be full-width — embedded CSS has max-width: 780px */
.country-html-render .wrapper,
.country-html-render .article-wrapper,
.country-html-render .content-wrapper,
.country-html-render .page-wrapper,
.country-html-render .container,
.country-html-render .inner {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Article body padding override */
.country-html-render .article-body,
.country-html-render .article,
.country-html-render .content,
.country-html-render main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 32px !important;
}

/* Font size overrides — beat embedded h2/h3/h4/p rules */
.country-html-render p,
.country-html-render .article-body p {
    font-size: 17.5px !important;
    line-height: 1.95 !important;
    color: #3d5166 !important;
    margin-bottom: 20px !important;
}

.country-html-render h2,
.country-html-render .article-body h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0f2235 !important;
    margin: 44px 0 16px !important;
    padding-left: 18px !important;
    padding-top: 0 !important;
    border-left: 5px solid var(--thm-primary) !important;
    border-top: none !important;
    line-height: 1.3 !important;
}

.country-html-render h3,
.country-html-render .article-body h3 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f2235 !important;
    margin: 34px 0 14px !important;
    padding-left: 14px !important;
    border-left: 3px solid #94a3b8 !important;
    line-height: 1.35 !important;
}

.country-html-render h4,
.country-html-render .article-body h4 {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #1e3a52 !important;
    margin: 26px 0 10px !important;
}

.country-html-render ul li,
.country-html-render ol li,
.country-html-render .article-body ul li,
.country-html-render .article-body ol li {
    font-size: 17px !important;
    line-height: 1.85 !important;
}

.detail-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.detail-info-card {
    background: #f8fafd;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    margin-bottom: 28px;
}

.detail-info-card-full {
    margin-bottom: 28px;
}

.detail-info-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f2235;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #eef2f7;
}

.detail-info-card p {
    font-size: 16.5px;
    line-height: 1.9;
    color: #3d5166;
    margin-bottom: 12px;
}

.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #3d5166;
}

.detail-list li {
    position: relative;
    padding: 9px 0 9px 26px;
    font-size: 16px;
    line-height: 1.7;
    border-bottom: 1px solid #eef2f7;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--thm-primary);
}

/* Hero section — keep text light on dark background */
.country-html-render .hero p,
.country-html-render .hero-lead {
    color: rgba(245, 237, 224, 0.9) !important;
    margin-bottom: 0 !important;
}

/* Checklist — suppress default list marker */
.country-html-render .checklist,
.country-html-render .checklist li {
    list-style: none !important;
}

.detail-list a {
    color: #0e94ff;
    font-weight: 600;
    text-decoration: none;
}

.detail-list a:hover {
    text-decoration: underline;
}

.detail-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step-counter;
    color: #3d5166;
}

.detail-steps li {
    position: relative;
    padding: 12px 0 12px 48px;
    font-size: 16px;
    line-height: 1.75;
    border-bottom: 1px solid #eef2f7;
    counter-increment: step-counter;
}

.detail-steps li:last-child {
    border-bottom: none;
}

.detail-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--thm-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-modern-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    transition: box-shadow 0.2s ease;
}

.faq-modern-item:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}

.faq-modern-item h4 {
    font-size: 17px;
    font-weight: 800;
    color: #0f2235;
    margin-bottom: 12px;
    line-height: 1.45;
}

.faq-modern-item p {
    font-size: 15.5px;
    line-height: 1.85;
    color: #556273;
    margin-bottom: 0;
}

.related-blogs-head {
    text-align: center;
    margin-bottom: 22px;
}

.related-blogs-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0e94ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.related-blog-card {
    display: block;
    text-decoration: none;
    height: 100%;
}

.related-blog-card-inner {
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 18px;
    padding: 20px;
    height: 100%;
    transition: all 0.25s ease;
}

.related-blog-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #dbe7f3;
}

.related-blog-card-inner h4 {
    font-size: 19px;
    font-weight: 800;
    color: #12344d;
    line-height: 1.5;
    margin-bottom: 10px;
}

.related-blog-card-inner p {
    font-size: 15px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 12px;
}

.related-blog-card-inner span {
    font-size: 14px;
    font-weight: 700;
    color: #0e94ff;
}

.detail-bottom-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding-top: 8px;
}

.detail-cta-main,
.detail-cta-secondary {
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
}

.country-detail-sidebar {
    position: sticky;
    top: 24px;
}

.detail-side-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.detail-side-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f2235;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f7;
    letter-spacing: -0.2px;
}

.detail-side-card p {
    color: #556273;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 14px;
}

.detail-side-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
}

.detail-side-row:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
}

.detail-side-row span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.detail-side-row strong {
    color: #0f2235;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.detail-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #556273;
}

.detail-side-list li {
    position: relative;
    padding: 7px 0 7px 20px;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #f0f4f8;
}

.detail-side-list li:last-child {
    border-bottom: none;
}

.detail-side-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--thm-primary);
    font-weight: 800;
    font-size: 12px;
}

.detail-side-links {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #556273;
}

.detail-side-links li {
    border-bottom: 1px solid #f0f4f8;
}

.detail-side-links li:last-child {
    border-bottom: none;
}

.detail-side-links a {
    display: block;
    padding: 9px 0 9px 20px;
    color: #1e3a52;
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.detail-side-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 9px;
    color: var(--thm-primary);
    font-size: 12px;
}

.detail-side-links a:hover {
    color: #0e94ff;
}

.detail-side-btn,
.detail-side-btn-light {
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-countries-section {
    padding: 10px 0 80px;
    background: #f5f7fb;
    content-visibility: auto;
    contain-intrinsic-size: 1px 1200px;
}

.related-countries-box {
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 28px;
    padding: 34px 28px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.related-countries-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0e94ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.related-countries-title {
    font-size: 30px;
    font-weight: 800;
    color: #12344d;
    margin-bottom: 10px;
}

.related-countries-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

.related-country-card {
    display: block;
    text-decoration: none;
    height: 100%;
}

.related-country-card-inner {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    transition: all 0.25s ease;
}

.related-country-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #dbe7f3;
}

.related-country-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #0e94ff;
    background: #eef6ff;
    padding: 6px 10px;
    border-radius: 999px;
}

.related-country-card h4 {
    font-size: 20px;
    font-weight: 800;
    color: #12344d;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-country-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 12px;
}

.related-country-link {
    font-size: 14px;
    font-weight: 700;
    color: #0e94ff;
}

@media (max-width: 991px) {
    .country-detail-title {
        font-size: 38px;
    }

    .detail-grid-two {
        grid-template-columns: 1fr;
    }

    .country-detail-sidebar {
        position: static;
        top: auto;
    }

    .country-detail-main-card {
        padding: 32px 28px;
    }

    .detail-side-card {
        padding: 18px 16px;
    }
}

@media (max-width: 768px) {
    .country-detail-hero {
        padding: 52px 0 22px;
    }

    .country-detail-title {
        font-size: 32px;
    }

    .country-detail-subtitle {
        font-size: 16px;
    }

    .country-detail-main-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .detail-section-title {
        font-size: 26px;
    }

    .detail-info-card {
        padding: 22px 20px;
    }

    .detail-info-card h3,
    .detail-side-card h3 {
        font-size: 20px;
    }

    .detail-content-text h2,
    .country-content h2 {
        font-size: 22px;
    }

    .detail-content-text h3,
    .country-content h3 {
        font-size: 19px;
    }

    .country-content p,
    .detail-content-text,
    .country-html-render p {
        font-size: 16px;
    }

    .country-content h2,
    .detail-content-text h2,
    .country-html-render h2 {
        font-size: 22px !important;
    }

    .country-content h3,
    .detail-content-text h3,
    .country-html-render h3 {
        font-size: 19px !important;
    }

    .detail-bottom-cta {
        flex-direction: column;
    }

    .detail-cta-main,
    .detail-cta-secondary {
        width: 100%;
        text-align: center;
    }

    .related-countries-box {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .related-countries-title {
        font-size: 26px;
    }
}
