/*
Theme Name: Dr. Ruth Gibson Academic Theme
Theme URI: https://drruthgibson.com
Author: Gibson Site Team
Author URI: https://drruthgibson.com
Description: A professional academic theme designed for Dr. Ruth Gibson's portfolio. Features Stanford-inspired styling, responsive design, and custom post types for publications, projects, and talks.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gibson-theme
Tags: academic, portfolio, one-column, custom-menu, custom-logo, featured-images, theme-options
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --stanford-cardinal: #8C1515;
  --stanford-gold: #8D7359;
  --stanford-dark: #2e2d29;
  --stanford-cream: #f9f6ef;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --border-light: #e5e5e5;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
}

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

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  color: #212529;
  background: linear-gradient(135deg, var(--stanford-cream) 0%, #f5f2eb 25%, #f0eee7 50%, #ebe8e1 75%, #f5f2eb 100%);
  min-height: 100vh;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 0;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,0.5);
}
.breadcrumbs a {
  color: var(--stanford-cardinal);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumb-sep {
  margin: 0 8px;
  color: var(--border-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    padding: 0 40px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .container {
    max-width: 1200px;
    padding: 0 30px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
    padding: 0 25px;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans Pro', system-ui, sans-serif;
  font-weight: 600;
  color: var(--stanford-cardinal);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin: 3rem 0 1.5rem; }
h3 { font-size: 1.4rem; margin: 2rem 0 1rem; }

@media (min-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.6rem; }
  .profile-name { font-size: 2.8rem; }
  .profile-title { font-size: 1.3rem; }
  .profile-description { font-size: 1.1rem; line-height: 1.8; }
}

code, pre, .citation, .date, .pub-stats, .talk-date, .talk-views {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.92em;
}

em, .publication-venue, .pub-venue {
  font-style: italic;
  font-weight: 400;
}

strong, .publication-authors strong, .pub-authors strong {
  font-weight: 600;
}

p { margin-bottom: 1rem; }

a {
  color: var(--stanford-cardinal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #a01717;
  text-decoration: underline;
}

/* ==========================================================================
   Header
   ========================================================================== */
header, .site-header {
  border-bottom: 3px solid var(--stanford-gold);
  background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #a01717 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(140, 21, 21, 0.2);
}

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

.logo, .site-title a {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.site-title a:hover {
  color: white;
  text-decoration: none;
}

/* Desktop Navigation */
.desktop-nav, .main-navigation ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a, .main-navigation a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover, .main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--stanford-gold);
  border-bottom-color: var(--stanford-gold);
  text-decoration: none;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(140, 21, 21, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Nav Close Button */
.mobile-nav-close {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  left: auto !important;
  width: 56px;
  height: 56px;
  background: var(--stanford-cardinal);
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10002 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.active .mobile-nav-close {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-close .close-icon {
  line-height: 1;
  margin-top: -2px;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus {
  background: #a01717;
  border-color: var(--stanford-gold);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.mobile-nav-link {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active .mobile-nav-link:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-link:hover {
  color: var(--stanford-gold);
  transform: scale(1.1);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
main, .site-main {
  padding: 0;
  background: transparent;
  margin: 0;
}

.content-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(140, 21, 21, 0.1);
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .content-card {
    padding: 4rem;
    margin: 3rem 0;
  }
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(140, 21, 21, 0.15);
}

.profile-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 246, 239, 0.95) 100%);
  border: 1px solid rgba(140, 21, 21, 0.1);
}

/* ==========================================================================
   Profile Section
   ========================================================================== */
.profile {
  text-align: center;
  margin-bottom: 6rem;
}

@media (min-width: 992px) {
  .profile {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    text-align: left;
    align-items: center;
  }

  .profile-image-wrapper {
    justify-self: center;
  }

  .profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .social-links {
    justify-content: flex-start;
    margin-top: 2rem;
  }
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 6px solid var(--stanford-cardinal);
  box-shadow: 0 8px 24px rgba(140, 21, 21, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .profile-image {
    width: 400px;
    height: 400px;
    border: 8px solid var(--stanford-cardinal);
    box-shadow: 0 12px 36px rgba(140, 21, 21, 0.25);
  }
}

.profile-image:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(140, 21, 21, 0.3);
}

@media (min-width: 992px) {
  .profile-image:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 60px rgba(140, 21, 21, 0.35);
  }
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.profile-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.profile-description {
  max-width: 800px;
  margin: 1.5rem 0 2rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ==========================================================================
   Metrics Bar
   ========================================================================== */
.metrics-bar {
  background: linear-gradient(135deg, rgba(140, 21, 21, 0.95) 0%, rgba(160, 23, 23, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(140, 21, 21, 0.2);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(140, 21, 21, 0.2);
}

.metrics-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 992px) {
  .metrics-container {
    max-width: 1000px;
    gap: 3rem;
  }

  .metric-item {
    padding: 2rem 1rem;
  }

  .metric-number {
    font-size: 3rem;
  }

  .metric-label {
    font-size: 1rem;
  }
}

.metric-item {
  padding: 1rem;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ==========================================================================
   Research Highlights Grid
   ========================================================================== */
.research-highlights {
  margin: 3rem 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(140, 21, 21, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(140, 21, 21, 0.15);
}

.highlight-icon {
  font-size: 2.5rem;
  color: var(--stanford-cardinal);
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--stanford-cardinal);
}

.highlight-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.highlight-link {
  color: var(--stanford-cardinal);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.highlight-link:hover {
  color: #a01717;
}

.highlight-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.highlight-link:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   Impact Section
   ========================================================================== */
.impact-section {
  margin: 3rem 0;
  padding: 3rem;
}

.impact-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.impact-content {
  display: grid;
  gap: 2rem;
}

.impact-item-main {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(140, 21, 21, 0.03);
  border-radius: 8px;
  border-left: 4px solid var(--stanford-cardinal);
}

.impact-item-main > i {
  font-size: 1.5rem;
  color: var(--stanford-cardinal);
  flex-shrink: 0;
}

.impact-item-main h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.impact-item-main p {
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   Quick Links Bar
   ========================================================================== */
.quick-links-bar {
  background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #a01717 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.quick-links-bar h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.quick-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.quick-link-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* ==========================================================================
   Social Links
   ========================================================================== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 0.5rem;
}

.social-links a:hover {
  color: var(--stanford-cardinal);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* ==========================================================================
   Publications, Projects, Talks Archive Styling
   ========================================================================== */
.archive-header {
  background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.archive-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: white;
}

.archive-intro {
  font-size: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
}

.archive-highlight {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 20px;
  margin-top: 20px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Publication/Project/Talk Cards */
.post-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(140, 21, 21, 0.15);
}

.post-card h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  color: var(--stanford-cardinal);
}

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

.post-card h2 a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Single Post/Page Styling
   ========================================================================== */
.single-header {
  background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 3rem;
}

.single-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.single-meta {
  opacity: 0.9;
  font-size: 1rem;
}

.single-content {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ==========================================================================
   CV Page Styling
   ========================================================================== */
.cv-page {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 246, 239, 0.95) 100%);
  border: none;
  box-shadow: none;
  padding: 3rem 4rem;
}

.cv-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--stanford-cardinal);
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 3px solid var(--stanford-cardinal);
  padding-bottom: 1rem;
}

.cv-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--stanford-cardinal);
  margin: 3rem 0 1.5rem 0;
  padding-left: 2rem;
  border-left: 4px solid var(--stanford-cardinal);
  position: relative;
}

.cv-content h3::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--stanford-cardinal);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--stanford-cardinal);
}

.cv-content ul {
  margin-left: 2rem;
  border-left: 2px solid rgba(140, 21, 21, 0.2);
  padding-left: 2rem;
  list-style: none;
}

.cv-content ul li {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(140, 21, 21, 0.1);
}

.cv-content ul li:last-child {
  border-bottom: none;
}

.cv-content ul li::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: white;
  border: 2px solid var(--stanford-cardinal);
  border-radius: 50%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer, .site-footer {
  border-top: 3px solid var(--stanford-gold);
  background: var(--stanford-cardinal);
  color: white;
  margin-top: 6rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--stanford-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: white;
}

/* Footer Upper (Widgets Area) */
.site-footer .footer-upper {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer .footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.site-footer .footer-column {
  text-align: left;
}

.site-footer .footer-about {
  max-width: 300px;
}

.site-footer .footer-about-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.site-footer .widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--stanford-gold);
  display: inline-block;
}

.site-footer .footer-widget {
  margin-bottom: 1.5rem;
}

.site-footer .footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-widget ul li {
  margin-bottom: 0.5rem;
}

.site-footer .footer-widget ul li a {
  opacity: 0.9;
}

.site-footer .footer-widget ul li a:hover {
  opacity: 1;
}

/* Footer Social Links */
.site-footer .footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: white;
  transition: all 0.2s ease;
}

.site-footer .footer-social a:hover {
  background-color: var(--stanford-gold);
  color: var(--stanford-cardinal);
  transform: translateY(-2px);
}

.site-footer .footer-social-simple {
  justify-content: center;
  margin-bottom: 1rem;
}

/* Footer Lower (Copyright) */
.site-footer .footer-lower {
  padding: 1.5rem 0;
}

.site-footer .footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer .footer-copyright {
  margin: 0;
  opacity: 0.9;
}

.site-footer .footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-links a {
  opacity: 0.9;
  font-size: 0.85rem;
}

.site-footer .footer-links a:hover {
  opacity: 1;
}

/* Simple Layout (copyright only) */
.site-footer.footer-layout-simple .footer-lower {
  padding: 2rem 0;
}

/* Expanded Layout */
.site-footer.footer-layout-expanded .footer-widgets-grid {
  grid-template-columns: 1.5fr repeat(3, 1fr);
}

@media (max-width: 991px) {
  .site-footer.footer-layout-expanded .footer-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer .footer-about {
    max-width: none;
  }
}

@media (max-width: 576px) {
  .site-footer .footer-widgets-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-column {
    text-align: center;
  }

  .site-footer .footer-social {
    justify-content: center;
  }

  .site-footer .footer-bottom-content {
    flex-direction: column;
  }
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .hamburger-menu {
    display: flex;
  }

  .desktop-nav, .main-navigation {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  .header-content {
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
  }

  .profile-name {
    font-size: 1.8rem;
  }

  .social-links {
    gap: 1rem;
  }

  main, .site-main {
    padding: 2rem 0;
    margin: 1rem 0;
  }

  .metrics-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .metric-item {
    padding: 0.5rem;
  }

  .metric-number {
    font-size: 1.8rem;
  }

  .metric-label {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .metrics-bar {
    margin: 2rem 0;
    padding: 2rem 1rem;
  }

  .profile {
    margin-bottom: 3rem;
    display: block;
    text-align: center;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    border: 4px solid var(--stanford-cardinal);
    margin: 0 auto 1rem;
  }

  .cv-page {
    padding: 2rem;
  }

  .archive-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .metric-number {
    font-size: 1.5rem;
  }

  .metric-label {
    font-size: 0.7rem;
  }

  .profile-name {
    font-size: 1.6rem;
  }

  .cv-page {
    padding: 1.5rem;
  }

  .profile-image {
    width: 180px;
    height: 180px;
    border: 3px solid var(--stanford-cardinal);
  }
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

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

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

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

/* Admin bar adjustment */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* ==========================================================================
   Additional WordPress Compatibility Styles
   ========================================================================== */

/* Navbar container inside header */
.site-header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Desktop nav links styling */
.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.desktop-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Source Sans Pro', system-ui, sans-serif;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.desktop-nav a.current-menu-item {
  color: var(--stanford-gold);
  border-bottom-color: var(--stanford-gold);
  text-decoration: none;
}

/* Fix for profile section layout */
.profile.content-card.profile-card {
  display: block;
  text-align: center;
  padding: 3rem;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .profile.content-card.profile-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    text-align: left;
    align-items: center;
    padding: 4rem;
  }
}

.profile-image-wrapper {
  display: flex;
  justify-content: center;
}

@media (min-width: 992px) {
  .profile-image-wrapper {
    justify-content: center;
  }
}

/* Ensure fonts are applied throughout */
.site-main,
.container,
main {
  font-family: 'Crimson Text', Georgia, serif;
}

.profile-name,
.profile-title,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans Pro', system-ui, sans-serif;
}

/* Fix impact section grid */
.impact-content {
  display: grid;
  gap: 1.5rem;
}

/* Ensure no bullets on impact items */
.impact-content .impact-item-main {
  list-style: none;
}

/* WordPress body class fixes */
body.home-page .site-main {
  padding-top: 0;
}

/* Profile description line height */
.profile-description p {
  margin-bottom: 0;
  line-height: 1.8;
}

/* Footer container - layout-dependent alignment handled via footer classes */

/* Profile image margin fix */
.profile-image-wrapper .profile-image {
  margin: 0;
}

/* Override WordPress defaults */
.site-main .container {
  padding-top: 0;
}

/* Header content flex layout */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

/* Logo styling in header */
.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  font-family: 'Source Sans Pro', system-ui, sans-serif;
}

.logo:hover {
  color: white;
  text-decoration: none;
}

/* Mobile nav links proper styling */
.mobile-nav-link {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  font-family: 'Source Sans Pro', system-ui, sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-link:hover {
  color: var(--stanford-gold);
  text-decoration: none;
}

/* Staggered animation for mobile nav */
.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active .mobile-nav-link:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav.active .mobile-nav-link:nth-child(6) { transition-delay: 0.6s; }

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }
}

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

/* ==================== CV PAGE STYLES ==================== */
.cv-header {
    background: linear-gradient(135deg, #8C1515 0%, #2E2D29 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 0;
}

.cv-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cv-profile-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cv-profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    object-position: center top;
}

.cv-header-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    color: white;
}

.cv-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.95;
}

.cv-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* CV Metrics Bar */
.cv-metrics-bar {
    background: #F4F4F4;
    padding: 40px 0;
    border-bottom: 1px solid #E0E0E0;
}

.cv-metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cv-metrics-bar .metric-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.cv-metrics-bar .metric-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-metrics-bar .metric-icon {
    font-size: 2rem;
    color: #8C1515;
    margin-bottom: 10px;
}

.cv-metrics-bar .metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2E2D29;
    margin-bottom: 5px;
}

.cv-metrics-bar .metric-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CV Main Content */
.cv-main {
    padding: 60px 0;
    background: white;
}

.cv-content {
    max-width: 1000px;
    margin: 0 auto;
}

.cv-content h2 {
    color: #8C1515;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F0F0F0;
}

.cv-content h3 {
    color: #2E2D29;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.cv-content p {
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

.cv-content ul {
    margin-left: 20px;
}

.cv-content li {
    line-height: 1.7;
    margin-bottom: 8px;
    color: #333;
}

.cv-content hr {
    border: none;
    border-top: 1px solid #E0E0E0;
    margin: 30px 0;
}

.cv-content a {
    color: #8C1515;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.cv-content a:hover {
    border-bottom-color: #8C1515;
}

.cv-content strong {
    font-weight: 600;
    color: #2E2D29;
}

.cv-content em {
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .cv-profile-section {
        flex-direction: column;
        text-align: center;
    }

    .cv-profile-photo {
        width: 150px;
        height: 150px;
    }

    .cv-header-text h1 {
        font-size: 2rem;
    }

    .cv-metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ==================== CONTACT PAGE STYLES ==================== */
.contact-header {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.contact-header-overlay {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.02);
    transform: rotate(35deg);
}

.contact-header .container {
    position: relative;
    z-index: 2;
}

.contact-header-content {
    text-align: center;
}

.contact-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    display: block;
    margin: 0 auto 30px;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.contact-subtitle {
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto 25px;
    line-height: 1.8;
    opacity: 0.95;
}

.contact-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Contact Main Section */
.contact-main {
    background: transparent;
}

.contact-section {
    padding: 60px 0;
}

.contact-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--stanford-cardinal);
}

.contact-card-icon {
    font-size: 2rem;
    color: var(--stanford-cardinal);
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--stanford-cardinal);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-card p {
    margin-bottom: 0;
    line-height: 1.7;
}

.contact-card .profile-links a {
    display: inline-block;
    margin-bottom: 4px;
}

/* Collaboration Section */
.collaboration-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(140, 21, 21, 0.1);
}

.collaboration-section h2 {
    color: var(--stanford-cardinal);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5rem;
}

.collaboration-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.collaboration-content ul {
    list-style: disc;
    padding-left: 25px;
}

.collaboration-content li {
    margin-bottom: 12px;
}

.collaboration-content h3 {
    color: var(--stanford-cardinal);
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Social Media Section */
.social-media-section {
    margin-top: 60px;
    text-align: center;
}

.social-media-section h3 {
    color: var(--stanford-cardinal);
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    font-size: 2rem;
    color: var(--stanford-cardinal);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #a01717;
    transform: translateY(-3px);
}

/* Media Inquiries Section */
.media-inquiries-section {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}

.media-inquiries-section h3 {
    color: var(--stanford-cardinal);
    margin-bottom: 15px;
}

.media-inquiries-section p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.media-inquiries-section a {
    color: var(--stanford-cardinal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.media-inquiries-section a:hover {
    border-bottom-color: var(--stanford-cardinal);
}

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .collaboration-section {
        padding: 25px;
    }
    
    .collaboration-section h2 {
        font-size: 1.8rem;
    }
}

/* ==================== PUBLICATIONS PAGE STYLES ==================== */
.publications-header {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.publications-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.publications-intro {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

.publications-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.publications-main {
    background: transparent;
}

.publication-section {
    padding: 60px 0;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.publication-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(140, 21, 21, 0.15);
}

.publication-title,
.pub-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.4;
}

.publication-authors,
.pub-authors {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #555;
}

.publication-venue,
.pub-venue {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--stanford-cardinal);
    font-weight: 500;
    font-style: italic;
}

.publication-summary,
.pub-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.publication-links,
.pub-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-link,
.pub-links a {
    padding: 8px 15px;
    background: rgba(140, 21, 21, 0.1);
    color: var(--stanford-cardinal);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pub-link:hover,
.pub-links a:hover {
    background: var(--stanford-cardinal);
    color: white;
    text-decoration: none;
}

.pub-link.primary {
    background: var(--stanford-cardinal);
    color: white;
}

/* ==================== PROJECTS PAGE STYLES ==================== */
.projects-header {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.projects-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.projects-intro {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

.projects-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.projects-main {
    background: transparent;
}

.project-section {
    padding: 60px 0;
    background-color: #f9fafb;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.project-card.featured {
    border: 2px solid var(--stanford-cardinal);
    box-shadow: 0 8px 30px rgba(140, 21, 21, 0.15);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(140, 21, 21, 0.2);
}

.project-badge {
    position: absolute;
    top: -12px;
    right: 25px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-badge.current {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.project-badge.completed {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.project-timeline {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--stanford-cardinal);
    line-height: 1.4;
}

.project-affiliation {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-style: italic;
}

.project-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ==================== TALKS PAGE STYLES ==================== */
.talks-header {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.talks-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.talks-intro {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

.talks-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.talks-main {
    background: transparent;
}

.video-section {
    padding: 60px 0;
    position: relative;
}

.video-section:nth-child(even) {
    background-color: #ffffff;
}

.video-section:nth-child(odd) {
    background-color: #f9fafb;
}

.video-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 768px) {
    .video-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: flex-start;
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px 0;
}

@media (min-width: 768px) {
    .video-info {
        padding: 0;
    }
}

.video-info h2 {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.talk-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.talk-date {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

.talk-views {
    color: var(--stanford-gold);
    font-weight: 500;
    font-size: 0.9rem;
}

.talk-summary {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .publications-header h1,
    .projects-header h1,
    .talks-header h1 {
        font-size: 2rem;
    }
    
    .publications-intro,
    .projects-intro,
    .talks-intro {
        font-size: 1rem;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-card {
        padding: 25px;
    }
    
    .video-info h2 {
        font-size: 1.5rem;
    }
    
    .video-section {
        padding: 40px 0;
    }
    
    .talk-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* ==================== PUBLICATIONS 4-COLUMN METRICS BAR ==================== */
.publications-metrics-bar {
    background: linear-gradient(135deg, rgba(140, 21, 21, 0.95) 0%, rgba(160, 23, 23, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(140, 21, 21, 0.2);
    padding: 3rem 0;
    margin: 0;
    box-shadow: 0 8px 32px rgba(140, 21, 21, 0.2);
}

.publications-metrics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.publications-metrics-container .metric-item {
    padding: 1rem;
}

.publications-metrics-container .metric-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.publications-metrics-container .metric-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@media (max-width: 768px) {
    .publications-metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .publications-metrics-container .metric-number {
        font-size: 1.6rem;
    }

    .publications-metrics-container .metric-label {
        font-size: 0.75rem;
    }
}

/* ==================== PUBLICATION BADGES ==================== */
.pub-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-badge.lancet {
    background: #d32f2f;
}

.pub-badge.fsi {
    background: var(--stanford-cardinal);
}

.pub-badge.royal-society {
    background: #1976d2;
}

.pub-badge.lancet-public {
    background: #388e3c;
}

.pub-badge.bmj {
    background: #0d47a1;
}

.pub-badge.nature {
    background: #e65100;
}

/* ==================== PUBLICATION STATS ==================== */
.pub-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #777;
}

.stat i {
    color: var(--stanford-cardinal);
}

/* ==================== KEY FINDINGS BOX ==================== */
.key-findings {
    background: linear-gradient(135deg, rgba(140, 21, 21, 0.05) 0%, rgba(47, 45, 41, 0.05) 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 5px solid var(--stanford-cardinal);
}

.key-findings h4 {
    color: var(--stanford-cardinal);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.key-findings ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
}

.key-findings li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #444;
    line-height: 1.6;
    border-bottom: none;
}

.key-findings li:before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--stanford-cardinal);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==================== KEY POINTS (for talks) ==================== */
.key-points {
    background: linear-gradient(135deg, rgba(140, 21, 21, 0.1) 0%, rgba(47, 45, 41, 0.1) 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--stanford-cardinal);
}

.key-points h3 {
    color: var(--stanford-cardinal);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.key-points ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
}

.key-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #555;
    border-bottom: none;
}

.key-points li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--stanford-cardinal);
    font-weight: bold;
}

/* ==================== SUBSTACK CARD SECTION ==================== */
.substack-card-section {
    padding: 40px 0 20px;
}

.substack-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    gap: 16px;
}

.substack-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #FF6719;
    text-decoration: none;
}

.substack-card-logo {
    width: 56px;
    height: 56px;
    background: #FF6719;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.substack-card-logo svg {
    color: white;
    width: 28px;
    height: 28px;
}

.substack-card-content {
    flex: 1;
    min-width: 0;
}

.substack-card-title {
    color: #121212;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
}

.substack-card-subtitle {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.substack-card-button {
    background: #FF6719;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.substack-card:hover .substack-card-button {
    background: #E85A10;
}

@media (max-width: 768px) {
    .substack-card {
        flex-wrap: wrap;
        padding: 16px;
    }
    .substack-card-logo {
        width: 48px;
        height: 48px;
    }
    .substack-card-logo svg {
        width: 24px;
        height: 24px;
    }
    .substack-card-content {
        flex: 1 1 calc(100% - 70px);
    }
    .substack-card-button {
        width: 100%;
        text-align: center;
        margin-top: 12px;
    }
}

/* ==================== YOUTUBE CHANNEL BANNER ==================== */
.youtube-channel-banner {
    padding: 30px 0;
    background: transparent;
}

.youtube-channel-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.youtube-channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #FF0000;
}

.youtube-logo {
    flex-shrink: 0;
}

.youtube-channel-info {
    flex: 1;
}

.youtube-channel-info h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.youtube-channel-info p {
    font-size: 1rem;
    color: #606060;
    margin: 0;
}

.youtube-subscribe-btn {
    background: #FF0000;
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: background 0.2s;
}

.youtube-channel-card:hover .youtube-subscribe-btn {
    background: #cc0000;
}

@media (max-width: 768px) {
    .youtube-channel-card {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
        padding: 20px;
    }
    .youtube-channel-info {
        flex: 1 1 100%;
    }
    .youtube-channel-info h3 {
        font-size: 1.5rem;
    }
    .youtube-subscribe-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* ==================== ACADEMIC PROFILES DARK SECTION ==================== */
.academic-profiles {
    background: #2F2D29;
    color: white;
    padding: 60px 0;
}

.academic-profiles h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: white;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.profile-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.profile-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.profile-item i {
    font-size: 2.5rem;
    color: #B83A4B;
    margin-bottom: 15px;
}

.profile-item h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.profile-item p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.profile-item a {
    color: #B83A4B;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.profile-item a:hover {
    color: #d64d5f;
    text-decoration: underline;
}

/* ==================== MEDIA COVERAGE DARK SECTION ==================== */
.media-coverage {
    background: #2F2D29;
    color: white;
    padding: 60px 0;
}

.media-coverage h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: white;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.media-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.media-outlet {
    color: #B83A4B;
    font-weight: 600;
    margin-bottom: 8px;
}

.media-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.media-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.media-quote {
    color: #ccc;
    font-style: italic;
    font-size: 0.95rem;
}

/* ==================== POLICY IMPACT DARK SECTION (for projects) ==================== */
.policy-impact {
    background: #2F2D29;
    color: white;
    padding: 60px 0;
}

.policy-impact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: white;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.policy-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.policy-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.policy-item i {
    font-size: 2rem;
    color: #B83A4B;
    margin-bottom: 15px;
}

.policy-item h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.policy-item p {
    color: #ccc;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==================== MISSION STATEMENT / RESEARCH MISSION QUOTE ==================== */
.mission-statement,
.research-mission {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #53284F 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 60px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mission-statement p,
.research-mission p {
    font-size: 1.3rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: white;
}

@media (max-width: 768px) {
    .mission-statement,
    .research-mission {
        padding: 30px 20px;
        margin: 40px 0;
    }

    .mission-statement p,
    .research-mission p {
        font-size: 1.1rem;
    }

    .academic-profiles h2,
    .media-coverage h2,
    .policy-impact h2 {
        font-size: 1.8rem;
    }
}

/* ==================== SECTION TITLE STYLE ==================== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--stanford-cardinal);
    font-weight: 700;
}

/* ==================== FEATURED PUBLICATION SECTION ==================== */
.publication-content.featured {
    background: #f9fafb;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.publication-content.featured .publication-title {
    font-size: 1.8rem;
}

/* ==================== PROJECTS METRICS BAR ==================== */
.projects-metrics-bar {
    background: linear-gradient(135deg, rgba(140, 21, 21, 0.95) 0%, rgba(160, 23, 23, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(140, 21, 21, 0.2);
    padding: 3rem 0;
    margin: 0;
    box-shadow: 0 8px 32px rgba(140, 21, 21, 0.2);
}

.projects-metrics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.projects-metrics-container .metric-item {
    padding: 1rem;
}

.projects-metrics-container .metric-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.projects-metrics-container .metric-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@media (max-width: 768px) {
    .projects-metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ====== CONTACT PAGE HERO STYLING ====== */

.contact-header {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.contact-header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width=%2760%27 height=%2760%27 viewBox=%270 0 60 60%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cg fill=%27%23ffffff%27 fill-opacity=%270.03%27%3E%3Cpath d=%27M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

.contact-header-overlay {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.02);
    transform: rotate(35deg);
}

.contact-header-content {
    position: relative;
    z-index: 2;
}

.contact-header .profile-image-wrapper {
    margin-bottom: 30px;
}

.contact-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 auto;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.contact-subtitle {
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto 25px;
    line-height: 1.8;
    opacity: 0.95;
}

.contact-highlight {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

/* Contact Main Content */
.contact-main {
    background: transparent;
}

.contact-section {
    padding: 60px 0;
}

.contact-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--stanford-cardinal);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(140, 21, 21, 0.15);
}

.contact-card-icon {
    font-size: 2rem;
    color: var(--stanford-cardinal);
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--stanford-cardinal);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-card p {
    margin-bottom: 0;
    line-height: 1.8;
}

.contact-card .profile-links a {
    color: var(--stanford-cardinal);
    transition: color 0.2s ease;
}

.contact-card .profile-links a:hover {
    color: #a01717;
}

/* Collaboration Section */
.collaboration-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(140,21,21,0.1);
    margin-bottom: 60px;
}

.collaboration-section h2 {
    color: var(--stanford-cardinal);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5rem;
}

.collaboration-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.collaboration-content ul {
    list-style: none;
    padding-left: 0;
}

.collaboration-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.collaboration-content li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--stanford-cardinal);
    font-weight: bold;
}

.collaboration-content h3 {
    color: var(--stanford-cardinal);
    margin: 2rem 0 1rem;
}

/* Social Media Section */
.social-media-section {
    margin-top: 60px;
    text-align: center;
}

.social-media-section h3 {
    color: var(--stanford-cardinal);
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    font-size: 2rem;
    color: var(--stanford-cardinal);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #a01717;
    transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-header {
        padding: 60px 0;
    }

    .contact-header h1 {
        font-size: 2.2rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-profile-photo {
        width: 120px;
        height: 120px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .collaboration-section {
        padding: 30px 20px;
    }

    .collaboration-section h2 {
        font-size: 2rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-icons a {
        font-size: 1.5rem;
    }
}

/* ==================== ENHANCED ACADEMIC PROFILES WITH ICON LAYOUT ==================== */
.profile-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
}

.profile-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(184, 58, 75, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon i {
    font-size: 1.8rem;
    color: #B83A4B;
    margin-bottom: 0;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.profile-info a {
    color: #B83A4B;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.profile-info a:hover {
    color: #d64d5f;
    text-decoration: underline;
}

/* ==================== FEATURED PUBLICATION ENHANCED STYLES ==================== */
.publication-section.featured {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    padding: 60px 0;
}

.publication-section.featured .publication-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(140, 21, 21, 0.1);
    border: 1px solid rgba(140, 21, 21, 0.1);
}

.publication-section.featured .publication-title {
    font-size: 1.8rem;
    color: var(--stanford-cardinal);
    margin-bottom: 15px;
    line-height: 1.3;
}

.publication-section.featured .publication-authors {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}

.publication-section.featured .publication-authors strong {
    color: var(--stanford-cardinal);
    font-weight: 600;
}

.publication-section.featured .publication-venue {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.publication-section.featured .publication-summary {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.publication-section.featured .publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.publication-section.featured .pub-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.publication-section.featured .pub-link:hover {
    background: var(--stanford-cardinal);
    color: white;
    border-color: var(--stanford-cardinal);
    transform: translateY(-2px);
}

.publication-section.featured .pub-link.primary {
    background: var(--stanford-cardinal);
    color: white;
    border-color: var(--stanford-cardinal);
}

.publication-section.featured .pub-link.primary:hover {
    background: #a01b1b;
    transform: translateY(-2px);
}

.publication-section.featured .pub-link i {
    font-size: 1rem;
}

/* ==================== SECTION TITLE STYLING ==================== */
.section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.publication-section.featured .section-title {
    color: var(--stanford-cardinal);
}

/* ==================== RESEARCH MISSION QUOTE BOX ==================== */
.research-mission {
    background: #2F2D29;
    color: white;
    padding: 50px;
    border-radius: 16px;
    margin: 60px 0;
    text-align: center;
    position: relative;
}

.research-mission::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: rgba(184, 58, 75, 0.3);
    font-family: Georgia, serif;
    line-height: 1;
}

.research-mission p {
    font-size: 1.3rem;
    line-height: 1.8;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    color: #e0e0e0;
}

/* ==================== BADGE COLORS ==================== */
.pub-badge.jama {
    background: #1E5E3F;
    color: white;
}

.pub-badge.pnas {
    background: #0D47A1;
    color: white;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .profile-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .publication-section.featured .publication-content {
        padding: 25px;
    }

    .publication-section.featured .publication-title {
        font-size: 1.4rem;
    }

    .publication-section.featured .publication-links {
        flex-direction: column;
    }

    .publication-section.featured .pub-link {
        justify-content: center;
    }

    .research-mission {
        padding: 30px 20px;
    }

    .research-mission p {
        font-size: 1.1rem;
    }

    .research-mission::before {
        font-size: 3rem;
        top: 10px;
        left: 15px;
    }
}

/* ==================== SINGLE POST TEMPLATES - SHARED STYLES ==================== */

.single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Base Styles */
.talk-article,
.publication-article,
.project-article {
    background: white;
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header Sections */
.talk-header,
.publication-header,
.project-header {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

/* Type/Status Badges */
.talk-type,
.publication-type,
.project-status {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-status.status-current,
.project-status.status-active {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.project-status.status-completed {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
}

/* Titles */
.talk-title,
.publication-title,
.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Authors (Publication) */
.publication-header .publication-authors {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-style: italic;
}

/* Meta Information */
.talk-meta,
.publication-meta,
.project-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.meta-item i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.meta-item a {
    color: white;
    text-decoration: underline;
}

.meta-item a:hover {
    color: var(--stanford-gold);
}

/* Action Buttons */
.talk-actions,
.publication-actions,
.project-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

.action-btn.primary {
    background: white;
    color: var(--stanford-cardinal);
    border-color: white;
}

.action-btn.primary:hover {
    background: var(--stanford-gold);
    border-color: var(--stanford-gold);
    color: white;
}

.action-btn i {
    font-size: 1rem;
}

/* Video Section */
.talk-video {
    padding: 40px;
    background: #f9fafb;
}

.talk-video .video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Featured Images */
.talk-featured-image,
.publication-featured-image,
.project-featured-image {
    padding: 40px;
    background: #f9fafb;
    text-align: center;
}

.talk-featured-image img,
.publication-featured-image img,
.project-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.talk-content,
.publication-content,
.project-content {
    padding: 50px 40px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.talk-content h2,
.publication-content h2,
.project-content h2 {
    color: var(--stanford-cardinal);
    font-size: 1.6rem;
    margin: 30px 0 15px;
    font-weight: 600;
}

.talk-content h3,
.publication-content h3,
.project-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 25px 0 12px;
    font-weight: 600;
}

.talk-content p,
.publication-content p,
.project-content p {
    margin-bottom: 20px;
}

.talk-content ul,
.publication-content ul,
.project-content ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.talk-content li,
.publication-content li,
.project-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.talk-content li:before,
.publication-content li:before,
.project-content li:before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--stanford-cardinal);
    font-size: 0.8rem;
}

/* Collaborators Section (Project) */
.project-collaborators {
    padding: 40px;
    background: linear-gradient(135deg, rgba(140, 21, 21, 0.05) 0%, rgba(47, 45, 41, 0.05) 100%);
    border-top: 1px solid rgba(140, 21, 21, 0.1);
}

.project-collaborators h3 {
    color: var(--stanford-cardinal);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.collaborators-content {
    color: #555;
    line-height: 1.7;
}

/* Footer / Back Links */
.talk-footer,
.publication-footer,
.project-footer {
    padding: 30px 40px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stanford-cardinal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #620B0B;
    gap: 12px;
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* ==================== ENHANCED TALK SINGLE PAGE ==================== */

.talk-single .talk-header {
    position: relative;
    overflow: hidden;
}

.talk-single .talk-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ==================== ENHANCED PUBLICATION SINGLE PAGE ==================== */

.publication-single .publication-header {
    position: relative;
}

.publication-single .publication-meta .meta-item strong {
    color: white;
}

/* Citation Box for Publications */
.publication-citation {
    padding: 30px 40px;
    background: #f9fafb;
    border-left: 4px solid var(--stanford-cardinal);
    margin: 0;
}

.publication-citation h4 {
    color: var(--stanford-cardinal);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-citation p {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    word-break: break-word;
}

/* ==================== ENHANCED PROJECT SINGLE PAGE ==================== */

.project-single .project-header::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--stanford-gold);
    border-radius: 2px;
}

/* ==================== RESPONSIVE STYLES ==================== */

@media (max-width: 768px) {
    .single-container {
        padding: 0 15px;
    }

    .talk-article,
    .publication-article,
    .project-article {
        margin: 20px 0;
        border-radius: 12px;
    }

    .talk-header,
    .publication-header,
    .project-header {
        padding: 35px 25px;
    }

    .talk-title,
    .publication-title,
    .project-title {
        font-size: 1.6rem;
    }

    .talk-meta,
    .publication-meta,
    .project-meta {
        flex-direction: column;
        gap: 15px;
    }

    .meta-item {
        justify-content: center;
    }

    .talk-actions,
    .publication-actions,
    .project-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .talk-video,
    .talk-featured-image,
    .publication-featured-image,
    .project-featured-image {
        padding: 25px 20px;
    }

    .talk-content,
    .publication-content,
    .project-content {
        padding: 30px 25px;
    }

    .project-collaborators {
        padding: 25px;
    }

    .talk-footer,
    .publication-footer,
    .project-footer {
        padding: 20px 25px;
    }
}

/* ==================== TALKS PAGE ENHANCEMENTS ==================== */

/* Enhance video section alternating backgrounds */
.talks-main .video-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.talks-main .video-section:last-of-type {
    border-bottom: none;
}

/* Enhanced talk meta in list view */
.video-info .talk-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.video-info .talk-date {
    color: #666;
    font-style: italic;
}

.video-info .talk-views {
    color: var(--stanford-cardinal);
    font-weight: 600;
}

.video-info .talk-views i {
    margin-right: 5px;
}

/* Enhanced talk summary */
.video-info .talk-summary {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.video-info .talk-summary p {
    margin-bottom: 15px;
}

/* Key Points box enhancement */
.video-info .key-points {
    background: linear-gradient(135deg, rgba(140, 21, 21, 0.08) 0%, rgba(47, 45, 41, 0.05) 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--stanford-cardinal);
    margin-top: 20px;
}

.video-info .key-points h3 {
    color: var(--stanford-cardinal);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.video-info .key-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-info .key-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #444;
    line-height: 1.6;
}

.video-info .key-points li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--stanford-cardinal);
    font-weight: bold;
}

/* Media Coverage Section Enhancement */
.media-coverage {
    background: #2F2D29;
    padding: 70px 0;
}

.media-coverage h2 {
    color: white;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
}

/* Featured Media Article Card */
.featured-media-article {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid var(--stanford-cardinal);
    border-radius: 12px;
    padding: 35px 40px;
    margin-bottom: 50px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.featured-media-article:hover {
    border-left-color: #a51d1d;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-media-label {
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--stanford-cardinal);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(140, 21, 21, 0.3);
}

.featured-media-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-media-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.featured-media-source {
    color: var(--stanford-cardinal);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-media-date {
    color: #666;
    font-size: 0.9rem;
}

.featured-media-title {
    color: #212529;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 5px 0;
}

.featured-media-title:hover {
    color: var(--stanford-cardinal);
}

.featured-media-excerpt {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.featured-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--stanford-cardinal);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    width: fit-content;
    transition: all 0.3s ease;
}

.featured-media-btn:hover {
    background: #a51d1d;
    transform: translateX(5px);
    color: white;
    text-decoration: none;
}

.featured-media-btn svg {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .featured-media-article {
        padding: 30px 25px;
        margin-bottom: 35px;
    }

    .featured-media-label {
        left: 20px;
    }

    .featured-media-title {
        font-size: 1.25rem;
    }

    .featured-media-excerpt {
        font-size: 0.95rem;
    }
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.media-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.media-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.media-outlet {
    color: var(--stanford-cardinal);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.media-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.media-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.media-quote {
    color: #aaa;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px solid var(--stanford-cardinal);
    padding-left: 15px;
}

/* Mission Statement Enhancement */
.mission-statement {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    color: white;
    padding: 60px 50px;
    border-radius: 16px;
    margin: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-statement::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.mission-statement p {
    font-size: 1.4rem;
    line-height: 1.8;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .media-coverage {
        padding: 50px 0;
    }

    .media-coverage h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .media-item {
        padding: 25px;
    }

    .mission-statement {
        padding: 40px 25px;
        margin: 40px 0;
    }

    .mission-statement p {
        font-size: 1.15rem;
    }

    .mission-statement::before {
        font-size: 4rem;
        top: 10px;
        left: 15px;
    }
}

/* ==========================================================================
   Page & Post Content Areas
   Match existing .talk-content / .publication-content / .project-content
   ========================================================================== */

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-article,
.post-article {
    background: white;
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-header,
.post-header {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.page-title,
.post-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.post-meta .meta-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.post-meta .meta-item i {
    color: rgba(255, 255, 255, 0.7);
}

.post-meta .meta-item a {
    color: white;
    text-decoration: underline;
}

.post-featured-image {
    padding: 30px 40px;
    text-align: center;
    background: #fafafa;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Content Sections - Page & Post */
.page-content,
.post-content {
    padding: 50px 40px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.page-content h2,
.post-content h2 {
    color: var(--stanford-cardinal);
    font-size: 1.6rem;
    margin: 30px 0 15px;
    font-weight: 600;
}

.page-content h3,
.post-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 25px 0 12px;
    font-weight: 600;
}

.page-content h4,
.post-content h4 {
    color: var(--stanford-cardinal);
    font-size: 1.1rem;
    margin: 20px 0 10px;
    font-weight: 600;
}

.page-content p,
.post-content p {
    margin-bottom: 20px;
}

.page-content ul,
.post-content ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.page-content li,
.post-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.page-content ul > li:before,
.post-content ul > li:before {
    content: "\25C6";
    position: absolute;
    left: 0;
    color: var(--stanford-cardinal);
    font-size: 0.8rem;
}

.page-content ol,
.post-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.page-content ol li,
.post-content ol li {
    padding-left: 5px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.page-content ol li:before {
    content: none;
}

.post-content ol li:before {
    content: none;
}

.page-content a,
.post-content a {
    color: var(--stanford-cardinal);
    text-decoration: underline;
    transition: color 0.2s;
}

.page-content a:hover,
.post-content a:hover {
    color: #620B0B;
}

.page-content blockquote,
.post-content blockquote {
    border-left: 4px solid var(--stanford-cardinal);
    margin: 30px 0;
    padding: 20px 30px;
    background: rgba(140, 21, 21, 0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.page-content blockquote p:last-child,
.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.page-content img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.page-content table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
}

.page-content th,
.post-content th {
    background: var(--stanford-cardinal);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.page-content td,
.post-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.page-content tr:hover td,
.post-content tr:hover td {
    background: rgba(140, 21, 21, 0.03);
}

.page-content hr,
.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--stanford-cardinal), transparent);
    margin: 40px 0;
    opacity: 0.3;
}

.page-content pre,
.post-content pre {
    background: #2e2d29;
    color: #f9f6ef;
    padding: 20px 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-content code,
.post-content code {
    background: rgba(140, 21, 21, 0.08);
    color: var(--stanford-cardinal);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
}

.page-content pre code,
.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Post Tags */
.post-tags {
    padding: 20px 40px;
    border-top: 1px solid #e5e5e5;
    color: #666;
    font-size: 0.9rem;
}

.post-tags i {
    color: var(--stanford-cardinal);
    margin-right: 8px;
}

.post-tags a {
    color: var(--stanford-cardinal);
    text-decoration: none;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Post Footer / Navigation */
.post-footer {
    padding: 25px 40px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.post-footer .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-footer .nav-links a {
    color: var(--stanford-cardinal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.post-footer .nav-links a:hover {
    color: #620B0B;
}

/* Page & Post responsive */
@media (max-width: 768px) {
    .page-container {
        padding: 0 15px;
    }

    .page-article,
    .post-article {
        margin: 20px 0;
        border-radius: 12px;
    }

    .page-header,
    .post-header {
        padding: 35px 25px;
    }

    .page-title,
    .post-title {
        font-size: 1.6rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 15px;
    }

    .page-content,
    .post-content {
        padding: 30px 25px;
    }

    .post-featured-image {
        padding: 20px 15px;
    }

    .post-tags {
        padding: 15px 25px;
    }

    .post-footer {
        padding: 20px 25px;
    }

    .post-footer .nav-links {
        flex-direction: column;
    }
}

/* ==========================================================================
   WordPress Block Editor (Gutenberg) Styles
   Keep consistent with existing theme design
   ========================================================================== */

/* Group Block - Container */
.wp-block-group {
    margin: 30px 0;
}

.wp-block-group.has-background {
    padding: 30px;
    border-radius: 12px;
}

/* Columns Block */
.wp-block-columns {
    margin: 30px 0;
    gap: 30px;
}

.wp-block-column {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .wp-block-columns {
        gap: 20px;
    }
}

/* Button Block */
.wp-block-button .wp-block-button__link {
    font-family: 'Source Sans Pro', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wp-block-button .wp-block-button__link:not(.has-background) {
    background: var(--stanford-cardinal);
    color: white;
}

.wp-block-button .wp-block-button__link:not(.has-background):hover {
    background: #620B0B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 21, 21, 0.3);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--stanford-cardinal);
    color: var(--stanford-cardinal);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--stanford-cardinal);
    color: white;
}

/* Buttons group */
.wp-block-buttons {
    margin: 25px 0;
    gap: 15px;
}

/* Quote Block */
.wp-block-quote {
    border-left: 4px solid var(--stanford-cardinal);
    margin: 30px 0;
    padding: 20px 30px;
    background: rgba(140, 21, 21, 0.04);
    border-radius: 0 12px 12px 0;
}

.wp-block-quote p {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.wp-block-quote cite,
.wp-block-quote .wp-block-quote__citation {
    display: block;
    margin-top: 12px;
    color: var(--stanford-cardinal);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
}

.wp-block-quote.is-style-large,
.wp-block-quote.is-large {
    padding: 30px 40px;
}

.wp-block-quote.is-style-large p,
.wp-block-quote.is-large p {
    font-size: 1.3rem;
}

/* Pullquote Block */
.wp-block-pullquote {
    border-top: 3px solid var(--stanford-cardinal);
    border-bottom: 3px solid var(--stanford-cardinal);
    padding: 30px 0;
    margin: 40px 0;
    text-align: center;
}

.wp-block-pullquote blockquote {
    border-left: none;
    background: none;
    padding: 0;
    margin: 0;
}

.wp-block-pullquote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--stanford-cardinal);
    line-height: 1.7;
}

.wp-block-pullquote cite {
    display: block;
    margin-top: 15px;
    color: var(--stanford-gold);
    font-size: 0.95rem;
    font-style: normal;
}

/* Separator Block */
.wp-block-separator {
    border: none;
    margin: 40px auto;
    opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--stanford-cardinal), transparent);
}

.wp-block-separator.is-style-wide {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--stanford-cardinal), transparent);
}

.wp-block-separator.is-style-dots {
    background: none;
    text-align: center;
}

.wp-block-separator.is-style-dots::before {
    content: "\00b7 \00b7 \00b7";
    color: var(--stanford-cardinal);
    font-size: 1.5rem;
    letter-spacing: 1em;
}

/* Table Block */
.wp-block-table {
    margin: 25px 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.wp-block-table thead th {
    background: var(--stanford-cardinal);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-family: 'Source Sans Pro', system-ui, sans-serif;
}

.wp-block-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.wp-block-table tbody tr:hover td {
    background: rgba(140, 21, 21, 0.03);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
    background: rgba(140, 21, 21, 0.03);
}

.wp-block-table figcaption {
    color: #888;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
}

/* Image Block */
.wp-block-image {
    margin: 25px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.wp-block-image figcaption {
    color: #888;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Gallery Block */
.wp-block-gallery {
    margin: 25px 0;
}

.wp-block-gallery .wp-block-image img {
    border-radius: 8px;
}

/* Cover Block */
.wp-block-cover {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
}

.wp-block-cover .wp-block-cover__inner-container {
    max-width: 800px;
}

.wp-block-cover .wp-block-cover__inner-container h2 {
    color: white;
    font-size: 2rem;
}

.wp-block-cover .wp-block-cover__inner-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Media & Text Block */
.wp-block-media-text {
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 30px;
}

@media (max-width: 600px) {
    .wp-block-media-text .wp-block-media-text__content {
        padding: 25px 20px;
    }
}

/* List Block */
.wp-block-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.wp-block-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.wp-block-list:not(.is-ordered) > li:before {
    content: "\25C6";
    position: absolute;
    left: 0;
    color: var(--stanford-cardinal);
    font-size: 0.8rem;
}

ol.wp-block-list {
    list-style: decimal;
    padding-left: 25px;
}

ol.wp-block-list > li:before {
    content: none;
}

/* Details Block (Accordion) */
.wp-block-details {
    margin: 20px 0;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.wp-block-details summary {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--stanford-cardinal);
    cursor: pointer;
    background: rgba(140, 21, 21, 0.03);
    transition: background 0.2s;
}

.wp-block-details summary:hover {
    background: rgba(140, 21, 21, 0.06);
}

.wp-block-details[open] summary {
    border-bottom: 1px solid #e5e5e5;
}

.wp-block-details > :not(summary) {
    padding: 0 20px;
}

/* Heading Block Enhancements */
.wp-block-heading {
    color: var(--stanford-cardinal);
}

/* Spacer Block - minimal override */
.wp-block-spacer {
    /* Leave default behavior */
}

/* Embed Block */
.wp-block-embed {
    margin: 30px 0;
}

.wp-block-embed .wp-block-embed__wrapper {
    position: relative;
}

.wp-block-embed figcaption {
    color: #888;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
}

/* Video Block */
.wp-block-video {
    margin: 30px 0;
}

.wp-block-video video {
    border-radius: 12px;
    max-width: 100%;
}

/* Code Block */
.wp-block-code {
    background: #2e2d29;
    color: #f9f6ef;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Preformatted Block */
.wp-block-preformatted {
    background: #2e2d29;
    color: #f9f6ef;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Verse Block */
.wp-block-verse {
    font-family: 'Crimson Text', Georgia, serif;
    font-style: italic;
    padding: 20px 30px;
    border-left: 3px solid var(--stanford-gold);
    color: #555;
    margin: 25px 0;
}

/* File Block */
.wp-block-file {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wp-block-file a:first-child {
    color: var(--stanford-cardinal);
    font-weight: 500;
    text-decoration: none;
}

.wp-block-file a:first-child:hover {
    text-decoration: underline;
}

.wp-block-file .wp-block-file__button {
    background: var(--stanford-cardinal);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.wp-block-file .wp-block-file__button:hover {
    background: #620B0B;
}

/* ==========================================================================
   WordPress Alignment Classes (Ensure these work in content areas)
   ========================================================================== */
.page-content .alignwide,
.post-content .alignwide,
.talk-content .alignwide,
.publication-content .alignwide,
.project-content .alignwide {
    margin-left: -20px;
    margin-right: -20px;
    max-width: calc(100% + 40px);
}

.page-content .alignfull,
.post-content .alignfull,
.talk-content .alignfull,
.publication-content .alignfull,
.project-content .alignfull {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
    width: calc(100% + 80px);
}

@media (max-width: 768px) {
    .page-content .alignfull,
    .post-content .alignfull,
    .talk-content .alignfull,
    .publication-content .alignfull,
    .project-content .alignfull {
        margin-left: -25px;
        margin-right: -25px;
        max-width: calc(100% + 50px);
        width: calc(100% + 50px);
    }
}

/* ============================================
   Editor Content Section
   Renders block editor content within custom page templates.
   Matches .talk-content / .publication-content / .project-content styling.
   ============================================ */
.editor-content-section {
    background: var(--stanford-cream);
    padding: 40px 0;
}

.editor-content {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--stanford-cardinal);
}

.editor-content h2 {
    color: var(--stanford-cardinal);
    font-size: 1.6rem;
    margin: 30px 0 15px;
    font-weight: 600;
}

.editor-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 25px 0 12px;
    font-weight: 600;
}

.editor-content h4 {
    color: var(--stanford-dark);
    font-size: 1.1rem;
    margin: 20px 0 10px;
    font-weight: 600;
}

.editor-content p {
    margin-bottom: 1.2em;
    color: #444;
}

.editor-content ul,
.editor-content ol {
    padding-left: 30px;
    margin-bottom: 1.2em;
}

.editor-content li {
    margin-bottom: 0.5em;
    list-style: disc;
}

.editor-content ol li {
    list-style: decimal;
}

.editor-content a {
    color: var(--stanford-cardinal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.editor-content a:hover {
    color: var(--stanford-gold);
}

.editor-content blockquote {
    border-left: 4px solid var(--stanford-cardinal);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--stanford-cream);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.editor-content th,
.editor-content td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.editor-content th {
    background: var(--stanford-cream);
    font-weight: 600;
    color: var(--stanford-dark);
}

.editor-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 30px 0;
}

.editor-content pre,
.editor-content code {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
}

.editor-content code {
    background: var(--stanford-cream);
    padding: 2px 6px;
    border-radius: 3px;
}

.editor-content pre {
    background: var(--stanford-dark);
    color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

/* Block patterns inside editor content inherit proper spacing */
.editor-content .mission-statement,
.editor-content .research-mission {
    margin: 40px -40px;
    border-radius: 0;
}

.editor-content .key-findings {
    margin: 25px 0;
}

.editor-content .media-item {
    margin: 20px 0;
}

.editor-content .policy-item {
    margin: 20px 0;
}

.editor-content .publication-card {
    margin: 20px 0;
}

.editor-content .project-card {
    margin: 20px 0;
}

/* Wide alignment support within editor content */
.editor-content .alignwide {
    margin-left: -20px;
    margin-right: -20px;
    max-width: calc(100% + 40px);
}

.editor-content .alignfull {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
}

/* Responsive */
@media (max-width: 768px) {
    .editor-content {
        padding: 30px 20px;
    }

    .editor-content .alignwide {
        margin-left: -10px;
        margin-right: -10px;
        max-width: calc(100% + 20px);
    }

    .editor-content .alignfull {
        margin-left: -20px;
        margin-right: -20px;
        max-width: calc(100% + 40px);
    }

    .editor-content .mission-statement,
    .editor-content .research-mission {
        margin: 30px -20px;
    }
}

/* ============================================
   Talks Grid Layout
   Responsive card grid for talk/video items.
   Horizontal tiling on desktop, vertical stack on mobile.
   ============================================ */
.talks-grid-section {
    padding: 40px 0;
}

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

.talk-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.talk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.talk-card-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.talk-card-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.talk-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.talk-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    color: #333;
}

.talk-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.talk-card-body h3 a:hover {
    color: var(--stanford-cardinal);
}

.talk-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
}

.talk-card-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--stanford-cardinal);
    font-weight: 500;
}

.talk-card-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.talk-card-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.talk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--stanford-cardinal);
    background: var(--stanford-cream);
    border: 1px solid transparent;
}

.talk-btn:hover {
    background: var(--stanford-cardinal);
    color: white;
}

.talk-btn.primary {
    background: var(--stanford-cardinal);
    color: white;
}

.talk-btn.primary:hover {
    background: #6d1010;
}

/* Responsive: stack cards on mobile */
@media (max-width: 768px) {
    .talks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .talk-card-body {
        padding: 16px 18px 20px;
    }

    .talk-card-body h3 {
        font-size: 1.05rem;
    }
}

/* 3 columns on very wide screens */
@media (min-width: 1200px) {
    .talks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== PRESS KIT PAGE STYLES ==================== */
.press-kit-main {
    background: #f9fafb;
}

.press-section {
    padding: 60px 0;
}

.press-section:nth-child(even) {
    background: white;
}

/* Headshot Section */
.press-headshot-section {
    background: white;
}

.press-headshot-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
}

.press-headshot-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.press-headshot-info h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--stanford-cardinal);
}

.headshot-caption {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.press-headshot-info .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--stanford-cardinal);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.press-headshot-info .btn:hover {
    background: #6d1010;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 21, 21, 0.3);
}

/* Bio Sections */
.press-bio-section h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--stanford-cardinal);
}

.press-bio-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.press-bio-section.extended .press-bio-box {
    background: #f9fafb;
}

.bio-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.bio-content p {
    margin-bottom: 18px;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.extended-bio-content {
    max-height: none;
}

.copy-bio-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    background: rgba(140, 21, 21, 0.1);
    color: var(--stanford-cardinal);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.copy-bio-btn:hover {
    background: var(--stanford-cardinal);
    color: white;
}

.copy-bio-btn.copied {
    background: #2e7d32;
    color: white;
}

/* Expertise Tags Section */
.press-expertise-section {
    background: white;
}

.press-expertise-section h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--stanford-cardinal);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.expertise-tag {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(140, 21, 21, 0.08) 0%, rgba(140, 21, 21, 0.04) 100%);
    border: 1px solid rgba(140, 21, 21, 0.15);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: var(--stanford-cardinal);
    color: white;
    border-color: var(--stanford-cardinal);
    transform: translateY(-2px);
}

/* Media Appearances Section */
.press-media-section h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--stanford-cardinal);
}

.media-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.media-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.media-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(140, 21, 21, 0.1);
    border-color: rgba(140, 21, 21, 0.2);
}

.media-list li i {
    color: var(--stanford-cardinal);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

/* Key Publications Section */
.press-publications-section {
    background: white;
}

.press-publications-section h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--stanford-cardinal);
}

.key-publications-list {
    padding-left: 20px;
    margin: 0 0 30px 0;
}

.key-publications-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 18px;
    padding-left: 10px;
}

.key-publications-list li::marker {
    color: var(--stanford-cardinal);
    font-weight: 600;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stanford-cardinal);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    gap: 12px;
    color: #6d1010;
}

/* Media Enquiries Section */
.press-enquiries-section {
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #620B0B 100%);
    padding: 80px 0;
}

.enquiries-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.enquiries-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.enquiries-box p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.7;
}

.enquiries-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.enquiries-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: white;
    color: var(--stanford-cardinal);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.enquiries-actions .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.enquiries-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.enquiries-email a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.enquiries-email a:hover {
    text-decoration: underline;
}

/* Press Kit Page Responsive */
@media (max-width: 768px) {
    .press-headshot-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .press-headshot-image img {
        max-width: 250px;
        margin: 0 auto;
    }

    .press-section {
        padding: 40px 0;
    }

    .press-section h2 {
        font-size: 1.4rem;
    }

    .expertise-tags {
        justify-content: center;
    }

    .expertise-tag {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .media-list {
        grid-template-columns: 1fr;
    }

    .copy-bio-btn {
        position: static;
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }

    .press-bio-box {
        padding: 20px;
    }

    .enquiries-box h2 {
        font-size: 1.6rem;
    }

    .enquiries-actions .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ==================== FEATURED REPORT SECTION ==================== */
.featured-report-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--stanford-cardinal);
}

.featured-report-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.featured-report-text {
    flex: 1;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #a01717 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.featured-report-section h2 {
    font-size: 1.75rem;
    color: var(--stanford-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.featured-subtitle {
    font-size: 1.1rem;
    color: var(--stanford-cardinal);
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-report-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.featured-report-text p:last-of-type {
    margin-bottom: 0;
}

.featured-report-cta {
    flex-shrink: 0;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--stanford-cardinal) 0%, #a01717 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(140, 21, 21, 0.25);
}

.featured-btn:hover {
    background: linear-gradient(135deg, #a01717 0%, #b81919 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(140, 21, 21, 0.35);
    text-decoration: none;
}

.featured-btn i {
    font-size: 1.1rem;
}

/* Featured Report Responsive */
@media (max-width: 768px) {
    .featured-report-content {
        flex-direction: column;
        text-align: center;
    }

    .featured-report-section h2 {
        font-size: 1.5rem;
    }

    .featured-subtitle {
        font-size: 1rem;
    }

    .featured-btn {
        width: 100%;
        justify-content: center;
    }
}
