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

:root {
    --primary-color: #d4af37;
    --secondary-color: #f5e6d3;
    --accent-color: #c9a882;
    --text-dark: #2c2c2c;
    --text-light: #6b6b6b;
    --bg-light: #faf9f7;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* ===== Navigation ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

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

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Articles Section ===== */
.articles-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--secondary-color);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.placeholder-icon {
    font-size: 4rem;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.article-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.article-date {
    color: var(--text-light);
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-title a {
    color: var(--text-dark);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-color);
}

.article-author {
    color: var(--text-light);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.read-more:hover {
    color: var(--accent-color);
}

/* ===== Article Page ===== */
.article-page {
    background: var(--white);
}

.article-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
    padding: 4rem 0 2rem;
    text-align: center;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header .article-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.article-author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.author-avatar {
    font-size: 2rem;
}

.article-featured-image {
    padding: 2rem 0;
    background: var(--white);
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.article-body {
    padding: 3rem 0;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.article-main-content {
    max-width: 800px;
}

.article-main-content h1,
.article-main-content h2,
.article-main-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-main-content h2 {
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.article-main-content h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.article-main-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-main-content ul,
.article-main-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-main-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-main-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-main-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-info-list {
    list-style: none;
}

.article-info-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--secondary-color);
}

.article-info-list li:last-child {
    border-bottom: none;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--secondary-color);
}

.related-articles {
    background: var(--bg-light);
    padding: 4rem 0;
}

/* ===== Category & Page Headers ===== */
.category-header,
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.category-title,
.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.2rem;
    color: var(--text-light);
}

.page-content {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2,
.contact-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-content h3,
.contact-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.about-content p,
.contact-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-method {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.contact-method h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-method a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-method a:hover {
    color: var(--accent-color);
}

.contact-info {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 5rem 0;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ===== Error Page ===== */
.error-page {
    padding: 6rem 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.no-articles {
    text-align: center;
    padding: 4rem 0;
}

.no-articles p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header .article-title {
        font-size: 2rem;
    }
    
    .category-title,
    .page-title {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .articles-section {
        padding: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
