@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* =============================================
   NEURAL — Encyclopedia of Media Analysis
   Main Stylesheet
   ============================================= */

:root {
  --color-bg:        #F7F4EF;
  --color-surface:   #FFFFFF;
  --color-border:    #DDD8CE;
  --color-text:      #2A2826;
  --color-muted:     #6B655C;
  --color-navy:      #1A3A5C;
  --color-navy-dark: #112540;
  --color-gold:      #8B6F35;
  --color-gold-lt:   #C49A3C;
  --color-accent:    #2E6DA4;
  --color-accent-lt: #E8F0F8;
  --color-red-tag:   #B03A2E;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;
  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-card: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  --max-w: 1200px;
  --col-main: 720px;
  --col-side: 320px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-navy); }
p { margin-bottom: 1.2rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: .4rem; }

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: .75rem;
}
h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; font-family: var(--font-sans); }

.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

blockquote {
  border-left: 3px solid var(--color-navy);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-accent-lt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-navy-dark);
}
blockquote cite {
  display: block;
  margin-top: .6rem;
  font-style: normal;
  font-size: .875rem;
  font-family: var(--font-sans);
  color: var(--color-muted);
}

/* ===== LAYOUT WRAPPER ===== */

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

/* ===== HEADER ===== */

.site-header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.site-logo__name {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.5px;
}
.site-logo__tagline {
  font-size: .75rem;
  color: var(--color-muted);
  font-style: italic;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav a {
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--color-navy);
  background: var(--color-accent-lt);
}
.site-nav .nav-dropdown {
  position: relative;
}
.site-nav .nav-dropdown > a::after {
  content: ' ▾';
  font-size: .7rem;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-navy);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 200px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  border-radius: 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .875rem;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }

.nav-search-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--color-muted);
  font-size: .9rem;
  margin-left: 8px;
  transition: all .2s;
}
.nav-search-btn:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: all .3s;
}

/* ===== TOP BAR ===== */

.top-bar {
  background: var(--color-navy);
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  padding: 6px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: #fff; }
.top-bar-date { font-style: italic; }

/* ===== BREADCRUMBS ===== */

.breadcrumbs {
  padding: 12px 0;
  font-size: .82rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-navy); }
.breadcrumbs span { color: var(--color-text); }
.breadcrumbs-sep { margin: 0 6px; }

/* ===== HERO ===== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-dark);
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 0;
}
.hero-category {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold-lt);
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero p {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ===== PAGE HERO (inner pages) ===== */

.page-hero {
  background: var(--color-navy);
  padding: 48px 0 40px;
  margin-bottom: 0;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero .lead { color: rgba(255,255,255,.75); margin-bottom: 0; }

/* ===== SECTION TITLES ===== */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-border);
}
.section-header h2 {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--color-navy);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-header a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}
.section-header a:hover { color: var(--color-navy); }

/* ===== ARTICLE CARDS ===== */

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.article-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-border);
}
.article-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.article-card:hover .article-card__img-wrap img { transform: scale(1.04); }
.article-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.article-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-navy);
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 600;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--color-accent); }
.article-card__excerpt {
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--color-muted);
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.article-card__read-more {
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: .02em;
}
.article-card__read-more:hover { color: var(--color-navy); }

/* Horizontal article card */
.article-card--horiz {
  flex-direction: row;
}
.article-card--horiz .article-card__img-wrap {
  width: 180px;
  min-width: 180px;
  aspect-ratio: auto;
  height: 140px;
}
.article-card--horiz .article-card__body {
  padding: 16px 18px;
}

/* ===== FEATURED ARTICLE ===== */

.featured-article {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
}
.featured-article__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.featured-article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.featured-article:hover .featured-article__img img { transform: scale(1.03); }
.featured-article__content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-article__cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.featured-article__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.featured-article__title a { color: inherit; }
.featured-article__title a:hover { color: var(--color-accent); }
.featured-article__excerpt {
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.featured-article__meta {
  font-size: .82rem;
  color: var(--color-muted);
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

/* ===== GRID LAYOUTS ===== */

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

/* ===== ARTICLE LAYOUT (single) ===== */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0 60px;
}
.article-body { min-width: 0; }
.article-sidebar { min-width: 0; }

.article-header {
  margin-bottom: 32px;
}
.article-category-badge {
  display: inline-block;
  background: var(--color-accent-lt);
  color: var(--color-accent);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-meta-bar {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
  font-size: .85rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}
.article-author { font-weight: 600; color: var(--color-text); }
.article-reading-time { font-style: italic; }

.article-featured-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
}
.article-featured-img img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}
.article-featured-img figcaption {
  font-size: .8rem;
  color: var(--color-muted);
  padding: 10px 14px;
  background: var(--color-bg);
  font-style: italic;
}

.article-content { font-size: 1.02rem; line-height: 1.75; }
.article-content h2 { margin-top: 2.4rem; }
.article-content h3 { margin-top: 1.8rem; }
.article-content p { margin-bottom: 1.35rem; }
.article-content .img-inline {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-content .img-inline img {
  width: 100%;
  height: auto;
}
.article-content .img-inline figcaption {
  font-size: .8rem;
  color: var(--color-muted);
  padding: 8px 12px;
  background: var(--color-bg);
  font-style: italic;
  border-bottom: 1px solid var(--color-border);
}

/* ===== SIDEBAR ===== */

.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
}
.sidebar-widget__header {
  background: var(--color-navy);
  color: #fff;
  padding: 12px 18px;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.sidebar-widget__body { padding: 16px 18px; }

.sidebar-article-list { list-style: none; padding: 0; margin: 0; }
.sidebar-article-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
.sidebar-article-list li:last-child { border-bottom: none; }
.sidebar-article-list a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}
.sidebar-article-list a:hover { color: var(--color-accent); }
.sidebar-article-list .meta {
  font-size: .75rem;
  color: var(--color-muted);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { 
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 2px;
  transition: all .2s;
}
.tag:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

/* ===== CATEGORY CHIPS ===== */

.categories-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  overflow: hidden;
}
.categories-strip-inner {
  display: flex;
  overflow-x: auto;
  gap: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.categories-strip-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--color-navy);
  color: #fff;
}
.cat-chip__icon { font-size: 1rem; }

/* ===== STATS / INFOGRAPHICS ===== */

.stats-section {
  background: var(--color-navy);
  padding: 60px 0;
  margin: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}
.stat-accent { color: var(--color-gold-lt); }

/* ===== DATA TABLE ===== */

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th {
  background: var(--color-navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--color-bg); }
.data-table tr:hover td { background: var(--color-accent-lt); }

/* ===== NEWSLETTER ===== */

.newsletter-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
  margin: 60px 0;
}
.newsletter-section h3 { font-size: 1.5rem; margin-bottom: 10px; }
.newsletter-section p { color: var(--color-muted); margin-bottom: 0; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--color-navy); }
.newsletter-form input::placeholder { color: var(--color-muted); }

/* ===== BUTTONS ===== */

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--color-navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-navy-dark);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: #fff;
}
.btn-accent {
  background: var(--color-gold);
  color: #fff;
}
.btn-accent:hover { background: #6B5020; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-newsletter {
  background: var(--color-navy);
  color: #fff;
  padding: 14px 24px;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s;
  white-space: nowrap;
}
.btn-newsletter:hover { background: var(--color-navy-dark); }

/* ===== CONTACT FORM ===== */

.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-success {
  display: none;
  background: #E8F5E9;
  border: 1px solid #4CAF50;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #2E7D32;
  font-weight: 600;
  margin-top: 16px;
  font-size: .95rem;
}
.form-success.visible { display: flex; align-items: center; gap: 12px; }
.form-success::before { content: '✓'; font-size: 1.3rem; font-weight: 900; }

/* ===== CATEGORY CARD ===== */

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all .2s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--color-navy);
}
.category-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.category-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.category-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-navy);
  font-weight: 600;
  margin-bottom: 8px;
}
.category-card__count {
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.category-card__desc { font-size: .88rem; color: var(--color-muted); margin-bottom: 0; }

/* ===== PAGINATION ===== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 48px 0 20px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  transition: all .2s;
}
.pagination a:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.pagination .active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ===== SHARE BAR ===== */

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 32px 0;
  flex-wrap: wrap;
}
.share-bar__label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid transparent;
}
.share-btn--fb { background: #1877F2; color: #fff; }
.share-btn--fb:hover { background: #1464d8; color: #fff; }
.share-btn--tw { background: #1DA1F2; color: #fff; }
.share-btn--tw:hover { background: #0c8bd6; color: #fff; }
.share-btn--ln { background: #0A66C2; color: #fff; }
.share-btn--ln:hover { background: #0851a0; color: #fff; }
.share-btn--copy { background: var(--color-bg); border-color: var(--color-border); color: var(--color-text); }
.share-btn--copy:hover { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }

/* ===== RELATED ARTICLES ===== */

.related-section { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== ABOUT ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 60px 0;
}
.about-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.value-list { list-style: none; padding: 0; }
.value-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}
.value-list li:last-child { border-bottom: none; }
.value-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent-lt);
  color: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.value-text strong {
  display: block;
  font-size: .9rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.value-text p { font-size: .875rem; color: var(--color-muted); margin: 0; }

/* ===== TEAM ===== */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}
.team-card__avatar {
  width: 80px;
  height: 80px;
  background: var(--color-accent-lt);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-navy);
  font-weight: 700;
  font-family: var(--font-serif);
}
.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.team-card__role {
  font-size: .82rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 12px;
  font-style: italic;
}
.team-card__bio { font-size: .85rem; color: var(--color-muted); margin: 0; }

/* ===== CONTACT PAGE ===== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 48px 0 60px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.contact-info-text a,
.contact-info-text span { color: var(--color-text); font-weight: 600; }
.contact-info-text a:hover { color: var(--color-accent); }

/* ===== ARTICLES LISTING ===== */

.articles-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 0 60px;
}
.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.articles-count { font-size: .88rem; color: var(--color-muted); }
.articles-sort {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .875rem;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.articles-list { display: flex; flex-direction: column; gap: 20px; }

/* ===== INFOGRAPHIC BARS ===== */

.data-bars { list-style: none; padding: 0; margin: 0; }
.data-bar-item {
  margin-bottom: 16px;
}
.data-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--color-text);
}
.data-bar-label span { color: var(--color-muted); font-weight: 600; }
.data-bar-track {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.data-bar-fill {
  height: 100%;
  background: var(--color-navy);
  border-radius: 4px;
  transition: width 1s ease;
}
.data-bar-fill--accent { background: var(--color-gold); }

/* ===== POLICY PAGES ===== */

.policy-layout { padding: 48px 0 80px; }
.policy-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.policy-toc h4 { margin-bottom: 12px; font-size: .9rem; text-transform: uppercase; letter-spacing: .07em; }
.policy-toc ol { margin: 0; padding-left: 1.3rem; }
.policy-toc li { margin-bottom: 6px; }
.policy-toc a { font-size: .88rem; }
.policy-section { margin-bottom: 40px; }
.policy-section h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.policy-section p, .policy-section li { font-size: .95rem; color: #3A3632; line-height: 1.75; }

/* ===== SITEMAP ===== */

.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0 80px; }
.sitemap-group h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--color-navy);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.sitemap-group ul { list-style: none; padding: 0; }
.sitemap-group li { margin-bottom: 8px; }
.sitemap-group a { font-size: .9rem; color: var(--color-muted); }
.sitemap-group a:hover { color: var(--color-navy); }

/* ===== HIGHLIGHT BOX ===== */

.highlight-box {
  background: var(--color-accent-lt);
  border-left: 4px solid var(--color-navy);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}
.highlight-box p { margin-bottom: 0; font-size: .95rem; color: var(--color-navy-dark); }

/* ===== SECTION SEPARATOR ===== */

.section-sep {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 48px 0;
}

/* ===== FOOTER ===== */

.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand__logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 14px;
}
.footer-brand__desc {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.footer-contact-item {
  font-size: .85rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,.65);
}
.footer-contact-item a { color: rgba(255,255,255,.8); }
.footer-contact-item a:hover { color: #fff; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: rgba(255,255,255,.85); }
.footer-bottom-links { display: flex; gap: 16px; }

/* ===== SEARCH OVERLAY ===== */

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,37,64,.95);
  z-index: 1000;
  align-items: flex-start;
  padding-top: 80px;
}
.search-overlay.active { display: flex; justify-content: center; }
.search-overlay-inner { width: 100%; max-width: 640px; padding: 0 24px; }
.search-overlay-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.8rem;
  cursor: pointer;
}
.search-input-wrap { position: relative; }
.search-input-wrap input {
  width: 100%;
  padding: 18px 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,.3);
  color: #fff;
  outline: none;
}
.search-input-wrap input::placeholder { color: rgba(255,255,255,.3); }

/* ===== COOKIE BANNER ===== */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-navy-dark);
  color: rgba(255,255,255,.85);
  padding: 18px 0;
  z-index: 500;
  display: none;
  border-top: 2px solid var(--color-gold);
}
.cookie-banner.active { display: block; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: .875rem; margin: 0; }
.cookie-banner a { color: var(--color-gold-lt); }
.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept { 
  background: var(--color-gold); 
  color: #fff; 
  border: none; 
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
}
.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  cursor: pointer;
}

/* ===== UTILITY ===== */

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.pt-section { padding-top: 60px; }
.pb-section { padding-bottom: 60px; }
.pt-8 { padding-top: 32px; }
.pb-8 { padding-bottom: 32px; }

.section { padding: 60px 0; }
.section--gray { background: var(--color-bg); }
.section--white { background: var(--color-surface); }

.divider { height: 1px; background: var(--color-border); margin: 40px 0; }

/* ===== NOTICE BOXES ===== */

.notice { padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: .9rem; }
.notice--info { background: #E3F2FD; border-left: 4px solid #1976D2; color: #0D47A1; }
.notice--warning { background: #FFF8E1; border-left: 4px solid #F9A825; color: #F57F17; }
.notice--success { background: #E8F5E9; border-left: 4px solid #388E3C; color: #1B5E20; }
