/* ============================================
   SATTVA AYURVEDA - BLOG PAGE CSS
   Include as: <link rel="stylesheet" href="assets/css/blog.css">
   ============================================ */

/* ── PAGE HEADER (Hero) ── */
.page-header {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-header .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.05);
    animation: zoomIn 20s infinite alternate linear;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 75, 49, 0.88) 0%, rgba(46, 75, 49, 0.55) 100%);
    z-index: 1;
}

.page-header .hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 20px 80px;
    max-width: 650px;
}

.page-header .hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
}

.page-header .hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.hero-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* ── SECTION ── */
.section {
    padding: 80px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── BLOG GRID ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ── BLOG CARD ── */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Image */
.blog-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    display: block;
}

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.07);
}

/* Content */
.blog-content {
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color, #c9a84c);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.blog-text {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color, #2e4b31);
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
    margin-top: auto;
}

.read-more:hover {
    gap: 12px;
    color: var(--secondary-color, #c9a84c);
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* ── ANIMATIONS ── */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeInUp 0.65s forwards;
}

.delay-1 {
    animation-delay: 0.05s;
}

.delay-2 {
    animation-delay: 0.15s;
}

.delay-3 {
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TABLET - max 1024px
   ============================================ */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog-img-wrap {
        height: 200px;
    }
}

/* ============================================
   MOBILE - max 768px
   ============================================ */
@media (max-width: 768px) {
    .page-header {
        min-height: 45vh;
    }

    .page-header .hero-content {
        padding: 100px 20px 60px;
        text-align: center;
    }

    .section {
        padding: 55px 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-card {
        border-radius: 16px;
    }

    .blog-img-wrap {
        height: 210px;
    }

    .blog-content {
        padding: 22px 20px 24px;
    }

    .blog-title {
        font-size: 1.05rem;
    }
}

/* ============================================
   SMALL MOBILE - max 480px
   ============================================ */
@media (max-width: 480px) {
    .page-header {
        min-height: 40vh;
    }

    .page-header .hero-content {
        padding: 85px 16px 50px;
    }

    .blog-img-wrap {
        height: 185px;
    }

    .blog-content {
        padding: 18px 16px 20px;
    }

    .blog-title {
        font-size: 1rem;
    }

    .blog-text {
        font-size: 0.85rem;
    }
}