/* =========================================================
   SLG GOLD - LUXURY BLOG & JOURNAL RESPONSIVE STYLESHEET
   Sticky Note Typography Standard:
     Mobile (< 768px):
       H1: 32px | Line weight: 700 | Line height: 1.3  (Roboto)
       H2: 26px | Line weight: 600 | Line height: 1.32 (Roboto)
       H3: 22px | Line weight: 500 | Line height: 1.35 (Roboto)
       P:  16px | Line weight: 400 | Line height: 1.35 (Poppins)
       List: 16px | Line weight: 400 | Line height: 1.35 (Poppins)
     Padding Standard:
       Strictly 40px top & bottom on all sections EXCEPT Hero section.
   ========================================================= */

/* Prevent any horizontal overflow on all screen sizes */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

/* =========================================================
   UNIVERSAL NON-HERO SECTION PADDING RULE
   Strictly enforces 40px top & bottom across all screen sizes
   ========================================================= */
body.blog-page .blog-search-section,
body.blog-page .blog-articles-section,
body.blog-page .blog-topics-section,
body.blog-page .blog-latest-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

body.blog-page .editors-pick-container,
body.blog-page .blog-cta-container {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* =========================================================
   1. LAPTOPS & SMALL SCREENS (max-width: 1200px)
   ========================================================= */
@media (max-width: 1200px) {
    .blog-cards-grid {
        gap: 20px;
    }

    .blog-card-body {
        padding: 22px 18px;
    }

    /* Section 4 Editor's Pick */
    .editors-pick-container {
        padding: 40px 4% 40px 46% !important;
    }

    /* Section 5 Explore Topics */
    .topics-container {
        padding: 0 24px;
    }

    .topics-cards-grid {
        gap: 12px;
    }

    .topic-card-body {
        padding: 26px 12px 18px 12px;
    }

    /* Section 7 Blog Final CTA */
    .blog-cta-content {
        width: 56%;
        max-width: 540px;
    }

    .blog-cta-badges {
        gap: 16px;
    }
}

/* =========================================================
   2. TABLETS (max-width: 1024px)
   ========================================================= */
@media (max-width: 1024px) {
    body.blog-page {
        padding-top: 72px;
    }

    /* Hero section: Keep spacious padding as requested */
    .blog-hero-section {
        min-height: 480px;
    }

    .blog-hero-container {
        padding: 65px 24px 70px 24px;
    }

    .blog-hero-content {
        max-width: 540px;
    }

    .blog-hero-overlay {
        display: none !important;
    }

    /* Section 3 Articles: 2 columns on tablet */
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog-card-img-wrap {
        height: 220px;
    }

    /* Section 4 Editor's Pick */
    .blog-editors-pick-section {
        min-height: 500px;
        background-position: left 20% center;
    }

    .editors-pick-container {
        padding: 40px 24px 40px 42% !important;
    }

    /* Section 5 Topics Section */
    .blog-topics-section {
        padding: 40px 0 !important;
    }

    .topics-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .topic-card-img-wrap {
        height: 165px;
    }

    .topics-flourish {
        width: 100px;
    }

    /* Section 6 Latest Articles */
    .latest-cards-grid {
        gap: 20px;
    }

    .latest-card-img-wrap {
        height: 190px;
    }

    .latest-card-body {
        padding: 18px 18px 18px 18px;
    }
}

/* =========================================================
   3. TABLETS PORTRAIT & SMALL SCREENS (max-width: 991px)
   ========================================================= */
@media (max-width: 991px) {
    /* Featured Hero Showcase: stacked layout on portrait tablets */
    .hero-mockup-inner,
    .hero-card-inner {
        grid-template-columns: 1fr;
    }

    .hero-mockup-img-wrap,
    .hero-img-wrap {
        height: 290px;
        min-height: 290px;
    }

    .hero-wave-divider {
        display: none;
    }

    .hero-mockup-content,
    .hero-body {
        padding: 30px 24px;
    }

    /* Section 7 Blog Final CTA */
    .blog-cta-section {
        min-height: auto;
        padding: 40px 0 !important;
        background-position: 70% center;
    }

    .blog-cta-container {
        padding: 0 24px;
    }

    .blog-cta-content {
        width: 100%;
        max-width: 520px;
        background: rgba(3, 33, 44, 0.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 36px 30px;
        border-radius: 20px;
        border: 1px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

/* =========================================================
   4. MEDIUM SCREENS / PHABLETS (max-width: 860px)
   ========================================================= */
@media (max-width: 860px) {
    /* Section 4 Editor's Pick */
    .blog-editors-pick-section {
        min-height: auto;
        padding: 40px 20px !important;
        background-position: 15% center;
    }

    .editors-pick-container {
        padding: 0 !important;
        justify-content: flex-end;
    }

    .editors-pick-content {
        max-width: 490px;
        background: rgba(254, 251, 244, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 32px 26px;
        border-radius: 18px;
        border: 1px solid rgba(212, 175, 55, 0.28);
        box-shadow: 0 10px 30px rgba(15, 45, 61, 0.08);
    }

    /* Section 6 Latest Articles */
    .blog-latest-section {
        padding: 40px 0 !important;
    }

    .latest-container {
        padding: 0 20px;
    }

    .latest-cards-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
        gap: 24px;
    }

    .latest-card-img-wrap {
        height: 220px;
    }

    .latest-notice-banner {
        padding: 20px 22px;
        gap: 18px;
    }
}

/* =========================================================
   5. MOBILE PHONES & PORTRAIT TABLETS (max-width: 768px)
   Strict Sticky Note Typography & 40px Padding Standards
   ========================================================= */
@media (max-width: 768px) {
    /* Sticky Note Mobile Typography:
       H1: 32px | 700 | 1.3  (Roboto)
       H2: 26px | 600 | 1.32 (Roboto)
       H3: 22px | 500 | 1.35 (Roboto)
       P:  16px | 400 | 1.35 (Poppins)
       List: 16px | 400 | 1.35 (Poppins)
    */
    h1,
    .blog-hero-title {
        font-family: var(--font-heading) !important;
        font-size: 32px !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
    }

    h2,
    .blog-section-heading,
    .editors-pick-title,
    .topics-title,
    .latest-title,
    .blog-cta-title {
        font-family: var(--font-heading) !important;
        font-size: 26px !important;
        line-height: 1.32 !important;
        font-weight: 600 !important;
    }

    h3,
    .blog-card-title,
    .topic-card-title,
    .latest-card-title,
    .latest-notice-title,
    .no-articles-title {
        font-family: var(--font-heading) !important;
        font-size: 22px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
    }

    p,
    .blog-hero-desc,
    .blog-section-sub,
    .blog-card-excerpt,
    .editors-pick-p1,
    .editors-pick-p2,
    .topics-subtitle,
    .topic-card-desc,
    .latest-subtitle,
    .latest-card-excerpt,
    .latest-notice-desc,
    .blog-cta-desc,
    .no-articles-text {
        font-family: var(--font-body) !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        font-weight: 400 !important;
    }

    ul, ol, li {
        font-family: var(--font-body) !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        font-weight: 400 !important;
    }

    body.blog-page {
        padding-top: 72px;
    }

    /* Section 1 Hero: Leave spacious padding ("hero vana") */
    .blog-hero-section {
        min-height: auto;
    }

    .blog-hero-container {
        padding: 55px 20px 65px 20px;
    }

    .blog-hero-bg-img {
        object-position: center right;
        opacity: 0.85;
    }

    .blog-hero-overlay {
        display: none !important;
    }

    .blog-hero-content {
        max-width: 100%;
        text-align: left;
    }

    .blog-hero-desc {
        margin-bottom: 26px;
    }

    /* Section 2 Search & Filter: strictly 40px top & bottom */
    .blog-search-section {
        padding: 40px 16px !important;
    }

    .blog-search-bar {
        padding: 5px 5px 5px 16px;
    }

    .blog-search-input {
        font-size: 14px;
    }

    .blog-search-input::placeholder {
        font-size: 13.5px;
    }

    .blog-search-btn {
        padding: 10px 24px;
        font-size: 13.5px;
    }

    .blog-categories-wrap {
        margin-top: 18px;
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .blog-categories-wrap::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        font-size: 13px;
        padding: 8px 16px;
        flex-shrink: 0;
    }

    /* Section 3 Articles Section: strictly 40px top & bottom */
    .blog-articles-section {
        padding: 40px 16px !important;
    }

    .blog-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    /* Featured Hero Showcase Mobile */
    .blog-hero-showcase {
        margin-bottom: 24px;
    }

    .blog-card-hero-mockup,
    .blog-card-hero {
        border-radius: 18px;
    }

    .hero-mockup-inner,
    .hero-card-inner {
        grid-template-columns: 1fr;
    }

    .hero-mockup-img-wrap,
    .hero-img-wrap {
        height: 220px;
        min-height: 220px;
    }

    .hero-wave-divider {
        display: none;
    }

    .hero-mockup-content,
    .hero-body {
        padding: 24px 18px;
    }

    .hero-mockup-title,
    .hero-title {
        font-size: 21px !important;
        line-height: 28px !important;
        font-weight: 700 !important;
        margin-bottom: 10px;
    }

    .hero-mockup-excerpt,
    .hero-excerpt {
        font-size: 13px;
        line-height: 20px;
        margin-bottom: 14px;
    }

    .hero-mockup-pills-row,
    .hero-highlights-row {
        gap: 6px;
        margin-bottom: 16px;
    }

    .hero-feature-pill,
    .hero-highlight-pill {
        font-size: 11px;
        padding: 4px 10px;
    }

    .hero-mockup-footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-mockup-cta,
    .hero-cta-btn {
        padding: 9px 20px;
        font-size: 13px;
    }

    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card-img-wrap {
        height: 210px;
    }

    .blog-card-body {
        padding: 22px 18px;
    }

    .blog-card-excerpt {
        margin-bottom: 16px;
    }

    /* Section 5 Topics Section: strictly 40px top & bottom */
    .blog-topics-section {
        padding: 40px 0 !important;
    }

    .topics-container {
        padding: 0 18px;
    }

    .topics-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 28px;
    }

    .topics-subtitle {
        padding: 0 8px;
        margin-bottom: 14px;
    }

    .topics-flourish {
        display: none;
    }
}

/* =========================================================
   6. MOBILE VIEWPORTS (max-width: 640px)
   ========================================================= */
@media (max-width: 640px) {
    /* Section 4 Editor's Pick: strictly 40px top & bottom */
    .blog-editors-pick-section {
        padding: 40px 14px !important;
        background-position: center;
    }

    .editors-pick-container {
        padding: 0 !important;
        justify-content: center;
    }

    .editors-pick-content {
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 14px;
    }

    .editors-pick-p1 {
        margin-bottom: 10px;
    }

    .editors-pick-p2 {
        margin-bottom: 22px;
    }

    .editors-pick-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 14.5px;
    }

    /* Section 7 Blog Final CTA: strictly 40px top & bottom */
    .blog-cta-section {
        padding: 40px 14px !important;
        background-position: right center;
    }

    .blog-cta-container {
        padding: 0 !important;
    }

    .blog-cta-content {
        padding: 26px 18px;
        border-radius: 16px;
    }

    .blog-cta-desc {
        margin-bottom: 22px;
    }

    .blog-cta-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .blog-cta-primary-btn,
    .blog-cta-secondary-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 13px 20px;
    }

    .blog-cta-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .blog-cta-badge-divider {
        display: none;
    }
}

/* =========================================================
   7. SMALL VIEWPORTS / PHABLETS (max-width: 540px)
   ========================================================= */
@media (max-width: 540px) {
    /* Section 6 Latest Articles Notice Banner */
    .latest-notice-banner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px 16px;
    }

    .latest-notice-divider {
        width: 60px;
        height: 1px;
    }

    .latest-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .latest-cta-link {
        align-self: flex-end;
    }
}

/* =========================================================
   8. COMPACT PHONES (max-width: 520px)
   ========================================================= */
@media (max-width: 520px) {
    /* Section 5 Topics Section: strictly 40px top & bottom */
    .blog-topics-section {
        padding: 40px 0 !important;
    }

    .topics-cards-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        gap: 20px;
    }

    .topic-card-img-wrap {
        height: 175px;
    }

    .topic-card-body {
        padding: 28px 18px 20px 18px;
    }
}

/* =========================================================
   9. SMALL MOBILE SCREENS (max-width: 480px)
   ========================================================= */
@media (max-width: 480px) {
    /* Section 1 Hero: Leave spacious padding */
    .blog-hero-container {
        padding: 44px 16px 52px 16px;
    }

    .blog-eyebrow-text {
        font-size: 11px;
        letter-spacing: 1.8px;
    }

    .blog-eyebrow-line {
        width: 24px;
        margin-left: 10px;
    }

    .blog-hero-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 14px;
    }

    .blog-search-bar {
        padding: 4px 4px 4px 14px;
    }

    .blog-search-input {
        font-size: 13px;
        padding: 6px 0;
    }

    .blog-search-btn {
        padding: 9px 18px;
        font-size: 13px;
    }

    .filter-pill {
        font-size: 12px;
        padding: 7px 13px;
    }

    /* Featured Hero Showcase Small Mobile */
    .hero-mockup-img-wrap,
    .hero-img-wrap {
        height: 200px;
        min-height: 200px;
    }

    .hero-mockup-content,
    .hero-body {
        padding: 20px 16px;
    }

    .hero-mockup-title,
    .hero-title {
        font-size: 19px !important;
        line-height: 26px !important;
    }

    .hero-mockup-footer,
    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-mockup-cta,
    .hero-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .blog-card-img-wrap {
        height: 190px;
    }

    .blog-card-body {
        padding: 20px 16px;
    }
}
