@import url("./components/header.css");
@import url("./components/footer.css");

/* =====================================================
   BLOG LISTING – HERO
===================================================== */
.blog-hero {
    background: linear-gradient(120deg, #0f5132, #198754);
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* =====================================================
   BLOG CARD
===================================================== */
.blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: transform .4s ease, box-shadow .4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,.15);
}

/* IMAGE */
.blog-image {
    height: 230px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
}

/* CONTENT */
.blog-content {
    padding: 22px;
    flex: 1;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin: 10px 0;
    font-weight: 600;
}

.blog-content h3 a {
    color: #212529;
    text-decoration: none;
}

.blog-content h3 a:hover {
    color:#116911;
}

.blog-content p {
    font-size: .95rem;
    color: #555;
    line-height: 1.7;
}

.blog-date {
    font-size: .85rem;
    color: #6c757d;
}

/* READ MORE */
.read-more {
    color: #046104;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.read-more:hover {
    text-decoration: underline;
}

/* =====================================================
   BLOG DETAIL PAGE
===================================================== */
.blog-detail-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.blog-detail-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.blog-detail-hero .container {
    position: relative;
    z-index: 2;
}

.blog-detail-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
}

.blog-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}
    .garden-hero {
    color: white;
    padding: 13rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -120px;
        }

        .garden-hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
        }

        .garden-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to right, rgb(2 2 2 / 95%) 0%, rgb(60 60 57 / 70%) 50%, transparent 100%);
            z-index: 1;
        }

        .garden-hero .container {
            position: relative;
            z-index: 2;
        }

        .garden-hero h1 {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 1rem;
            position: relative;
        }

        .garden-hero p {
            font-size: 1.2rem;
            opacity: 0.9;
            position: relative;
        }

/* =====================================================
   REVEAL ANIMATION (CARDS ONLY)
===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* STAGGER DELAYS */
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }

/* =====================================================
   SAFETY: IF JS FAILS, SHOW CONTENT
===================================================== */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* =====================================================
   MOBILE OPTIMIZATION
===================================================== */
@media (max-width: 768px) {

    .blog-hero {
        padding: 60px 0;
    }

    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-image {
        height: 200px;
    }

    .reveal {
        transform: translateY(20px);
        transition: all .4s ease;
    }
}

/* =====================================================
   ACCESSIBILITY – REDUCED MOTION
===================================================== */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}
