/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #fdfcf9;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header */
.header {
    background-color: #2c1810;
    border-bottom: 3px solid #d4a574;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #d4a574;
    letter-spacing: 0.5px;
}

.logo-text {
    display: block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: #d4a574;
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #e8dfd3;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #d4a574;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, #3d2817 0%, #5a3d2a 100%);
    padding: 0.75rem 0;
    border-bottom: 1px solid #d4a574;
}

.banner-text {
    text-align: center;
    color: #e8dfd3;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Section Spacing */
.section-spacing {
    margin-bottom: 3rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid;
}

.section-header.red {
    border-color: #8b4513;
}

.section-header.purple {
    border-color: #6b4e71;
}

.section-header.dark-full {
    background-color: #2c1810;
    color: #d4a574;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c1810;
    letter-spacing: 1px;
}

.section-header.dark-full .section-title {
    color: #d4a574;
}

.section-header .icon {
    width: 24px;
    height: 24px;
    color: #8b4513;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Article Cards */
.article-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
    border: 1px solid #e8dfd3;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(44, 24, 16, 0.15);
}

.article-image-wrapper {
    position: relative;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.article-card.medium .article-image {
    height: 200px;
}

/* Category Badges */
.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #8b4513;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.category-badge.red {
    background-color: #8b4513;
}

.category-badge-small {
    display: inline-block;
    background-color: #6b4e71;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.category-badge-small.green {
    background-color: #4a7c59;
}

.category-badge-small.purple {
    background-color: #6b4e71;
}

/* Article Content */
.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-title-small {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6b6b6b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item .icon {
    width: 16px;
    height: 16px;
    color: #8b4513;
}

.article-date {
    font-size: 0.85rem;
    color: #6b6b6b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.latest-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: #6b6b6b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Don't Miss Section */
.grid-dont-miss {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dont-miss-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.horizontal-card {
    display: flex;
    gap: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    padding: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
    border: 1px solid #e8dfd3;
}

.horizontal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 24, 16, 0.12);
}

.horizontal-image {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.horizontal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.horizontal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.dont-miss-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.small-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
    border: 1px solid #e8dfd3;
}

.small-card:hover {
    transform: translateY(-2px);
}

.small-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.small-content {
    padding: 1rem;
}

.small-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c1810;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Latest Posts Grid */
.grid-latest {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.latest-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Trending Sidebar */
.trending-sidebar {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
    border: 1px solid #e8dfd3;
}

.trending-header {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c1810;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #8b4513;
}

.trending-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e8dfd3;
    transition: background-color 0.2s;
}

.trending-card:last-child {
    border-bottom: none;
}

.trending-card:hover {
    background-color: #faf8f5;
}

.trending-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4a574;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 32px;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c1810;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #2c1810 0%, #5a3d2a 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(44, 24, 16, 0.2);
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.newsletter-text {
    color: #e8dfd3;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #d4a574;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.newsletter-btn {
    background-color: #d4a574;
    color: #2c1810;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background-color 0.3s;
}

.newsletter-btn:hover {
    background-color: #c49564;
}

.subscribe-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #4a7c59;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.category-btn {
    background-color: #ffffff;
    color: #2c1810;
    padding: 1rem;
    border: 2px solid #d4a574;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s;
}

.category-btn:hover {
    background-color: #2c1810;
    color: #d4a574;
}

/* Footer */
.footer {
    background-color: #2c1810;
    color: #e8dfd3;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 3px solid #d4a574;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: #d4a574;
    font-size: 0.95rem;
    font-style: italic;
}

.footer-description {
    color: #c7bfb1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #c7bfb1;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #d4a574;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #5a3d2a;
    color: #a89e8f;
    font-size: 0.875rem;
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, #2c1810 0%, #5a3d2a 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 3px solid #d4a574;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4a574;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #e8dfd3;
    text-align: center;
    margin-top: 0.5rem;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
    border: 1px solid #e8dfd3;
}

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

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d4a574;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #3d2817;
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    color: #4a4a4a;
    line-height: 1.8;
}

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

.content-section strong {
    color: #2c1810;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2c1810;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid #e8dfd3;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a574;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: #8b4513;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #723a0f;
}

.contact-info {
    background-color: #faf8f5;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 2px solid #e8dfd3;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4a4a4a;
}

.contact-item .icon {
    width: 20px;
    height: 20px;
    color: #8b4513;
}

/* Article Page Styles */
.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.article-category {
    display: inline-block;
    background-color: #8b4513;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.article-main-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #2c1810;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.3rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 2px solid #e8dfd3;
    border-bottom: 2px solid #e8dfd3;
}

.author-name {
    font-weight: 600;
    color: #2c1810;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.article-featured-image {
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(44, 24, 16, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-body h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2c1810;
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3d2817;
    margin: 1.5rem 0 0.75rem;
}

.article-body p {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-left: 2rem;
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body strong {
    color: #2c1810;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-dont-miss {
        grid-template-columns: 1fr;
    }
    
    .grid-latest {
        grid-template-columns: 1fr;
    }
    
    .latest-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: #2c1810;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        display: none;
        border-top: 1px solid #d4a574;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #5a3d2a;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .latest-main {
        grid-template-columns: 1fr;
    }
    
    .horizontal-card {
        flex-direction: column;
    }
    
    .horizontal-image {
        width: 100%;
        height: 200px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-main-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
