:root {
    --primary: #FF6F0F;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #001D23;
    --text-primary: #2d3748;    /* Dark gray for main text */
    --text-secondary: #4a5568;  /* Medium gray for supporting text */
    --text-accent: #2b6cb0;     /* Professional blue for interactive elements */
    --category-tag: #ebf8ff;    /* Light blue background for category tags */
    --meta-text: #718096;       /* Softer gray for metadata */
    --h1-size: 42px;            /* Slightly reduced from main site for better blog context */
    --h2-size: 32px;
    --h3-size: 24px;
    --body-size: 18px;
    --meta-size: 14px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: var(--dark);
    padding: 10px 0;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-md img {
    width: 100px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.btn-donate {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-donate:hover {
    background-color: #ff4a3d;
}

/* Typography System for Blog Pages */

/* Base Typography */
.featured-article h1 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;     /* Subtle letter spacing for readability */
}

/* Featured Article Typography */
.featured .article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--h2-size);
    font-weight: 600;           /* Slightly lighter than main headings */
    line-height: 1.4;
    color: var(--text-primary);
    margin: 1rem 0;
}

/* Category Tags */
.category {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;      /* Better spacing for small caps */
    background-color: var(--category-tag);
    color: var(--text-accent);
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Blog Card Typography */
.blog-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--h3-size);
    font-weight: 600;
    line-height: 1.4;
    color: var (--text-primary);
    margin: 0.75rem 0;
}

/* Meta Information */
.meta {
    font-family: 'Poppins', sans-serif;
    font-size: var(--meta-size);
    color: var(--meta-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Article Excerpts */
.excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: var(--body-size);
    line-height: 1.7;          /* Increased line height for better readability */
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Read More Links */
.read-more {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-accent);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: scaleX(1);
}

/* Newsletter Section */
.newsletter h2 {
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;           /* Optimal reading width */
    margin: 0 auto 2rem auto;
}

/* Popular Topics */
.topic-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-accent);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--text-accent);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background-color: var(--text-accent);
    color: white;
}

/* Sidebar Typography */
.blog-sidebar h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.blog-sidebar a {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.blog-sidebar a:hover {
    color: var(--text-accent);
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --h1-size: 32px;
        --h2-size: 28px;
        --h3-size: 22px;
        --body-size: 16px;
    }
    
    .excerpt {
        line-height: 1.6;
    }
}

p {
    font-weight: 400;
    line-height: 1.5;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-secondary);
    letter-spacing: 0.2;
}

a {
    font-weight: 400;
    text-decoration: none;
    line-height: 1.5;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-secondary);
    letter-spacing: 0.2;
}

ul {
    list-style: none;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

/* Featured Article Section */
.featured-article {
    padding: 50px 20px;
    background-color: var(--light);
    text-align: center;
}

.featured-article h1 {
    font-size: var(--h1-size);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.featured img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.article-content {
    max-width: 800px;
    text-align: left;
}

/* Blog Categories Section */
.blog-categories {
    padding: 50px 20px;
    background-color: var(--light);
    text-align: center;
}

.blog-categories h2 {
    font-size: var(--h2-size);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.category-btn:hover {
    background-color: #ff4a3d;
}

/* Latest Articles Grid */
.latest-articles {
    padding: 50px 20px;
    background-color: var(--light);
    text-align: center;
}

.latest-articles h2 {
    font-size: var(--h2-size);
    margin-bottom: 20px;
    color: var (--text-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.blog-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.blog-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card-content .category {
    font-size: 14px;
    color: var(--text-accent);
    font-weight: 600;
}

.card-content h3 {
    font-size: var(--h3-size);
    margin: 10px 0;
    color: var(--text-primary);
}

.card-content .meta {
    font-size: var(--meta-size);
    color: var(--meta-text);
    margin-bottom: 10px;
}

.card-content .excerpt {
    font-size: var(--body-size);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.card-content .read-more {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.card-content .read-more:hover {
    background-color: #ff4a3d;
}

/* Newsletter Subscription */
.newsletter {
    padding: 50px 20px;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-size: var(--h2-size);
    margin-bottom: 20px;
}

.newsletter p {
    font-size: var(--body-size);
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 5px;
    font-size: 1rem;
}

.subscribe-form button {
    background-color: white;
    color: var(--primary);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.subscribe-form button:hover {
    background-color: var(--light);
}

/* Popular Topics */
.popular-topics {
    padding: 50px 20px;
    background-color: var(--light);
    text-align: center;
}

.popular-topics h2 {
    font-size: var(--h2-size);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.topic-tag {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.topic-tag:hover {
    background-color: #ff4a3d;
}

/* Pagination */
.pagination {
    padding: 50px 20px;
    background-color: var(--light);
    text-align: center;
}

.pagination .prev-page,
.pagination .next-page {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.pagination .prev-page:hover,
.pagination .next-page:hover {
    background-color: #ff4a3d;
}

.page-numbers {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.page-numbers a {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.page-numbers a:hover {
    background-color: #ff4a3d;
}

.page-numbers .active {
    background-color: var(--dark);
}

/* Sidebar */
.blog-sidebar {
    padding: 50px 20px;
    background-color: var(--light);
}

.search-widget,
.recent-posts,
.archives {
    margin-bottom: 30px;
}

.search-widget h3,
.recent-posts h3,
.archives h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 5px;
    font-size: 1rem;
}

.search-form button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #ff4a3d;
}

.recent-posts ul,
.archives ul {
    list-style: none;
    padding: 0;
}

.recent-posts ul li,
.archives ul li {
    margin-bottom: 10px;
}

.recent-posts ul li a,
.archives ul li a {
    color: var(--text-secondary);
    text-decoration: none;
}

.recent-posts ul li a:hover,
.archives ul li a:hover {
    color: var(--text-accent);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 20px;
    text-align: left;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer-item {
    flex: 1;
    min-width: 200px;
}

.footer-item img {
    margin-bottom: 10px;
}

.footer-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-item p,
.footer-item ul,
.footer-item form {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-item ul {
    list-style: none;
    padding: 0;
}

.footer-item ul li {
    margin-bottom: 5px;
}

.footer-item ul a {
    color: white;
    text-decoration: none;
}

.footer-item ul a:hover {
    color: var(--primary);
}

.footer-item form {
    display: flex;
    flex-direction: column;
}

.footer-item input[type="email"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

.footer-item button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
}

.footer-item button:hover {
    background-color: #ff4a3d;
}

.footer-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.footer-social a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.footer-social a img {
    width: 30px;
    height: 30px;
}

.footer-social a:hover {
    color: var(--primary);
}

/* Remove underline from footer quick links */
.footer-nav a {
    text-decoration: none;
}

/* Add hover effect for better user experience (optional) */
.footer-nav a:hover {
    text-decoration: none; /* You can replace this with any desired effect */
}