/*
Theme Name: Geopolitica
Theme URI: https://berlingeopolitics.org
Author: Black Sea Institute for Geopolitics and Governance
Author URI: https://berlingeopolitics.org
Description: A bold, editorial WordPress theme designed for policy research institutes, think tanks, and academic centers. Features custom post types for publications, projects, team members, and podcast episodes. Dark navy aesthetic with serif typography, headline carousel, kaleidoscope animation, and scroll-triggered reveal effects. Built for the Black Sea Institute for Geopolitics and Governance.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geopolitica
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, one-column, two-columns, threaded-comments, translation-ready
*/

/* ================================================================
   DESIGN SYSTEM
   ================================================================ */
:root {
  /* Core palette */
  --gp-navy-darkest: #050B15;
  --gp-navy-dark: #0A1628;
  --gp-navy: #0F1D32;
  --gp-navy-mid: #162038;
  --gp-navy-light: #1E2D4A;
  --gp-navy-lighter: #243656;

  /* Neutrals */
  --gp-slate-dark: #475569;
  --gp-slate: #64748B;
  --gp-silver: #94A3B8;
  --gp-ghost: #CBD5E1;
  --gp-ice: #E2E8F0;
  --gp-snow: #F1F5F9;
  --gp-white: #FFFFFF;

  /* Accents */
  --gp-blue: #2563EB;
  --gp-blue-light: #3B82F6;
  --gp-blue-pale: #DBEAFE;
  --gp-gold: #D97706;
  --gp-gold-light: #F59E0B;
  --gp-gold-pale: #FEF3C7;
  --gp-red: #DC2626;
  --gp-green: #059669;

  /* Typography */
  --gp-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --gp-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gp-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --gp-section-pad: clamp(60px, 8vw, 120px);
  --gp-container: 1200px;
  --gp-gap: 24px;

  /* Effects */
  --gp-shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
  --gp-shadow-md: 0 4px 16px rgba(10,22,40,0.08);
  --gp-shadow-lg: 0 8px 32px rgba(10,22,40,0.12);
  --gp-shadow-xl: 0 16px 48px rgba(10,22,40,0.16);
  --gp-radius: 8px;
  --gp-radius-lg: 12px;
  --gp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--gp-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gp-navy);
  background: var(--gp-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gp-blue); text-decoration: none; transition: color var(--gp-transition); }
a:hover { color: var(--gp-navy); }

.gp-container {
  max-width: var(--gp-container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--gp-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

p { margin-bottom: 1em; }

.gp-overline {
  font-family: var(--gp-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gp-blue);
}

.gp-overline--gold { color: var(--gp-gold); }
.gp-overline--light { color: var(--gp-blue-light); }

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.gp-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gp-reveal--delay-1 { transition-delay: 0.1s; }
.gp-reveal--delay-2 { transition-delay: 0.2s; }
.gp-reveal--delay-3 { transition-delay: 0.3s; }
.gp-reveal--delay-4 { transition-delay: 0.4s; }

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */
.gp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gp-navy-dark);
}

.gp-header__inner {
  max-width: var(--gp-container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.gp-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gp-white);
}

.gp-header__logo-type {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-header__logo-big {
  font-family: var(--gp-serif);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gp-white);
  line-height: 1;
}

.gp-header__logo-rule {
  width: 1.5px;
  height: 28px;
  background: linear-gradient(to bottom, var(--gp-blue), var(--gp-gold));
  flex-shrink: 0;
}

.gp-header__logo-full {
  font-family: var(--gp-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
  max-width: 140px;
}

.gp-header__logo:hover .gp-header__logo-big {
  color: var(--gp-white);
}

.gp-header__logo:hover .gp-header__logo-full {
  color: var(--gp-white);
}

/* Footer logo */
.gp-footer__logo-link {
  display: block;
  text-decoration: none;
  margin-bottom: 4px;
}

.gp-footer__logo-name {
  display: block;
  font-family: var(--gp-serif);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--gp-white);
  line-height: 1.1;
}

.gp-footer__logo-rule {
  display: block;
  width: 40px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gp-blue), var(--gp-gold));
  margin-top: 10px;
  border-radius: 2px;
}

.gp-nav { display: flex; align-items: center; gap: 0; }

.gp-nav__list {
  list-style: none;
  display: flex;
  gap: 0;
}

.gp-nav__item a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  position: relative;
  transition: color var(--gp-transition);
}

.gp-nav__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gp-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--gp-transition);
}

.gp-nav__item a:hover,
.gp-nav__item.current-menu-item a {
  color: var(--gp-white);
}

.gp-nav__item a:hover::after,
.gp-nav__item.current-menu-item a::after {
  transform: scaleX(1);
}

/* Mobile menu toggle */
.gp-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.gp-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gp-white);
  margin: 5px 0;
  transition: all var(--gp-transition);
/* ================================================================
   HEADER TAGLINE BAR
   ================================================================ */
.gp-header__tagline {
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
}

.gp-header__tagline-regions {
  font-family: var(--gp-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gp-gold);
  font-size: 10px;
}

.gp-header__tagline-sep {
  color: rgba(255,255,255,0.25);
}

.gp-header__tagline-mission {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

/* ================================================================
   FULL-WIDTH SLIDER
   ================================================================ */
.gp-slider {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  background: var(--gp-navy-darkest);
}

.gp-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gp-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.gp-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gp-slider__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}

.gp-slider__slide.is-active .gp-slider__bg {
  transform: scale(1.04);
}

.gp-slider__bg--default {
  background: linear-gradient(135deg, var(--gp-navy) 0%, var(--gp-navy-light) 50%, var(--gp-navy-mid) 100%);
}

.gp-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5,11,21,0.88) 0%,
    rgba(5,11,21,0.7) 45%,
    rgba(5,11,21,0.3) 100%
  );
}

.gp-slider__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(40px, 6vw, 80px);
}

.gp-slider__type {
  display: inline-block;
  font-family: var(--gp-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gp-gold);
  background: rgba(217,119,6,0.15);
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

.gp-slider__title {
  font-family: var(--gp-serif);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  color: var(--gp-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 650px;
  margin: 0 0 20px 0;
}

.gp-slider__excerpt {
  font-size: 16px;
  color: var(--gp-silver);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 28px;
}

.gp-slider__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gp-white);
  text-decoration: none;
  background: var(--gp-blue);
  padding: 12px 28px;
  border-radius: 6px;
  width: fit-content;
  transition: all 0.3s;
}

.gp-slider__cta:hover {
  background: var(--gp-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

/* Side arrows */
.gp-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--gp-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}

.gp-slider__arrow:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-50%) scale(1.08);
}

.gp-slider__arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gp-slider__arrow--prev { left: clamp(16px, 3vw, 40px); }
.gp-slider__arrow--next { right: clamp(16px, 3vw, 40px); }

/* Bottom pips */
.gp-slider__pips {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.gp-slider__pip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  padding: 0;
}

.gp-slider__pip.is-active {
  background: var(--gp-gold);
  width: 64px;
}

.gp-slider__pip:hover {
  background: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .gp-slider {
    height: 60vh;
    min-height: 400px;
  }
  .gp-slider__title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .gp-slider__arrow {
    width: 44px;
    height: 44px;
  }
  .gp-header__tagline {
    flex-wrap: wrap;
    padding: 8px 20px;
    gap: 6px;
    font-size: 10px;
  }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.gp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--gp-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--gp-transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.gp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--gp-transition);
}

.gp-btn:hover::before { opacity: 1; }

.gp-btn--primary {
  background: var(--gp-blue);
  color: var(--gp-white);
}

.gp-btn--primary:hover {
  background: var(--gp-blue-light);
  color: var(--gp-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.gp-btn--outline {
  background: transparent;
  color: var(--gp-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.gp-btn--outline:hover {
  border-color: var(--gp-white);
  color: var(--gp-white);
  transform: translateY(-2px);
}

.gp-btn--dark {
  background: var(--gp-navy);
  color: var(--gp-white);
}

.gp-btn--dark:hover {
  background: var(--gp-navy-light);
  color: var(--gp-white);
  transform: translateY(-2px);
  box-shadow: var(--gp-shadow-lg);
}

.gp-btn--gold {
  background: var(--gp-gold);
  color: var(--gp-white);
}

.gp-btn--gold:hover {
  background: var(--gp-gold-light);
  color: var(--gp-white);
  transform: translateY(-2px);
}

.gp-btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

.gp-btn__arrow {
  transition: transform var(--gp-transition);
}

.gp-btn:hover .gp-btn__arrow {
  transform: translateX(4px);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.gp-section {
  padding: var(--gp-section-pad) 0;
  position: relative;
}

.gp-section--navy {
  background: var(--gp-navy-dark);
  color: var(--gp-white);
}

.gp-section--snow { background: var(--gp-snow); }
.gp-section--white { background: var(--gp-white); }

.gp-section__header {
  margin-bottom: 48px;
}

.gp-section__header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.gp-section__title {
  margin-top: 12px;
  margin-bottom: 16px;
}

.gp-section__desc {
  font-size: 17px;
  color: var(--gp-slate);
  line-height: 1.7;
  max-width: 600px;
}

.gp-section--navy .gp-section__desc { color: var(--gp-silver); }

.gp-section__top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

/* ================================================================
   PUBLICATION CARDS
   ================================================================ */
.gp-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--gp-gap);
}

.gp-pub-card {
  background: var(--gp-white);
  border: 1px solid var(--gp-ice);
  border-radius: var(--gp-radius-lg);
  padding: 32px;
  transition: all var(--gp-transition);
  position: relative;
  overflow: hidden;
}

.gp-pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gp-blue), var(--gp-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-pub-card:hover {
  border-color: transparent;
  box-shadow: var(--gp-shadow-lg);
  transform: translateY(-4px);
}

.gp-pub-card:hover::before {
  transform: scaleX(1);
}

.gp-pub-card__type {
  font-family: var(--gp-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gp-blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gp-pub-card__type::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gp-blue);
}

.gp-pub-card__type--working-paper::before { background: var(--gp-gold); }
.gp-pub-card__type--working-paper { color: var(--gp-gold); }
.gp-pub-card__type--commentary::before { background: var(--gp-green); }
.gp-pub-card__type--commentary { color: var(--gp-green); }

.gp-pub-card__title {
  font-family: var(--gp-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.gp-pub-card__title a {
  color: var(--gp-navy);
  text-decoration: none;
}

.gp-pub-card__title a:hover { color: var(--gp-blue); }

.gp-pub-card__excerpt {
  font-size: 14px;
  color: var(--gp-slate);
  line-height: 1.6;
  margin-bottom: 16px;
}

.gp-pub-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--gp-silver);
  padding-top: 16px;
  border-top: 1px solid var(--gp-ice);
}

.gp-pub-card__meta strong { color: var(--gp-slate-dark); font-weight: 600; }

.gp-pub-card__pdf {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gp-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ================================================================
   RESEARCH AREAS
   ================================================================ */
.gp-areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gp-gap);
}

.gp-area-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--gp-radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--gp-transition);
  position: relative;
  overflow: hidden;
}

.gp-area-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.06), transparent);
  opacity: 0;
  transition: opacity var(--gp-transition);
}

.gp-area-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.gp-area-card:hover::after { opacity: 1; }

.gp-area-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--gp-blue), var(--gp-navy-lighter));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--gp-transition);
}

.gp-area-card:hover .gp-area-card__icon {
  transform: scale(1.1) rotate(-3deg);
}

.gp-area-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gp-white);
  fill: none;
  stroke-width: 1.5;
}

.gp-area-card__title {
  font-family: var(--gp-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--gp-white);
  margin-bottom: 8px;
}

.gp-area-card__desc {
  font-size: 13px;
  color: var(--gp-silver);
  line-height: 1.5;
}

/* ================================================================
   STATS BAR
   ================================================================ */
.gp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--gp-navy);
  position: relative;
}

.gp-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gp-gold), transparent);
}

.gp-stat {
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gp-stat::after {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 0;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.gp-stat:last-child::after { display: none; }

.gp-stat__number {
  font-family: var(--gp-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--gp-gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

.gp-stat__label {
  font-size: 13px;
  color: var(--gp-silver);
  font-weight: 500;
}

/* ================================================================
   TEAM SECTION
   ================================================================ */
.gp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gp-gap);
}

.gp-team-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--gp-radius-lg);
  transition: all var(--gp-transition);
}

.gp-team-card:hover {
  background: var(--gp-snow);
}

.gp-team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gp-ice);
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color var(--gp-transition);
}

.gp-team-card:hover .gp-team-card__photo {
  border-color: var(--gp-blue);
}

.gp-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-team-card__name {
  font-family: var(--gp-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gp-team-card__role {
  font-size: 13px;
  color: var(--gp-blue);
  font-weight: 500;
  margin-bottom: 10px;
}

.gp-team-card__bio {
  font-size: 13px;
  color: var(--gp-slate);
  line-height: 1.5;
}

/* ================================================================
   NEWSLETTER / CTA
   ================================================================ */
.gp-cta {
  background: var(--gp-navy-dark);
  position: relative;
  overflow: hidden;
}

.gp-cta__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(217, 119, 6, 0.06) 0%, transparent 50%);
}

.gp-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--gp-section-pad) 20px;
}

.gp-cta__title {
  font-family: var(--gp-serif);
  color: var(--gp-white);
  margin-bottom: 16px;
}

.gp-cta__desc {
  color: var(--gp-silver);
  margin-bottom: 32px;
  font-size: 16px;
}

.gp-cta__form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.gp-cta__input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--gp-white);
  font-family: var(--gp-sans);
  font-size: 14px;
  outline: none;
  transition: all var(--gp-transition);
}

.gp-cta__input::placeholder { color: var(--gp-silver); }
.gp-cta__input:focus { border-color: var(--gp-blue); background: rgba(255,255,255,0.1); }

/* ================================================================
   FOOTER
   ================================================================ */
.gp-footer {
  background: var(--gp-navy-darkest);
  color: var(--gp-silver);
  padding: 64px 0 32px;
}

.gp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.gp-footer__brand p {
  font-size: 14px;
  color: var(--gp-silver);
  max-width: 320px;
  line-height: 1.6;
  margin-top: 16px;
}

.gp-footer__heading {
  font-family: var(--gp-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gp-ghost);
  margin-bottom: 20px;
}

.gp-footer__links {
  list-style: none;
}

.gp-footer__links li { margin-bottom: 10px; }

.gp-footer__links a {
  font-size: 14px;
  color: var(--gp-silver);
  transition: color var(--gp-transition);
}

.gp-footer__links a:hover { color: var(--gp-white); }

.gp-footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
}

.gp-footer__bottom a { color: var(--gp-silver); }
.gp-footer__bottom a:hover { color: var(--gp-white); }

.gp-footer__social {
  display: flex;
  gap: 12px;
}

.gp-footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--gp-transition);
}

.gp-footer__social a:hover {
  background: var(--gp-blue);
  border-color: var(--gp-blue);
}

.gp-footer__social svg {
  width: 16px;
  height: 16px;
  fill: var(--gp-silver);
}

.gp-footer__social a:hover svg { fill: var(--gp-white); }

/* ================================================================
   ARCHIVE / LISTING PAGES
   ================================================================ */
.gp-archive-header {
  padding: 140px 0 60px;
  background: var(--gp-navy-dark);
  color: var(--gp-white);
}

.gp-archive-header h1 {
  font-family: var(--gp-serif);
  margin-bottom: 12px;
}

.gp-archive-header p {
  color: var(--gp-silver);
  font-size: 17px;
  max-width: 600px;
}

.gp-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--gp-ice);
  margin-bottom: 32px;
}

.gp-filter-tag {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--gp-ice);
  background: var(--gp-white);
  color: var(--gp-slate);
  cursor: pointer;
  transition: all var(--gp-transition);
}

.gp-filter-tag:hover,
.gp-filter-tag--active {
  background: var(--gp-navy);
  color: var(--gp-white);
  border-color: var(--gp-navy);
}

/* ================================================================
   SINGLE POST / PUBLICATION
   ================================================================ */
.gp-single-header {
  padding: 140px 0 48px;
  background: var(--gp-navy-dark);
  color: var(--gp-white);
}

.gp-single-header .gp-overline { margin-bottom: 16px; }

.gp-single-header h1 {
  font-size: clamp(28px, 4vw, 48px);
  max-width: 720px;
  margin-bottom: 20px;
}

.gp-single-header__meta {
  font-size: 14px;
  color: var(--gp-silver);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.gp-single-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px);
  font-size: 17px;
  line-height: 1.8;
}

.gp-single-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
}

.gp-single-content h3 {
  margin-top: 36px;
  margin-bottom: 16px;
}

.gp-single-content blockquote {
  border-left: 3px solid var(--gp-gold);
  padding: 16px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--gp-slate-dark);
  background: var(--gp-snow);
  border-radius: 0 var(--gp-radius) var(--gp-radius) 0;
}

/* ================================================================
   EVENTS
   ================================================================ */
.gp-event-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--gp-white);
  border: 1px solid var(--gp-ice);
  border-radius: var(--gp-radius-lg);
  transition: all var(--gp-transition);
  margin-bottom: 16px;
}

.gp-event-card:hover {
  box-shadow: var(--gp-shadow-md);
  transform: translateX(4px);
}

.gp-event-card__date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
}

.gp-event-card__day {
  font-family: var(--gp-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--gp-navy);
  line-height: 1;
}

.gp-event-card__month {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gp-blue);
  letter-spacing: 0.06em;
}

.gp-event-card__title {
  font-family: var(--gp-serif);
  font-size: 18px;
  margin-bottom: 4px;
}

.gp-event-card__info {
  font-size: 13px;
  color: var(--gp-slate);
}

/* ================================================================
   404 PAGE
   ================================================================ */
.gp-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gp-navy-dark);
  color: var(--gp-white);
}

.gp-404__code {
  font-family: var(--gp-serif);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--gp-blue), var(--gp-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.gp-404 p {
  color: var(--gp-silver);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ================================================================
   WORDPRESS DEFAULTS
   ================================================================ */
.wp-block-image { margin: 32px 0; }
.wp-block-image img { border-radius: var(--gp-radius); }

.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Pagination */
.gp-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}

.gp-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gp-slate);
  border: 1px solid var(--gp-ice);
  transition: all var(--gp-transition);
}

.gp-pagination .page-numbers:hover,
.gp-pagination .page-numbers.current {
  background: var(--gp-navy);
  color: var(--gp-white);
  border-color: var(--gp-navy);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .gp-areas-grid { grid-template-columns: repeat(2, 1fr); }
  .gp-stats { grid-template-columns: repeat(2, 1fr); }
  .gp-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .gp-nav__list { display: none; }
  .gp-menu-toggle { display: block; }

  .gp-nav__list.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--gp-navy-dark);
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .gp-hero__content { padding-top: 120px; }
  .gp-areas-grid { grid-template-columns: 1fr; }
  .gp-stats { grid-template-columns: 1fr 1fr; }
  .gp-pub-grid { grid-template-columns: 1fr; }
  .gp-footer__grid { grid-template-columns: 1fr; }
  .gp-cta__form { flex-direction: column; }
  .gp-event-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .gp-stats { grid-template-columns: 1fr; }
  .gp-hero__actions { flex-direction: column; }
  .gp-hero__actions .gp-btn { width: 100%; justify-content: center; }
}
