/* ============================================
   TIM WHITE NEWS — Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141418;
    --bg-card-hover: #1c1c22;
    --bg-section-alt: #0f0f13;
    --red: #c8102e;
    --red-hover: #e01535;
    --red-glow: rgba(200, 16, 46, 0.15);
    --white: #ffffff;
    --gray-100: #f0f0f2;
    --gray-200: #d0d0d5;
    --gray-300: #a0a0aa;
    --gray-400: #707078;
    --gray-500: #50505a;
    --gray-600: #35353d;
    --border: rgba(255, 255, 255, 0.08);
    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --nav-height: 64px;
    --container-max: 1200px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--gray-200);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--gray-100);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--red);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}


/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 12, 0.95);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
}

.nav-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

.nav-brand-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--red);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-300);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-200);
    transition: var(--transition);
}


/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 12, 1) 0%,
        rgba(10, 10, 12, 0.85) 25%,
        rgba(10, 10, 12, 0.4) 50%,
        rgba(10, 10, 12, 0.2) 75%,
        rgba(10, 10, 12, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px 80px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-bottom: 12px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    color: var(--white);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: var(--gray-200);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 36px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-top: 4px;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--red);
    padding: 14px 36px;
    border: none;
    transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
    background: var(--red-hover);
    color: var(--white);
    transform: translateY(-1px);
}


/* --- Docuseries Banner --- */
.docuseries {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.docuseries-bg {
    position: absolute;
    inset: 0;
}

.docuseries-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.docuseries-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 12, 0.95) 0%,
        rgba(10, 10, 12, 0.8) 40%,
        rgba(10, 10, 12, 0.3) 70%,
        rgba(10, 10, 12, 0.15) 100%
    );
}

.docuseries-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 24px;
    width: 100%;
    max-width: 640px;
    margin-left: max(24px, calc((100% - var(--container-max)) / 2 + 24px));
}

.docuseries-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--white);
    background: var(--red);
    padding: 6px 14px;
    margin-bottom: 20px;
}

.docuseries-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.docuseries-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--gray-200);
    margin-bottom: 20px;
    max-width: 540px;
}

.docuseries-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.docuseries-meta span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

.docuseries-cta {
    font-size: 1rem;
    padding: 16px 40px;
}

@media (max-width: 768px) {
    .docuseries {
        min-height: 400px;
    }

    .docuseries-overlay {
        background: linear-gradient(
            to top,
            rgba(10, 10, 12, 0.95) 0%,
            rgba(10, 10, 12, 0.7) 50%,
            rgba(10, 10, 12, 0.4) 100%
        );
    }

    .docuseries-content {
        margin-left: 0;
        padding: 60px 24px;
        max-width: 100%;
    }

    .docuseries-meta {
        flex-direction: column;
        gap: 8px;
    }
}


/* --- Section Base --- */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 32px;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}

.btn-primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--gray-200);
    border: 2px solid var(--gray-500);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--white);
}


/* --- Stories Section --- */
.stories {
    background: var(--bg-dark);
    position: relative;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 16, 46, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.story-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-card-hover);
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.story-card:hover .story-card-image img {
    transform: scale(1.05);
}

.story-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-card-date {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 8px;
}

.story-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.story-card:hover .story-card-title {
    color: var(--red);
}

.story-card-excerpt {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stories-footer {
    text-align: center;
    margin-top: 48px;
}

.stories-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--gray-400);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-600);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* --- About --- */
.about {
    background: var(--bg-section-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
}

.about-content .section-label {
    margin-bottom: 8px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-200);
}

.about-awards {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.award {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.award-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.award strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.award span {
    font-size: 0.85rem;
    color: var(--gray-400);
}


/* --- Newsmakers --- */
.newsmakers {
    background: var(--bg-dark);
}

.newsmakers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsmakers-content .section-label {
    margin-bottom: 8px;
}

.newsmakers-content .section-title {
    margin-bottom: 24px;
}

.newsmakers-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.newsmakers-content .btn {
    margin-top: 8px;
}

.newsmakers-image {
    overflow: hidden;
}

.newsmakers-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}


/* --- Book --- */
.book {
    background: var(--bg-section-alt);
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.book-image {
    overflow: hidden;
}

.book-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.book-content .section-label {
    margin-bottom: 8px;
}

.book-content .section-title {
    margin-bottom: 24px;
}

.book-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.book-content .btn {
    margin-top: 8px;
}


/* --- Gallery --- */
.gallery {
    background: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item-wide img {
    aspect-ratio: 16/7;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-100);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}


/* --- Footer --- */
.footer {
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.03em;
}

.footer-title-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--red);
    margin-left: 4px;
    letter-spacing: 0.03em;
}

.footer-desc {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer-links-col h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-links-col a {
    color: var(--gray-400);
}

.footer-links-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}


/* --- Responsive --- */
@media (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        aspect-ratio: 16/9;
    }

    .newsmakers-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsmakers-image {
        order: -1;
    }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 12, 0.98);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 500px;
        max-height: 700px;
    }

    .hero-content {
        padding-bottom: 50px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .section {
        padding: 64px 0;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    .gallery-item-wide img {
        aspect-ratio: 16/9;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 3rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-stat {
        min-width: 80px;
    }

    .story-card-title {
        font-size: 1.05rem;
    }
}
