/**
 * Homepage refinement layer — nav polish, section rhythm, footer hierarchy, mobile chrome.
 * Loads last on homepage; avoids editing Nitro or akkus.min bundles directly.
 */

/* ── Desktop navigation typography ── */
@media (min-width: 992px) {
    body.home .sf-menu > li > a {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.35;
        letter-spacing: 0.01em;
        padding-top: 12px;
        padding-bottom: 12px;
        transition: color 0.15s ease, background-color 0.15s ease;
    }

    body.home .sf-menu > li > a:hover,
    body.home .sf-menu > li > a:focus {
        color: #111827;
        outline: 2px solid transparent;
        outline-offset: 2px;
    }

    body.home .sf-menu > li > a:focus-visible {
        outline-color: #0b57d0;
    }

    body.home .sf-menu > li > a .fa,
    body.home .sf-menu > li > a svg {
        vertical-align: -2px;
    }
}

/* ── Section chapter rhythm (scroll fatigue reduction) ── */
body.home main .content.full {
    --home-section-gap: 72px;
    --home-section-gap-mobile: 48px;
}

body.home .homepage-intro-container {
    padding-top: 28px;
    padding-bottom: 24px;
}

@media (min-width: 992px) {
    body.home .container.homepage-intro-container,
    body.home div.homepage-intro-container.container {
        padding-top: 36px !important;
        padding-bottom: 28px !important;
    }
}

/* ── Premium authority strip (under intro copy) ── */
body.home .home-trust-card {
    margin: 24px 0 20px;
    padding: 22px 24px 18px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
}

body.home .home-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.home .home-trust-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 88px;
    padding: 18px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
}

body.home .home-trust-value {
    display: block;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    letter-spacing: -0.02em;
}

body.home .home-trust-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    color: #6b7280;
    letter-spacing: 0.01em;
}

@media (min-width: 768px) and (max-width: 991px) {
    body.home .home-trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    body.home .home-trust-cell {
        min-height: 80px;
        padding: 16px 12px;
    }
}

@media (min-width: 992px) {
    body.home .home-trust-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0;
    }

    body.home .home-trust-cell {
        border-right: 1px solid #eef2f7;
        background: transparent;
        min-height: 92px;
        padding: 20px 16px;
    }

    body.home .home-trust-cell:last-child {
        border-right: 0;
    }
}

body.home .home-trust-label a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.home .home-trust-label a:hover,
body.home .home-trust-label a:focus {
    color: #0b57d0;
}

body.home .home-trust-founder {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    text-align: center;
}

body.home .home-trust-founder .intro-trust-founder {
    font-weight: 600;
    color: #0b57d0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.home .home-trust-founder .intro-trust-founder:hover,
body.home .home-trust-founder .intro-trust-founder:focus {
    color: #084298;
}

/* ── Intro region heading + Quick Answers ── */
body.home .home-intro-subheading {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #374151;
}

body.home .home-intro-region-heading {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #111827;
}

body.home .home-quick-answers-section .home-quick-answers {
    margin: 0;
    padding: 18px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

body.home .home-quick-answers-heading {
    margin: 0 0 14px;
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #111827;
}

body.home .home-quick-answers-list {
    margin: 0;
    padding: 0;
}

body.home .home-quick-answers-item {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e5e7eb;
}

body.home .home-quick-answers-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

body.home .home-quick-answers-item dt {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
}

body.home .home-quick-answers-item dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
}

body.home .home-guides-section-heading {
    margin-bottom: 8px;
}

/* ── Latest Turkey Real Estate Guides (news-blog-section only) ── */
/* Full fix lives in post-akkus block at file end (editorial hairline + stacked padding). */

body.home .property-insights-chip h3.property-insights-chip-title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

@media (max-width: 767px) {
    body.home .homepage-intro-container {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    body.home .homepage-h1 {
        margin-bottom: 10px !important;
    }

    body.home .home-trust-card {
        margin-bottom: 14px;
        padding: 18px 14px 14px;
    }

    body.home .home-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    body.home .home-trust-cell {
        min-height: 72px;
        padding: 14px 10px;
    }

    body.home .home-trust-value {
        font-size: 1rem;
    }

    body.home .home-trust-label {
        font-size: 10px;
        margin-top: 5px;
    }

    body.home .home-trust-founder {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 13px;
        text-align: left;
    }

    body.home .intro-trust {
        font-size: 17px !important;
        margin: 6px 0 8px !important;
        line-height: 1.35 !important;
    }

    body.home .intro-primary,
    body.home .intro-verification {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        line-height: 1.45 !important;
    }

    body.home .read-more-toggle-intro-mobile {
        margin-top: 4px;
    }

    body.home .featured-blocks.page-section {
        padding-bottom: 0;
    }

    body.home .homepage-editors-picks-section.home-section-chapter {
        padding-top: 28px !important;
        padding-bottom: 36px !important;
    }

    body.home .homepage-editors-picks-section.home-section-chapter::before {
        margin-bottom: 14px;
    }
}

@media (min-width: 768px) {
    body.home .homepage-h1 {
        margin-bottom: 14px !important;
    }

    body.home .intro-trust {
        font-size: 20px !important;
        margin: 8px 0 12px !important;
    }

    body.home .intro-primary,
    body.home .intro-verification {
        margin-bottom: 12px !important;
    }
}

body.home .home-section-chapter {
    position: relative;
    padding-top: var(--home-section-gap);
    padding-bottom: var(--home-section-gap);
    margin-top: 0;
    margin-bottom: 0;
}

body.home .home-section-chapter::before {
    content: "";
    display: block;
    width: min(120px, 18%);
    height: 3px;
    margin: 0 auto 28px;
    border-radius: 2px;
    background: linear-gradient(90deg, #fdc600 0%, #f0b400 100%);
}

body.home .featured-blocks.page-section {
    padding-bottom: 24px;
}

body.home .homepage-editors-picks-section,
body.home section#featured-properties.homepage-great-offers-section,
body.home .homepage-citizenship-section,
body.home .page-section.news-blog-section,
body.home .page-section.seo-text-section,
body.home .feature-discovery-section {
    padding-top: var(--home-section-gap);
    padding-bottom: var(--home-section-gap);
}

@media (max-width: 991px) {
    body.home .home-section-chapter,
    body.home .homepage-editors-picks-section,
    body.home section#featured-properties.homepage-great-offers-section,
    body.home .homepage-citizenship-section,
    body.home .page-section.news-blog-section,
    body.home .page-section.seo-text-section,
    body.home .feature-discovery-section {
        padding-top: var(--home-section-gap-mobile);
        padding-bottom: var(--home-section-gap-mobile);
    }
}

body.home .home-section-title,
body.home h2.section-heading,
body.home .block-heading h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #111827;
    margin-bottom: 12px;
}

body.home .section-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 720px;
    margin-bottom: 24px;
}

body.home .section-intro.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* Services strip: override akkus .page-section p { color !important } */
body.home .home-services-header .home-services-what-we-do,
body.home .page-section.home-services-authority.what-we-do-section .home-services-what-we-do {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

body.home .home-services-header .home-services-eyebrow,
body.home .page-section.home-services-authority.what-we-do-section .home-services-eyebrow {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Feature discovery: heading + intro aligned left (not mixed center/left) */
body.home .feature-discovery-section .feature-discovery-heading,
body.home .feature-discovery-section h2.feature-discovery-heading.section-heading {
    text-align: left !important;
    justify-content: flex-start !important;
}

body.home .feature-discovery-section .feature-discovery-intro-block {
    max-width: none !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: auto !important;
}

body.home .feature-discovery-section .feature-discovery-intro,
body.home .feature-discovery-section .feature-discovery-intro-second,
body.home .feature-discovery-section p.feature-discovery-intro.section-intro {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: none !important;
}

body.home .feature-discovery-section .feature-discovery-intro:not(.feature-discovery-intro-second) {
    white-space: nowrap !important;
}

@media (max-width: 991px) {
    body.home .feature-discovery-section .feature-discovery-intro:not(.feature-discovery-intro-second) {
        white-space: normal !important;
    }
}

/* ── Consolidated featured-properties spacing (replaces conflicting akkus stacks) ── */
body.home #featured-properties.homepage-great-offers-section {
    margin-top: 0;
    margin-bottom: 0;
    overflow-x: clip;
}

body.home #featured-properties .block-heading,
body.home .block-heading.news-blog-block-heading {
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
}

body.home #featured-properties .property-info {
    padding: 16px 18px 20px;
}

body.home #featured-properties .property-info .prop-info {
    margin: 6px 0 10px;
}

body.home #featured-properties .property-info .prop-info li {
    min-height: 0;
    margin: 4px 0;
}

/* ── Unified read-more controls (button styles; collapse logic in homepage-read-more.css) ── */
body.home .read-more-toggle-intro-mobile,
body.home .homepage-editorial-toggle,
body.home .read-more-toggle-seo {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #0b57d0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.home .read-more-toggle-intro-mobile:hover,
body.home .homepage-editorial-toggle:hover,
body.home .read-more-toggle-seo:hover {
    color: #084298;
}

body.home .read-more-toggle-intro-mobile:focus-visible,
body.home .homepage-editorial-toggle:focus-visible,
body.home .read-more-toggle-seo:focus-visible {
    outline: 2px solid #0b57d0;
    outline-offset: 2px;
}

/* ── Footer premium hierarchy ── */
body.home .footer-wrapper-homepage {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

body.home .site-footer-bottom1 .footer-shell.yu-footer {
    padding-top: 48px;
    padding-bottom: 32px;
}

body.home .site-footer-bottom1 .footer-head .h4,
body.home .site-footer-bottom1 .footer-head span.h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 14px;
}

body.home .site-footer-bottom1 .footer-col ul li a {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

body.home .site-footer-bottom1 .footer-col ul li a:hover,
body.home .site-footer-bottom1 .footer-col ul li a:focus {
    color: #0b57d0;
}

/* ── Mobile fixed chrome: WhatsApp, back-to-top, safe area ── */
@media (max-width: 991px) {
    body.home {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.home .yu-whatsapp {
        position: fixed !important;
        left: 20px !important;
        right: auto !important;
        bottom: calc(20px + env(safe-area-inset-bottom)) !important;
        width: 54px !important;
        height: 54px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        z-index: 1040 !important;
    }

    body.home .yu-whatsapp a,
    body.home .yu-whatsapp img,
    body.home .yu-whatsapp img.whatsapp-icon {
        width: 54px !important;
        height: 54px !important;
        display: block !important;
        object-fit: contain !important;
    }

    body.home #back-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        z-index: 1035;
    }

    body.home .homepage-citizenship-cta-row,
    body.home .view-all-advantages-link-homepage {
        margin-bottom: 8px;
    }

    body.home .home-services-scroll,
    body.home .property-insights-scroll {
        scroll-padding-inline: 16px;
        -webkit-overflow-scrolling: touch;
    }
}

/*
 * Post-akkus: Authority → Services → Citizenship conversion rhythm.
 * akkus.css sets .what-we-do-section { padding-top: 0 !important } — reload this sheet after akkus (home-lcp-deferred-assets.php).
 */
@media (min-width: 992px) {
    body.home .main #content.content.full section.home-authority-section + section.page-section.home-services-authority.what-we-do-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 56px !important;
        padding-bottom: 48px !important;
    }

    body.home .main #content.content.full section.page-section.home-services-authority.what-we-do-section + section.homepage-citizenship-section {
        margin-top: 0 !important;
        padding-top: 56px !important;
    }
}

@media (max-width: 767px) {
    body.home .main #content.content.full section.home-authority-section + section.page-section.home-services-authority.what-we-do-section {
        padding-top: 40px !important;
        padding-bottom: 36px !important;
    }

    body.home .main #content.content.full section.page-section.home-services-authority.what-we-do-section + section.homepage-citizenship-section {
        padding-top: 36px !important;
    }
}

/* ── Desktop vertical rhythm (992px+) — tighter section pairs, mobile unchanged ── */
@media (min-width: 992px) {
    body.home .main #content.content.full {
        --home-section-gap: 56px;
    }

    body.home .home-section-chapter::before {
        margin-bottom: 20px;
    }

    body.home .main #content.content.full .homepage-editors-picks-section,
    body.home .main #content.content.full section#featured-properties.homepage-great-offers-section.page-section,
    body.home .main #content.content.full .homepage-citizenship-section,
    body.home .main #content.content.full .page-section.news-blog-section,
    body.home .main #content.content.full .page-section.seo-text-section,
    body.home .main #content.content.full .feature-discovery-section.page-section {
        padding-top: var(--home-section-gap) !important;
        padding-bottom: var(--home-section-gap) !important;
    }

    /* 1. Featured Properties → Latest Properties (~25% off ~144px pair gap) */
    body.home .main #content.content.full .homepage-editors-picks-section {
        padding-bottom: 48px !important;
    }

    body.home .main #content.content.full section#featured-properties.homepage-great-offers-section.page-section {
        margin-top: 0 !important;
        padding-top: 60px !important;
        padding-bottom: 28px !important;
        margin-bottom: 20px !important;
    }

    /* 2. Authority → Services → Citizenship handled in post-akkus block above */

    /* Feature discovery → Quick Answers */
    body.home .main #content.content.full .feature-discovery-section.page-section + .home-quick-answers-section {
        padding-top: 48px !important;
        padding-bottom: 40px !important;
    }

    body.home .main #content.content.full .home-quick-answers-section + section.page-section.property-insights-section {
        padding-top: 48px !important;
    }

    /* 3. Property Insights → Global Property Guides (~30% off ~118px pair gap) */
    body.home .main #content.content.full .page-section.property-insights-section {
        padding-bottom: 23px !important;
    }

    body.home .main #content.content.full .page-section.news-blog-section {
        margin-top: 0 !important;
        padding-top: 38px !important;
        padding-bottom: 36px !important;
    }

    /* 4. Guides → Regional Insights / SEO intro (~30% off ~140px pair gap) */
    body.home .main #content.content.full .page-section.seo-text-section {
        margin-top: 4px !important;
    }

    body.home .main #content.content.full .page-section.seo-text-section > .container {
        padding-top: 36px !important;
        padding-bottom: 48px !important;
    }

    /* 5. SEO Intro → Reasons to Invest (~25% off ~140px pair gap) */
    body.home .main #content.content.full .feature-discovery-section.page-section {
        margin-top: 0 !important;
        padding-top: 48px !important;
        padding-bottom: 56px !important;
    }
}

/* Compact intro on mobile — tighter first screen */
@media (max-width: 767px) {
    body.home .homepage-h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    body.home .intro-trust {
        font-size: 18px;
        margin-bottom: 14px;
    }

    body.home .intro-primary,
    body.home .intro-verification {
        font-size: 15px;
        margin-bottom: 14px;
    }
}

/* ── Intro SEO visible block (Gemini: headings stay visible, continuation collapses) ── */
body.home .homepage-intro-visible {
    margin-top: 12px;
}

body.home .home-intro-why-heading {
    margin: 18px 0 10px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: #1a1a1a;
}

body.home .intro-why-lead,
body.home .intro-why-continued {
    font-size: 16px;
    line-height: 1.55;
    color: #333;
    margin-bottom: 12px;
}

body.home .homepage-intro-continuation .read-more-toggle-intro-mobile {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    body.home .home-intro-why-heading {
        font-size: 20px;
        margin-top: 14px;
    }

    body.home .intro-why-lead,
    body.home .intro-why-continued {
        font-size: 15px;
    }
}

/* ── Mobile hero search UX (overlay clone; desktop unchanged) ── */
@media (max-width: 991px) {
    body.home .mobile-search-overlay-wrapper .site-search-module .search-title {
        margin: 0 0 10px !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    body.home .mobile-search-overlay-wrapper .site-search-module .col-md-3,
    body.home .mobile-search-overlay-wrapper .site-search-module .col-md-9,
    body.home .mobile-search-overlay-wrapper .site-search-module .row > [class*="col-"] {
        margin-bottom: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.home .mobile-search-overlay-wrapper .site-search-module select,
    body.home .mobile-search-overlay-wrapper .site-search-module .form-control,
    body.home .mobile-search-overlay-wrapper .site-search-module .bootstrap-select > .dropdown-toggle,
    body.home .mobile-search-overlay-wrapper .site-search-module .selectpicker {
        min-height: 44px !important;
        height: auto !important;
        padding: 10px 12px !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    body.home .mobile-search-overlay-wrapper .site-search-module button[type="submit"],
    body.home .mobile-search-overlay-wrapper .site-search-module .btn-primary {
        min-height: 44px !important;
        margin-top: 4px !important;
        margin-bottom: 0 !important;
        font-size: 16px !important;
    }

    body.home .mobile-search-overlay-wrapper .site-search-module-inside {
        padding: 0 4px !important;
        max-height: calc(100% - 8px) !important;
    }

    body.home .mobile-search-overlay-wrapper .advanced-search-toggle {
        min-height: 44px;
        margin-top: 6px;
        font-size: 14px;
    }
}

@media (max-width: 414px) {
    body.home .mobile-search-overlay-wrapper .site-search-module .search-title {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    body.home .mobile-search-overlay-wrapper .site-search-module .col-md-3,
    body.home .mobile-search-overlay-wrapper .site-search-module .row > [class*="col-"] {
        margin-bottom: 6px !important;
    }
}

/* ── Green price badge responsiveness (Great Offers + Editor's Picks) ── */
body.home .green-price-badge,
body.home #featured-properties .green-price-badge,
body.home .editor-picks-card .green-price-badge,
body.home .ep-card .green-price-badge {
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    hyphens: none;
}

body.home #featured-properties .green-price-badge {
    display: inline-block;
    font-size: clamp(12px, 2.6vw, 14px);
    padding: 8px 14px;
    margin-top: 10px;
}

body.home .editor-picks-card .green-price-badge,
body.home .ep-card .green-price-badge {
    font-size: clamp(11px, 3vw, 16px);
    padding: clamp(6px, 1.8vw, 9px) clamp(10px, 3vw, 18px);
    max-width: calc(100% - 24px);
    line-height: 1.35;
}

body.home .green-price-badge .price-prefix,
body.home .green-price-badge .hero-value,
body.home .green-price-badge .hero-currency {
    display: inline;
    white-space: normal;
}

@media (max-width: 767px) {
    body.home #featured-properties .green-price-badge {
        max-width: calc(100% - 8px);
        font-size: clamp(11px, 3.2vw, 13px);
        padding: 7px 12px;
    }

    body.home .editor-picks-card .green-price-badge,
    body.home .ep-card .green-price-badge {
        left: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        font-size: clamp(10px, 3.4vw, 14px);
        padding: 6px 10px;
    }
}

@media (max-width: 390px) {
    body.home .editor-picks-card .green-price-badge,
    body.home .ep-card .green-price-badge {
        font-size: clamp(10px, 3.6vw, 13px);
        padding: 5px 9px;
    }
}

/*
 * Post-akkus: Editorial (seo-text) → Latest Turkey Real Estate Guides.
 * akkus.css adds border-bottom hairline + 60px margin + section padding on .seo-text-section,
 * then news-blog stacks chapter divider + 90px padding + .home-section-title margin-top.
 */
html body.home .main #content.content.full section.page-section.seo-text-section.home-section-chapter {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

html body.home .main #content.content.full section.page-section.seo-text-section.home-section-chapter > .container {
    padding-bottom: 36px !important;
}

html body.home .main #content.content.full section.page-section.seo-text-section.home-section-chapter + div.page-section.news-blog-section.home-section-chapter {
    margin-top: 0 !important;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
}

html body.home .main #content.content.full section.page-section.seo-text-section.home-section-chapter + div.page-section.news-blog-section.home-section-chapter::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

html body.home .main #content.content.full div.page-section.news-blog-section.home-section-chapter .home-guides-section-heading.home-section-title {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

html body.home .main #content.content.full div.page-section.news-blog-section.home-section-chapter > .container > .row > .col-md-12:first-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

html body.home .main #content.content.full div.page-section.news-blog-section.home-section-chapter > .container > .row > .col-md-6.posts-archive {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (min-width: 992px) {
    html body.home .main #content.content.full section.page-section.seo-text-section.home-section-chapter > .container {
        padding-bottom: 40px !important;
    }

    html body.home .main #content.content.full section.page-section.seo-text-section.home-section-chapter + div.page-section.news-blog-section.home-section-chapter {
        padding-top: 40px !important;
        padding-bottom: 44px !important;
    }

    html body.home .main #content.content.full div.page-section.news-blog-section.home-section-chapter .home-guides-section-heading.home-section-title {
        margin-bottom: 24px !important;
    }
}

@media (max-width: 991px) {
    html body.home .main #content.content.full section.page-section.seo-text-section.home-section-chapter > .container {
        padding-bottom: 28px !important;
    }

    html body.home .main #content.content.full section.page-section.seo-text-section.home-section-chapter + div.page-section.news-blog-section.home-section-chapter {
        padding-top: 28px !important;
        padding-bottom: 32px !important;
    }

    html body.home .main #content.content.full div.page-section.news-blog-section.home-section-chapter .home-guides-section-heading.home-section-title {
        margin-bottom: 24px !important;
    }
}

/* ── Citizenship → Feature discovery rhythm ── */
body.home .homepage-citizenship-section + .feature-discovery-section {
    margin-top: 0;
    padding-top: 48px;
}

@media (max-width: 991px) {
    body.home .homepage-citizenship-section + .feature-discovery-section {
        padding-top: 36px;
    }

    body.home .feature-discovery-section + .home-quick-answers-section {
        padding-top: 36px;
        padding-bottom: 32px;
    }

    body.home .home-quick-answers-section + section.page-section.property-insights-section {
        padding-top: 36px;
    }
}

/* ── News / Blog denser layout ── */
body.home .page-section.news-blog-section .block-heading.news-blog-block-heading {
    margin-bottom: 10px !important;
}

body.home .page-section.news-blog-section .posts-archive .news-blog-post {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

body.home .page-section.news-blog-section .posts-archive .news-blog-post:first-of-type {
    margin-top: 0 !important;
}

body.home .page-section.news-blog-section .post-card-flex {
    margin-top: 0 !important;
    gap: 12px;
}

body.home .page-section.news-blog-section .post-title {
    margin: 0 0 8px !important;
    font-size: 17px;
    line-height: 1.35;
}

body.home .page-section.news-blog-section .post-summary {
    margin: 0 !important;
    max-height: 2.9em;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 767px) {
    body.home .page-section.news-blog-section .post-title {
        font-size: 16px;
    }

    body.home .page-section.news-blog-section .posts-archive .news-blog-post {
        margin-bottom: 14px !important;
    }
}

/* H1 first in source — stable block layout only (no flex reorder, no display:contents). */
body.home #content.content.full.homepage-heading-source-order {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.home #content.homepage-heading-source-order > .homepage-h1--source-early {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    text-align: center !important;
}

@media (min-width: 992px) {
    body.home #content.homepage-heading-source-order > .homepage-h1--source-early {
        padding-top: 150px !important;
        margin-bottom: 0;
    }
}

@media (max-width: 991px) {
    body.home #content.homepage-heading-source-order > .homepage-h1--source-early {
        padding-top: 64px;
        margin-bottom: 8px;
    }
}

/* Great offers → authority intro: tighter gap */
body.home section#featured-properties.homepage-great-offers-section + section.home-authority-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home section#featured-properties.homepage-great-offers-section {
    margin-bottom: 24px !important;
    padding-bottom: 32px !important;
}

body.home section.home-authority-section .homepage-intro-container {
    padding-top: 12px !important;
    padding-bottom: 20px !important;
}

@media (min-width: 992px) {
    body.home .main #content.content.full section#featured-properties.homepage-great-offers-section.page-section {
        padding-bottom: 28px !important;
        margin-bottom: 20px !important;
    }

    body.home section.home-authority-section .homepage-intro-container {
        padding-top: 8px !important;
    }
}
