:root {
    --primary: #c21d2e;
    /* Classic Magazine Red */
    --primary-dark: #a11826;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f4f4f4;
    --border-light: #eeeeee;
    --header-height: 100px;
    --top-bar-height: 40px;
    --nav-height: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Top Bar --- */
.top-bar {
    height: var(--top-bar-height);
    background: #111111;
    color: #ffffff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.top-bar .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.date-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-top {
    display: flex;
    gap: 15px;
}

.social-top a {
    color: #ccc;
    transition: color 0.2s;
}

.social-top a:hover {
    color: var(--primary);
}

/* --- Main Header --- */
.main-header {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-light);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    max-height: 60px;
}

.site-name {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #000;
    margin-top: -5px;
}

.header-ad {
    max-width: 728px;
    height: 90px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.7rem;
    overflow: hidden;
}

/* --- Navigation --- */
.nav-bar {
    height: var(--nav-height);
    background: #fff;
    border-bottom: 3px solid #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-menu li {
    height: 100%;
}

.nav-menu a {
    text-decoration: none;
    color: #111;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #111;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--primary);
}

/* --- Footer --- */
footer {
    background: #111;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-about p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-title {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-overlay.show {
    opacity: 1;
}

.close-search {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-search:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.search-form-container {
    width: 90%;
    max-width: 800px;
}

.search-input-group {
    display: flex;
    border-bottom: 4px solid white;
    padding-bottom: 10px;
}

.search-input-group input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    outline: none;
    padding: 10px;
}

.search-input-group button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.search-input-group button:hover {
    color: var(--primary);
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .header-ad {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .ticker-box {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Components --- */

/* Pagination */
.pagination-box {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    justify-content: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f4f4f4;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    transition: all 0.2s;
    border-radius: 4px;
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: white;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-btn {
    background: #f4f4f4;
    color: #444;
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    border-radius: 100px;
    transition: all 0.2s;
}

.tag-btn:hover {
    background: #111;
    color: white;
}

/* Layout Content Wrappers */
.mag-card-content,
.side-list-content {
    flex: 1;
}

.side-list-content h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 5px;
}

.side-list-content h4 a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
}

.side-list-content h4 a:hover {
    color: var(--primary);
}

/* Popup Buttons */
.popup-btn-main {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    margin-top: 10px;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(194, 29, 46, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.popup-btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(194, 29, 46, 0.5);
    color: white;
}

.popup-btn-dismiss {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
    background: none;
    border: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid transparent;
}

.popup-btn-dismiss:hover {
    color: #111;
    border-bottom-color: #111;
}

/* --- Utilities --- */
.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.font-weight-700 {
    font-weight: 700 !important;
}

.w-100 {
    width: 100% !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.gap-15 {
    gap: 15px !important;
}

.mt-50 {
    margin-top: 50px !important;
}

.mb-80 {
    margin-bottom: 80px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.p-y-40 {
    padding: 40px 0 !important;
}

/* --- Breaking News Ticker --- */
.breaking-news-container {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    padding: 12px 0;
    font-size: 0.85rem;
    overflow: hidden;
}

.bn-label {
    background: #000;
    color: #fff;
    padding: 4px 15px;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.bn-label::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.bn-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-left: 20px;
}

.bn-ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    color: #333;
    font-weight: 600;
}

.bn-ticker-content span {
    display: inline-block;
    margin-right: 50px;
    cursor: pointer;
    transition: color 0.2s;
}

.bn-ticker-content span::before {
    content: '•';
    color: var(--primary);
    margin-right: 15px;
    font-weight: 800;
}

.bn-ticker-content span:hover {
    color: var(--primary);
    text-decoration: underline;
}

.bn-ticker:hover .bn-ticker-content {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Ad Placement Audit Styles */
.ad-placeholder-global {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    width: 100%;
}

.ad-box {
    margin-bottom: 2rem;
    width: 100%;
}

.footer-ad-slot {
    margin-bottom: 2.5rem;
    padding: 0 15px;
}

.home-feed-ad {
    margin: 40px 0;
}

.banner-mid-container {
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
}