/**
 * Blog Post Widget - Responsive Styles
 * 
 * @package Unlock Addons for Elementor
 * @since 1.0.0
 */

/* ============================================
   Common Styles - All Layouts
   ============================================ */

.unlockafe-blog-post-wrapper {
    width: 100%;
}

.unlockafe-blog-post-wrapper .row {
    margin-left: -15px;
    margin-right: -15px;
}

.unlockafe-blog-post-wrapper .row > * {
    padding-left: 15px;
    padding-right: 15px;
}

/* Blog Item Common Styles */
.unlockafe-blog-post-wrapper .blog__item,
.unlockafe-blog-post-wrapper .blog-2__item,
.unlockafe-blog-post-wrapper .blog-5__item,
.unlockafe-blog-post-wrapper .blog-6__item,
.unlockafe-blog-post-wrapper .blog-7__item,
.unlockafe-blog-post-wrapper .blog-2 {
    width: 100%;
    position: relative;
}

/* Blog Thumbnail */
.unlockafe-blog-post-wrapper .blog-thumb,
.unlockafe-blog-post-wrapper .wpr-el-avator {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
}

.unlockafe-blog-post-wrapper .blog-thumb img,
.unlockafe-blog-post-wrapper .wpr-el-avator img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.unlockafe-blog-post-wrapper .blog-thumb:hover img,
.unlockafe-blog-post-wrapper .wpr-el-avator:hover img {
    transform: scale(1.05);
}

/* Blog Content */
.unlockafe-blog-post-wrapper .blog-content {
    padding: 20px 0;
}

.unlockafe-blog-post-wrapper .blog-title,
.unlockafe-blog-post-wrapper .wpr-el-title {
    margin: 0 0 15px;
    font-size: 20px;
    line-height: 1.4;
}

.unlockafe-blog-post-wrapper .blog-title a,
.unlockafe-blog-post-wrapper .wpr-el-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.unlockafe-blog-post-wrapper .blog-title a:hover,
.unlockafe-blog-post-wrapper .wpr-el-title a:hover {
    color: #FD5D39;
}

/* Blog Meta */
.unlockafe-blog-post-wrapper .blog-meta,
.unlockafe-blog-post-wrapper .blog-author {
    margin-bottom: 10px;
    font-size: 14px;
}

.unlockafe-blog-post-wrapper .blog-date,
.unlockafe-blog-post-wrapper .wpr-el-date {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
}

.unlockafe-blog-post-wrapper .wpr-el-cat {
    display: inline-block;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Blog Button */
.unlockafe-blog-post-wrapper .wpr-el-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============================================
   Layout 1 - Default Grid
   ============================================ */

.unlockafe-blog-post-wrapper .blog-2__item {
    margin-bottom: 30px;
}

.unlockafe-blog-post-wrapper .blog-2__item .blog-thumb {
    border-radius: 8px;
    overflow: hidden;
}

.unlockafe-blog-post-wrapper .blog-2__item .blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
}

/* ============================================
   Layout 2 - Card Style
   ============================================ */

.unlockafe-blog-post-wrapper .blog__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unlockafe-blog-post-wrapper .blog__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.unlockafe-blog-post-wrapper .blog__item .blog-thumb {
    border-radius: 12px 12px 0 0;
}

.unlockafe-blog-post-wrapper .blog__item .blog-content {
    padding: 20px;
}

/* ============================================
   Layout 3 - Slider Style
   ============================================ */

.unlockafe-blog-post-wrapper .blog-6__slider {
    padding: 20px 0;
}

.unlockafe-blog-post-wrapper .blog-6__item {
    padding: 0 15px;
}

.unlockafe-blog-post-wrapper .blog-6__item .blog-thumb {
    border-radius: 8px;
    overflow: hidden;
}

.unlockafe-blog-post-wrapper .blog-6__item .blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* ============================================
   Layout 4 - Slider Style 2
   ============================================ */

.unlockafe-blog-post-wrapper .blog-7__slider {
    padding: 20px 0;
}

.unlockafe-blog-post-wrapper .blog-7__item {
    padding: 0 15px;
}

.unlockafe-blog-post-wrapper .blog-7__item .blog-thumb {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.unlockafe-blog-post-wrapper .blog-7__item .blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* ============================================
   Layout 5 - Grid with Overlay
   ============================================ */

.unlockafe-blog-post-wrapper .blog-5__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.unlockafe-blog-post-wrapper .blog-5__item .blog-thumb {
    position: relative;
}

.unlockafe-blog-post-wrapper .blog-5__item .blog-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.unlockafe-blog-post-wrapper .blog-5__item .blog-content {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin-top: -60px;
    border-radius: 8px 8px 0 0;
}

.unlockafe-blog-post-wrapper .blog-5__item .blog-meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.unlockafe-blog-post-wrapper .blog-5__item .blog-meta li {
    margin: 0;
}

/* ============================================
   Layout 6 - Modern Grid
   ============================================ */

.unlockafe-blog-post-wrapper .blog-wrapper {
    display: grid;
    gap: 30px;
}

.unlockafe-blog-post-wrapper .blog-wrapper-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.unlockafe-blog-post-wrapper .blog-2 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unlockafe-blog-post-wrapper .blog-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.unlockafe-blog-post-wrapper .blog-2 .thumb {
    position: relative;
    overflow: hidden;
}

.unlockafe-blog-post-wrapper .blog-2 .thumb .tags {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.unlockafe-blog-post-wrapper .blog-2 .thumb .tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.unlockafe-blog-post-wrapper .blog-2 .content-wrapper {
    padding: 25px;
}

.unlockafe-blog-post-wrapper .blog-2 .content-wrapper .title {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.4;
}

.unlockafe-blog-post-wrapper .blog-2 .btn-wrapper {
    display: flex;
    justify-content: flex-end;
}

.unlockafe-blog-post-wrapper .blog-2 .t-btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FD5D39;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.unlockafe-blog-post-wrapper .blog-2 .t-btn-circle:hover {
    background: #e04a2a;
    transform: scale(1.1);
}

/* ============================================
   Responsive Design - Tablet (768px and below)
   ============================================ */

@media (max-width: 768px) {
    .unlockafe-blog-post-wrapper .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .unlockafe-blog-post-wrapper .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Blog Content */
    .unlockafe-blog-post-wrapper .blog-content {
        padding: 15px 0;
    }

    .unlockafe-blog-post-wrapper .blog-title,
    .unlockafe-blog-post-wrapper .wpr-el-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* Layout 1 */
    .unlockafe-blog-post-wrapper .blog-2__item .blog-date {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Layout 2 */
    .unlockafe-blog-post-wrapper .blog__item .blog-content {
        padding: 15px;
    }

    /* Layout 5 */
    .unlockafe-blog-post-wrapper .blog-5__item .blog-content {
        padding: 15px;
        margin-top: -50px;
    }

    .unlockafe-blog-post-wrapper .blog-5__item .blog-meta ul {
        gap: 10px;
        font-size: 13px;
    }

    /* Layout 6 */
    .unlockafe-blog-post-wrapper .blog-wrapper-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .unlockafe-blog-post-wrapper .blog-2 .content-wrapper {
        padding: 20px;
    }

    .unlockafe-blog-post-wrapper .blog-2 .content-wrapper .title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .unlockafe-blog-post-wrapper .blog-2 .t-btn-circle {
        width: 40px;
        height: 40px;
    }

    /* Blog Button */
    .unlockafe-blog-post-wrapper .wpr-el-theme-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ============================================
   Responsive Design - Mobile (480px and below)
   ============================================ */

@media (max-width: 480px) {
    .unlockafe-blog-post-wrapper .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .unlockafe-blog-post-wrapper .row > * {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 20px;
    }

    /* Blog Content */
    .unlockafe-blog-post-wrapper .blog-content {
        padding: 12px 0;
    }

    .unlockafe-blog-post-wrapper .blog-title,
    .unlockafe-blog-post-wrapper .wpr-el-title {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .unlockafe-blog-post-wrapper .blog-meta,
    .unlockafe-blog-post-wrapper .blog-author {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .unlockafe-blog-post-wrapper .blog-date,
    .unlockafe-blog-post-wrapper .wpr-el-date {
        font-size: 12px;
    }

    .unlockafe-blog-post-wrapper .wpr-el-cat {
        font-size: 12px;
    }

    /* Layout 1 */
    .unlockafe-blog-post-wrapper .blog-2__item {
        margin-bottom: 20px;
    }

    .unlockafe-blog-post-wrapper .blog-2__item .blog-date {
        top: 8px;
        left: 8px;
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Layout 2 */
    .unlockafe-blog-post-wrapper .blog__item {
        border-radius: 8px;
    }

    .unlockafe-blog-post-wrapper .blog__item .blog-content {
        padding: 12px;
    }

    /* Layout 3 & 4 */
    .unlockafe-blog-post-wrapper .blog-6__item,
    .unlockafe-blog-post-wrapper .blog-7__item {
        padding: 0 8px;
    }

    .unlockafe-blog-post-wrapper .blog-6__item .blog-meta,
    .unlockafe-blog-post-wrapper .blog-7__item .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    /* Layout 5 */
    .unlockafe-blog-post-wrapper .blog-5__item .blog-content {
        padding: 12px;
        margin-top: -40px;
    }

    .unlockafe-blog-post-wrapper .blog-5__item .blog-meta ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Layout 6 */
    .unlockafe-blog-post-wrapper .blog-wrapper-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .unlockafe-blog-post-wrapper .blog-2 {
        border-radius: 8px;
    }

    .unlockafe-blog-post-wrapper .blog-2 .thumb .tags {
        top: 10px;
        left: 10px;
    }

    .unlockafe-blog-post-wrapper .blog-2 .thumb .tag {
        padding: 5px 10px;
        font-size: 11px;
    }

    .unlockafe-blog-post-wrapper .blog-2 .content-wrapper {
        padding: 15px;
    }

    .unlockafe-blog-post-wrapper .blog-2 .content-wrapper .title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .unlockafe-blog-post-wrapper .blog-2 .t-btn-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    /* Blog Button */
    .unlockafe-blog-post-wrapper .wpr-el-theme-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Column adjustments for mobile */
    .unlockafe-blog-post-wrapper .col-md-6,
    .unlockafe-blog-post-wrapper .col-lg-4,
    .unlockafe-blog-post-wrapper .col-lg-3,
    .unlockafe-blog-post-wrapper .col-xl-4,
    .unlockafe-blog-post-wrapper .col-xl-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.unlockafe-blog-post-wrapper .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unlockafe-blog-post-wrapper .fade-anim {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper Slider Responsive */
@media (max-width: 768px) {
    .unlockafe-blog-post-wrapper .swiper {
        padding: 10px 0;
    }

    .unlockafe-blog-post-wrapper .swiper-slide {
        width: 100% !important;
    }
}





