/**
 * Noble Brains Academy — News & Editorial Public Styles
 * ─────────────────────────────────────────────────────────────
 * Responsive typography, card grids, spotlight heroes, video players,
 * and social share tools for /news and /news/{slug}.
 */

/* ═══ COLOR PALETTE & VARIABLES ═════════════════════════════ */
:root {
    --news-navy: #0b2475;
    --news-navy-dark: #07174a;
    --news-navy-light: #16369c;
    --news-gold: #f4b91f;
    --news-gold-hover: #dfa20c;
    --news-gold-soft: rgba(244, 185, 31, 0.12);
    --news-red: #e61f2a;
    --news-red-soft: rgba(230, 31, 42, 0.08);

    --news-text-dark: #0f172a;
    --news-text-body: #334155;
    --news-text-muted: #64748b;
    --news-bg-light: #f8fafc;
    --news-border: #e2e8f0;
    --news-card-shadow: 0 4px 18px rgba(11, 36, 117, 0.07);
    --news-card-shadow-hover: 0 12px 30px rgba(11, 36, 117, 0.14);
}

/* ═══ PUBLIC NEWS LISTING HERO ══════════════════════════════ */
.news-hero {
    background: linear-gradient(135deg, var(--news-navy-dark) 0%, var(--news-navy) 65%, #133391 100%);
    padding: 3.5rem 0 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.news-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 185, 31, 0.15) 0%, rgba(244, 185, 31, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.news-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.news-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--news-gold);
    margin-bottom: 0.75rem;
}

.news-hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--news-gold);
}

.news-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.news-hero__title-accent {
    color: var(--news-gold);
}

.news-hero__lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 1.75rem 0;
    max-width: 680px;
}

/* ═══ FILTER & SEARCH BAR ═══════════════════════════════════ */
.news-filter-section {
    background: #ffffff;
    border-bottom: 1px solid var(--news-border);
    padding: 1.25rem 0;
    position: sticky;
    top: 68px; /* Offset below navbar */
    z-index: 30;
    box-shadow: 0 4px 12px rgba(11, 36, 117, 0.04);
}

.news-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.news-category-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.news-category-pills::-webkit-scrollbar {
    display: none;
}

.news-cat-pill {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--news-text-body);
    background: #f1f5f9;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.news-cat-pill:hover {
    background: #e2e8f0;
    color: var(--news-navy);
}

.news-cat-pill.is-active {
    background: var(--news-navy);
    color: #ffffff;
    border-color: var(--news-navy);
    box-shadow: 0 2px 6px rgba(11, 36, 117, 0.25);
}

.news-search-form {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 260px;
}

.news-search-input {
    width: 100%;
    height: 38px;
    padding: 0 2.2rem 0 1rem;
    border-radius: 999px;
    border: 1px solid var(--news-border);
    background: #f8fafc;
    font-size: 0.85rem;
    color: var(--news-text-dark);
    transition: all 0.15s ease;
}

.news-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--news-navy);
    box-shadow: 0 0 0 3px rgba(11, 36, 117, 0.1);
}

.news-search-submit {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--news-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.news-search-submit:hover {
    color: var(--news-navy);
}

/* ═══ SPOTLIGHT FEATURED HERO CARD ══════════════════════════ */
.news-spotlight-section {
    padding: 2.75rem 0 1.5rem;
}

.news-spotlight-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--news-border);
    box-shadow: var(--news-card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--news-card-shadow-hover);
}

.news-spotlight-card__media {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.news-spotlight-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-spotlight-card:hover .news-spotlight-card__media img {
    transform: scale(1.03);
}

.news-spotlight-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--news-gold);
    color: var(--news-navy-dark);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-spotlight-card__body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-spotlight-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--news-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.news-spotlight-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem 0;
}

.news-spotlight-card__title a {
    color: var(--news-navy);
    text-decoration: none;
    transition: color 0.15s;
}

.news-spotlight-card__title a:hover {
    color: var(--news-red);
}

.news-spotlight-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--news-text-body);
    margin: 0 0 1.5rem 0;
}

.news-spotlight-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.news-author-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--news-text-dark);
}

.news-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--news-navy);
    text-decoration: none;
    transition: all 0.15s;
}

.news-read-more-btn:hover {
    color: var(--news-red);
    transform: translateX(3px);
}

/* ═══ ARTICLES 3-COLUMN GRID ════════════════════════════════ */
.news-grid-section {
    padding: 2.5rem 0 4.5rem;
}

.news-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid var(--news-navy);
    padding-bottom: 0.65rem;
}

.news-section-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--news-navy);
    margin: 0;
    letter-spacing: -0.01em;
}

.news-count-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--news-text-muted);
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--news-border);
    box-shadow: var(--news-card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--news-card-shadow-hover);
}

.news-card__thumb-wrap {
    position: relative;
    height: 200px;
    background: #e2e8f0;
    overflow: hidden;
}

.news-card__thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card__thumb-wrap img {
    transform: scale(1.05);
}

.news-card__category-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: var(--news-navy);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.news-card__body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--news-text-muted);
    margin-bottom: 0.5rem;
}

.news-card__title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.65rem 0;
}

.news-card__title a {
    color: var(--news-navy);
    text-decoration: none;
    transition: color 0.15s;
}

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

.news-card__excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--news-text-body);
    margin: 0 0 1.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
}

.news-card__author {
    font-weight: 600;
    color: var(--news-text-muted);
}

/* ═══ EMPTY STATE ═══════════════════════════════════════════ */
.news-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed var(--news-border);
}

.news-empty-state__icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.news-empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--news-navy);
    margin: 0 0 0.5rem;
}

.news-empty-state p {
    color: var(--news-text-muted);
    max-width: 440px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
}

/* ═══ PARENT BULLETIN CALLOUT BANNER ════════════════════════ */
.news-bulletin-banner {
    background: linear-gradient(135deg, #0b2475 0%, #07174a 100%);
    border-radius: 16px;
    padding: 2.75rem 2.25rem;
    color: #ffffff;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.news-bulletin-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(244, 185, 31, 0.05), rgba(244, 185, 31, 0.05) 10px, transparent 10px, transparent 20px);
}

.news-bulletin-banner__content {
    max-width: 620px;
}

.news-bulletin-banner__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--news-gold);
    margin-bottom: 0.4rem;
}

.news-bulletin-banner__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #ffffff;
}

.news-bulletin-banner__desc {
    font-size: 0.92rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.55;
}

.news-bulletin-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ═════════════════════════════════════════════════════════════
   SINGLE ARTICLE VIEW (/news/{slug})
   ═════════════════════════════════════════════════════════════ */
.single-news-wrap {
    padding: 2.5rem 0 5rem;
    background: #ffffff;
}

.single-news-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Breadcrumbs */
.single-news-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--news-text-muted);
    margin-bottom: 1.5rem;
}

.single-news-breadcrumbs a {
    color: var(--news-navy);
    text-decoration: none;
    font-weight: 500;
}

.single-news-breadcrumbs a:hover {
    text-decoration: underline;
}

.single-news-breadcrumbs__separator {
    color: #94a3b8;
}

.single-news-breadcrumbs__current {
    color: var(--news-text-muted);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Article Header */
.single-news-header {
    margin-bottom: 2rem;
}

.single-news-badge {
    display: inline-block;
    background: var(--news-gold-soft);
    color: #925805;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 185, 31, 0.4);
    margin-bottom: 1rem;
}

.single-news-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--news-navy);
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
}

.single-news-meta-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--news-text-muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--news-border);
}

.single-news-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.single-news-meta-item svg {
    color: var(--news-navy);
}

/* Featured Media */
.single-news-featured-media {
    margin: 0 0 2.25rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11, 36, 117, 0.1);
}

.single-news-featured-media img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Article Lead Excerpt */
.single-news-lead {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--news-text-dark);
    font-weight: 500;
    margin: 0 0 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Article Typography Body */
.single-news-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--news-text-body);
}

.single-news-body p {
    margin: 0 0 1.5rem 0;
}

.single-news-body h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--news-navy);
    margin: 2.25rem 0 1rem 0;
    line-height: 1.3;
}

.single-news-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--news-navy);
    margin: 1.75rem 0 0.75rem 0;
}

.single-news-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--news-navy);
    margin: 1.5rem 0 0.5rem 0;
}

.single-news-body blockquote {
    border-left: 4px solid var(--news-gold);
    padding: 1rem 1.5rem;
    margin: 1.75rem 0;
    background: #fffdf5;
    font-style: italic;
    color: #78350f;
    border-radius: 0 8px 8px 0;
}

.single-news-body ul,
.single-news-body ol {
    margin: 0 0 1.5rem 1.75rem;
    padding: 0;
}

.single-news-body li {
    margin-bottom: 0.5rem;
}

.single-news-body figure {
    margin: 2rem 0;
    text-align: center;
}

.single-news-body figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.single-news-body figcaption {
    font-size: 0.85rem;
    color: var(--news-text-muted);
    font-style: italic;
    margin-top: 0.6rem;
}

.single-news-body a {
    color: var(--news-navy);
    text-decoration: underline;
    font-weight: 600;
}

.single-news-body .nba-callout {
    background: #f0f4ff;
    border-left: 4px solid var(--news-navy);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.single-news-body .nba-callout strong {
    color: var(--news-navy);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.35rem;
}

/* ═══ SOCIAL SHARE STRIP ════════════════════════════════════ */
.single-news-share-box {
    margin: 3rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--news-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.single-news-share-box__label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--news-navy);
}

.single-news-share-btns {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.share-btn--whatsapp {
    background: #25d366;
}

.share-btn--whatsapp:hover {
    background: #1ebd5b;
}

.share-btn--facebook {
    background: #1877f2;
}

.share-btn--facebook:hover {
    background: #1464cc;
}

.share-btn--twitter {
    background: #000000;
}

.share-btn--twitter:hover {
    background: #333333;
}

.share-btn--copy {
    background: #ffffff;
    color: var(--news-text-dark);
    border: 1px solid var(--news-border);
}

.share-btn--copy:hover {
    background: #f1f5f9;
    border-color: var(--news-navy);
    color: var(--news-navy);
}

/* ═══ AUTHOR CREDITS BOX ════════════════════════════════════ */
.single-news-author-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--news-border);
    margin: 2.5rem 0;
}

.single-news-author-card__crest {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    border: 2px solid var(--news-gold);
}

.single-news-author-card__crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.single-news-author-card__name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--news-navy);
    margin: 0 0 0.25rem 0;
}

.single-news-author-card__desc {
    font-size: 0.85rem;
    color: var(--news-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* ═══ RELATED ARTICLES SECTION ══════════════════════════════ */
.single-news-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--news-navy);
}

.single-news-related__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--news-navy);
    margin: 0 0 1.75rem 0;
}

/* ═══ HOMEPAGE DYNAMIC NEWS STRIP ═══════════════════════════ */
.home-news-section {
    padding: 4.5rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--news-border);
}

.home-news-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.home-news-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--news-red);
    margin-bottom: 0.5rem;
}

.home-news-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--news-navy);
    line-height: 1.2;
    margin: 0 0 0.85rem 0;
}

.home-news-lead {
    font-size: 1rem;
    color: var(--news-text-muted);
    line-height: 1.6;
    margin: 0;
}

.home-news-foot-cta {
    text-align: center;
    margin-top: 2.75rem;
}

/* ═══ RESPONSIVE BREAKPOINTS ════════════════════════════════ */
@media (max-width: 992px) {
    .news-spotlight-card {
        grid-template-columns: 1fr;
    }

    .news-spotlight-card__media {
        min-height: 240px;
        max-height: 320px;
    }

    .news-spotlight-card__body {
        padding: 1.75rem;
    }

    .news-bulletin-banner {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 2.75rem 0 2.25rem;
    }

    .news-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search-form {
        width: 100%;
    }

    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .single-news-share-box {
        flex-direction: column;
        align-items: stretch;
    }

    .single-news-share-btns {
        justify-content: stretch;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
    }
}
