/* =========================
   RESET
========================= */

body {
    margin: 0;
    overflow-x: hidden;
}

/* =========================
   HEADER (LOCKED WORKING)
========================= */

.elementor-location-header {
    position: relative !important;
    z-index: 100;
}

/* =========================
   HERO SECTION
========================= */

.blog-post-hero {
    position: relative;
    width: 100%;
    height: 375px;

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.blog-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

/* HERO CONTENT (CENTERED) */
.blog-post-hero-inner {
    position: relative;
    z-index: 2;

    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;

    text-align: center; /* KEY CHANGE */
}

/* H1 */
.blog-post-hero h1 {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Breadcrumb */
.blog-breadcrumb {
    margin-bottom: 8px;
}

.blog-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

/* Hover effect */
.blog-breadcrumb a:hover {
    color: #d4af37;
}

/* Meta (date + category) */
.blog-meta {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
}

/* Category hover */
.blog-meta a {
    color: #ffffff;
    text-decoration: none;
}

.blog-meta a:hover {
    color: #d4af37;
}

/* =========================
   BLOG LAYOUT
========================= */

.blog-container {
    max-width: 1140px;
    margin: 90px auto 60px;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* =========================
   SIDEBAR (PREMIUM SPACING)
========================= */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px; /* spacing between boxes */
}

/* Sidebar box */
.sidebar-box {
    background: #f5f5f5;
    padding: 22px;
    border-radius: 8px;

    border: 1px solid #e5e5e5; /* subtle border */
}

/* Headings */
.sidebar-box h3 {
    font-size: 30px;
    margin-bottom: 12px;
    
}

/* Links */
.sidebar-box a {
    color: #222;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-box a:hover {
    color: #d4af37;
}

/* Lists */
.sidebar-box ul {
    padding-left: 18px;
}

.sidebar-box li {
    margin-bottom: 8px;
}

.sidebar-box {
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

/* ========================= 
   CTA BOX
========================= */

.cta-box {
    border: 1px solid #b8a46a;
    background: #fafafa;
}

/* CTA BUTTON */
.sidebar-btn {
    display: inline-block;
    background: #b8a46a;
    color: #000 !important;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.3s ease;
}

/* FORCE WHITE TEXT ON HOVER */
.sidebar-btn:hover,
.sidebar-btn:focus,
.sidebar-btn:active {
    color: #ffffff !important;
}

/* =========================
   MOBILE + TABLET STACK FIX
========================= */

@media (max-width: 1024px) {

    .blog-container {
        grid-template-columns: 1fr !important;
    }

    /* Force order: content first, sidebar after */
    .blog-main {
        order: 1;
    }

    .blog-sidebar {
        order: 2;
        margin-top: 30px;
    }

}

/* =========================
   FEATURED IMAGE (FULL WIDTH PREMIUM)
========================= */

.blog-featured-image {
    width: 100%;
    margin-bottom: 30px;
}

/* Make image large and clean */
.blog-featured-image img {
    width: 100%;
    height: 450px; /* controls height */
    object-fit: cover; /* crops nicely like your screenshot */
    border-radius: 10px;
    display: block;
}

/* =========================
   HERO PARALLAX EFFECT
========================= */

.blog-post-hero {
    position: relative;
    width: 100%;
    height: 375px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* PARALLAX */
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay stays same */
.blog-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

/* =========================
   RELATED POSTS
========================= */

.related-posts {
    max-width: 1140px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.related-posts h2 {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Card */
.related-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

/* Image */
.related-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Title */
.related-card h3 {
    padding: 15px;
    font-size: 16px;
    color: #222;
}

.related-card a {
    text-decoration: none;
}

/* Hover */
.related-card:hover h3 {
    color: #d4af37;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   BLOG CONTENT HEADINGS
========================= */

.entry-content h2 {
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1.2;
    margin: 35px 0 15px;
    color: #222;
}

@media (max-width: 768px) {
    .entry-content h2 {
        font-size: 28px;
    }
}

/* =========================
   STICKY CTA (DESKTOP ONLY)
========================= */

@media (min-width: 1025px) {

    .blog-sidebar {
        position: relative;
    }

    /* Target ONLY the last widget (your CTA box) */
    .blog-sidebar .cta-box {
        position: sticky;
        top: 120px; /* adjust based on header height */
    }

}

/* =========================
   MOBILE NAV ABOVE HERO TEXT ONLY
========================= */

@media (max-width: 1024px) {

    /* Hero image/overlay stays normal - only text layer lowered */
    .blog-post-hero-inner {
        position: relative !important;
        z-index: 0 !important;
    }

    .blog-post-hero .blog-title,
    .blog-post-hero .blog-breadcrumb,
    .blog-post-hero .blog-meta {
        position: relative !important;
        z-index: 0 !important;
    }

    /* Slide nav text/items stay above hero text */
    .elementskit-menu-container .elementskit-navbar-nav,
    .elementskit-menu-container .elementskit-navbar-nav li,
    .elementskit-menu-container .elementskit-navbar-nav a,
    .elementskit-menu-close {
        position: relative !important;
        z-index: 999999 !important;
    }
}

/* =========================
   HOMEPAGE PHONE LANDSCAPE HERO FIX
========================= */

@media (max-width: 950px) and (orientation: landscape) {

    /* Hero height */
    .home .elementor-section,
    .home .elementor-container,
    .home .e-con {
        min-height: auto !important;
    }

    /* Main hero heading */
    .home h1,
    .home .elementor-heading-title {
        font-size: 28px !important;
        line-height: 1.15 !important;
        letter-spacing: 6px !important;
    }

    /* Hero subheading / paragraph */
    .home p,
    .home .elementor-widget-text-editor {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

    /* CTA buttons */
    .home .elementor-button {
        padding: 12px 28px !important;
        font-size: 14px !important;
        letter-spacing: 3px !important;
    }

    /* Contact details at bottom of hero */
    .home .elementor-icon-list-text,
    .home .elementor-widget-icon-list {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    /* Add breathing room so text does not collide */
    .home .elementor-widget {
        margin-bottom: 8px !important;
    }
}

/* =========================
   GLOBAL BODY TEXT (MANROPE)
========================= */

.post-content,
.post-content p,
.post-content li,
.post-content ul,
.post-content ol,
.post-content a {
    font-family: 'Manrope', sans-serif !important;
    font-size: 15.5px;
    line-height: 1.7;
    color: #222;
}

/* =========================
   HEADINGS (CORMORANT GARAMOND)
========================= */

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: 'Cormorant Garamond', serif !important;
    color: #111;
}

/* Proper hierarchy */
.post-content h2 {
    font-size: 30px;
    font-weight: 600;
    margin-top: 36px; /* slightly refined */
}

.post-content h3 {
    font-size: 24px; /* FIXED (was too close to H2) */
    font-weight: 500;
    margin-top: 26px;
}

.post-content h4 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 20px;
}

.post-content h5 {
    font-size: 17px;
    font-weight: 500;
    margin-top: 16px;
}

/* =========================
   BULLET POINTS
========================= */

.post-content ul,
.post-content ol {
    padding-left: 18px;
}

.post-content li {
    margin-bottom: 6px;
}

/* =========================
   TABLE OF CONTENTS (RANK MATH)
========================= */

.post-content .wp-block-rank-math-toc-block {
    background: #f9f9f9;
    border: 1px solid #e6e6e6; /* slightly softer */
    padding: 16px 18px; /* tighter */
    border-radius: 8px;
    margin: 25px 0;
}

/* TOC Title */
.post-content .wp-block-rank-math-toc-block h2 {
    margin-top: 0 !important;
    font-size: 26px;
    margin-bottom: 8px;
}

/* TOC List */
.post-content .wp-block-rank-math-toc-block ul {
    padding-left: 18px;
}

/* TOC Links */
.post-content .wp-block-rank-math-toc-block,
.post-content .wp-block-rank-math-toc-block li,
.post-content .wp-block-rank-math-toc-block a {
    font-family: 'Manrope', sans-serif !important;
    font-size: 15.5px !important;
    line-height: 1.7;
    color: #222;
    text-decoration: none;
}

.post-content .wp-block-rank-math-toc-block a:hover {
    color: #d4af37;
}

/* Nested items */
.post-content .wp-block-rank-math-toc-block ul ul {
    margin-top: 4px;
}

/* =========================
   FAQ (RANK MATH)
========================= */

.post-content .rank-math-list-item {
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 10px 14px;
}

/* Question */
.post-content .rank-math-question {
    font-family: 'Manrope', sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 600; /* stronger = better UX */
    line-height: 1.7;
    color: #222;
    cursor: pointer;
    position: relative;
    padding-right: 24px;
    margin: 0;
}

/* Plus icon */
.post-content .rank-math-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 16px;
}

/* Answer */
.post-content .rank-math-answer {
    display: none;
    font-family: 'Manrope', sans-serif !important;
    font-size: 15.5px !important;
    line-height: 1.7;
    color: #222;
    margin-top: 4px;
}

/* Active */
.post-content .rank-math-list-item.active {
    background: #eeeeee;
}

.post-content .rank-math-list-item.active .rank-math-answer {
    display: block;
}

.post-content .rank-math-list-item.active .rank-math-question::after {
    content: "−";
}

/* =========================
   HERO H1 IMPROVEMENTS
========================= */

/* Desktop */
.blog-post-hero h1 {
    line-height: 1.15;
    max-width: 1000px;
    margin: 0 auto 15px auto;
}

/* Tablet */
@media (max-width: 1024px) {
    .blog-post-hero h1 {
        font-size: 34px !important;
        line-height: 1.12 !important;
        max-width: 850px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .blog-post-hero {
        height: 500px;
    }

    .blog-post-hero h1 {
        font-size: 26px !important;
        line-height: 1.08 !important;
        letter-spacing: 0 !important;
        max-width: 95%;
        margin-bottom: 20px;
    }

    .blog-breadcrumb {
        margin-bottom: 12px;
    }

    .blog-meta {
        font-size: 15px;
    }
}

/* =========================
   BLOG PARAGRAPH LINKS ONLY
========================= */

.entry-content p a {
    color: #b8a46a !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.entry-content p a:hover,
.entry-content p a:focus,
.entry-content p a:active {
    color: #b8a46a !important;
    text-decoration: underline !important;
}