/* Blog Post Grid – 17addd04 */

.bpg-17addd04-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.bpg-17addd04-heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

/* Filters */
.bpg-17addd04-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.bpg-17addd04-filter-btn {
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-family: inherit;
}

.bpg-17addd04-filter-btn:hover {
    border-color: #f0a500;
    color: #f0a500;
}

.bpg-17addd04-filter-btn.bpg-17addd04-active {
    background-color: #f0a500;
    border-color: #f0a500;
    color: #fff;
}

/* Grid */
.bpg-17addd04-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Featured item spans full width */
.bpg-17addd04-item.bpg-17addd04-featured {
    grid-column: 1 / -1;
}

.bpg-17addd04-featured .bpg-17addd04-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}

.bpg-17addd04-featured .bpg-17addd04-thumb {
    border-radius: 12px 0 0 12px !important;
    min-height: 380px;
}

.bpg-17addd04-featured .bpg-17addd04-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: #fdf5e6;
    border-radius: 0 12px 12px 0;
}

.bpg-17addd04-featured .bpg-17addd04-title {
    font-size: 1.8rem;
}

/* Card */
.bpg-17addd04-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

/* ── Hover Effects ── */

/* Lift */
.bpg-17addd04-hover-lift .bpg-17addd04-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Grow */
.bpg-17addd04-hover-grow .bpg-17addd04-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

/* Glow */
.bpg-17addd04-hover-glow .bpg-17addd04-card:hover {
    box-shadow: 0 0 25px 5px rgba(240, 165, 0, 0.4);
}

/* 3D Tilt — handled via JS, base transition */
.bpg-17addd04-hover-tilt .bpg-17addd04-card {
    transform-style: preserve-3d;
    transition: transform 0.2s ease, box-shadow 0.35s ease;
}

.bpg-17addd04-hover-tilt .bpg-17addd04-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.bpg-17addd04-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e0e0e0;
    position: relative;
}

.bpg-17addd04-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bpg-17addd04-card:hover .bpg-17addd04-thumb img {
    transform: scale(1.05);
}

.bpg-17addd04-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 0.95rem;
}

/* Card Body */
.bpg-17addd04-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bpg-17addd04-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f0a500;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.bpg-17addd04-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.bpg-17addd04-title a {
    color: inherit;
    text-decoration: none;
}

.bpg-17addd04-title a:hover {
    color: #f0a500;
}

.bpg-17addd04-excerpt {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.bpg-17addd04-readmore {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f0a500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bpg-17addd04-readmore:hover {
    color: #d48f00;
}

/* ══════════════════════════════════
   Entrance Animations
   ══════════════════════════════════ */

/* Base hidden state for all animated items */
.bpg-17addd04-animate {
    opacity: 0;
    will-change: opacity, transform;
}

/* ── Fade In Up ── */
.bpg-17addd04-anim-fade-in-up {
    transform: translateY(40px);
}
.bpg-17addd04-anim-fade-in-up.bpg-17addd04-visible {
    animation: bpgFadeInUp17addd04 var(--bpg-17addd04-duration, 650ms) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes bpgFadeInUp17addd04 {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Fade In Down ── */
.bpg-17addd04-anim-fade-in-down {
    transform: translateY(-40px);
}
.bpg-17addd04-anim-fade-in-down.bpg-17addd04-visible {
    animation: bpgFadeInDown17addd04 var(--bpg-17addd04-duration, 650ms) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes bpgFadeInDown17addd04 {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Fade In Left ── */
.bpg-17addd04-anim-fade-in-left {
    transform: translateX(-40px);
}
.bpg-17addd04-anim-fade-in-left.bpg-17addd04-visible {
    animation: bpgFadeInLeft17addd04 var(--bpg-17addd04-duration, 650ms) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes bpgFadeInLeft17addd04 {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Fade In Right ── */
.bpg-17addd04-anim-fade-in-right {
    transform: translateX(40px);
}
.bpg-17addd04-anim-fade-in-right.bpg-17addd04-visible {
    animation: bpgFadeInRight17addd04 var(--bpg-17addd04-duration, 650ms) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes bpgFadeInRight17addd04 {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Zoom In ── */
.bpg-17addd04-anim-zoom-in {
    transform: scale(0.6);
}
.bpg-17addd04-anim-zoom-in.bpg-17addd04-visible {
    animation: bpgZoomIn17addd04 var(--bpg-17addd04-duration, 650ms) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes bpgZoomIn17addd04 {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Flip In ── */
.bpg-17addd04-anim-flip-in {
    transform: perspective(800px) rotateY(90deg);
}
.bpg-17addd04-anim-flip-in.bpg-17addd04-visible {
    animation: bpgFlipIn17addd04 var(--bpg-17addd04-duration, 650ms) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes bpgFlipIn17addd04 {
    from { opacity: 0; transform: perspective(800px) rotateY(90deg); }
    to   { opacity: 1; transform: perspective(800px) rotateY(0deg); }
}

/* ── Scroll Parallax ── */
.bpg-17addd04-parallax-active .bpg-17addd04-item {
    transition: transform 0.1s linear;
}

/* Hidden by filter */
.bpg-17addd04-item.bpg-17addd04-hidden {
    display: none;
}

.bpg-17addd04-no-posts {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 1rem;
}

/* Responsive: 2 columns */
@media (max-width: 991px) {
    .bpg-17addd04-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bpg-17addd04-featured .bpg-17addd04-card {
        grid-template-columns: 1fr;
    }

    .bpg-17addd04-featured .bpg-17addd04-thumb {
        border-radius: 12px 12px 0 0 !important;
        min-height: 250px;
    }

    .bpg-17addd04-featured .bpg-17addd04-card-body {
        border-radius: 0 0 12px 12px;
    }
}

/* Responsive: 1 column */
@media (max-width: 600px) {
    .bpg-17addd04-grid {
        grid-template-columns: 1fr;
    }

    .bpg-17addd04-heading {
        font-size: 1.8rem;
    }

    .bpg-17addd04-featured .bpg-17addd04-title {
        font-size: 1.4rem;
    }
}
