/* ===== CSS VARIABLES ===== */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #d8f3dc;
    --accent: #f4a261;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 300px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 20px;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* ===== FEATURED POSTS (Home) ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card-image {
    height: 200px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.post-card-content {
    padding: 25px;
}

.post-card-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.post-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.post-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* ===== BLOG LIST PAGE ===== */
.blog-header {
    background: var(--primary);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.blog-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
}

.blog-list {
    padding: 60px 20px;
}

.blog-list-item {
    display: flex;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.blog-list-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.blog-list-thumb {
    width: 200px;
    height: 150px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.blog-list-content {
    flex: 1;
}

.blog-list-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.blog-list-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-list-excerpt {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== BLOG POST DETAIL ===== */
.blog-post-header {
    background: var(--primary);
    color: var(--white);
    padding: 80px 20px 40px;
    text-align: center;
}

.blog-post-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0.9;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: -30px;
    position: relative;
}

.blog-post-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: var(--primary-dark);
}

.blog-post-content h3 {
    font-size: 1.4rem;
    margin: 25px 0 10px;
    color: var(--text-dark);
}

.blog-post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-light);
}

.blog-post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-post-content code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.blog-post-content pre {
    background: var(--text-dark);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-post-tags {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== ABOUT & CONTACT PAGES ===== */
.page-header {
    background: var(--primary);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    margin-top: 10px;
    opacity: 0.8;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--text-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav-list.show {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .blog-list-item {
        flex-direction: column;
    }
    
    .blog-list-thumb {
        width: 100%;
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}