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

:root {
    --primary-color: #000000;
    --secondary-color: #DC2626;
    --accent-color: #1E40AF;
    --bg-dark: #1F2937;
    --bg-darker: #111827;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F3F4F6;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Cookie Consent Widget */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 10000;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.cookie-consent.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept, .btn-decline {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

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

.btn-accept:hover {
    background: var(--secondary-color);
}

.btn-decline {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-decline:hover {
    background: var(--border-color);
}

/* Header */
.header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-top {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: flex-end;
}

.header-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.header-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.header-links a:hover {
    color: var(--secondary-color);
}

.navbar {
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    line-height: 1;
}

.logo-text {
    color: var(--primary-color);
}

.logo-amp {
    color: var(--secondary-color);
    font-weight: 400;
}

.logo-text-red {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.menu-item.has-dropdown::after {
    content: '▼';
    font-size: 8px;
    margin-left: 5px;
    color: var(--text-light);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    border-top: 3px solid var(--secondary-color);
}

.menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    text-transform: none;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    display: block;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.mega-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 800px;
    padding: 20px;
    gap: 30px;
}

.mega-menu-column h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column a {
    font-size: 13px;
    padding: 5px 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: color 0.3s;
}

.search-toggle:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Search Bar */
.search-bar {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

.search-bar.active {
    display: block;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.search-submit {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #B91C1C;
}

.search-results {
    margin-top: 20px;
    display: none;
}

/* Main Content */
.main-content {
    padding-top: 0;
}

/* Featured Article */
.featured-article {
    padding: 40px 0;
    background: var(--bg-white);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.featured-image:hover {
    transform: scale(1.05);
}

.featured-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 20px 0;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.article-author {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #B91C1C;
    text-decoration: underline;
}

/* Articles Grid */
.articles-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--bg-white);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.article-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Current Edition */
.current-edition {
    padding: 60px 0;
    background: var(--bg-white);
}

.edition-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.edition-date {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

.edition-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edition-article {
    background: var(--bg-white);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.edition-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.edition-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.edition-article:hover .edition-image {
    transform: scale(1.1);
}

.edition-content {
    padding: 20px;
}

.edition-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.edition-author {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

/* Featured Columnists */
.featured-columnists {
    padding: 60px 0;
    background: var(--bg-light);
}

.columnists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.columnist-card {
    background: var(--bg-white);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.columnist-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
}

.columnist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.columnist-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.columnist-role {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.columnist-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.columnist-link:hover {
    text-decoration: underline;
}

/* Recommended Section */
.recommended-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.recommended-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-light);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.recommended-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.recommended-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recommended-article:hover .recommended-image {
    transform: scale(1.1);
}

.recommended-content {
    padding: 10px 0;
}

.recommended-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.recommended-author {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
}

.recommended-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Sections Grid */
.sections-grid {
    padding: 60px 0;
    background: var(--bg-light);
}

.sections-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.section-block {
    background: var(--bg-white);
    padding: 30px;
    box-shadow: var(--shadow);
}

.section-block-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.section-links {
    list-style: none;
}

.section-links li {
    margin-bottom: 12px;
}

.section-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s;
    display: block;
}

.section-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    color: white;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 15px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 14px;
    transition: opacity 0.3s, color 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 13px;
    transition: opacity 0.3s, color 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mega-menu {
        grid-template-columns: repeat(2, 1fr);
        min-width: 600px;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .recommended-article {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mega-menu {
        grid-template-columns: 1fr;
        min-width: 100%;
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 10px 0 10px 20px;
    }
    
    .featured-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .articles-grid,
    .edition-articles {
        grid-template-columns: 1fr;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .sections-wrapper {
        grid-template-columns: 1fr;
    }
    
    .header-links {
        font-size: 10px;
        gap: 10px;
    }
    
    .logo {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .featured-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
