/**
 * Blog Single Post Pro - Frontend Styles
 */

/* ===========================================
   WIDGET WRAPPER
   =========================================== */

.bspp-widget-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* ===========================================
   POST TITLE
   =========================================== */

.bspp-post-title {
    font-size: 32px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 30px 0;
    line-height: 1.3;
    text-align: left;
}

/* ===========================================
   ARTICLE CONTENT WRAPPER
   =========================================== */

.bspp-article-content {
    max-width: 100%;
    margin: 0 auto;
}

/* ===========================================
   TEXT BLOCK
   =========================================== */

.bspp-block-text {
    margin-bottom: 35px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

.bspp-block-text p {
    margin-bottom: 18px;
}

.bspp-block-text p:last-child {
    margin-bottom: 0;
}

/* ===========================================
   IMAGE BLOCK
   =========================================== */

.bspp-block-figure {
    margin: 0 0 35px 0;
    padding: 0;
    width: 100%;
}

.bspp-block-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.bspp-block-caption {
    font-size: 14px;
    color: #666;
    font-style: normal;
    font-weight: 400;
    margin-top: 12px;
    text-align: left;
    line-height: 1.5;
}

/* ===========================================
   IMAGE + TEXT ROWS
   =========================================== */

.bspp-block-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 40px;
    margin-bottom: 35px;
    align-items: flex-start;
}

.bspp-block-col {
    flex: 0 0 auto;
    box-sizing: border-box;
}

.bspp-col-image {
    /* Width set inline */
    flex-shrink: 0;
}

.bspp-col-image .bspp-block-figure {
    margin-bottom: 0;
}

.bspp-col-image .bspp-block-img {
    width: 100%;
    height: auto;
}

.bspp-col-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

.bspp-col-text p {
    margin-bottom: 15px;
}

.bspp-col-text p:first-child {
    margin-top: 0;
}

.bspp-col-text p:last-child {
    margin-bottom: 0;
}

/* Image Left Layout */
.bspp-image-left {
    flex-direction: row;
}

.bspp-image-left .bspp-col-image {
    order: 1;
}

.bspp-image-left .bspp-col-text {
    order: 2;
}

/* Text Left Layout */
.bspp-text-left {
    flex-direction: row;
}

.bspp-text-left .bspp-col-text {
    order: 1;
}

.bspp-text-left .bspp-col-image {
    order: 2;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media screen and (max-width: 768px) {
    .bspp-block-row {
        flex-direction: column !important;
        gap: 20px;
    }
    
    .bspp-block-col {
        width: 100% !important;
    }
    
    .bspp-col-image,
    .bspp-col-text {
        width: 100% !important;
    }
    
    /* On mobile, always show image first */
    .bspp-image-left .bspp-col-image,
    .bspp-text-left .bspp-col-image {
        order: 1 !important;
    }
    
    .bspp-image-left .bspp-col-text,
    .bspp-text-left .bspp-col-text {
        order: 2 !important;
    }
    
    .bspp-block-text,
    .bspp-col-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .bspp-block-caption {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .bspp-block-text,
    .bspp-col-text {
        font-size: 14px;
    }
    
    .bspp-block-row {
        gap: 15px;
    }
    
    .bspp-block-figure,
    .bspp-block-text,
    .bspp-block-row {
        margin-bottom: 25px;
    }
}
