/* AdvancedBlogs Widgets CSS — Modular & High Performance */

.ab-hero-reveal-section {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
}

.ab-hero-reveal-item {
    display: flex;
    flex-direction: row;
    min-height: 500px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-hero-reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.ab-hero-reveal-img {
    width: 60%;
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.ab-hero-reveal-item.visible .ab-hero-reveal-img {
    clip-path: inset(0 0 0 0);
}

.ab-hero-reveal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.5s ease-out;
}

.ab-hero-reveal-item.visible .ab-hero-reveal-img img {
    transform: scale(1);
}

.ab-hero-reveal-content {
    width: 40%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    z-index: 2;
}

.ab-hero-reveal-content .ab-badge {
    align-self: flex-start;
    background: #ffe082;
    color: #8c6d00;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ab-hero-reveal-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.ab-hero-reveal-content h2 a:hover {
    color: var(--ab-accent) !important;
}

.ab-hero-reveal-content p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ab-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ab-read-more-btn:hover {
    gap: 15px;
    color: #1d4ed8;
}

/* Recent Blogs Slider */
.ab-recent-slider-wrap {
    position: relative;
    padding: 0 40px;
}

.ab-recent-carousel {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.ab-carousel-item {
    min-width: calc(33.333% - 13.333px);
    width: calc(33.333% - 13.333px);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ab-carousel-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ab-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ab-carousel-arrow.prev {
    left: -10px;
}

.ab-carousel-arrow.next {
    right: -10px;
}

@media (max-width: 991px) {
    .ab-hero-reveal-item {
        flex-direction: column;
        min-height: auto;
    }

    .ab-hero-reveal-img,
    .ab-hero-reveal-content {
        width: 100%;
        order: 1;
    }

    .ab-hero-reveal-img {
        order: 1;
        height: 300px;
    }

    .ab-hero-reveal-content {
        order: 2;
        padding: 30px 20px;
    }

    .ab-hero-reveal-content h2 {
        font-size: 1.8rem;
    }

    .ab-carousel-item {
        min-width: calc(50% - 10px);
        width: calc(50% - 10px);
    }

    .ab-hero-reveal-img img {
        height: 100%;
    }
}

@media (max-width: 576px) {
    .ab-carousel-item {
        min-width: 100%;
        width: 100%;
    }
}