/* ===== VILAS TARE — MAGAZINE STYLE LAYOUT ===== */
/* Crimson (#991B1B) + Charcoal (#1F2937) + Newsprint (#FAF9F6) */
/* Merriweather (serif editorial) + DM Sans (clean UI) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
    --crimson: #991B1B;
    --crimson-dark: #7F1D1D;
    --crimson-50: #FEF2F2;
    --crimson-100: #FEE2E2;
    --charcoal: #1F2937;
    --charcoal-dark: #111827;
    --charcoal-50: #F9FAFB;
    --charcoal-100: #F3F4F6;
    --newsprint: #FAF9F6;
    --newsprint-100: #F5F3EF;
    --newsprint-200: #ECE9E1;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .08);
    --tr: .35s cubic-bezier(.4, 0, .2, 1);
    --radius: 4px
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--newsprint);
    color: var(--gray-600);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    display: block
}

ul,
ol {
    list-style: none
}

h1,
h2,
h3,
h4 {
    font-family: 'Merriweather', serif;
    color: var(--charcoal);
    font-weight: 700
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px
}

/* ===== MASTHEAD NAVBAR ===== */
.mast-top {
    background: var(--charcoal);
    padding: 4px 0;
    text-align: center
}

.mast-top span {
    font-family: 'DM Sans';
    font-size: .48rem;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: .2em;
    text-transform: uppercase
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 3px solid var(--crimson);
    transition: var(--tr)
}

.navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px
}

.logo-mark {
    font-family: 'Merriweather';
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--crimson);
    line-height: 1
}

.logo-sub {
    font-family: 'DM Sans';
    font-size: .42rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-left: 2px
}

.nav-links {
    display: flex;
    gap: 0
}

.nav-links a {
    color: var(--gray-500);
    font-family: 'DM Sans';
    font-size: .68rem;
    font-weight: 600;
    padding: 14px 10px;
    transition: var(--tr);
    position: relative
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--charcoal)
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--crimson)
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--charcoal);
    border-radius: 4px;
    transition: var(--tr)
}

/* ===== HERO — Featured Story ===== */
.hero {
    padding: 70px 0 0;
    background: var(--white)
}

.hero-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 0
}

.hero-img {
    overflow: hidden;
    max-height: 420px
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%
}

.hero-text {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.hero-cat {
    font-family: 'DM Sans';
    font-size: .46rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--crimson);
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.hero-cat::before {
    content: '';
    width: 8px;
    height: 2px;
    background: var(--crimson)
}

.hero h1 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    line-height: 1.2;
    margin-bottom: 10px
}

.hero-excerpt {
    font-family: 'Merriweather', serif;
    font-size: .88rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 14px;
    font-style: italic
}

.hero-byline {
    font-family: 'DM Sans';
    font-size: .58rem;
    color: var(--gray-400)
}

.hero-byline strong {
    color: var(--charcoal);
    font-weight: 700
}

/* ===== SECTION DIVIDER (newspaper rule) ===== */
.rule {
    border: none;
    border-top: 1px solid var(--gray-300);
    margin: 0
}

.rule-thick {
    border-top: 3px double var(--charcoal)
}

/* ===== SECTIONS ===== */
.section {
    padding: 40px 0
}

.sec-news {
    background: var(--newsprint)
}

.sec-white {
    background: var(--white)
}

.sec-tag {
    font-family: 'DM Sans';
    font-size: .48rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--crimson);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px
}

.sec-tag::before {
    content: '';
    width: 12px;
    height: 2px;
    background: var(--crimson)
}

.sec-head {
    font-family: 'Merriweather';
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 4px;
    position: relative;
    padding-bottom: 8px
}

.sec-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--crimson)
}

.sec-desc {
    color: var(--gray-500);
    font-size: .78rem;
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 16px;
    margin-top: 6px
}

/* ===== ARTICLE CARDS (magazine signature) ===== */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0
}

.art-card {
    background: var(--white);
    border: 1px solid var(--newsprint-200);
    transition: var(--tr);
    overflow: hidden
}

.art-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px)
}

.art-card-img {
    height: 190px;
    overflow: hidden;
    position: relative
}

.art-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: .5s
}

.art-card:hover .art-card-img img {
    transform: scale(1.03)
}

.art-card-img .a-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--crimson);
    color: var(--white);
    font-family: 'DM Sans';
    font-size: .42rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 2px 8px;
    border-radius: 2px
}

.art-body {
    padding: 14px 16px
}

.art-body h3 {
    font-family: 'Merriweather';
    font-size: .88rem;
    line-height: 1.35;
    margin-bottom: 6px
}

.art-body p {
    font-size: .72rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 8px
}

.art-byline {
    font-family: 'DM Sans';
    font-size: .52rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px
}

.art-byline strong {
    color: var(--gray-700);
    font-weight: 700
}

.art-byline .dot {
    width: 3px;
    height: 3px;
    background: var(--gray-300);
    border-radius: 50%
}

/* ===== EDITORIAL PULLQUOTE (magazine signature) ===== */
.pullquote {
    background: var(--charcoal);
    padding: 40px 36px;
    margin: 16px 0;
    position: relative;
    overflow: hidden
}

.pullquote::before {
    content: '"';
    font-family: 'Merriweather', serif;
    font-size: 10rem;
    color: rgba(153, 27, 27, .08);
    position: absolute;
    top: -30px;
    left: 20px;
    line-height: 1;
    font-weight: 900
}

.pullquote blockquote {
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: rgba(255, 255, 255, .75);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2
}

.pullquote .pq-author {
    text-align: center;
    margin-top: 12px;
    font-family: 'DM Sans';
    font-size: .7rem;
    font-weight: 700;
    color: var(--crimson)
}

.pullquote .pq-sub {
    text-align: center;
    font-size: .52rem;
    color: rgba(255, 255, 255, .2);
    font-family: 'DM Sans'
}

/* ===== PHOTO STRIP (horizontal scroll) ===== */
.photo-strip {
    display: flex;
    gap: 6px;
    margin: 16px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px
}

.photo-strip::-webkit-scrollbar {
    display: none
}

.ps-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 220px
}

.ps-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: .5s
}

.ps-item:hover img {
    transform: scale(1.03)
}

.ps-item .ps-cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
    padding: 16px 12px 10px;
    color: var(--white);
    font-family: 'DM Sans';
    font-size: .62rem;
    font-weight: 600
}

/* ===== DUO (article layout) ===== */
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 20px 0
}

.duo.flip {
    direction: rtl
}

.duo.flip>* {
    direction: ltr
}

.duo-img {
    overflow: hidden;
    box-shadow: var(--shadow-md)
}

.duo-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 30%
}

/* ===== SIDEBAR LAYOUT (magazine) ===== */
.mag-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin: 16px 0
}

.sidebar {
    border-left: 1px solid var(--gray-300);
    padding-left: 20px
}

.sidebar .sb-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--newsprint-200)
}

.sidebar .sb-item:last-child {
    border-bottom: none
}

.sb-item .sb-cat {
    font-family: 'DM Sans';
    font-size: .42rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--crimson)
}

.sb-item h4 {
    font-family: 'Merriweather';
    font-size: .8rem;
    margin: 2px 0;
    color: var(--charcoal)
}

.sb-item p {
    font-size: .66rem;
    color: var(--gray-500);
    line-height: 1.6
}

/* ===== HIGHLIGHT CARDS ===== */
.hl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0
}

.hl-card {
    background: var(--white);
    padding: 20px;
    border-left: 3px solid var(--crimson);
    transition: var(--tr)
}

.hl-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px)
}

.hl-card .ico {
    font-size: 1rem;
    margin-bottom: 6px
}

.hl-card h3 {
    font-family: 'DM Sans';
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--charcoal)
}

.hl-card p {
    font-size: .72rem;
    color: var(--gray-500);
    line-height: 1.6
}

/* CHIP BAR */
.chip-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px
}

.chip {
    background: var(--crimson-50);
    color: var(--crimson);
    padding: 2px 8px;
    border-radius: 2px;
    font-family: 'DM Sans';
    font-size: .58rem;
    font-weight: 700
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: 'DM Sans';
    font-weight: 700;
    font-size: .74rem;
    cursor: pointer;
    border: none;
    transition: var(--tr)
}

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

.btn-crimson:hover {
    background: var(--crimson-dark);
    transform: translateY(-1px)
}

.btn-outline {
    background: transparent;
    color: var(--crimson);
    border: 1.5px solid var(--crimson)
}

.btn-outline:hover {
    background: var(--crimson);
    color: var(--white)
}

/* PAGE HEADER */
.pg-header {
    padding: 68px 0 30px;
    background: var(--white);
    border-bottom: 3px double var(--charcoal)
}

.pg-header .container {
    position: relative
}

.pg-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--charcoal);
    margin-bottom: 4px
}

.pg-header h1 span {
    color: var(--crimson)
}

.pg-header p {
    color: var(--gray-500);
    font-size: .82rem
}

.breadcrumb {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    font-size: .58rem;
    color: var(--gray-400)
}

.breadcrumb a {
    color: var(--crimson);
    font-weight: 600
}

.breadcrumb em {
    font-style: normal;
    color: var(--gray-300)
}

.pg-header .edition-tag {
    position: absolute;
    top: 0;
    right: 24px;
    font-family: 'DM Sans';
    font-size: .42rem;
    font-weight: 700;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: .15em
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 16px 0
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.fg {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.fg label {
    font-family: 'DM Sans';
    font-size: .5rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .1em
}

.fg input,
.fg textarea {
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--newsprint-200);
    background: var(--white);
    color: var(--charcoal);
    font-family: 'DM Sans';
    font-size: .82rem;
    transition: var(--tr);
    outline: none
}

.fg input:focus,
.fg textarea:focus {
    border-color: var(--crimson);
    box-shadow: 0 0 0 2px rgba(153, 27, 27, .04)
}

.fg textarea {
    min-height: 100px;
    resize: vertical
}

.c-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.c-card {
    background: var(--white);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 2px solid var(--crimson)
}

.c-ico {
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 2px
}

.c-card h4 {
    font-family: 'DM Sans';
    font-size: .74rem;
    color: var(--charcoal);
    font-weight: 700;
    margin-bottom: 1px
}

.c-card p {
    color: var(--gray-500);
    font-size: .66rem;
    line-height: 1.5
}

.c-card p a {
    color: var(--crimson);
    font-weight: 700
}

.c-card p a:hover {
    text-decoration: underline
}

/* ===== FOOTER ===== */
.footer {
    background: var(--charcoal);
    padding: 36px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 20px
}

.footer-about h3 {
    color: var(--white);
    font-family: 'Merriweather';
    font-size: .92rem;
    margin-bottom: 6px
}

.footer-about p {
    color: var(--gray-500);
    font-size: .72rem;
    line-height: 1.7
}

.footer-links h4 {
    color: var(--white);
    font-family: 'DM Sans';
    font-size: .74rem;
    font-weight: 700;
    margin-bottom: 8px
}

.footer-links a {
    display: block;
    color: var(--gray-500);
    font-size: .66rem;
    padding: 3px 0;
    transition: var(--tr)
}

.footer-links a:hover {
    color: var(--crimson)
}

.footer-contact h4 {
    color: var(--white);
    font-family: 'DM Sans';
    font-size: .74rem;
    font-weight: 700;
    margin-bottom: 8px
}

.footer-contact p {
    color: var(--gray-500);
    font-size: .66rem;
    line-height: 1.7
}

.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, .04);
    padding: 10px 0
}

.footer-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px
}

.footer-bar-left {
    color: var(--gray-600);
    font-size: .6rem
}

.footer-bar-right {
    font-size: .6rem;
    color: var(--gray-600)
}

.footer-bar-right a {
    color: var(--crimson);
    font-weight: 700
}

.footer-bar-right .footer-dev-contact {
    display: block;
    color: var(--gray-600);
    font-size: .58rem;
    margin-top: 2px
}

.footer-bar-right .footer-dev-contact a {
    color: var(--gray-500);
    font-weight: 600
}

.footer-bar-right .footer-dev-contact a:hover {
    color: var(--crimson)
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 6px 0 0;
    margin-top: 4px
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    color: var(--gray-500);
    transition: var(--tr)
}

.footer-social a:hover {
    background: var(--crimson);
    color: var(--white);
    transform: translateY(-2px)
}

.footer-social a svg {
    width: 12px;
    height: 12px;
    fill: currentColor
}

/* ANIMATIONS */
.rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease
}

.rv.on {
    opacity: 1;
    transform: translateY(0)
}

.rvl {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity .5s ease, transform .5s ease
}

.rvl.on {
    opacity: 1;
    transform: translateX(0)
}

.rvr {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .5s ease, transform .5s ease
}

.rvr.on {
    opacity: 1;
    transform: translateX(0)
}

/* RESPONSIVE */
@media(max-width:1024px) {

    .hero-featured,
    .duo,
    .duo.flip,
    .mag-layout,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .duo.flip {
        direction: ltr
    }

    .sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--gray-300);
        padding-top: 16px
    }

    .art-grid,
    .hl-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 240px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 60px 24px;
        gap: 0;
        transition: var(--tr);
        box-shadow: -4px 0 20px rgba(0, 0, 0, .1);
        border-left: 3px solid var(--crimson)
    }

    .nav-links.active {
        right: 0
    }

    .nav-toggle {
        display: flex
    }

    .nav-links a {
        padding: 10px 0
    }

    .nav-links a.active::after {
        display: none
    }

    .art-grid,
    .hl-grid {
        grid-template-columns: 1fr
    }

    .footer-bar .container {
        flex-direction: column;
        text-align: center
    }
}