/* =========================
   VARIABLES
========================= */
:root {
    --bg-dark: #0f1115;
    --bg-light: #161a22;

    --accent: #a60803;
    --accent-soft: #e0e0e0;
    --accent-glow: rgba(224, 224, 224, 0.25);

    --text-main: #f2f2f2;
    --text-muted: #b5b5b5;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
}

/* =========================
   HEADER / HERO
========================= */
header {
    position: relative;
    height: 520px;
    background: url("../img/main.png") center / cover no-repeat;
    border-bottom: 2px solid var(--accent);
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15,17,21,0.75),
        rgba(15,17,21,0.95)
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

/* =========================
   SECTION HEADINGS (GLOBAL)
========================= */
.section-intro,
.more-posts {
    padding-left: 4px;
}

.section-intro h2,
.more-posts h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    margin-bottom: 14px;
}

.section-intro h2 {
    font-size: 2.4rem;
}

.more-posts h3 {
    font-size: 1.8rem;
}

.accent {
    color: var(--accent);
}

/* subtle divider */
.section-intro h2::after,
.more-posts h3::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    background: var(--accent);
    margin-top: 14px;
    border-radius: 2px;
}

/* =========================
   SECTION INTRO
========================= */
.section-intro {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-intro p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    padding-left: 18px;
}

.section-intro p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 2px;
}

/* =========================
   POSTS GRID
========================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
}

/* =========================
   POST CARD
========================= */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-soft);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.55),
        0 0 0 1px var(--accent-soft),
        0 0 18px var(--accent-glow);
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: brightness(0.92) contrast(0.95) saturate(0.9) blur(0.4px);
    transform: scale(1.02);
    transition: filter .4s ease, transform .4s ease;
}

.post-card:hover img {
    filter: brightness(1) contrast(1) saturate(1) blur(0);
    transform: scale(1.04);
}

.post-card-content {
    padding: 20px;
}

.post-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================
   FEATURED POST
========================= */
.post-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 340px;
    margin-bottom: 20px;
}

.post-featured img {
    height: 100%;
}

.post-featured .post-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.post-featured h3 {
    font-size: 1.8rem;
    line-height: 1.3;
}

/* =========================
   MORE POSTS
========================= */
.more-posts {
    max-width: 900px;
    margin: 0 auto 60px;
}

.more-posts-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 520px;
}

.more-posts-list {
    list-style: none;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 24px 28px;
    border: 1px solid rgba(255,255,255,0.06);
}

.more-posts-list li + li {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.more-posts-list a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    display: block;
    transition: color .25s ease, transform .25s ease;
}

.more-posts-list a:hover {
    color: var(--accent-soft);
    transform: translateX(4px);
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #0b0d11;
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-featured {
        display: block;
        min-height: unset;
    }

    .post-featured img {
        height: 260px;
    }

    .post-featured .post-card-content {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    header {
        height: 420px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1rem;
    }

    .section-intro h2 {
        font-size: 1.9rem;
    }

    .more-posts h3 {
        font-size: 1.5rem;
    }
}
/* =========================
   MONTHLY ARTICLES
========================= */
.monthly {
    margin-top: 100px;
}

.monthly-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.monthly-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-light);
    text-decoration: none;
    color: inherit;
    min-height: 360px;

    border: 1px solid rgba(255,255,255,0.06);
    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.monthly-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        0 0 0 1px var(--accent-soft);
}

.monthly-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: brightness(0.75) saturate(0.9);
    transition: filter .4s ease, transform .4s ease;
    transform: scale(1.05);
}

.monthly-card:hover img {
    filter: brightness(0.9) saturate(1);
    transform: scale(1.08);
}

.monthly-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: linear-gradient(
        to top,
        rgba(15,17,21,0.85),
        rgba(15,17,21,0.25) 60%,
        rgba(15,17,21,0)
    );
}

.monthly-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.3;
}

.monthly-tag {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}


@media (max-width: 900px) {
    .monthly-grid {
        grid-template-columns: 1fr;
    }

    .monthly-card {
        min-height: 300px;
    }
}
/* === FORCE SMALLER FEATURED === */
.post-featured {
    min-height: 440px !important;
}

.post-featured img {
    height: 440px !important;
}
/* =========================
   INVISIBLE LINKS
========================= */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

a:hover {
    color: inherit;
}
