/* assets/css/style.css */
:root {
    --primary: #0f3b5e;
    --primary-light: #1a5276;
    --secondary: #e67e22;
    --secondary-light: #f39c12;
    --accent: #2ecc71;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 28px;
    margin-right: 8px;
}

.logo-text .highlight {
    color: var(--secondary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition);
}

.main-nav a:hover {
    color: var(--secondary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero h1 .highlight {
    color: var(--secondary-light);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Stats */
.stats-section {
    padding: 40px 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.article-card-body {
    padding: 24px;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-meta .category {
    background: var(--primary);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-card h3 a {
    text-decoration: none;
    color: var(--primary);
}

.article-card h3 a:hover {
    color: var(--secondary);
}

.article-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 16px;
}

.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    color: #d35400;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 60px 48px;
    border-radius: var(--radius);
    text-align: center;
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

/* Articles Page */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
}

.page-header .subtitle {
    color: var(--text-light);
    font-size: 18px;
}

.articles-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
}

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--primary);
    border-bottom: 2px solid var(--bg);
    padding-bottom: 12px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary);
    color: var(--white);
}

/* Article List */
.article-list-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.article-list-item h2 {
    font-size: 24px;
    margin: 8px 0 12px;
}

.article-list-item h2 a {
    text-decoration: none;
    color: var(--primary);
}

.article-list-item h2 a:hover {
    color: var(--secondary);
}

/* Detail Page */
.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
}

.detail-article {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.detail-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.detail-meta .category {
    background: var(--primary);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-article h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
}

.detail-content {
    font-size: 17px;
    line-height: 1.8;
    color: #2c3e50;
}

.recent-list {
    list-style: none;
}

.recent-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-list li:last-child {
    border-bottom: none;
}

.recent-list a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

.recent-list a:hover {
    color: var(--secondary);
}

.recent-date {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-details {
    list-style: none;
    margin-top: 24px;
}

.contact-details li {
    padding: 8px 0;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* About */
.about-content {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    color: var(--primary);
    margin: 24px 0 12px;
}

.about-content ul {
    padding-left: 24px;
    margin: 12px 0;
}

.about-content ul li {
    margin-bottom: 8px;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--secondary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .articles-layout {
        grid-template-columns: 1fr;
    }
    .article-detail-layout {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .main-nav.active ul {
        flex-direction: column;
        gap: 16px;
    }
    .mobile-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 17px;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 32px 20px;
    }
    .detail-article {
        padding: 24px;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .about-content {
        padding: 24px;
    }
}