/* css/style.css - Design System & Core Theme */


/* CSS Variables for Design Tokens */
:root {
  /* Color Palette - HSL Tailored for Forest Green & Champagne Gold */
  --primary: hsl(145, 60%, 15%);         /* Deep Forest Green */
  --primary-light: hsl(145, 45%, 25%);   /* Soft Muted Green */
  --primary-tint: hsl(145, 30%, 94%);    /* Light Sage Green Tint */
  --accent: hsl(43, 65%, 48%);           /* Champagne/Muted Gold */
  --accent-light: hsl(43, 80%, 95%);     /* Pale Warm Gold Tint */
  --accent-dark: hsl(43, 75%, 38%);      /* Rich Ochre Gold */
  
  /* Neutral Palette */
  --bg: hsl(35, 25%, 98%);               /* Off-white Warm Sand Background */
  --bg-card: hsl(0, 0%, 100%);           /* Pure White for Containers */
  --border: hsl(35, 12%, 88%);           /* Subtle Gray-Warm Border */
  
  /* Ink Colors matching the typography spec */
  --ink: hsl(145, 20%, 12%);            /* Deep Forest Charcoal for Text */
  --ink-soft: hsl(145, 10%, 40%);       /* Medium Muted Text */
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  
  /* Typography Scale variables from specification */
  --display:     'Fraunces', Georgia, serif;
  --body:        'IBM Plex Sans', system-ui, sans-serif;
  --mono:        'IBM Plex Mono', ui-monospace, monospace;

  --step--1:     clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);   /* captions, badges: ~12px → 13px */
  --step-0:      clamp(1rem, 0.96rem + 0.2vw, 1.08rem);       /* body text: ~16px → 17px */
  --step-1:      clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);       /* subheadings: ~21px → 26px */
  --step-2:      clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);       /* section titles: ~27px → 38px */
  --step-3:      clamp(2.4rem, 1.8rem + 3vw, 4.2rem);         /* subsections: ~38px → 67px */
  --step-4:      clamp(3.2rem, 2rem + 6vw, 6.8rem);           /* hero h1: ~51px → 109px */

  /* Map traditional tokens to new fluid system */
  --font-serif: var(--display);
  --font-sans: var(--body);
  --font-mono: var(--mono);
  
  /* Sizing and Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Shadows and Details */
  --shadow-sm: 0 2px 4px rgba(12, 61, 32, 0.04);
  --shadow-md: 0 8px 20px rgba(12, 61, 32, 0.06);
  --shadow-lg: 0 16px 36px rgba(12, 61, 32, 0.08);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Typography styles matching spec */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.05;
}

h1 {
  font-family:       var(--display);     /* Fraunces */
  font-size:         var(--step-4);      /* 51–109px */
  font-weight:       600;                /* bold but not max-weight */
  letter-spacing:    -0.01em;            /* slight negative kern */
  margin:            0;                  /* no default margin */
}

h2 {
  font-family:       var(--display);     /* Fraunces */
  font-size:         var(--step-2);      /* 27–38px */
  font-weight:       600;
  letter-spacing:    -0.01em;
  margin:            0;                  /* reset, set via parent */
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

h3 {
  font-family:       var(--display);     /* Fraunces */
  font-size:         var(--step-1);      /* 21–26px */
  font-weight:       600;
  letter-spacing:    0;                  /* no kern at smaller sizes */
  margin:            0.5rem 0;           /* tight spacing */
}

p {
  font-family:       var(--body);        /* IBM Plex Sans */
  font-size:         var(--step-0);      /* 16–17px */
  font-weight:       400;
  line-height:       1.6;                /* generous for readability */
  color:             var(--ink);
  margin-bottom: 1.25rem;
}

/* General supporting text roles / classes from spec */
.eyebrow {
  font-family:       var(--mono);        /* IBM Plex Mono */
  font-size:         var(--step--1);     /* ~12px */
  text-transform:    uppercase;
  letter-spacing:    0.18em;             /* wide for visual hierarchy */
  font-weight:       500;
  color:             var(--accent-dark);
}

.mono {
  font-family:       var(--mono);
  font-size:         var(--step--1);
  text-transform:    uppercase;
  letter-spacing:    0.04em;
  font-weight:       400;
  color:             var(--ink-soft);
}

.tag {
  font-family:       var(--mono);
  font-size:         var(--step--1);
  text-transform:    uppercase;
  letter-spacing:    0.1em;
  font-weight:       500;
  color:             var(--primary);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.section__lede,
.hero__lede,
.about__bio {
  font-size:         var(--step-0);
  color:             var(--ink-soft);    /* medium-dark gray */
  font-weight:       400;
  line-height:       1.6;
}

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

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

/* Layout Elements */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--primary-tint);
}

/* Page Hero layout for subpage headers */
.page-hero {
  background-color: var(--primary-tint);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: var(--step-3);
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero .hero-title-prefix {
  display: block;
  margin-bottom: 0.5rem;
}

/* Sticky glassmorphic header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo-text {
  display: flex;
  flex-direction: column;
  padding-left: 0.75rem;
  border-left: 1.5px solid var(--border);
}

.logo-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.1;
}

.logo-subtitle {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Navigation Links */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.site-nav > ul > li > a,
.nav-dropdown-btn {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.site-nav > ul > li > a::after,
.nav-dropdown-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.site-nav > ul > li > a:hover::after,
.nav-dropdown-btn:hover::after,
.site-nav > ul > li.active > a::after,
.site-nav > ul > li.active > .nav-dropdown > .nav-dropdown-btn::after {
  width: 100%;
}

.site-nav > ul > li > a:hover,
.nav-dropdown-btn:hover,
.site-nav > ul > li.active > a,
.site-nav > ul > li.active > .nav-dropdown > .nav-dropdown-btn {
  color: var(--accent-dark);
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0 6rem;
}

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

.hero-content h1 {
  font-size: clamp(2rem, 1.45rem + 1.6vw, 2.65rem); /* Reduced specifically for the hero title to fit in one line */
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-content h1 {
    white-space: normal;
  }
}

.hero-title-prefix {
  font-family: var(--mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  color: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 61, 32, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-tint);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Portrait Placeholder Graphic */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-placeholder {
  width: 100%;
  max-width: 342px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--bg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.portrait-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(205,164,52,0.15) 0%, transparent 60%);
  animation: rotateGlow 20s linear infinite;
}

.portrait-placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  opacity: 0.85;
}

.portrait-placeholder-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bg);
}

.portrait-placeholder-subtext {
  font-size: 0.85rem;
  color: var(--accent-light);
  opacity: 0.75;
}

.portrait-img {
  width: 100%;
  max-width: 342px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: var(--transition);
}

.portrait-img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(12, 61, 32, 0.15);
  border-color: var(--primary-light);
}

/* Stats dashboard styling */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.stat-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.stat-label {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Section intro subtitle */
.section-intro {
  max-width: 720px;
  margin-bottom: 3rem;
  font-size: var(--step-0);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Key Features Grid — legacy auto-fit */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Strict 2 × 2 grid (4 cards) */
.features-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .features-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: var(--primary-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  margin-top: auto;
}

.feature-link::after {
  content: '→';
  transition: var(--transition);
}

.feature-card:hover .feature-link::after {
  transform: translateX(4px);
}

/* Institutional Badge Styling */
.institution-banner {
  background-color: var(--primary);
  color: var(--bg);
  border-radius: 17px;
  padding: 3.4rem 2.55rem;
  display: flex;
  align-items: center;
  gap: 2.55rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  max-width: 1020px;
  margin: 0 auto;
}

.institution-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 255px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(205,164,52,0.08));
  pointer-events: none;
}

.institution-logo {
  background-color: var(--bg-card);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.institution-logo img {
  height: 93.5px;
  width: auto;
  object-fit: contain;
}

.institution-content h3 {
  color: var(--accent-light);
  font-family: var(--font-serif);
  font-size: 1.49rem;
  margin-bottom: 0.425rem;
}

.institution-content h4 {
  font-family: var(--font-sans);
  color: var(--bg);
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.institution-content p {
  color: var(--accent-light);
  font-size: 0.85rem;
  margin-bottom: 0;
  opacity: 0.85;
}

/* Direct Contact and Profiles Section */
.contact-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
  flex: 1;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-details p {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 500;
  word-break: break-all;
}

/* External Profile Badges */
.profile-badges {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex: 1;
}

.profile-link-card:hover {
  border-color: var(--primary-light);
  background-color: var(--primary-tint);
  transform: translateX(4px);
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--primary-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

.profile-brand-name h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
}

.profile-brand-name p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-action-arrow {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.25rem;
}

.profile-link-card:hover .profile-action-arrow {
  color: var(--primary);
}

/* Footer Section Styling */
.site-footer {
  background-color: var(--primary);
  color: var(--bg);
  padding: 4rem 0 2rem;
  border-top: 5px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--accent-light);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-bio-text {
  font-size: 0.95rem;
  color: var(--accent-light);
  opacity: 0.8;
  margin-top: 1rem;
}

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

.footer-links a {
  color: var(--accent-light);
  opacity: 0.85;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.footer-contact-info p {
  color: var(--accent-light);
  opacity: 0.85;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--accent-light);
  opacity: 0.75;
}

/* Animations */
@keyframes rotateGlow {
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Media Queries */

@media (max-width: 1024px) {
  .hero {
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 4rem;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image-wrapper {
    order: 1;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .institution-banner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 3rem 2rem;
  }
  
  .contact-dashboard {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-logo img {
    height: 40px;
  }
  .logo-text {
    padding-left: 0.5rem;
  }
  .logo-title {
    font-size: 1.1rem;
  }
  .logo-subtitle {
    white-space: normal;
    max-width: 180px;
    line-height: 1.2;
  }

  .nav-toggle {
    display: block;
  }
  
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-card);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    padding: 2rem;
    border-right: 1px solid var(--border);
  }
  
  .site-nav.active {
    left: 0;
  }
  
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .site-nav a {
    font-size: 1.1rem;
    width: 100%;
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Responsive Tables & Academic Registries
   ========================================================================== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.975rem;
}

.data-table th {
  background-color: var(--primary);
  color: var(--bg-card);
  padding: 1.1rem 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

.data-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--primary-tint);
}

.data-table tbody tr:hover {
  background-color: var(--accent-light);
}

/* ==========================================================================
   Tab Navigation & Toggle Elements
   ========================================================================== */

.tab-group {
  margin-top: 2.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.75rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.tab-nav::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

/* Highlights & Timelines */
.highlight-panel {
  background-color: var(--primary-tint);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6px;
  width: 2px;
  height: 100%;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -28px;
  width: 14px;
  height: 14px;
  background-color: var(--bg);
  border: 3px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
  display: block;
}

.timeline-content h4 {
  font-family: var(--font-sans);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Horticultural Technologies Layout
   ========================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.tech-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
  transition: var(--transition);
}

.tech-card:hover::before {
  width: 8px;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.tech-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  color: var(--primary);
  font-family: var(--font-serif);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-card h3 i {
  color: var(--accent-dark);
  font-size: 1.25rem;
}

.tech-meta {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.85rem;
}

.tech-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tech-meta-item strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}

.tech-meta-item span {
  color: var(--text);
  line-height: 1.5;
}

/* ==========================================================================
   Scholarly Publications & Search Components
   ========================================================================== */



.archive-link {
  font-size: 0.65rem;
  font-weight: 800; /* Bold text */
  color: var(--primary-light);
  margin-left: 0.5rem;
  text-decoration: none;
  font-family: var(--font-mono, monospace);
  border: 2px solid var(--primary-light); /* Bold box */
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background-color: var(--bg-card);
  transition: all 0.2s ease;
  display: inline-block;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-link:hover {
  color: var(--bg-card);
  border-color: var(--accent-dark);
  background-color: var(--accent-dark);
  text-decoration: none;
}


/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-card);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  z-index: 100;
  top: 100%;
  left: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.nav-dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-weight: 400;
}

.nav-dropdown-content a::after {
  display: none !important;
}

.nav-dropdown-content a:hover,
.nav-dropdown-content a.active {
  background-color: var(--primary-tint);
  color: var(--primary);
  font-weight: 500;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

/* Mobile responsive navigation styles */
@media (max-width: 768px) {
  .site-nav .nav-dropdown {
    display: block;
    width: 100%;
  }

  .site-nav .nav-dropdown-btn {
    width: 100%;
    text-align: left;
    display: block;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    color: var(--primary);
  }

  .site-nav .nav-dropdown-btn::after {
    display: none !important;
  }

  .site-nav .nav-dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 1.5rem;
    background-color: transparent;
    min-width: auto;
  }

  .site-nav .nav-dropdown-content a {
    padding: 8px 0;
    font-size: 1rem;
    color: var(--text);
  }
}


