/* Inside Header Banner on Single Posts */
.single-post .inside-headers {
    margin-top: 80px !important;
    height: 220px !important;
    overflow: hidden !important;
    position: relative !important;
}

.single-post .inside-headers figure {
    margin: 0 !important;
    padding: 0 !important;
    height: 220px !important;
    position: relative !important;
}

.single-post .inside-headers figure::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(6, 28, 18, 0.88) 0%, rgba(6, 28, 18, 0.65) 45%, rgba(6, 28, 18, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.single-post .inside-headers figure img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.single-post .inside-headers figcaption {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 6vw !important;
    z-index: 2 !important;
}

.single-post .inside-headers .inside-header-crumbs {
    font-size: 13px !important;
    color: #bef264 !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.single-post .inside-headers .inside-header-crumbs a {
    color: #e2e8f0 !important;
    text-decoration: none !important;
}

.single-post .inside-headers .inside-header-crumbs a:hover {
    color: #6EAF20 !important;
}

.single-post .inside-headers .inside-header-heading {
    font-size: clamp(2rem, 3.2vw, 2.8rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

/* ==========================================================================
   1. SINGLE POST LAYOUT
   ========================================================================== */

.iforest-single-post-wrapper {
    background-color: #f8fafc;
    padding: 40px 0 90px 0;
    min-height: 70vh;
}

.iforest-single-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.iforest-single-row {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    align-items: flex-start;
}

.iforest-single-content {
    flex: 1 1 0%;
    min-width: 0; /* Prevents flex children from overflowing */
    background: #ffffff;
    border-radius: 14px;
    padding: 45px 50px;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.iforest-single-sidebar-wrap {
    flex: 0 0 350px;
    max-width: 350px;
    width: 350px;
    position: sticky;
    top: 95px;
    box-sizing: border-box;
}

.iforest-single-sidebar-wrap #secondary,
.iforest-single-sidebar-wrap .tpc-sidebar-widget,
.iforest-single-sidebar-wrap .edubin-col-lg-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
}

@media (max-width: 1024px) {
    .iforest-single-row {
        flex-direction: column;
    }
    .iforest-single-content {
        padding: 30px 24px;
        width: 100%;
    }
    .iforest-single-sidebar-wrap {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        position: static;
        margin-top: 30px;
    }
}

/* ==========================================================================
   2. ARTICLE HEADER & TYPOGRAPHY
   ========================================================================== */

.iforest-post-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.iforest-post-badge-wrap {
    margin-bottom: 14px;
}

.iforest-post-badge {
    display: inline-block;
    background-color: #f4faec;
    color: #6EAF20;
    border: 1px solid #d9f99d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.iforest-post-badge:hover {
    background-color: #6EAF20;
    color: #ffffff;
    border-color: #6EAF20;
}

.iforest-post-title {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(1.85rem, 2.8vw, 2.65rem);
    line-height: 1.25;
    font-weight: 800;
    color: #0f2341;
    margin: 0 0 18px 0;
    word-break: break-word;
}

.iforest-post-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.iforest-post-meta-strip .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.iforest-post-meta-strip .meta-item i {
    color: #6EAF20;
}

.iforest-post-featured-media {
    margin: 25px 0 10px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    background: #0f172a;
}

.iforest-post-featured-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 520px;
}

.iforest-featured-caption {
    padding: 10px 18px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
    margin: 0;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   3. ARTICLE BODY STYLES
   ========================================================================== */

.iforest-article-content {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #000;
}

.iforest-article-content p {
    margin-bottom: 22px;
}

.iforest-article-content p.has-medium-font-size {
    font-size: 19px;
    line-height: 1.7;
    color: #0f2341;
    font-weight: 500;
    background: #f8fafc;
    border-left: 4px solid #6EAF20;
    padding: 18px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}

.iforest-article-content h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f2341;
    margin-top: 45px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    position: relative;
}

.iforest-article-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: #6EAF20;
    border-radius: 2px;
}

.iforest-article-content ul {
    margin: 0 0 25px 20px;
    padding: 0;
}

.iforest-article-content ul li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #000;
}

.iforest-article-content ul li strong {
    color: #0f2341;
}

/* ==========================================================================
   4. PHOTO GALLERY THUMBNAILS & INTERACTION
   ========================================================================== */

.wp-block-gallery {
    margin: 35px 0 45px 0 !important;
}

.wp-block-gallery.columns-3 {
    gap: 16px !important;
}

.wp-block-gallery .wp-block-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    background: #0f172a;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.wp-block-gallery .wp-block-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: #6EAF20;
}

.wp-block-gallery .wp-block-image img {
    cursor: pointer !important;
    display: block;
    width: 100%;
    height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.04);
}

/* Overlay zoom hint badge on thumbnail hover */
.wp-block-gallery .wp-block-image::before {
    content: '\f00e'; /* FontAwesome fa-magnifying-glass-plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(110, 175, 32, 0.92);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.wp-block-gallery .wp-block-image:hover::before {
    opacity: 1;
    transform: scale(1);
}

.wp-block-gallery .wp-block-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 70%, transparent 100%);
    color: #f8fafc;
    font-size: 12px;
    padding: 24px 12px 8px 12px;
    margin: 0;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* ==========================================================================
   5. LIGHTBOX MODAL POP-UP (ACCESSIBLE & FLUID)
   ========================================================================== */

.iforest-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    user-select: none;
}

.iforest-lightbox-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.iforest-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 18, 12, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.iforest-lightbox-dialog {
    position: relative;
    z-index: 10;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    outline: none;
}

.iforest-lightbox-img-wrap {
    max-width: 90vw;
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
    background: #000;
}

.iforest-lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.iforest-lightbox-modal.is-active .iforest-lightbox-img {
    transform: scale(1);
    opacity: 1;
}

/* Lightbox caption bar */
.iforest-lightbox-footer {
    width: 100%;
    max-width: 900px;
    margin-top: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.iforest-lightbox-caption {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.iforest-lightbox-counter {
    color: #99e03f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Lightbox Controls: Close, Next, Prev */
.iforest-lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    z-index: 20;
    outline: none;
}

.iforest-lightbox-btn:hover {
    background: #6EAF20;
    border-color: #6EAF20;
    color: #ffffff;
    transform: scale(1.1);
}

.iforest-lightbox-close {
    top: -50px;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.iforest-lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.iforest-lightbox-prev,
.iforest-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 20px;
}

.iforest-lightbox-prev {
    left: -70px;
}

.iforest-lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .iforest-lightbox-prev {
        left: 10px;
        background: rgba(0, 0, 0, 0.6);
    }
    .iforest-lightbox-next {
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
    }
    .iforest-lightbox-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.6);
    }
    .iforest-lightbox-img-wrap {
        max-height: 68vh;
    }
    .iforest-lightbox-img {
        max-height: 68vh;
    }
}

/* ==========================================================================
   6. ARTICLE FOOTER: TAGS, SHARE & NEXT/PREV NAVIGATION
   ========================================================================== */

.iforest-post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.iforest-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.iforest-post-tags-title {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin-right: 6px;
}

.iforest-post-tags a {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.iforest-post-tags a:hover {
    background: #6EAF20;
    color: #ffffff;
    border-color: #6EAF20;
}

.iforest-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0px;
}

@media (max-width: 640px) {
    .iforest-post-nav {
        grid-template-columns: 1fr;
    }
}

.iforest-nav-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.iforest-nav-card:hover {
    border-color: #6EAF20;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.iforest-nav-label {
    font-size: 12px;
    font-weight: 700;
    color: #6EAF20;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.iforest-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f2341;
    line-height: 1.4;
}

/* ==========================================================================
   7. SIDEBAR STYLING
   ========================================================================== */

.iforest-single-sidebar-wrap .widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.iforest-single-sidebar-wrap .widget-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f2341;
    margin-top: 0;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6EAF20;
    display: block;
}

.iforest-single-sidebar-wrap ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iforest-single-sidebar-wrap ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.5;
}

.iforest-single-sidebar-wrap ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.iforest-single-sidebar-wrap ul li a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.iforest-single-sidebar-wrap ul li a:hover {
    color: #6EAF20;
}


/* ==========================================================================
   8. COURSE CTA BUTTONS & HIGHLIGHTS
   ========================================================================== */

.iforest-article-content .wp-block-button__link {
    background-color: #6EAF20 !important;
    border-color: #6EAF20 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(110, 175, 32, 0.3) !important;
    transition: all 0.2s ease !important;
}

.iforest-article-content .wp-block-button__link:hover {
    background-color: #5a911a !important;
    border-color: #5a911a !important;
    box-shadow: 0 6px 14px rgba(110, 175, 32, 0.4) !important;
    transform: translateY(-1px);
}

.iforest-article-content .wp-block-group.has-border-color {
    background-color: #f7fbe9 !important;
    border-color: #6EAF20 !important;
}

.iforest-article-content .wp-block-group.has-border-color h3 {
    color: #2b5407 !important;
}

