/* Single Post Widget Styles */
.botvfx-single-post-plugin {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Container sizing inherits directly from Elementor Site Settings Layout Container */
.botvfx-container,
.botvfx-single-post-plugin {
    width: 100%;
    max-width: 100%;
}

.botvfx-single-post-plugin .single-hero-image {
    width: 100%;
    margin-bottom: 40px;
}

.botvfx-single-post-plugin .single-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.botvfx-single-post-plugin .blog-single-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.botvfx-single-post-plugin .blog-single-content {
    flex: 1;
    min-width: 0;
}

.botvfx-single-post-plugin .single-post-header {
    margin-bottom: 30px;
}

.botvfx-single-post-plugin .single-post-meta {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.botvfx-single-post-plugin .single-post-title {
    margin-top: 10px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
}

.botvfx-single-post-plugin .blog-single-sidebar {
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

/* Sidebar Latest Blogs */
.botvfx-single-post-plugin .sidebar-widget {
    margin-bottom: 40px;
}

.botvfx-single-post-plugin .sidebar-title {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.botvfx-single-post-plugin .sidebar-blog-card {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
    text-decoration: none;
}

.botvfx-single-post-plugin .sbc-img {
    width: 120px;
    aspect-ratio: 1.6;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background-color: #141414;
}

.botvfx-single-post-plugin .sbc-img img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    transition: transform 0.3s ease;
}

.botvfx-single-post-plugin .sidebar-blog-card:hover .sbc-img img {
    transform: scale(1.05);
}

/* Related Blogs Cards */
.botvfx-single-post-plugin .related-blog-card .blog-img {
    aspect-ratio: 1.6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #141414;
}

.botvfx-single-post-plugin .related-blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    transition: transform 0.4s ease;
}

.botvfx-single-post-plugin .related-blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.botvfx-single-post-plugin .sbc-cont p {
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.botvfx-single-post-plugin .sbc-cont h4 {
    font-size: 20px;
    line-height: 1.1;
    margin: 0;
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 991px) {
    .botvfx-single-post-plugin .blog-single-layout {
        flex-wrap: wrap;
    }

    .botvfx-single-post-plugin .blog-single-sidebar {
        width: 100%;
        position: static;
        margin-top: 50px;
    }
}

/* Sidebar Sticky Behavior */
.blog-single-sidebar.is-sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
}

.blog-single-sidebar.is-project-sidebar,
.blog-single-sidebar:has(.botvfx-project-sidebar-wrap) {
    position: static !important;
    top: auto !important;
}

/* ==========================================================================
   Project Details Sidebar (Poster + Dynamic Red Stats)
   ========================================================================== */
.botvfx-project-sidebar-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.botvfx-project-poster {
    width: 100%;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #0f1011;
    margin-top: 40px
}

.botvfx-project-stats-wrap+.botvfx-project-poster {
    margin-top: 40px;
}

.botvfx-project-poster img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.botvfx-project-stats-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.botvfx-project-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.botvfx-stat-number {
    font-family: 'Tanker', sans-serif;
    font-size: clamp(52px, 5vw, 76px);
    line-height: 0.95;
    color: #a91e22;
    /* Official BOT VFX Red */
    letter-spacing: 0.5px;
    font-weight: 400;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 10px rgba(223, 31, 38, 0.15);
}

.botvfx-stat-title {
    font-size: 16px;
    font-weight: 500;
    color: #b3b3b3;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 768px) {
    .botvfx-project-poster {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .botvfx-stat-number {
        font-size: 54px;
    }
}

/* ==========================================================================
   Read More / Expand Content Box (Single Blog Content)
   Matches the official BOT VFX capsule button design
   ========================================================================== */
.botvfx-expand-box {
    margin: 24px 0;
}

.botvfx-expand-box summary {
    list-style: none;
    outline: none;
}

.botvfx-expand-box summary::-webkit-details-marker,
.botvfx-expand-box summary::marker {
    display: none;
}

/* Capsule Button Base (Read More & Read Less) */
.botvfx-expand-box summary.botvfx-read-more,
.botvfx-expand-box .botvfx-read-less {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 28px 0 68px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 60px;
    background: transparent;
    color: #ffffff !important;
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 54px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    box-sizing: border-box;
    white-space: nowrap;
    transition: padding 0.5s ease-in-out, border-color 0.35s ease, background-color 0.35s ease;
}

/* Red Circular Badge */
.botvfx-expand-box summary.botvfx-read-more::before,
.botvfx-expand-box .botvfx-read-less::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--p-red, #dc143c);
    transition: left 0.5s ease-in-out;
    z-index: 1;
}

/* White Robot Head Mascot inside Red Badge */
.botvfx-expand-box summary.botvfx-read-more::after,
.botvfx-expand-box .botvfx-read-less::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 44px;
    height: 44px;
    background: url('../images/btn-elem.svg') no-repeat center / 20px 20px;
    transition: left 0.5s ease-in-out, transform 0.5s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

/* Hover State: Slide Circle across to the Right (Signature BOT VFX animation) */
.botvfx-expand-box summary.botvfx-read-more:hover,
.botvfx-expand-box .botvfx-read-less:hover {
    padding: 0 68px 0 28px;
    border-color: #ffffff;
}

.botvfx-expand-box summary.botvfx-read-more:hover::before,
.botvfx-expand-box .botvfx-read-less:hover::before {
    left: calc(100% - 49px);
}

.botvfx-expand-box summary.botvfx-read-more:hover::after,
.botvfx-expand-box .botvfx-read-less:hover::after {
    left: calc(100% - 49px);
    transform: scaleX(-1);
}

/* Margins */
.botvfx-expand-box summary.botvfx-read-more {
    margin: 15px 0;
}

.botvfx-expand-box .botvfx-read-less {
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Instantly hide the Read More button once expanded */
.botvfx-expand-box[open]>summary.botvfx-read-more,
.botvfx-expand-box[open]>summary {
    display: none !important;
}

/* Hidden Content container */
.botvfx-hidden-content {
    margin-top: 15px;
    animation: botvfxFadeIn 0.35s ease;
}

@keyframes botvfxFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}