/* ===========================
   Root & Global Styles
   Applies general colors, fonts, and box-sizing
=========================== */
:root {
    --primary: #5D8A74;
    --secondary: #A3BFA8;
    --accent: #D4A76A;
    --light: #F7F4EF;
    --dark: #2C3E2D;
    --text: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="%23A3BFA8" stroke-width="0.5" stroke-opacity="0.2"/></svg>');
    background-size: 400px;
}



/* Daily Affirmations */

.affirmation-box {
    background: #f1f8f4;
    border: 1px solid #cde3d0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    
}

button {
    background-color: #4c956c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 1rem;
}

button:hover {
    background-color: #3e7c5d;
}

/* ===========================
   Header
   Top navigation and logo
=========================== */
header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.8rem;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ===========================
   Hero Section
   Top banner with heading and background
=========================== */
.hero {
    background: linear-gradient(rgba(45, 62, 46, 0.7), rgba(45, 62, 46, 0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400" width="800" height="400"><rect width="800" height="400" fill="%235D8A74"/><path d="M0,200 Q400,50 800,200 L800,400 L0,400 Z" fill="%23A3BFA8"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto ;
    min-height: 250px;
    /* margin: 0 auto; */
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===========================
   Buttons
=========================== */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #c0955c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Layout Containers
=========================== */
.container {
    /* max-width: 1200px; */
    width: 95%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* ===========================
   Section Titles
=========================== */
.section-title {
    font-family: 'Merriweather', serif;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}


.category {

    /* border: 1px solid black; */
    /* background-color: rgba(0, 0, 0, 0.5);    */
    border-radius: 25px;

    * {
        margin: 5px;
        padding: 5px;
    }

    hr {
        margin: 0;
        padding: 0;
        margin-inline: 25px;
        color: black;
        height: 2px;
    }

    .category-header {
        /* border: 1px solid rgb(20, 220, 20); */
        border-radius: 25px;
        margin-top: 5px;
        margin-bottom: 5px;
        background: var(--primary);

        * {
            color: white;
        }
    }
}

/* ===========================
   Blog Grid & Cards
=========================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    height: 600px;
    width: 350px;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#blogArticles {
    display: flex;
    flex-direction: column;
    /* stack categories vertically */
    /* gap: 1rem; */
    /* space between categories */
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.card-img {
    height: 200px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.card-title {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.card-excerpt {
    margin-bottom: 1.2rem;
    color: #555;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.9rem;
}

.card-meta i {
    margin-right: 0.3rem;
}

/* ===========================
   Sidebar Styles
   Sticky sidebar with cards
=========================== */
aside {
    position: sticky;
    top: 1rem;
    align-self: start;
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px var(--shadow);

    button{
        
    }
}

.sidebar-title {
    font-family: 'Merriweather', serif;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.categories-list a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: var(--primary);
}

.categories-list span {
    background-color: var(--light);
    border-radius: 12px;
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
}

/* ===========================
   Popular Posts / Widgets
=========================== */
.popular-post {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
}

.popular-img {
    width: 70px;
    height: 70px;
    background-color: var(--secondary);
    border-radius: 8px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.popular-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.popular-content span {
    font-size: 0.8rem;
    color: #777;
}

/* ===========================
   Forms / Newsletter
=========================== */
.newsletter-form {
    display: flex;
    flex-direction: column;
}

.newsletter-form input {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* ===========================
   Quote Section
=========================== */
.quote {
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary);
    color: white;
    border-radius: 10px;
    margin: 3rem 0;
    position: relative;
}

.quote::before,
.quote::after {
    content: "*";
    font-size: 4rem;
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
}

.quote::before {
    top: 10px;
    left: 20px;
}

.quote::after {
    bottom: 10px;
    right: 20px;
    transform: rotate(180deg);
}

.quote-text {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quote-author {
    font-weight: 500;
}

/* ===========================
   Footer
=========================== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.footer-col h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

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

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav li {
        margin: 0 0.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}