/*
Theme Name: COMD Bilkent
Theme URI: https://comd.bilkent.edu.tr
Author: COMD Department
Description: Official theme for the Bilkent University Department of Communication and Design
Version: 1.0.0
Text Domain: comd-bilkent
*/

/* ========================================================================
   CSS CUSTOM PROPERTIES
   ======================================================================== */
:root {
  /* Colors */
  --comd-charcoal: #404040;
  --comd-crimson: #d4006b;
  --comd-pink: #d4006b;
  --warm-50: #fafafa;
  --warm-100: #f1f1f1;
  --warm-200: #f1f1f1;
  --warm-300: #cccccc;
  --warm-400: #aaaaaa;
  --warm-500: #777777;
  --warm-600: #404040;
  --warm-700: #404040;
  --warm-800: #404040;
  --warm-900: #404040;
  --heading-1: #404040;
  --heading-2: #404040;
  --body-color: #404040;
  --body-secondary: #404040;
  --body-tertiary: #888888;

  /* Fonts */
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Layout */
  --max-content: 1100px;
  --max-text: 600px;
}

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

/* Accessibility: Skip Link */
.skip-link.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
  background-color: var(--warm-50);
  color: var(--comd-charcoal);
  clip: auto !important;
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 8px;
  padding: 12px 24px;
  top: 8px;
  width: auto;
  z-index: 100000;
  border: 2px solid var(--comd-crimson);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--warm-50);
  color: var(--comd-charcoal);
  font-family: var(--font-body);
  font-size: 0.8125rem; /* 13px body-base */
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

video {
  max-width: 100%;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ========================================================================
   SELECTION
   ======================================================================== */
::selection {
  background-color: var(--comd-charcoal);
  color: var(--warm-50);
}

/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */
h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading-1);
}

h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading-1);
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading-2);
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading-2);
}

h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-secondary);
}

h6 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-tertiary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--comd-charcoal);
}

/* ========================================================================
   LAYOUT UTILITIES
   ======================================================================== */
.page-margin {
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .page-margin {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.content-max {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}

.section-padding {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.accent-line {
  width: 100%;
  height: 1px;
  background-color: var(--warm-300);
}

.divider {
  height: 1px;
  background-color: var(--warm-300);
  margin-top: 48px;
  margin-bottom: 48px;
}

/* ========================================================================
   OVERLINE / SECTION LABELS
   ======================================================================== */
.overline {
  font-family: var(--font-body);
  font-size: 0.625rem; /* 10px */
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--comd-charcoal);
  font-weight: 400;
}

.overline-muted {
  font-family: var(--font-body);
  font-size: 0.625rem;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--body-tertiary);
  font-weight: 400;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--body-secondary);
  font-weight: 400;
}

/* ========================================================================
   PROSE
   ======================================================================== */
.prose {
  max-width: var(--max-text);
  font-family: var(--font-body);
  font-size: 0.9375rem; /* 15px body-lg */
  line-height: 1.8;
  color: var(--comd-charcoal);
}

.prose h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading-1);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
}

.prose h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading-2);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose ul li {
  list-style-type: disc;
}

.prose ol li {
  list-style-type: decimal;
}

.prose strong {
  font-weight: 700;
  color: var(--comd-charcoal);
}

.prose a {
  color: var(--comd-charcoal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.2s;
}

.prose a:hover {
  text-decoration: none;
}

.prose table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
}

.prose th {
  font-family: var(--font-body);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--body-secondary);
  text-align: left;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--warm-300);
}

.prose td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--warm-300);
  font-size: 0.75rem;
  font-family: var(--font-body);
}

.prose blockquote {
  border-left: 2px solid var(--comd-charcoal);
  padding-left: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
  color: var(--body-secondary);
}

.prose blockquote p {
  font-style: italic;
  font-family: var(--font-body);
}

.prose hr {
  margin-top: 3rem;
  margin-bottom: 3rem;
  border: none;
  border-top: 1px solid var(--warm-300);
}

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--warm-50);
  border-bottom: 1px solid var(--warm-300);
  height: 56px;
}

.site-header .header-inner {
  height: 100%;
}

.site-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: -5px;
  margin-top: -4px;
}

.header-logo img {
  height: 28px; /* h-7 = 1.75rem = 28px */
  width: auto;
}

.header-spacer {
  height: 56px;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

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

.desktop-nav .nav-item {
  position: relative;
}

.desktop-nav .nav-link,
.desktop-nav .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  font-weight: 500;
  transition: color 0.15s;
  color: var(--comd-charcoal);
  background: none;
  border: none;
  cursor: pointer;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-dropdown-trigger:hover,
.desktop-nav .nav-link.is-active,
.desktop-nav .nav-dropdown-trigger.is-active {
  color: var(--comd-crimson);
}

.desktop-nav .nav-dropdown-trigger svg {
  width: 10px;
  height: 10px;
  opacity: 0.4;
}

/* Dropdown */
.desktop-nav .nav-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s;
  z-index: 50;
}

.desktop-nav .nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.desktop-nav .nav-dropdown-menu {
  background-color: var(--warm-50);
  border: 1px solid var(--warm-300);
  padding: 4px 0;
  min-width: 320px;
}

.desktop-nav .nav-dropdown-link {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s;
  color: var(--comd-charcoal);
}

.desktop-nav .nav-dropdown-link:hover,
.desktop-nav .nav-dropdown-link.is-active {
  color: var(--comd-crimson);
}

/* Header right area */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 10px;
}

.bilkent-seal-link {
  display: none;
  flex-shrink: 0;
  margin-top: -5px;
}

@media (min-width: 1280px) {
  .bilkent-seal-link {
    display: block;
  }
}

.bilkent-seal-link img {
  height: 28px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.bilkent-seal-link:hover img {
  opacity: 1;
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  color: var(--comd-charcoal);
  transition: color 0.15s;
}

.hamburger-btn:hover {
  color: var(--comd-crimson);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 1px;
  background-color: currentColor;
}

/* ========================================================================
   FULL-SCREEN OVERLAY NAVIGATION
   ======================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.nav-overlay-bg {
  position: absolute;
  inset: 0;
  background-color: var(--warm-50);
  opacity: 0;
  transition: opacity 0.15s ease-out;
  will-change: opacity;
}

.nav-overlay.is-open {
  pointer-events: auto;
}

.nav-overlay.is-open .nav-overlay-bg {
  opacity: 1;
}

.nav-overlay-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.15s ease-out;
  pointer-events: none;
  will-change: opacity;
}

.nav-overlay.is-open .nav-overlay-content {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .nav-overlay-header {
    padding: 0 40px;
  }
}

.nav-overlay-header .logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-overlay-header .logo-link img {
  height: 28px;
  width: auto;
}

.nav-overlay-close {
  padding: 8px;
  color: var(--comd-charcoal);
  transition: color 0.15s;
}

.nav-overlay-close:hover {
  color: var(--comd-crimson);
}

.nav-overlay-close svg {
  width: 20px;
  height: 20px;
}

/* Overlay nav body */
.nav-overlay-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.nav-overlay-items {
  text-align: center;
  padding: 32px 20px;
  width: 100%;
  max-width: 672px; /* max-w-2xl */
}

/* Overlay nav items */
.nav-overlay-item {
  opacity: 0;
  transform: translateY(4px);
  will-change: opacity, transform;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.nav-overlay.is-open .nav-overlay-item {
  opacity: 1;
  transform: none;
}

/* Staggered delays (set via inline style --delay) */
.nav-overlay-item:nth-child(1) { transition-delay: 0ms; }
.nav-overlay-item:nth-child(2) { transition-delay: 20ms; }
.nav-overlay-item:nth-child(3) { transition-delay: 40ms; }
.nav-overlay-item:nth-child(4) { transition-delay: 60ms; }
.nav-overlay-item:nth-child(5) { transition-delay: 80ms; }
.nav-overlay-item:nth-child(6) { transition-delay: 100ms; }
.nav-overlay-item:nth-child(7) { transition-delay: 120ms; }
.nav-overlay-item:nth-child(8) { transition-delay: 140ms; }
.nav-overlay-item:nth-child(9) { transition-delay: 160ms; }
.nav-overlay-item:nth-child(10) { transition-delay: 180ms; }

.nav-overlay-link {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  transition: opacity 0.15s ease-out, color 0.15s ease-out;
  padding: 8px 0;
  display: inline-block;
  color: var(--comd-charcoal);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-overlay-link {
    padding: 12px 0;
  }
}

.nav-overlay-link:hover {
  color: var(--comd-crimson);
}

.nav-overlay-link.is-active {
  color: var(--comd-crimson);
}

/* Subitems collapsed by default */
.nav-subitems {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.2s ease-out, opacity 0.15s ease-out;
}

.nav-subitems > div {
  overflow: hidden;
}

.nav-section.is-expanded .nav-subitems {
  grid-template-rows: 1fr;
  opacity: 1;
}

.nav-subitems-inner {
  padding: 8px 0 16px;
}

.nav-subitems-inner a {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0;
  transition: color 0.15s;
  color: var(--warm-400);
}

.nav-subitems-inner a:hover {
  color: var(--comd-crimson);
}

.nav-subitems-inner a.is-active {
  color: var(--comd-crimson);
}

/* Dim siblings when a section is expanded */
.nav-overlay-items.has-expanded .nav-overlay-item:not(.has-expanded-section) .nav-overlay-link {
  opacity: 0.3;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero-section {
  position: relative;
  color: var(--warm-100);
  overflow: hidden;
  background-color: var(--warm-900);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* Hero Image Carousel */
.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.is-active {
  opacity: 0.7;
}

.hero-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
}

.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-indicator.is-active {
  background: white;
  border-color: white;
}

.hero-indicator:hover {
  border-color: white;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(64, 64, 64, 0.8) 0%,
    rgba(64, 64, 64, 0.3) 40%,
    transparent 100%
  );
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
}

.hero-content-inner {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
  padding-top: 128px;
}

@media (min-width: 768px) {
  .hero-content-inner {
    padding-bottom: 112px;
  }
}

.hero-content {
  max-width: 768px;
}

.hero-title-group {
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
}

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

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

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 1.75rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    align-items: flex-end;
    gap: 64px;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--comd-pink);
  color: #ffffff;
  padding: 14px 28px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #ffffff;
  color: var(--comd-charcoal);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 14px 16px;
  transition: color 0.3s;
}

.btn-ghost:hover {
  color: #ffffff;
}

.btn-ghost svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.btn-crimson {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--comd-crimson);
  color: #ffffff;
  padding: 14px 28px;
  transition: all 0.3s;
}

.btn-crimson:hover {
  background-color: #ffffff;
  color: var(--comd-charcoal);
}

.btn-crimson svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-crimson:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 14px 28px;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* ========================================================================
   ABOUT SECTION
   ======================================================================== */
.about-section {
  background-color: var(--warm-100);
  border-bottom: 1px solid var(--warm-300);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--comd-crimson);
  margin-top: 32px;
  border-bottom: 2px solid rgba(212, 0, 107, 0.3);
  padding-bottom: 4px;
  transition: all 0.3s;
}

.about-link:hover {
  border-bottom-color: var(--comd-crimson);
  color: var(--comd-crimson);
}

.about-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.about-link:hover svg {
  transform: translateX(4px);
}

/* ========================================================================
   NEWS CAROUSEL
   ======================================================================== */
.news-section {
  border-bottom: 1px solid var(--warm-300);
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.news-nav-buttons {
  display: flex;
  gap: 8px;
}

.news-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--warm-300);
  color: var(--comd-charcoal);
  transition: all 0.2s;
  background: none;
  cursor: pointer;
}

.news-nav-btn:hover {
  color: var(--comd-pink);
  border-color: var(--comd-pink);
}

.news-nav-btn svg {
  width: 16px;
  height: 16px;
}

.news-carousel {
  overflow: hidden;
}

.news-track {
  display: flex;
  gap: 24px;
  transition: transform 0.3s ease;
}

.news-card {
  flex-shrink: 0;
  width: 280px;
}

@media (min-width: 768px) {
  .news-card {
    width: 320px;
  }
}

.news-card-image {
  aspect-ratio: 16 / 10;
  background-color: var(--warm-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.news-card-image svg {
  width: 48px;
  height: 48px;
  color: var(--warm-400);
}

.news-card-body {
  border-top: 2px solid var(--comd-pink);
  padding-top: 16px;
}

.news-card-date {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-tertiary);
}

.news-card-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--heading-1);
  margin-top: 8px;
  margin-bottom: 4px;
}

.news-card-speaker {
  font-size: 0.75rem;
  color: var(--body-secondary);
}

.news-card-type {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--comd-pink);
  font-weight: 500;
  margin-top: 8px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.news-card {
  text-decoration: none;
  color: inherit;
}

a.news-card:hover .news-card-body {
  border-top-color: var(--comd-charcoal);
}

/* ========================================================================
   EVENTS GRID (archive-events)
   ======================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  padding-top: 16px;
}

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

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

.events-grid .news-card {
  width: auto;
}

/* ========================================================================
   WORDPRESS PAGINATION
   ======================================================================== */
.pagination {
  margin-top: 48px;
  margin-bottom: 48px;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--comd-charcoal);
  border: 1px solid var(--warm-300);
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  border-color: var(--comd-pink);
  color: var(--comd-pink);
}

.pagination .page-numbers.current {
  background-color: var(--comd-pink);
  border-color: var(--comd-pink);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: none;
  color: var(--body-tertiary);
}

/* ========================================================================
   CTA SECTION
   ======================================================================== */
.cta-section {
  position: relative;
  background-color: var(--comd-charcoal);
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 10;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .cta-inner {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .cta-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-text h2 {
  font-size: 2rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .cta-text h2 {
    font-size: 2.5rem;
  }
}

.cta-subtext {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 512px;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: italic;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

/* ========================================================================
   MEMBERSHIPS SECTION
   ======================================================================== */
.memberships-section {
  border-top: 1px solid var(--warm-300);
  background-color: var(--warm-200);
}

.memberships-inner {
  padding-top: 24px;
  padding-bottom: 24px;
}

.memberships-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.membership-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--body-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer {
  background-color: #404040;
  color: var(--warm-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

/* Footer column 1 */
.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-dept-name {
  font-size: 0.75rem;
  color: var(--warm-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-uni-name {
  font-size: 0.6875rem;
  color: var(--warm-400);
}

.footer-seal {
  margin-top: 16px;
}

.footer-seal img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.4;
}

/* Footer headings */
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-400);
  font-weight: 500;
  margin-bottom: 16px;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--warm-200);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--comd-crimson);
}

.footer-external-icon {
  color: var(--warm-400);
}

/* Social icons */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.social-icons a {
  color: var(--warm-400);
  transition: color 0.2s;
}

.social-icons a:hover {
  color: var(--comd-crimson);
}

.social-icons svg {
  width: 16px;
  height: 16px;
}

/* Footer contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--warm-200);
}

.footer-contact a {
  color: var(--warm-200);
  transition: color 0.2s;
}

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

/* Footer membership badges */
.footer-memberships {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-membership-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warm-400);
  border: 1px solid rgba(170, 170, 170, 0.3);
  padding: 4px 8px;
}

/* Footer bottom bar */
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--warm-700);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom-left {
  font-size: 0.6875rem;
  color: var(--warm-400);
}

.footer-bottom-right {
  display: flex;
  gap: 16px;
  font-size: 0.6875rem;
  color: var(--warm-400);
}

.footer-bottom-right a {
  color: var(--warm-400);
  transition: color 0.2s;
}

.footer-bottom-right a:hover {
  color: var(--warm-200);
}

.footer-bottom-sep {
  opacity: 0.3;
}

/* ========================================================================
   PAGE TEMPLATE
   ======================================================================== */
.page-header {
  padding-top: 64px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .page-header {
    padding-top: 96px;
    padding-bottom: 56px;
  }
}

.page-header .overline {
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.page-description {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--body-secondary);
  max-width: var(--max-text);
}

.page-body {
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .page-body {
    padding-bottom: 112px;
  }
}

/* ========================================================================
   SCROLL REVEAL
   ======================================================================== */
.reveal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reveal.revealed {
  opacity: 1;
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }

/* ========================================================================
   MAIN WRAPPER
   ======================================================================== */
main {
  flex: 1;
}

/* ========================================================================
   WORDPRESS SPECIFIC (alignment, gutenberg, etc.)
   ======================================================================== */
.wp-block-image {
  margin-bottom: 1.25rem;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

/* ========================================================================
   SCREEN READER ONLY
   ======================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================================================
   LANGUAGE TOGGLE
   ======================================================================== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

/* Position lang toggle beside the centered nav on desktop */
.header-lang {
  display: none;
}

@media (min-width: 1024px) {
  .header-lang {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* Offset to the right of the nav — sits just after the last nav item */
    margin-left: 340px;
  }
}

@media (min-width: 1280px) {
  .header-lang {
    margin-left: 380px;
  }
}

.lang-toggle-option,
a.lang-toggle-option {
  color: #aaaaaa;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}

.lang-toggle-option:hover,
a.lang-toggle-option:hover {
  color: var(--comd-charcoal);
}

.lang-toggle-option.lang-active,
a.lang-toggle-option.lang-active {
  color: #d4006b;
}

.lang-toggle-sep {
  color: #aaaaaa;
  margin: 0 1px;
}

/* ========================================================================
   PEOPLE DIRECTORY
   ======================================================================== */
.people-section {
  margin-bottom: 48px;
}

.people-section-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--comd-charcoal);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--warm-300);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

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

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

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

.person-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--warm-200);
  background: var(--warm-50);
  transition: border-color 0.2s ease;
}

.person-card:hover {
  border-color: var(--comd-crimson);
}

.person-card:hover .person-photo img {
  transform: scale(1.02);
}

.person-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--warm-200);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.person-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-200);
}

.person-photo-placeholder span {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--warm-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.person-info {
  padding: 16px;
}

.person-designation {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--comd-crimson);
  font-weight: 500;
  margin-bottom: 4px;
}

.person-name {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--comd-charcoal);
  margin: 0 0 4px 0;
}

.person-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--body-tertiary);
  margin: 0;
  line-height: 1.5;
}

/* ========================================================================
   SINGLE PERSON PROFILE
   ======================================================================== */
.person-profile {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 16px;
}

@media (min-width: 768px) {
  .person-profile {
    flex-direction: row;
    gap: 48px;
  }
}

.person-profile-photo {
  flex-shrink: 0;
  width: 100%;
  max-width: 280px;
}

.person-profile-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.person-profile-body {
  flex: 1;
  min-width: 0;
}

.person-profile-meta {
  margin-top: 12px;
}

.person-profile-meta p {
  margin: 4px 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
}

.person-profile-meta a {
  color: var(--comd-crimson);
  text-decoration: none;
  transition: color 0.2s;
}

.person-profile-meta a:hover {
  color: var(--comd-charcoal);
}

.person-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--comd-crimson);
  text-decoration: none;
  border-bottom: 2px solid rgba(212, 0, 107, 0.3);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}

.person-back-link:hover {
  border-color: var(--comd-crimson);
}

/* ========================================================================
   AUDIENCE ENTRY POINTS
   ======================================================================== */
.entry-points-section {
  background-color: var(--warm-50);
}

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

@media (max-width: 768px) {
  .entry-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .entry-points-grid {
    grid-template-columns: 1fr;
  }
}

.entry-point-card {
  display: flex;
  flex-direction: column;
  background-color: var(--warm-100);
  border: 1px solid var(--warm-300);
  border-radius: 4px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--comd-charcoal);
  transition: border-color 0.2s ease;
}

.entry-point-card:hover {
  border-color: #d4006b;
}

.entry-point-icon {
  margin-bottom: 16px;
  color: var(--comd-charcoal);
}

.entry-point-icon svg {
  width: 32px;
  height: 32px;
}

.entry-point-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--comd-charcoal);
}

.entry-point-desc {
  font-size: 0.8125rem;
  color: var(--warm-500);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.entry-point-arrow {
  color: var(--comd-crimson);
  display: flex;
}

/* ========================================================================
   LIVE PRODUCTION FEED
   ======================================================================== */
.live-feed-section {
  background-color: var(--warm-50);
}

.live-feed-placeholder {
  background-color: #404040;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 16px;
}

.live-feed-text {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
