/* ========================================
   Feature Story Section - Premium Layouts
   ======================================== */
.blog-over-feature-story-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

/* Customizer Partial Edit Shortcut Positioning - Smart Shift */
#blog-over-feature-story-ajax-wrap {
    position: relative;
    width: 100%;
}

#blog-over-feature-story-ajax-wrap .customize-partial-edit-shortcut {
    top: 40px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 9999 !important;
    visibility: visible !important;
    display: block !important;
}

/* Move pencil to the Right if content box is on the Right */
.layout-overlay:not(.box-align-left) .customize-partial-edit-shortcut,
.layout-split:not(.box-align-left) .customize-partial-edit-shortcut,
.layout-overlap:not(.box-align-left) .customize-partial-edit-shortcut {
    left: auto !important;
    right: 40px !important;
}


/* Base elements */
.blog-over-feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: var(--blog-over-fs-opacity, 0.6);
    pointer-events: none;
    z-index: 1;
}

.blog-over-feature-media {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Fallback for no thumbnail */
.blog-over-feature-media.no-post-thumbnail,
.blog-over-overlay-inner.no-post-thumbnail {
    background-color: #f1f5f9;
}

body.blog-over-dark-mode .no-post-thumbnail,
[data-theme="dark"] .no-post-thumbnail {
    background-color: #1e293b;
}

.blog-over-placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #cbd5e1;
    z-index: 0;
}

body.blog-over-dark-mode .blog-over-placeholder-icon,
[data-theme="dark"] .blog-over-placeholder-icon {
    color: #334155;
}

.blog-over-feature-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* YouTube / Vimeo Embed (responsive iframe) */
.blog-over-feature-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blog-over-feature-video-embed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: auto;
}

/* When video embed is active, hide the background image behind the overlay */
.has-video-embed .blog-over-feature-overlay {
    z-index: 1;
}

/* For Overlay layout — ensure iframe fills the full section */
.layout-overlay .has-video-embed .blog-over-feature-video-embed,
.layout-overlay.has-video-embed .blog-over-feature-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Base Content Styling */
.blog-over-feature-content {
    position: relative;
    z-index: 2;
}

.blog-over-category-badge {
    margin-bottom: 20px;
}

.blog-over-category-badge .blog-over-cat-item {
    background-color: var(--blog-over-secondary, #1e40af) !important;
    color: #ffffff !important;
    padding: 5px;
}

.blog-over-category-badge .blog-over-cat-item:hover {
    background-color: var(--blog-over-primary, #3b82f6) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.blog-over-feature-title {
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.blog-over-feature-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-over-feature-title a:hover {
    color: var(--blog-over-primary, #2563eb);
}

.blog-over-feature-meta {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.blog-over-feature-meta a {
    color: inherit;
    text-decoration: none;
}

.blog-over-feature-meta a:hover {
    text-decoration: underline;
}

.blog-over-feature-meta i {
    margin-right: 6px;
    color: var(--blog-over-primary, #2563eb);
}

.blog-over-feature-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Dark Mode Global Elements */
body.blog-over-dark-mode .blog-over-feature-story-section-title,
[data-theme="dark"] .blog-over-feature-story-section-title {
    color: #f1f5f9;
}

body.blog-over-dark-mode .blog-over-feature-title a,
[data-theme="dark"] .blog-over-feature-title a {
    color: #f1f5f9;
}

body.blog-over-dark-mode .blog-over-feature-meta,
[data-theme="dark"] .blog-over-feature-meta {
    color: #94a3b8;
}

body.blog-over-dark-mode .blog-over-feature-excerpt,
[data-theme="dark"] .blog-over-feature-excerpt {
    color: #cbd5e1;
}


.blog-over-feature-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--blog-over-primary, #2563eb);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.blog-over-feature-button:hover {
    background-color: var(--blog-over-secondary, #1e40af);
    color: #fff;
    transform: translateY(-2px);
}





/* ========================================
   LAYOUT 1 — OVERLAY (Right Side Content Box)
   ======================================== */
.layout-overlay .blog-over-overlay-inner {
    position: relative;
    width: 100%;
    min-height: var(--blog-over-fs-height, 600px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
    padding: 80px 0;
}

@supports (-webkit-touch-callout: none) {
    .layout-overlay .blog-over-overlay-inner {
        background-attachment: scroll;
        /* Disable parallax on iOS */
    }
}

.layout-overlay .blog-over-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    /* Push content to right */
    width: 100%;
}

.layout-overlay .blog-over-feature-content-wrap {
    max-width: 550px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: left;
    color: var(--blog-over-text, #334155);
}

body.blog-over-dark-mode .layout-overlay .blog-over-feature-content-wrap,
[data-theme="dark"] .layout-overlay .blog-over-feature-content-wrap {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

body.blog-over-dark-mode .layout-overlay .blog-over-feature-title,
[data-theme="dark"] .layout-overlay .blog-over-feature-title {
    color: #f1f5f9;
}


/* Box Alignment for Overlay */
.box-align-left.layout-overlay .blog-over-container {
    justify-content: flex-start;
    /* Push content to left */
}

.layout-overlay .blog-over-feature-title {
    color: var(--blog-over-heading, #0f172a);
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.layout-overlay .blog-over-feature-meta {
    justify-content: flex-start;
    color: var(--blog-over-primary, #2563eb);
}

body.blog-over-dark-mode .layout-overlay .blog-over-feature-meta,
[data-theme="dark"] .layout-overlay .blog-over-feature-meta {
    color: #94a3b8;
}

.layout-overlay .blog-over-feature-button {
    color: #ffffff;
}

@media (max-width: 991px) {
    .layout-overlay .blog-over-container {
        justify-content: center;
    }

    .layout-overlay .blog-over-feature-content-wrap {
        padding: 40px 30px;
    }
}


/* ========================================
   LAYOUT 2 — SPLIT (Image Left, Content Right)
   ======================================== */
.layout-split {
    padding: 0 15px;
}

.layout-split .blog-over-split-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background-color: var(--blog-over-bg, #ffffff);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.blog-over-container-full .layout-split .blog-over-split-inner {
    border-radius: 0;
}

body.blog-over-dark-mode .layout-split .blog-over-split-inner,
[data-theme="dark"] .layout-split .blog-over-split-inner {
    background-color: #0f172a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.blog-over-dark-mode .layout-split .blog-over-feature-content,
[data-theme="dark"] .layout-split .blog-over-feature-content {
    color: #cbd5e1;
}


.layout-split .blog-over-feature-media {
    width: 50%;
    min-height: var(--blog-over-fs-height, 550px);
}

.layout-split .blog-over-feature-content-wrap {
    width: 50%;
    padding: 70px 6%;
    display: flex;
    align-items: center;
}

.layout-split .blog-over-feature-content {
    color: var(--blog-over-text, #334155);
    text-align: left;
    width: 100%;
}

.layout-split .blog-over-feature-title {
    color: var(--blog-over-heading, #0f172a);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.layout-split .blog-over-feature-meta {
    justify-content: flex-start;
    color: var(--blog-over-text, #64748b);
}

.layout-split .blog-over-feature-button {
    color: #ffffff;
}

@media (max-width: 991px) {
    .layout-split .blog-over-feature-media {
        width: 100%;
        min-height: 380px;
    }

    .layout-split .blog-over-feature-content-wrap {
        width: 100%;
        padding: 50px 30px;
    }
}

/* Box Alignment for Split Layout */
.box-align-left.layout-split .blog-over-split-inner {
    flex-direction: row-reverse !important;
}

@media (max-width: 991px) {
    .box-align-left.layout-split .blog-over-split-inner {
        flex-direction: column !important;
    }
}


/* ========================================
   LAYOUT 3 — OVERLAP (Inside Bounds)
   ======================================== */
.layout-overlap .blog-over-overlap-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    /* Vertically center content */
    padding: 40px 0;
}

.layout-overlap .blog-over-feature-media {
    width: 75%;
    min-height: var(--blog-over-fs-height, 550px);
    border-radius: 20px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15);
    background-attachment: scroll;
    /* No fixed parallax, breaks bounding */
    position: relative;
    z-index: 1;
}

/* The content overrides the right edge of the image bounds */
.layout-overlap .blog-over-feature-content-wrap {
    width: 45%;
    background: var(--blog-over-bg, #ffffff);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
    margin-left: -20%;
    /* Pulls it over the image */
}

body.blog-over-dark-mode .layout-overlap .blog-over-feature-content-wrap,
[data-theme="dark"] .layout-overlap .blog-over-feature-content-wrap {
    background: #0f172a;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.layout-overlap .blog-over-feature-content {
    color: var(--blog-over-text, #334155);
    text-align: left;
}

.layout-overlap .blog-over-feature-title {
    color: var(--blog-over-heading, #0f172a);
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.layout-overlap .blog-over-feature-meta {
    justify-content: flex-start;
    color: var(--blog-over-text, #64748b);
}

.layout-overlap .blog-over-feature-button {
    color: #ffffff;
}

/* Box Alignment for Overlap */
.box-align-left.layout-overlap .blog-over-overlap-inner {
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
}

.box-align-left.layout-overlap .blog-over-feature-content-wrap {
    margin-left: 0 !important;
    margin-right: -20% !important;
}

.box-align-left.layout-overlap .blog-over-feature-media {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Responsive adjustments for Overlap layout */
@media (max-width: 991px) {

    .layout-overlap .blog-over-overlap-inner,
    .blog-over-feature-story-wrapper.box-align-left.layout-overlap .blog-over-overlap-inner {
        flex-direction: column !important;
        padding: 0;
    }

    .layout-overlap .blog-over-feature-media {
        width: 100%;
        min-height: 400px;
        border-radius: 16px;
    }

    .layout-overlap .blog-over-feature-content-wrap {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: -60px !important;
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .layout-overlay .blog-over-feature-content-wrap {
        padding: 30px 20px;
    }

    .layout-overlay .blog-over-overlay-inner {
        padding: 60px 15px;
        min-height: 450px;
    }

    .layout-split .blog-over-feature-media {
        min-height: 280px;
    }

    .layout-overlap .blog-over-feature-media {
        min-height: 320px;
    }

    .layout-overlap .blog-over-feature-content-wrap {
        width: 95%;
        padding: 30px 20px;
        margin-top: -50px;
    }
}