:root {
    --dark:  #111111;
    --light: #f5f5f3;
    --white: #ffffff;
    --red:   #e00000;
    --rose:  #f7e4e4;
    --gray:  #888888;
    --border: rgba(17,17,17,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─────────────── HEADER ─────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { flex-shrink: 0; }
.logo img { height: 26px; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    opacity: 0.55;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.nav-link:hover { opacity: 0.85; }
.nav-link.active { opacity: 1; }
.btn-quiz {
    display: inline-block;
    flex-shrink: 0;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 24px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 0.15s, opacity 0.15s;
}
.btn-quiz:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ─────────────── FOOTER (site-wide standard) ─────────────── */
.site-footer { background: var(--dark); color: var(--white); margin-top: 80px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 56px 24px 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 36px; }
.footer-logo img { height: 24px; margin-bottom: 14px; }
.footer-top > div:first-child p { font-size: 0.88rem; opacity: 0.6; max-width: 260px; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.footer-social a:hover { background: rgba(255,255,255,0.22); }
.footer-social svg { width: 17px; height: 17px; fill: var(--white); }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; opacity: 0.65; margin-bottom: 12px; }
.footer-col a:hover { opacity: 1; }
.footer-newsletter p { font-size: 0.85rem; opacity: 0.65; margin-bottom: 14px; max-width: 240px; line-height: 1.5; }
.footer-newsletter form { display: flex; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; overflow: hidden; }
.footer-newsletter form.hidden { display: none; }
.footer-newsletter input { flex: 1; background: none; border: none; padding: 12px 16px; color: var(--white); font-size: 0.85rem; min-width: 0; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter button { background: none; border: none; border-left: 1px solid rgba(255,255,255,0.3); color: var(--white); font-weight: 600; font-size: 0.85rem; padding: 12px 18px; cursor: pointer; }
.footer-newsletter-success { display: none; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: #6fd18f; }
.footer-newsletter-success.show { display: flex; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; opacity: 0.55; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ─────────────── PAGE HERO ─────────────── */
.page-hero { padding: 56px 0 28px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; animation: fadeInUp 0.8s ease both; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─────────────── CATEGORY PILLS ─────────────── */
.pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 36px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    animation: fadeInUp 0.8s ease both 0.15s;
}
.pill-row::-webkit-scrollbar { display: none; }
.pill {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pill:hover { border-color: var(--dark); }
.pill.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ─────────────── FEATURED ARTICLE ─────────────── */
.featured {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 88px;
}
.featured-image { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; background: var(--rose); }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark);
    background: #ececea;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.featured-content h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.featured-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 460px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.read-more .label {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: border-color 0.15s;
}
.read-more .arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
}
.read-more .arrow svg { width: 16px; height: 16px; }
.read-more:hover .label { border-color: var(--dark); }
.read-more:hover .arrow { background: var(--red); transform: translateX(3px); }

/* ─────────────── INSIGHTS / GRID SECTION ─────────────── */
.section-heading { margin-bottom: 40px; }
.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.section-heading .eyebrow-sub { font-size: 0.92rem; color: var(--gray); font-weight: 500; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
    margin-bottom: 48px;
}
.card { display: flex; flex-direction: column; }
.card-image { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 16px; background: var(--rose); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card .tag { margin-bottom: 12px; }
.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}
.card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--gray); font-size: 1rem; }

/* ─────────────── PAGINATION ─────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 80px;
}
.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: none;
    background: none;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.pagination button:hover { background: rgba(17,17,17,0.06); color: var(--dark); }
.pagination button.active { color: var(--dark); background: rgba(17,17,17,0.08); }
.pagination button:disabled { opacity: 0.3; cursor: default; }
.pagination button:disabled:hover { background: none; }

/* ─────────────── ARTICLE PAGE ─────────────── */
.article-hero { padding: 44px 0 0; }
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 24px;
}
.article-back:hover { color: var(--dark); }
.article-hero .tag { margin-bottom: 18px; }
.article-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 820px;
    margin-bottom: 22px;
}
.article-excerpt {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin-bottom: 36px;
}
.article-cover {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16/8;
    background: var(--rose);
    margin-bottom: 48px;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: 720px; margin: 0 auto; padding-bottom: 8px; }
.article-body p { font-size: 1.05rem; line-height: 1.8; color: #333; margin-bottom: 24px; }
.article-body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 40px 0 18px;
}
.article-body ul { margin: 0 0 24px; padding-left: 4px; }
.article-body li {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
    padding-left: 26px;
    position: relative;
    margin-bottom: 12px;
}
.article-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}

/* Quiz CTA box */
.quiz-cta {
    max-width: 720px;
    margin: 56px auto 0;
    background: var(--rose);
    border-radius: 20px;
    padding: 44px 40px;
    text-align: center;
}
.quiz-cta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.quiz-cta p {
    font-size: 1rem;
    color: #5a4444;
    max-width: 480px;
    margin: 0 auto 26px;
    line-height: 1.6;
}
.quiz-cta .btn-quiz { padding: 15px 34px; font-size: 0.98rem; }

.related { max-width: 720px; margin: 72px auto 0; }
.related h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 900px) {
    .featured { grid-template-columns: 1fr; gap: 28px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .header-inner { padding: 14px 16px; gap: 10px; }
    .logo img { height: 20px; }
    .btn-quiz { padding: 10px 18px; font-size: 0.85rem; }
    .page-hero { padding: 36px 0 20px; }
    .article-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .quiz-cta { padding: 34px 24px; }
}
@media (max-width: 700px) {
    .main-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 18px;
    }
}
