/* ==========================================================================
   GO ALIVE NEWS & BLOG PORTAL DESIGN SYSTEM
   ========================================================================== */

:root {
  /* GO Alive Brand Colors — extracted from official logo gradient */
  --color-primary: #E8392A;      /* Coral Red (logo center) */
  --color-orange: #F2703C;       /* Warm Orange (logo middle ring) */
  --color-golden: #F5A623;       /* Golden Orange (logo outer warm) */
  --color-pink: #D95090;         /* Hot Pink (logo red→purple transition) */
  --color-violet: #8B5BB5;       /* Violet Purple (logo outer bottom) */
  --color-accent: #F5A623;       /* Golden Orange used as accent */
  --color-secondary: #D95090;    /* Hot Pink used as secondary */
  --color-highlight: #F2703C;    /* Warm Orange used as highlight */
  --color-neutral: #1E1E1E;      /* Near Black */
  --color-white: #ffffff;        /* Pure White */

  /* Brand Gradient (mirrors logo ring gradient) */
  --gradient-brand: linear-gradient(135deg, #E8392A 0%, #F2703C 30%, #F5A623 55%, #D95090 80%, #8B5BB5 100%);
  --gradient-brand-alt: linear-gradient(135deg, #8B5BB5 0%, #D95090 35%, #E8392A 65%, #F2703C 100%);
  --gradient-warm: linear-gradient(135deg, #E8392A 0%, #F2703C 50%, #F5A623 100%);

  /* UI Layout Helpers — clean white backgrounds */
  --color-bg-body: #ffffff;
  --color-bg-alt: #fafafa;
  --color-bg-soft: #fff7f5;      /* Very subtle warm tint */
  --color-text-primary: #1E1E1E;
  --color-text-secondary: #5a5a5a;
  --color-text-muted: #909090;
  --color-border: #ede9ed;

  /* Fonts & Shadows */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 12px rgba(30, 30, 30, 0.05);
  --shadow-md: 0 12px 30px rgba(30, 30, 30, 0.07);
  --shadow-lg: 0 22px 50px rgba(30, 30, 30, 0.10);
  --shadow-hover: 0 28px 56px rgba(232, 57, 42, 0.14);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-round: 50%;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-body);
  color: var(--color-text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   HEADER NAVIGATION (Exact match to goalive.eu)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  height: 72px;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo styling — image based */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.04);
}

/* Fallback text logo (hidden when image loads) */
.logo-go {
  color: var(--color-primary);
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 26px;
}

.logo-alive {
  color: var(--color-neutral);
  margin-left: 2px;
  font-weight: 800;
  font-size: 26px;
}

/* Navigation Links */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-neutral);
  position: relative;
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Dropdown Support */
.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.has-dropdown > a::after {
  content: '▼';
  font-size: 8px;
  margin-left: 2px;
  transition: var(--transition-smooth);
}

.has-dropdown:hover > a::after {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-white);
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--color-border);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: block;
}

.dropdown a::after {
  display: none;
}

.dropdown a:hover {
  background-color: rgba(219, 64, 62, 0.05);
  color: var(--color-primary);
}

/* CTA & Search buttons */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-upcoming {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(217, 64, 62, 0.2);
  transition: var(--transition-smooth);
}

.btn-upcoming:hover {
  background-color: var(--color-neutral);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 38, 38, 0.2);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  color: var(--color-neutral);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.search-btn:hover {
  background-color: rgba(38, 38, 38, 0.05);
  color: var(--color-primary);
}

/* Mobile-only elements — hidden on desktop */
.mobile-only-nav {
  display: none;
}

/* Hamburger mobile menu button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1100;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.hamburger:hover {
  background-color: rgba(232, 57, 42, 0.06);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-neutral);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none; /* Don't block clicks when invisible */
  transition: opacity 0.35s ease;
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto; /* Only intercept clicks when menu is open */
}

/* ==========================================================================
   PAGE HERO SECTION (High energy visual design)
   ========================================================================== */

.page-hero {
  padding: 180px 0 90px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(232, 57, 42, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(139, 91, 181, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, #fffcfc 0%, #ffffff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(232, 57, 42, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 1;
  pointer-events: none;
}

/* Decorative gradient bar at top of hero */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--gradient-warm);
  color: var(--color-white);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(232, 57, 42, 0.25);
}

.hero-title {
  font-size: clamp(36px, 6.5vw, 66px);
  font-weight: 800;
  color: var(--color-neutral);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 26px;
}

.hero-title .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.35) 0%, rgba(139, 91, 181, 0.25) 100%);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* ==========================================================================
   FILTER BAR STYLING
   ========================================================================== */

.filter-bar {
  position: sticky;
  top: 90px;
  background-color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 200;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--transition-smooth);
}

/* ── Combined search + year bar ─────────────────────────────────────────── */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  padding: 0 6px 0 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.search-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 57, 42, 0.1);
}

.search-icon {
  position: relative;
  left: unset;
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color 0.2s;
}

.search-wrap:focus-within .search-icon {
  color: var(--color-primary);
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 8px 12px 10px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

/* hide browser's native clear button */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--color-bg-alt);
  border: none;
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-right: 4px;
  transition: background 0.2s, color 0.2s;
}

.search-clear:hover {
  background: rgba(232, 57, 42, 0.1);
  color: var(--color-primary);
}

/* Thin vertical divider between search text and year */
.search-divider {
  flex-shrink: 0;
  width: 1px;
  height: 22px;
  background: var(--color-border);
  margin: 0 4px;
}

/* Year select sits inside the pill */
.year-select {
  flex-shrink: 0;
  padding: 8px 28px 8px 12px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  /* push arrow out of the way */
  min-width: 110px;
}

.year-select:focus {
  color: var(--color-primary);
}

/* Custom dropdown arrow overlaid on the select */
.year-select-arrow {
  flex-shrink: 0;
  margin-right: 10px;
  color: var(--color-text-muted);
  pointer-events: none;
  position: relative;
  left: -24px;  /* tuck behind the select's right padding */
}

@media (max-width: 600px) {
  .search-input {
    font-size: 14px;
    padding: 10px 6px 10px 8px;
  }
  .year-select {
    font-size: 13px;
    min-width: 80px;
    padding: 8px 24px 8px 10px;
  }

  /* Move year select to the LEFT so its dropdown opens inward, not off-screen */
  .search-icon        { order: 2; margin-left: 8px; }
  .search-input       { order: 3; }
  .search-clear       { order: 4; }
  .search-divider     { order: 1; margin: 0 2px; }
  .year-select        { order: 0; }
  .year-select-arrow  { order: 1; left: 0; margin-right: 0; margin-left: -20px; }

  .search-wrap {
    padding: 0 6px 0 6px;
  }
}


.site-header.scrolled + .page-hero + .filter-bar,
.site-header.scrolled ~ .filter-bar {
  top: 75px;
}

.filter-tabs {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 8px; /* space for scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

/* Custom scrollbar for filter tabs on desktop */
.filter-tabs::-webkit-scrollbar {
  height: 6px;
}
.filter-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.filter-tabs::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 10px;
}

.filter-tab {
  flex-shrink: 0;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-secondary);
  background-color: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover {
  background-color: rgba(232, 57, 42, 0.05);
  color: var(--color-primary);
  border-color: rgba(232, 57, 42, 0.25);
}

.filter-tab.active {
  background: var(--gradient-warm);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(232, 57, 42, 0.28);
}

/* ==========================================================================
   NEWS TIMELINE SECTION (Aesthetic clean implementation)
   ========================================================================== */

.news-main {
  padding: 80px 0 100px;
  background-color: var(--color-white);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Timeline central spine line — mirrors logo gradient */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gradient-brand);
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(232, 57, 42, 0.15);
}

/* Timeline Row */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 24px 60px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Left & Right positioning */
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Timeline Card */
.timeline-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 64, 62, 0.2);
}

.card-link {
  display: block;
  height: 100%;
}

.card-image-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
}

.card-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-card:hover .card-image-wrap img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-warm);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--color-white);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  z-index: 2;
  transition: var(--transition-smooth);
  box-shadow: 0 3px 10px rgba(232, 57, 42, 0.25);
}

.timeline-card:hover .card-tag {
  background: var(--gradient-brand-alt);
  box-shadow: 0 4px 14px rgba(139, 91, 181, 0.35);
}

.card-body {
  padding: 30px;
}

.card-date {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-neutral);
  line-height: 1.35;
  margin-bottom: 14px;
  transition: var(--transition-smooth);
}

.timeline-card:hover .card-title {
  color: var(--color-primary);
}

.card-excerpt {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-neutral);
  transition: var(--transition-smooth);
}

.card-read-more svg {
  transition: transform 0.3s ease;
}

.timeline-card:hover .card-read-more {
  color: var(--color-primary);
}

.timeline-card:hover .card-read-more svg {
  transform: translateX(4px);
}

/* Timeline Dot / Center circle */
.timeline-dot {
  position: absolute;
  top: 40px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-round);
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 5px rgba(232, 57, 42, 0.12);
  z-index: 10;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  background: var(--gradient-warm);
  border-color: transparent;
  box-shadow: 0 0 0 8px rgba(232, 57, 42, 0.12);
  transform: scale(1.25);
}

.timeline-item.left .timeline-dot {
  right: -12px;
}

.timeline-item.right .timeline-dot {
  left: -12px;
}

/* Loading buttons */
.load-more-wrap {
  text-align: center;
  margin-top: 60px;
}

.btn-load-more {
  padding: 16px 36px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-neutral);
  background-color: var(--color-white);
  border: 2px solid var(--color-neutral);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-load-more:hover {
  background-color: var(--color-neutral);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ==========================================================================
   ARTICLE PAGE DETAIL LAYOUT
   ========================================================================== */

.article-hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  max-height: 650px;
  overflow: hidden;
  margin-top: 90px;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   ERASMUS+ PROJECTS CARDS
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 166, 35, 0.4);
}

.project-image-wrap {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background-color: #fafbfc;
}

.project-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-image-wrap img {
    transform: scale(1.1) rotate(1deg);
}

.project-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-brand);
    color: var(--color-white);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.project-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* The cool hover effect background */
.project-body::before {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(245, 166, 35, 0.08) 0%, transparent 100%);
    transition: bottom 0.4s ease;
    z-index: 0;
}
.project-card:hover .project-body::before {
    bottom: 0;
}

.project-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-neutral);
    line-height: 1.3;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.project-details-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 600;
}
.meta-item svg {
    color: var(--color-primary);
    width: 18px;
    height: 18px;
}

.project-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.learn-more-wrap {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.btn-learn-more {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-neutral);
    color: var(--color-white);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: 2px solid var(--color-neutral);
}

.project-card:hover .btn-learn-more {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(38, 38, 38, 0.2) 0%, rgba(38, 38, 38, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.article-tag {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.article-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 900px;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
}

.meta-sep {
  color: var(--color-accent);
}

/* Page Layout grid */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.article-content {
  position: relative;
}

/* Floating Share Bar */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.article-share span {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background-color: var(--color-bg-alt);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.share-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Typography elements */
.article-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-primary);
  font-weight: 500;
  margin-bottom: 30px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-neutral);
  margin: 40px 0 20px;
  letter-spacing: -0.5px;
}

.article-figure {
  margin: 40px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-figure figcaption {
  padding: 16px 20px;
  background-color: var(--color-bg-alt);
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.article-list {
  list-style: none;
  margin-bottom: 30px;
}

.article-list li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.article-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 16px;
}

/* Highlight Box */
.article-project-box {
  background: linear-gradient(135deg, rgba(219, 64, 62, 0.03) 0%, rgba(254, 143, 117, 0.05) 100%);
  border-left: 4px solid var(--color-primary);
  padding: 30px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 40px 0;
}

.project-box-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.project-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-partners span {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-neutral);
  box-shadow: var(--shadow-sm);
}

/* Tag Links */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.article-tags-wrap span {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-muted);
}

.article-tag-link {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.article-tag-link:hover {
  background-color: var(--color-neutral);
  color: var(--color-white);
  border-color: var(--color-neutral);
}

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

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar-widget {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-neutral);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Related articles */
.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.related-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.related-date {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-neutral);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item:hover .related-title {
  color: var(--color-primary);
}

/* Widget CTA highlights */
.widget-highlight {
  background: linear-gradient(135deg, var(--color-neutral) 0%, #171717 100%);
  color: var(--color-white);
  border: none;
}

.widget-highlight .widget-title {
  color: var(--color-white);
}

.widget-highlight p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-sidebar {
  display: inline-block;
  width: 100%;
  text-align: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}

.btn-sidebar:hover {
  background-color: var(--color-accent);
  color: var(--color-neutral);
}

.btn-cta-sidebar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 2px solid var(--color-neutral);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}

.btn-cta-sidebar:hover {
  background-color: var(--color-neutral);
  color: var(--color-white);
}

/* ==========================================================================
   MORE STORIES SECTION (Bottom of article)
   ========================================================================== */

.more-stories {
  background-color: var(--color-bg-alt);
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.section-heading {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-neutral);
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -0.5px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.more-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.more-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 64, 62, 0.15);
}

.more-img-wrap {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
}

.more-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.more-card:hover img {
  transform: scale(1.05);
}

.more-body {
  padding: 24px;
}

.more-body time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.more-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-neutral);
  line-height: 1.35;
}

.more-card:hover h3 {
  color: var(--color-primary);
}

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

.newsletter-section {
  background: var(--gradient-brand);
  color: var(--color-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background-color: rgba(245, 166, 35, 0.15);
  border-radius: var(--radius-round);
  filter: blur(80px);
  pointer-events: none;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background-color: rgba(139, 91, 181, 0.18);
  border-radius: var(--radius-round);
  filter: blur(70px);
  pointer-events: none;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.newsletter-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 800px;
}

.newsletter-form input {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  background-color: var(--color-white);
  color: var(--color-neutral);
  border-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.btn-subscribe {
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 14px 28px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.btn-subscribe:hover {
  background-color: var(--color-neutral);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 30, 30, 0.3);
}

/* ==========================================================================
   FOOTER (Exact match to goalive.eu layout)
   ========================================================================== */

.site-footer {
  background-color: #181818;
  background-image: linear-gradient(160deg, rgba(232,57,42,0.04) 0%, rgba(139,91,181,0.04) 100%);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 0;
  font-size: 14px;
  border-top: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  display: block;
  opacity: 0.95;
  transition: var(--transition-smooth);
}

.footer-logo:hover .footer-logo-img {
  opacity: 1;
}

.footer-brand .logo-go {
  color: var(--color-primary);
}

.footer-brand .logo-alive {
  color: var(--color-white);
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-heading {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(217, 64, 62, 0.3);
}

.site-footer .newsletter-form { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }

.site-footer .nl-email {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.site-footer .nl-email::placeholder { color: rgba(255,255,255,0.38); }
.site-footer .nl-email:focus { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); box-shadow: none; }

.site-footer .btn-newsletter-footer {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.site-footer .btn-newsletter-footer:hover {
  background: #fff;
  color: #000;
}

/* Footer Bottom */
.footer-bottom {
  padding: 30px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  list-style: none;
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* ==== TABLET + MOBILE: hamburger kicks in ======================== */
@media (max-width: 768px) {

  /* ---- Header: keep logo + hamburger only ---- */
  .hamburger {
    display: flex;
  }

  /* Hide the desktop CTA & search from the header on mobile */
  .header-cta {
    display: none;
  }

  /* ---- Mobile Drawer -------------------------------------------- */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for iOS */
    background-color: #ffffff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.42s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    border-left: none;
  }

  /* Brand gradient accent strip at top of drawer */
  .main-nav::before {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    background: var(--gradient-brand);
    flex-shrink: 0;
  }

  .main-nav.active {
    right: 0;
  }

  /* ---- Nav list inside drawer ---- */
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 28px 0 24px;
  }

  .main-nav > ul > li > a {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-neutral);
    padding: 14px 28px;
    border-radius: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
  }

  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > a.active {
    background: rgba(232, 57, 42, 0.06);
    color: var(--color-primary);
    padding-left: 34px;
  }

  .main-nav a::after {
    display: none;
  }

  /* Dropdown in drawer */
  .has-dropdown > a {
    justify-content: space-between;
  }

  .has-dropdown > a::after {
    content: '›';
    font-size: 20px;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
    margin-left: auto;
  }

  .has-dropdown.active > a::after {
    transform: rotate(90deg);
    color: var(--color-primary);
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: rgba(232, 57, 42, 0.03);
    border-left: 3px solid var(--color-primary);
    margin-left: 28px;
    display: none;
    flex-direction: column;
    gap: 0;
  }

  .has-dropdown.active .dropdown {
    display: flex;
  }

  .dropdown li a {
    font-size: 15px;
    font-weight: 500;
    padding: 11px 20px;
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    border-radius: 0;
  }

  .dropdown li a:hover {
    background: rgba(232, 57, 42, 0.06);
    color: var(--color-primary);
  }

  .mobile-only-nav {
    display: block;
  }
  
  .mobile-only-nav a {
    color: var(--color-primary) !important;
  }

  /* ---- Backdrop ---- */
  .nav-backdrop {
    display: block;
  }

  /* ---- Hero ---- */
  .page-hero {
    padding: 130px 0 60px;
  }

  /* ---- Filter bar: wrap to new lines on mobile ---- */
  .filter-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-start;
    padding: 0 16px 4px;
    gap: 8px;
    width: 100%;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    padding: 9px 18px;
    font-size: 13px;
  }

  /* ---- Timeline Mobile ---- */
  .timeline::before {
    left: 20px;
    width: 3px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 52px;
    padding-right: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 9px;
    right: auto;
    top: 30px;
  }

  .card-title {
    font-size: 18px;
  }

  /* ---- Article hero ---- */
  .article-hero {
    height: 50vh;
    min-height: 320px;
  }

  .article-hero-title {
    font-size: clamp(22px, 5vw, 34px);
  }

  /* ---- More grid ---- */
  .more-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Newsletter ---- */
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .newsletter-form {
    max-width: 100%;
    flex-direction: column;
  }

  .btn-subscribe {
    width: 100%;
    padding: 14px;
  }

  /* ---- Footer ---- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ==== SMALL PHONES ============================================== */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-hero {
    padding: 110px 0 50px;
  }

  .hero-title {
    letter-spacing: -0.8px;
  }

  .card-body {
    padding: 20px;
  }

  .site-header {
    height: 70px;
  }


  .site-header.scrolled {
    height: 62px;
  }

  .logo-img {
    height: 44px;
  }
}

/* ==========================================================================
   DYNAMIC CONTENT — Loading spinner, placeholders, no-results
   ========================================================================== */

.timeline-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(232, 57, 42, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.card-img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  width: 100%;
}

.article-dynamic-content {
  padding: 0;
}

.article-dynamic-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.article-dynamic-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.article-dynamic-content h2,
.article-dynamic-content h3 {
  margin: 2rem 0 1rem;
  color: var(--color-neutral);
  font-weight: 700;
}

.article-dynamic-content figure {
  margin: 1.5rem 0;
}

.article-dynamic-content figcaption {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE VIDEO EMBEDS
   ========================================================================== */

.video-responsive {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

/* Neutralize nested wrappers that could cause huge black spaces */
.video-responsive .video-responsive {
  padding-top: 0 !important;
  margin: 0 !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.video-responsive iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Fallback: any raw iframes inside article content that aren't wrapped */
.article-dynamic-content iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

/* ==========================================================================
   ADMIN IN-CONTEXT EDIT BUTTONS
   ========================================================================== */

.frontend-edit-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 10;
  text-decoration: none;
  transition: background 0.2s;
}

.frontend-edit-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.more-card .frontend-edit-btn {
  top: 8px;
  left: 8px;
  padding: 4px 8px;
}

/* ==========================================================================
   LIGHTBOX FOR ARTICLE IMAGES
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
