:root {
    --primary-color: #2c3e50;
    --accent-color: #0056b3;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f8f9fa;
    --card-bg: #fff;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --hover-shadow: 0 8px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --container-width: 1200px;
    --font-heading: 'Georgia', serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Grid Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Article Card */
.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-img {
    height: 200px;
    background-color: #ddd;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
}

/* About Section (Homepage) */
.about-preview {
    background: #fff;
    padding: 60px 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Article Page Styles */
.article-header {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.article-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-content {
    max-width: 800px;
    margin: 0 auto 60px;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-content h1, 
.article-content h2, 
.article-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    border-radius: var(--radius);
    margin: 30px 0;
    width: 100%;
}

.faq-section {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background: #eee;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 20px;
    }
}
