/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 4px 16px -4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px -4px rgba(0, 0, 0, 0.1), 0 8px 24px -8px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 32px -8px rgba(0, 0, 0, 0.15), 0 16px 48px -16px rgba(0, 0, 0, 0.12);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--gradient);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}



.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '📜';
    font-size: 1.5rem;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 4rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 30s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero p {
    font-size: 1.375rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section Styles */
section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 2.5rem;
    background: var(--gradient);
    border-radius: 3px;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* Article Card */
.article-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.article-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover img {
    transform: scale(1.08);
}

.article-card .content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-dark);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
}

.article-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-light);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Categories Section */
.categories {
    background: var(--bg-white);
}

.category-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-item {
    background: var(--bg-light);
    padding: 1rem 2rem;
    border-radius: 60px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover,
.category-item.active {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Latest Articles */
.latest {
    background: linear-gradient(180deg, var(--bg-light) 0%, #f1f5f9 100%);
}

/* Article Detail */
.article-detail {
    background: var(--bg-white);
    padding: 2.5rem 0 3.5rem;
}

.article-header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.article-header .category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-header h1 {
    font-size: 2.75rem;
    color: var(--text-dark);
    margin: 1rem 0;
    line-height: 1.3;
    font-weight: 800;
}

.article-header .meta {
    color: var(--text-light);
    font-size: 1rem;
}

.article-featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-lg);
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 1.75rem 0 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.sidebar h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: var(--bg-light);
}

.related-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-item h4 {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: var(--gradient);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.95;
    font-size: 1.125rem;
}

/* List Section */
.list-section {
    padding: 2.5rem 0;
}

.list-article {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.list-article:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.list-article img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.list-article .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-article .category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.list-article h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.list-article h2 a:hover {
    color: var(--primary);
}

.list-article p {
    color: var(--text-light);
    font-size: 1rem;
    flex: 1;
}

.list-article .meta {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Static Content */
.static-content {
    background: var(--bg-white);
    padding: 2.5rem 0;
}

.static-content .container {
    max-width: 800px;
}

.static-content h1 {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    text-align: center;
    font-weight: 800;
}

.static-content h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 1.75rem 0 0.75rem;
    font-weight: 700;
}

.static-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.static-content ul {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
}

.static-content li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn {
    background: var(--gradient);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.875rem;
    font-size: 0.975rem;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: white;
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        text-align: center;
    }

    nav.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .list-article {
        flex-direction: column;
    }

    .list-article img {
        width: 100%;
        height: 220px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-body {
        font-size: 1rem;
    }

    footer {
        padding: 1rem 0 0.5rem;
        margin-top: 0.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .footer-col:first-child {
        display: none;
    }

    .footer-col {
        padding: 0.375rem 0.5rem;
    }

    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: none;
        font-weight: 700;
        position: relative;
    }

    .footer-col h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 3px;
        background: var(--gradient);
        border-radius: 2px;
    }

    .footer-col a {
        margin-bottom: 0.25rem;
        font-size: 0.775rem;
        line-height: 1.4;
    }

    .footer-col p {
        display: none;
    }

    .footer-bottom {
        padding-top: 0.75rem;
        font-size: 0.725rem;
        line-height: 1.4;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        justify-items: stretch;
    }

    .article-card {
        max-width: none;
    }

    .article-card img {
        height: 160px;
    }

    .article-card .content {
        padding: 1rem;
    }

    .article-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .article-card p {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-card .meta {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .section-title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    #featured-articles .article-card:nth-child(n+3),
    #latest-articles .article-card:nth-child(n+5) {
        display: none;
    }

    .sidebar {
        padding: 1.25rem;
        margin-top: 1rem;
    }

    .sidebar h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .related-articles {
        gap: 0.625rem;
    }

    .related-item {
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .related-item img {
        width: 80px;
        height: 60px;
    }

    .related-item h4 {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}