/* ===== Global Imports ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');


/* ===== Base Styles ===== */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: #222;
    background: rgb(247,247,247);
}

h1, h2, h3 {
    line-height: 1.3;
    color: rgb(37,107,71);
}

/* ===== Header ===== */
header {
    background: rgb(37,107,71);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-family: "Playfair Display", serif;
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
}

/* ===== Navigation ===== */
.top-nav {
    text-align: center;
}

.top-nav a,
.top-nav a:visited {
    text-decoration: none;
    color: white;
}

.top-nav a:hover {
    text-decoration: underline;
    color: white;
}

/* ===== Containers ===== */
.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* Article pages had 850px, homepage 1200px — merged to 1200 for consistency */

/* ===== Hero Image (Article Pages) ===== */
.hero-img {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}


/* ===== Hero Banner (Homepage) ===== */
.hero-banner {
    background: url('/images/hero.webp') no-repeat center center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(34, 35, 36, 0.54);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: white;
}

.hero-text p {
    font-size: 1.6rem;
    line-height: 1.45;
}


/* ===== Article Table of Contents ===== */
.toc-box {
    background: #f4f7f4;
    border-left: 4px solid rgb(37,107,71);
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
}

.toc-box ul {
    margin: 0;
    padding-left: 20px;
}

h2, h3 {
    margin-top: 35px;
}


/* ===== Herbs Grid (Homepage) ===== */
.herbs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.herb-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    background: #f9f9f9;
    text-align: center;
}

.herb-card:hover {
    transform: scale(1.03);
}

.herb-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.herb-card a {
    display: block;
    color: #256b47;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    font-size: 1.1rem;
}

.herb-card a:hover {
    text-decoration: underline;
}


/* ===== Footer ===== */
footer {
    background: rgb(37,107,71);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

footer a,
footer a:visited {
    text-decoration: none;
    color: white;
}

footer a:hover {
    text-decoration: underline;
}


/* ===== Responsive ===== */
@media (max-width: 900px) {
    .herbs-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        height: 250px;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1.45rem;
        line-height: 1.35;
    }

    .herb-card img {
        height: 180px;
    }
}
