/* The Loving Mum - Main Stylesheet */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header and Navigation */
header {
    background-color: #fff;
    border-bottom: 3px solid #22c55e;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.logo:hover {
    color: #22c55e;
}

.tagline {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Navigation Menu */
nav {
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
}

nav ul {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 30px;
}

/* Article Styles */
article {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

article h1 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

article h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #22c55e;
    padding-left: 15px;
}

article h3 {
    font-size: 18px;
    color: #333;
    margin-top: 25px;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 13px;
}

.article-date {
    background-color: #22c55e;
    color: white;
    padding: 10px 15px;
    border-radius: 3px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.article-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background-color: #22c55e;
    color: white;
}

article p {
    margin-bottom: 15px;
    text-align: justify;
}

article img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
}

article a {
    color: #22c55e;
    text-decoration: none;
    border-bottom: 1px solid #22c55e;
    transition: all 0.3s ease;
}

article a[rel="nofollow"] {
    color: #0066cc;
}

article a:hover {
    color: #16a34a;
}

article ul, article ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

article li {
    margin-bottom: 8px;
}

article blockquote {
    border-left: 4px solid #22c55e;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

article strong {
    color: #1a1a1a;
    font-weight: bold;
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 15px;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 10px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 8px;
}

.sidebar-section a {
    color: #22c55e;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-section a:hover {
    color: #16a34a;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 3px solid #22c55e;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #22c55e;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #22c55e;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        border-bottom: none;
        border-left: 3px solid transparent;
        padding-left: 20px;
    }

    nav a:hover {
        border-left-color: #22c55e;
        border-bottom-color: transparent;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        top: auto;
    }

    article {
        padding: 20px;
    }

    article h1 {
        font-size: 24px;
    }

    article h2 {
        font-size: 20px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    nav a {
        padding: 10px 12px;
        font-size: 12px;
    }

    article {
        padding: 15px;
    }

    article h1 {
        font-size: 20px;
    }

    article h2 {
        font-size: 18px;
    }

    .article-categories {
        flex-direction: column;
    }

    .category-tag {
        display: inline-block;
    }
}

/* Homepage Styles */
.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.post-card {
    background-color: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #22c55e;
}

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

.post-card-content {
    padding: 20px;
}

.post-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-card h3 a:hover {
    color: #22c55e;
}

.post-card-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #22c55e;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #16a34a;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #22c55e;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
}

/* SEO and Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    header, nav, .sidebar, footer {
        display: none;
    }

    article {
        border: none;
        box-shadow: none;
    }
}
