:root {
    --primary: #dc2626;
    /* News Red */
    --dark: #111827;
    --light: #f3f4f6;
    --text: #374151;
    --white: #ffffff;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--light);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    margin-top: 0;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

/* Grid System for Magazine */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

@media (max-width: 768px) {

    .grid-cols-4,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .span-2,
    .span-row-2 {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Article Card */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
}

.card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    background: #eee;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

/* Featured Card Override */
.card.featured .card-img {
    height: 400px;
}

.card.featured .card-title {
    font-size: 2rem;
}

/* Redirect Page */
.ad-zone {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin: 10px;
    color: #9ca3af;
    font-size: 0.8rem;
}

.redirect-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
}

.center-panel {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-go {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    margin-top: 20px;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s;
}

.btn-go.active {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.4);
}

@media (max-width: 768px) {
    .redirect-wrapper {
        grid-template-columns: 1fr;
    }

    .side-ad {
        display: none;
    }
}