/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #2c2c2c;
    background-color: #fefdf9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
    width: 100%;
}

/* Header styles */
header {
    background-color: #2c5e2e;
    color: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: inline-block;
    transition: color 0.2s;
}

nav a:hover {
    text-decoration: underline;
    color: #ffd966;
}

/* Footer styles */
footer {
    background-color: #1e3a2f;
    color: #ddd;
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
}

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

.footer-section h3 {
    color: #ffd966;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

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

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #3a5a4a;
    font-size: 0.85rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        border-bottom: 1px solid #3e7640;
    }

    nav a {
        display: block;
        padding: 0.75rem 0;
    }

    main {
        padding: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }
}

/* Utility classes */
img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
}

h1, h2, h3 {
    color: #2c3e2f;
    margin-bottom: 0.75rem;
}

a {
    color: #6b3e1f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Grid for articles */
.articles-grid, .recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.article-card, .recipe-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.article-card:hover, .recipe-card:hover {
    transform: translateY(-3px);
}

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

.article-card h2, .recipe-card h2 {
    font-size: 1.25rem;
    margin: 0.75rem;
}

.article-card p, .recipe-card p {
    margin: 0 0.75rem 1rem;
    color: #555;
}

/* Page header */
.page-header {
    background: #f0f2e8;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Sort cards */
.sorta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.sorta-card {
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sorta-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.sorta-info {
    padding: 1rem;
}

.sorta-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.sorta-date {
    font-size: 0.8rem;
    color: #777;
}

.sorta-desc {
    font-size: 0.9rem;
    color: #444;
    margin-top: 0.5rem;
}

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.sitemap-section ul {
    list-style: none;
    padding-left: 0;
}

.sitemap-section li {
    margin-bottom: 0.5rem;
}

/* Contacts */
.contacts-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: #f9f5e8;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid #6b3e1f;
}

.warning-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: #2c5e2e;
}

.hero-section {
    background: #f0f2e8;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.content-grid {
    margin-bottom: 2rem;
}

.content-grid h2 {
    border-left: 5px solid #8b5a2b;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.content-grid ul {
    padding-left: 2rem;
}

.content-grid li {
    margin-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.read-also {
    background: #f9f5e8;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.read-also ul {
    padding-left: 1.5rem;
}

.disease-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.disease-card h3 {
    margin-top: 0;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: bold;
}

.sidebar-block {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-block ul {
    list-style: none;
    padding: 0;
}

.sidebar-block li {
    margin-bottom: 0.75rem;
}

.intro-text {
    margin-bottom: 2rem;
}

.article-meta {
    padding: 0.5rem 0.75rem 0;
    font-size: 0.8rem;
    color: #777;
}

.comments-count::before {
    content: "💬 ";
}

.about-section {
    background: #f9f5f0;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.author-signature {
    font-style: italic;
    margin-top: 1rem;
    text-align: right;
}

@media (max-width: 768px) {
    .sorta-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid, .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}