/* ===== GLOBAL TYPOGRAPHY & RESET ===== */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%; /* 16px base */
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "Newsreader", serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #111827;
    padding-top: 96px;        /* for fixed header */
}

/* ===== NAV + HEADER ===== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 96px;
    position: fixed;
    top: 0;                   /* simpler than -8px */
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.header-top {
    width: 100%;
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1px;
    flex: 1;
}

.main-nav {
    width: 100%;
    height: 26px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    position: relative;
}

.main-nav .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 20px 0 0;
    gap: 4px;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.main-nav .menu > li {
    position: relative;
    margin: 0 4px;
}

.main-nav .menu > li > a {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Alfa Slab One', serif;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 10px;
    display: block;
    transition: all 0.3s ease;
}

.main-nav .menu > li > a:hover {
    color: #8B0000;
    transform: translateY(-1px);
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.logo {
    display: block;
    line-height: 1;
}

.logo svg {
    width: 260px;
    height: 60px;
}

.tagline {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.2px;
    transform: translateY(-13px);
    white-space: nowrap;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* DESKTOP DROPDOWN */
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 6px;
    border-top: 3px solid #8B0000;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.main-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    padding: 10px 20px;
    display: block;
}

.dropdown-menu li a:hover {
    background: #fcf0eb;
    color: #8B0000;
}

/* ===== HEADER MOBILE ===== */

@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .site-header {
        height: 72px;
        padding: 0 8px;
    }

    .header-top {
        padding: 0;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    .brand-wrapper {
        max-width: 70%;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        height: auto;
        border-top: 1px solid #f0f0f0;
        background: #fff;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        display: none;
        width: 100%;
    }
    .main-nav.active {
        display: block;
    }

    .main-nav .menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 16px 12px 16px;
        gap: 4px;
        height: auto;
        width: 100%;
    }

    .main-nav .menu > li {
        margin: 0;
    }

    .main-nav .menu > li > a {
        padding: 6px 4px;
        font-size: 13px;
    }

    .main-nav .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        min-width: 100%;
        border-radius: 0;
        border-top: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 12px;
        display: none;
    }

    .main-nav .dropdown.active .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown-menu li a {
        padding: 4px 12px;
    }
}

/* ===== FOOTER ===== */

.site-footer {
    width: 100%;
    background-color: #17165F;
    color: #ffffff;
    margin-top: 40px;
    font-size: 1.1rem;
}

.footer-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 40px;
    min-height: 320px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-links,
.footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-social li {
    margin-bottom: 4px;
}

.footer-links a,
.footer-social a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-social a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    padding: 12px 16px;
    font-size: 0.75rem;
    background-color: #17165F;
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 24px 16px;
        min-height: auto;
        flex-direction: column;
        gap: 16px;
    }
    .footer-column {
        width: 100%;
    }
}

/* ===== PAGE WRAPPER ===== */

.model-page-wrapper {
    max-width: 1200px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
}

/* ===== ARTICLE COMPONENTS (Brezza, Duster etc.) ===== */

.spot-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.spot-title {
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    color: #111827;
}

.spot-meta {
    font-size: 0.8rem;
    color: #4b5563;
}

.spot-author span {
    font-weight: 600;
}

.spot-dates {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spot-date {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Unified article typography */
body.article-page .article-intro-heading {
    font-size: 1.5rem;
    text-align: center;
}

body.article-page .article-highlight {
    font-size: 1.25rem;
    text-align: center;
}

body.article-page .article-body {
    font-size: 1rem;
}

/* Article images */

.article-image {
    margin: 12px 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 6px;
    display: inline-block;
}

/* Ad placeholder */

.adspace-horizontal {
    width: 100%;
    margin: 24px 0;
    height: 1.5in;
    background: #fee2e2;
    border: 2px dashed #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f1d1d;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Variants table */

.article-variants h2 {
    font-size: 1.25rem;
    margin: 12px 0;
}

.variants-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 18px 0;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.variants-table thead {
    background: #0f172a;
    color: #ffffff;
}

.variants-table th,
.variants-table td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.variants-table th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variants-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.variants-table tbody tr:hover {
    background: #eff6ff;
}

/* Article responsive */

@media (max-width: 900px) {
    body.article-page .model-page-wrapper {
        padding: 0 12px;
    }

    body.article-page .spot-container {
        padding: 12px 14px;
    }

    body.article-page .spot-title {
        font-size: 1.25rem !important;
    }

    body.article-page .article-intro-heading {
        font-size: 1.4rem;
        margin: 12px 0 6px 0;
    }

    body.article-page .article-highlight {
        font-size: 1.15rem;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    body.article-page .article-body {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 14px;
    }

    body.article-page .variants-table {
        font-size: 0.85rem;
    }

    body.article-page .variants-table th,
    body.article-page .variants-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    body.article-page .article-intro-heading {
        font-size: 1.25rem !important;
    }

    body.article-page .article-highlight {
        font-size: 1.05rem !important;
    }

    body.article-page .article-body {
        font-size: 0.9rem !important;
    }

    body.article-page .model-page-wrapper {
        max-width: 100%;
        padding: 0 12px;
    }

    body.article-page .article-key-features,
    body.article-page .article-variants {
        max-width: 100%;
    }

    body.article-page {
        overflow-x: hidden;
    }

    body.article-page .adspace-horizontal {
        height: 120px;
        font-size: 0.8rem;
        padding: 0 8px;
    }

    body.article-page .variants-table {
        display: block;
        width: 100%;
        min-width: 520px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================================= */
/*                LATEST NEWS LISTING PAGE                   */
/* ========================================================= */

body.latest-news-page .news-header-bar {
    max-width: 1100px;
    margin: 0 auto 18px auto;
    padding: 10px 4px 0 4px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    border-bottom: 1px solid #E5E7EB;
}

body.latest-news-page .news-header-main {
    max-width: 70%;
}

body.latest-news-page .news-page-title {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #111827;
}

body.latest-news-page .news-page-subtitle {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #6B7280;
}

body.latest-news-page .news-header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.75rem;
    color: #6B7280;
}

body.latest-news-page .news-header-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #FEF3C7;
    color: #92400E;
    font-weight: 600;
}

body.latest-news-page .news-header-updated {
    font-style: italic;
}

/* Search box */

body.latest-news-page .news-search-wrapper {
    max-width: 600px;
    margin: 10px auto 18px auto;
    display: flex;
    justify-content: center;
}

body.latest-news-page .news-search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    gap: 8px;
}

body.latest-news-page .news-search-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #D1D5DB;
    font-size: 0.9rem;
    outline: none;
}

body.latest-news-page .news-search-input:focus {
    border-color: #8B0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.12);
}

body.latest-news-page .news-search-button {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #8B0000;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* List container */

body.latest-news-page .news-list {
    max-width: 1100px;
    margin: 14px auto 24px auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Cards */

body.latest-news-page .news-item {
    display: flex;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    min-height: 130px;
}

body.latest-news-page .news-thumb {
    width: 270px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

body.latest-news-page .news-thumb img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

body.latest-news-page .news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.latest-news-page .news-kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9B1C1C;
    text-decoration: none;
    font-weight: 700;
}

body.latest-news-page .news-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

body.latest-news-page .news-title a {
    color: #111827;
    text-decoration: none;
}

body.latest-news-page .news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #6B7280;
}

body.latest-news-page .news-author {
    font-weight: 600;
}

body.latest-news-page .news-dot {
    color: #D1D5DB;
}

body.latest-news-page .news-readtime {
    font-style: italic;
}

body.latest-news-page .news-excerpt {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: #374151;
}

/* Pagination */

body.latest-news-page .news-pagination-row {
    max-width: 1100px;
    margin: 0 auto 24px auto;
    display: flex;
    justify-content: center;
}

body.latest-news-page .news-pagination-button {
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    padding: 6px 14px;
    background: #F9FAFB;
    font-size: 0.75rem;
    color: #6B7280;
}

/* Latest News responsive */

@media (max-width: 900px) {
    body.latest-news-page .news-header-main {
        max-width: 100%;
    }
    body.latest-news-page .news-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    body.latest-news-page .news-header-meta {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    body.latest-news-page .news-item {
        gap: 12px;
        padding: 10px 10px;
        min-height: 120px;
    }
    body.latest-news-page .news-title {
        font-size: 1rem;
    }
    body.latest-news-page .news-excerpt {
        font-size: 0.85rem;
    }
}

/* Mobile: image between meta and excerpt */
@media (max-width: 600px) {
    body.latest-news-page .news-item {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "kicker"
            "title"
            "meta"
            "thumb"
            "excerpt";
        gap: 8px;
    }

    body.latest-news-page .news-text {
        width: 100%;
    }

    body.latest-news-page .news-kicker {
        grid-area: kicker;
    }

    body.latest-news-page .news-title {
        grid-area: title;
    }

    body.latest-news-page .news-meta {
        grid-area: meta;
    }

    body.latest-news-page .news-thumb {
        grid-area: thumb;
        width: 100%;
        max-width: 320px;
        justify-content: flex-start;
    }

    body.latest-news-page .news-thumb img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        object-fit: cover;
        aspect-ratio: 4 / 3;
    }

    body.latest-news-page .news-excerpt {
        grid-area: excerpt;
        margin-top: 2px;
    }
}
