:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --light-color: #f1f5f9;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

.container {
    max-width: 100%;
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

/* Header & Nav */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0.5rem 0;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    margin-top: 0.5rem;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

/* Home Banner */
.home-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 6rem 1rem;
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
}

.home-banner h2 {
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.home-banner p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content Layout */
.main {
    padding-bottom: 6rem;
}

.content-and-sidebar {
    display: flex;
    justify-content: space-between;
    gap: 5%;
}

.main-content {
    flex: 0 0 80%;
}

.sidebar {
    flex: 0 0 15%;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.sidebar-widget h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-color);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.sidebar-news-item {
    margin-bottom: 1rem;
}

.sidebar-news-item a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-news-item a:hover {
    color: var(--primary-color);
}

/* Article Cards */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

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

.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.article-card-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-content {
    padding: 1.25rem;
    flex: 1;
}

.category-tag {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.article-card h3 a {
    color: var(--gray-900);
    text-decoration: none;
}

.article-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Detail */
.article-full {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.article-full h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.article-full img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.6rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

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

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.footer-links-container a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-600);
    font-size: 0.8125rem;
}

/* Ads */
.ad-slot {
    max-width: 100%;
    overflow: hidden;
    margin: 2rem 0;
}

.ad-skeleton {
    min-height: 90px;
    background: var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-label {
    font-size: 0.7rem;
    color: var(--gray-300);
}

/* Floating Ads */
.floating-ads {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.floating-ad {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    padding: 1rem;
}

.close-ad-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    transition: var(--transition);
}

.close-ad-btn:hover {
    background: var(--primary-color);
}

.ad-countdown {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    pointer-events: none;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-100);
        z-index: 1000;
        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--gray-50);
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding: 0;
        background: var(--gray-50);
    }

    .dropdown-content a {
        padding: 1rem 3rem;
    }

    .content-and-sidebar {
        flex-direction: column;
    }
    .main-content, .sidebar {
        flex: 0 0 100%;
    }
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr !important;
    }
    .article-full {
        padding: 1.5rem;
    }
    .nav {
        overflow-x: auto;
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
}