/* ============================================================
   Notable Men — Global Theme
   Black & Gold color scheme
   Loaded LAST in the cascade to override shared style.css
   ============================================================ */

/* --- CSS Variable Overrides --- */
:root {
    --color-primary: #D4AF37;
    --color-primary-dark: #B8941F;
    --color-primary-light: #E8D5A3;
    --color-primary-filter: brightness(0) saturate(100%) invert(73%) sepia(50%) saturate(500%) hue-rotate(10deg) brightness(95%) contrast(90%);
    --color-pink-light: #E8D5A3;
    --color-pink-transparent: rgba(212, 175, 55, 0.1);
    --color-dark: #1a1a1a;
    --color-black: #000;
    --color-white: #fff;
    --color-gold: #D4AF37;
}

/* ============================================================
   Site-wide baseline (was in homepage/common.css before 2026-05-12
   — moved here so Insights / Article / Cover Story pages get the
   same reset as the homepage and the masthead doesn't visually
   differ between them).
   ============================================================ */

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

/* Clip horizontal overflow at the document root so absolute/decorative
   elements (hero arcs, footer arc, watermarks) can never produce a
   horizontal scrollbar. */
html,
body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--color-black);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: inherit;
    font-family: "Inter", sans-serif;
}

ul,
ol,
li {
    list-style: none;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--color-dark);
    font-size: inherit;
}

img {
    vertical-align: top;
}

button,
input {
    cursor: pointer;
    font-weight: inherit;
    color: inherit;
    font-family: inherit;
    line-height: normal;
    transition: all .3s ease 0s;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button:disabled {
    opacity: 0.5;
    cursor: default;
}

[class*="container"]:not(.fancybox-container) {
    max-width: 1392px;
    margin: 0 auto;
    padding: 0px 12px;
}

/* --- Header --- */
.header .logo-circle { display: none; }
.header .btn-signup {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #1a1a1a;
}
.header .btn-signup:hover {
    background-color: #B8941F;
    border-color: #B8941F;
}
.header .btn-login:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}
.header .dropdown-item:hover {
    background-color: #D4AF37;
    color: #1a1a1a;
}
.header .logo-brand,
.header .logo-w,
.header .logo-women {
    color: #D4AF37;
}

/* --- Hero Section --- */
.hero-section .hero-tagline {
    border-color: #D4AF37;
    color: #D4AF37;
}
.hero-section .btn-learn-more {
    background-color: #D4AF37;
    color: #1a1a1a;
}
.hero-section .btn-learn-more:hover {
    background-color: #B8941F;
    color: #fff;
}
.hero-section .pink-frame {
    display: none;
}

/* --- Banner Section --- */
.banner-section {
    background: #D4AF37;
}
.banner-section .banner-left {
    background-color: #D4AF37;
}
.banner-section .banner-middle {
    background-color: #D4AF37;
}

/* --- Experts Section --- */
.experts-section .view-all-btn:hover {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #1a1a1a;
}

/* --- Articles Section --- */
.articles-section .all-articles-btn {
    border-color: #D4AF37;
    color: #D4AF37;
}
.articles-section .all-articles-btn:hover {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #1a1a1a;
}
.articles-section .article-category,
.articles-section .article-category a {
    color: #B8941F;
}

/* --- CTA Banner --- */
.cta-banner {
    background-color: #D4AF37;
}
.cta-banner .cta-text {
    color: #1a1a1a;
}
.cta-banner .cta-link {
    color: #1a1a1a;
    font-weight: 700;
}
.cta-banner .cta-link:hover {
    color: #fff;
}

/* --- Footer (footer-ntm) ---
   Footer styles now live in assets/public/ntm/styles/footer.css and are
   loaded by the footer template directly. */

/* --- Explore / Card Grid Section --- */
.explore-section {
    background: linear-gradient(135deg, #f7f5ef 0%, #f0ece0 100%);
}
.explore-card-content h3 {
    color: #B8941F;
}
.explore-btn {
    background-color: #D4AF37;
    color: #1a1a1a;
    border: 1px solid #D4AF37;
}
.explore-btn:hover {
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}
.explore-title-divider {
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

/* --- Swiper / Slider --- */
.swiper-pagination-bullet-active {
    background: linear-gradient(128deg, #D4AF37 0%, #E8D5A3 100%) !important;
}

/* --- Misc text accent --- */
.text-primary { color: #B8941F !important; }

/* --- Form elements --- */
.form-control:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* ============================================================
   NTM Homepage Editorial Tokens
   Contract for the homepage rebuild (Wave 2 components must use
   these tokens — never hardcode colors / sizes inside components).
   ============================================================ */
:root {
    --ntm-bg-page: #f6f3ef;
    --ntm-bg-dark: #161616;
    --ntm-bg-cream: #efe6d6;
    --ntm-ink: #14323a;
    --ntm-ink-inverse: #f6f3ef;
    --ntm-accent-gold: #d4af37;
    --ntm-accent-teal: #2a8b94;
    --ntm-rule: rgba(20, 50, 58, 0.15);
    --ntm-muted: rgba(20, 50, 58, 0.6);

    --ntm-font-serif: 'Playfair Display', Georgia, serif;
    --ntm-font-sans: 'Poppins', system-ui, sans-serif;

    --ntm-fs-display: clamp(2.5rem, 5vw, 4.25rem);
    --ntm-fs-h2: clamp(1.75rem, 3vw, 2.5rem);
    --ntm-fs-h3: 1.25rem;
    --ntm-fs-body: 1rem;
    --ntm-fs-eyebrow: 0.75rem;

    --ntm-section-pad-y: clamp(48px, 8vw, 96px);
    --ntm-container-max: 1392px;
}

/* ============================================================
   NTM Masthead (top promo strip + dark nav)
   ============================================================ */
.ntm-masthead {
    background-color: var(--ntm-bg-dark);
    color: var(--ntm-ink-inverse);
    font-family: var(--ntm-font-sans);
    position: relative;
    z-index: 20;
}

.ntm-masthead__strip {
    background-color: var(--ntm-bg-dark);
    border-bottom: 1px solid rgba(246, 243, 239, 0.08);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.ntm-masthead__strip-inner {
    max-width: var(--ntm-container-max);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    flex-wrap: wrap;
}

.ntm-masthead__strip-text {
    color: rgba(246, 243, 239, 0.85);
}

.ntm-masthead__strip-cta {
    color: var(--ntm-accent-teal);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.ntm-masthead__strip-cta:hover {
    color: var(--ntm-accent-teal);
    opacity: 0.8;
    text-decoration: none;
}

.ntm-masthead__bar {
    max-width: var(--ntm-container-max);
    margin: 0 auto;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.ntm-masthead__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    justify-self: start;
}

.ntm-masthead__link {
    color: var(--ntm-ink-inverse);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.ntm-masthead__link:hover {
    color: var(--ntm-accent-teal);
    text-decoration: none;
}

.ntm-masthead__brand {
    justify-self: center;
    display: inline-flex;
}

.ntm-masthead__brand img {
    width: auto;
    height: 56px;
}

.ntm-masthead__auth {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ntm-masthead__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s ease;
    border: 1px solid var(--ntm-ink-inverse);
}

.ntm-masthead__btn--ghost {
    background-color: transparent;
    color: var(--ntm-ink-inverse);
}

.ntm-masthead__btn--ghost:hover {
    background-color: rgba(246, 243, 239, 0.1);
    color: var(--ntm-ink-inverse);
    text-decoration: none;
}

.ntm-masthead__btn--solid {
    background-color: var(--ntm-accent-teal);
    border-color: var(--ntm-accent-teal);
    color: var(--ntm-ink-inverse);
}

.ntm-masthead__btn--solid:hover {
    background-color: transparent;
    color: var(--ntm-accent-teal);
    border-color: var(--ntm-accent-teal);
    text-decoration: none;
}

.ntm-masthead__toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(246, 243, 239, 0.4);
    color: var(--ntm-ink-inverse);
    padding: 6px 10px;
    border-radius: 2px;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .ntm-masthead__bar {
        grid-template-columns: auto 1fr auto;
        padding: 14px 18px;
    }
    .ntm-masthead__links,
    .ntm-masthead__auth {
        display: none;
    }
    .ntm-masthead__brand {
        justify-self: start;
    }
    .ntm-masthead__brand img {
        height: 44px;
    }
    .ntm-masthead__toggle {
        display: inline-flex;
        justify-self: end;
    }
    .ntm-masthead--open .ntm-masthead__links,
    .ntm-masthead--open .ntm-masthead__auth {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        grid-column: 1 / -1;
        padding: 18px 0 0;
        gap: 14px;
        justify-self: stretch;
        width: 100%;
    }
    .ntm-masthead--open .ntm-masthead__bar {
        grid-template-columns: 1fr auto;
    }
}
