/* ============================================================
   USEAD Modern Design System
   Ported from React/TanStack new-design to vanilla CSS
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  --radius: 1rem;
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;

  /* USEAD Logo Authentic Palette */
  --primary: #058AC7;           /* Cerulean / Medical Blue from USEAD logo */
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-foreground: #ffffff;

  --brand-blue: #058AC7;
  --brand-cyan: #2BB0DD;        /* Bright Cyan from globe ring */
  --brand-red: #B81D1D;         /* Crimson / Ruby Red from logo network nodes */
  --brand-red-hover: #991515;
  --brand-red-light: #fee2e2;

  --secondary: #091e32;         /* Deep Medical Slate Navy */
  --secondary-foreground: #f8fafc;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f0f9ff;
  --accent-foreground: #0369a1;
  --coral: #B81D1D;             /* Mapped to Logo Red */
  --border: #e2e8f0;
  --input: #cbd5e1;
  --ring: #058AC7;

  --gradient-hero: linear-gradient(180deg, rgba(9, 30, 50, 0.45) 0%, rgba(7, 20, 35, 0.94) 100%);
  --gradient-brand: linear-gradient(120deg, #058AC7 0%, #2BB0DD 45%, #B81D1D 100%);
  --gradient-brand-subtle: linear-gradient(135deg, #058AC7 0%, #B81D1D 100%);
  --font-display: 'Sora', sans-serif;
  --font-sans: 'Manrope', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Utility Classes ---------- */
.container-modern {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.text-brand {
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-brand {
  background-image: var(--gradient-brand);
}

.bg-hero {
  background-image: var(--gradient-hero);
}

/* ---------- Animations ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.animate-rise {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* ---------- Site Header (Glassmorphism) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header .logo img {
  height: 3.5rem;
  width: auto;
}

/* Desktop Nav */
.site-header .desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .site-header .desktop-nav {
    display: flex;
  }
}

.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 9999px;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .dropdown:hover .nav-link {
  color: var(--primary);
  background: rgba(5, 138, 199, 0.08);
}

/* Dropdown */
.site-header .dropdown {
  position: relative;
  display: inline-flex;
}

.site-header .dropdown-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 100%;
  width: 17rem;
  padding-top: 0.5rem;
  transform: translateY(6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.site-header .dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.site-header .dropdown-inner {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.625rem;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(226, 232, 240, 0.8);
}

.site-header .dropdown-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.site-header .dropdown-link:hover,
.site-header .dropdown-link.active {
  background: var(--accent);
  color: var(--primary);
  transform: translateX(4px);
}

.site-header .dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.site-header .dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Lang Toggle */
.lang-toggle {
  display: flex;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-toggle button {
  border: none;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: transparent;
  color: var(--muted-foreground);
}

.lang-toggle button.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  height: 2px;
  width: 1.5rem;
  background: var(--foreground);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  max-height: 80vh;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav.open {
  display: block;
  animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mobile-nav a,
.mobile-nav button.mobile-sub-toggle {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.15s;
}

.mobile-nav a:hover,
.mobile-nav button.mobile-sub-toggle:hover {
  background: var(--muted);
}

.mobile-nav .mobile-sub-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav .sub-links {
  display: none;
  margin-left: 0.75rem;
  border-left: 2px solid rgba(5, 138, 199, 0.4);
  padding-left: 0.5rem;
}

.mobile-nav .sub-links.open {
  display: block;
}

.mobile-nav .sub-links a {
  font-size: 0.875rem;
  padding: 0.625rem 0.75rem;
  color: var(--muted-foreground);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  overflow: hidden;
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background-image: var(--gradient-hero);
}

.hero-section .hero-content {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.25rem 4rem;
  color: var(--primary-foreground);
}

.hero-badge {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid oklch(0.99 0 0 / 0.3);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-title {
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.1s;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  opacity: 0.85;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.2s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.3s;
}

.btn-brand {
  display: inline-block;
  border-radius: 9999px;
  background: linear-gradient(135deg, #058AC7 0%, #0284c7 100%);
  box-shadow: 0 4px 14px rgba(5, 138, 199, 0.35);
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.9375rem;
}

.btn-brand:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 6px 20px rgba(5, 138, 199, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ---------- Marquee ---------- */
.marquee-section {
  overflow: hidden;
  background: #091e32;
  border-top: 1px solid rgba(5, 138, 199, 0.2);
  border-bottom: 1px solid rgba(5, 138, 199, 0.2);
  padding: 1.125rem 0;
  color: #bae6fd;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  color: #e0f2fe;
}

/* ---------- Pillars (Neden USEAD?) ---------- */
.pillars-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.25rem;
  scroll-margin-top: 6rem;
}

.pillars-section .section-title {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .pillars-section .section-title {
    font-size: 3rem;
  }
}

.pillars-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pillar-card:hover {
  transform: translateY(-0.5rem);
  border-color: var(--primary);
  box-shadow: 0 25px 50px -12px rgba(5, 138, 199, 0.15);
}

.pillar-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #058AC7 0%, #0284c7 100%);
  box-shadow: 0 4px 14px rgba(5, 138, 199, 0.35);
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
}

.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.pillar-card p {
  margin-top: 0.75rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---------- Stats Section ---------- */
.stats-section {
  background: var(--secondary);
  padding: 5rem 1.25rem;
  color: var(--secondary-foreground);
  scroll-margin-top: 5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ---------- News / Card Grid Section ---------- */
.news-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.25rem;
  scroll-margin-top: 6rem;
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.news-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .news-header h2 {
    font-size: 3rem;
  }
}

.news-header .view-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.news-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px oklch(0.55 0.11 195 / 0.15);
}

.news-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-card .card-tag {
  display: inline-block;
  border-radius: 9999px;
  background: var(--accent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.news-card .card-date {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

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

.news-card .card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-footer {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.news-card:hover .card-footer {
  gap: 0.6rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 0 1.25rem 6rem;
}

.cta-inner {
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 2rem;
  background: linear-gradient(135deg, #091e32 0%, #0c2b47 60%, #151d2f 100%);
  border: 1px solid rgba(5, 138, 199, 0.3);
  box-shadow: 0 25px 50px -12px rgba(5, 138, 199, 0.2);
  padding: 2.5rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 25% 25%, rgba(5, 138, 199, 0.25) 0%, transparent 55%),
              radial-gradient(circle at 80% 75%, rgba(184, 29, 29, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .cta-inner {
    padding: 4rem;
  }
}

.cta-inner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
}

@media (min-width: 640px) {
  .cta-inner h2 {
    font-size: 2.25rem;
  }
}

.cta-inner p {
  max-width: 32rem;
  margin: 1rem auto 0;
  color: #cbd5e1;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 2rem auto 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .cta-form {
    flex-direction: row;
  }
}

.cta-form input[type="email"] {
  flex: 1;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.875rem 1.25rem;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta-form input[type="email"]:focus {
  border-color: #058AC7;
  box-shadow: 0 0 0 3px rgba(5, 138, 199, 0.25);
}

.cta-form button {
  border-radius: 9999px;
  background: linear-gradient(135deg, #058AC7 0%, #0284c7 100%);
  box-shadow: 0 4px 14px rgba(5, 138, 199, 0.4);
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-form button:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 6px 18px rgba(5, 138, 199, 0.55);
  transform: translateY(-2px);
}

.newsletter-feedback-msg {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  animation: rise 0.3s ease;
}

.newsletter-feedback-msg.success {
  display: inline-flex;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.newsletter-feedback-msg.error {
  display: inline-flex;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ---------- Site Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer img {
  height: 4rem;
  width: auto;
}

/* ---------- Page Hero ---------- */
.page-hero {
  background: var(--secondary);
  padding: 9rem 1.25rem 4rem;
  color: var(--secondary-foreground);
}

.page-hero .hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page-hero .eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.page-hero h1 {
  font-size: 1.875rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

/* ---------- Content Detail (Hakkımızda) ---------- */
.content-detail {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  padding: 4rem 1.25rem;
}

@media (min-width: 768px) {
  .content-detail {
    grid-template-columns: 1fr 16.25rem;
  }
}

.content-detail article {
  font-size: 1.125rem;
  line-height: 1.7;
}

.content-detail article p + p {
  margin-top: 1.25rem;
}

.content-sidebar {
  height: fit-content;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem;
}

.content-sidebar a {
  display: block;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  transition: background-color 0.2s, color 0.2s;
}

.content-sidebar a:hover {
  background: var(--accent);
}

.content-sidebar a.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- Article Detail ---------- */
.article-detail {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-detail p + p {
  margin-top: 1.25rem;
}

.article-detail .back-link {
  display: inline-block;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Contact Page Modern ---------- */
.contact-page-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2.25rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px oklch(0.55 0.11 195 / 0.15);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--accent);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-card .card-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.contact-card .card-value {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.contact-card .card-value a {
  color: inherit;
  transition: color 0.2s;
}

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

.contact-card .card-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Info Banner */
.contact-info-banner {
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, oklch(0.985 0.006 190), oklch(0.95 0.02 195));
  padding: 3rem 2.5rem;
  text-align: center;
}

.contact-info-banner .banner-content {
  max-width: 48rem;
  margin: 0 auto;
}

.contact-info-banner h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.contact-info-banner p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---------- List page styles ---------- */
.list-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

/* ---------- Status messages ---------- */
.status-success {
  border-radius: 1rem;
  background: oklch(0.85 0.1 150);
  color: oklch(0.25 0.08 160);
  padding: 1rem 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-error {
  border-radius: 1rem;
  background: oklch(0.9 0.1 30);
  color: oklch(0.35 0.15 25);
  padding: 1rem 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ---------- Spacer for fixed header ---------- */
.header-spacer {
  height: 5rem;
}

/* ---------- Empty Content State ---------- */
.empty-content-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  border: 1px dashed var(--border);
  background: var(--card);
  margin: 1rem 0;
}

.empty-content-state .empty-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: rgba(5, 138, 199, 0.1);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.empty-content-state h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.empty-content-state p {
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
}

.empty-content-state .empty-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.empty-content-state .empty-back-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

