/*
Theme Name: AMSC Redesign 2026
Theme URI: https://amsc.edu
Author: theMEDIAWORX
Author URI: https://themediaworx.com
Description: Custom, high-performance WordPress theme designed and developed by theMEDIAWORX for American Medical Sciences Center (AMSC College) in Glendale, CA. AMSC is an accredited higher education institution offering Diagnostic Medical Sonography (Associate AAS & Bachelor BS) degree programs with hands-on ultrasound scanning labs. Key theme features include: 110% Gravity Forms design system integration, dynamic Hero Engine (Slides / Static Image / Video Backgrounds), Hybrid Block Theme compatibility (theme.json), AMSC Mega Menu Walker, above-the-fold lead capture forms across all templates, Touch Swipe & Desktop Hover Photo Carousels, and Lightbox Gallery integrations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: amsc-redesign
Tags: custom-menu, featured-images, full-width-template, theme-options, translation-ready, block-patterns
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================
   Design System Tokens (CSS Variables)
   ========================================== */
:root {
  /* Color Palette */
  --primary-blue: #0A58CA;
  --primary-blue-dark: #084298;
  --primary-blue-light: #e6f0fa;
  --secondary-coral: #FF2F0A;
  /* Requested exact orange-red color */
  --secondary-coral-hover: #D82605;
  --accent-gold: #c5a059;

  --neutral-dark: #0A0C1E;
  /* Figma deep dark blue */
  --neutral-dark-gray: #1f2937;
  --neutral-muted: #6b7280;
  --neutral-light: #f3f4f6;
  --neutral-light-warm: #f9fafb;
  --white: #ffffff;

  /* Fonts */
  --font-serif: 'Fraunces', Georgia, serif;
  /* Heading font */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 45px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 30px 60px -20px rgba(13, 15, 38, 0.2);

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-width: 1240px;
}

/* ==========================================
   Resets and Base Styles
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-dark-gray);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================
   Typography & Typography Helpers
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  /* Fraunces looks premium with lower weights */
  line-height: 1.25;
  color: var(--neutral-dark);
}

.text-sans {
  font-family: var(--font-sans);
}

.text-serif {
  font-family: var(--font-serif);
}

.section-title {
  font-size: 2.85rem;
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 400;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--neutral-muted);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

/* ==========================================
   Layout Utilities
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.flex {
  display: flex;
  align-items: center;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--secondary-coral);
  color: var(--white);
}

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

.btn-secondary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-blue-dark);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--neutral-muted);
  color: var(--neutral-dark-gray);
}

.btn-outline:hover {
  border-color: var(--neutral-dark);
  background-color: rgba(0, 0, 0, 0.02);
}

/* ==========================================
   Header and Navigation (1-1 match)
   ========================================== */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.nav-menu>li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu>li>a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-dark-gray);
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-menu>li>a:hover {
  color: var(--primary-blue);
}

.nav-menu>li>a svg.chevron-down {
  width: 10px;
  height: 10px;
  stroke-width: 3px;
  color: var(--neutral-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-menu>li>a svg.tour-icon {
  width: 16px;
  height: 16px;
  color: var(--neutral-dark-gray);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-right .phone-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-dark-gray);
  border: 1px solid #d1d5db;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  background-color: transparent;
  transition: var(--transition-fast);
}

.nav-right .phone-btn:hover {
  border-color: var(--neutral-dark);
}

/* Mega Menu & Sub-Menus */
.nav-menu>li:hover>a svg.chevron-down {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

/* Hover triggering */
.nav-menu>li {
  position: static !important;
  /* Forces dropdown to align relative to .site-header */
}

/* Standard dropdown fallback for list items without mega menu class */
.nav-menu>li:not(.mega-menu) {
  position: relative !important;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  padding: 0.75rem 0;
  min-width: 220px;
  z-index: 99;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.25s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

/* Invisible Hover Bridge for Sub-Menu */
.sub-menu::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -10px;
  right: -10px;
  height: 30px;
}

.sub-menu a {
  padding: 0.625rem 1.25rem !important;
  font-size: 0.875rem !important;
  color: var(--neutral-dark-gray) !important;
  font-weight: 500 !important;
  display: block !important;
  width: 100% !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-menu a:hover {
  background-color: #f3f4f6;
  color: var(--primary-blue) !important;
}

/* Mega Menu Dropdown styling */
.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.25s;
  padding: 2.5rem 0;
  pointer-events: none;
}

/* Invisible Hover Bridge for Mega Menu */
.mega-menu-dropdown::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 35px;
}

.nav-menu>li.is-hovered .mega-menu-dropdown,
.nav-menu>li.mega-menu:hover .mega-menu-dropdown,
.mega-menu-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

.nav-menu>li.is-hovered .sub-menu,
.nav-menu>li:not(.mega-menu):hover .sub-menu,
.sub-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

.nav-menu>li:not(.mega-menu):hover .sub-menu,
.sub-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Align contents with page container */
.mega-menu-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
}

.mega-menu-column-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-muted) !important;
  letter-spacing: 0.075em;
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  padding-bottom: 0.5rem;
}

.mega-menu-column-title a {
  color: var(--neutral-muted) !important;
  padding: 0 !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
}

/* Links List style inside mega menu columns */
.mega-menu-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-menu-links-list li {
  display: block;
}

.mega-menu-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  text-align: left;
  /* Ensure left alignment */
}

.mega-menu-link:hover {
  background-color: #f3f4f6;
  text-decoration: none;
}

.mega-menu-link-title {
  font-family: var(--font-sans);
  font-size: 0.9125rem;
  font-weight: 600;
  color: var(--neutral-dark);
}

.mega-menu-link-desc {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--neutral-dark-gray);
  line-height: 1.3;
}

/* Card layout grid style inside column-cards */
.mega-menu-cards-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* Flexible auto-fit grid */
  gap: 1.25rem;
}

.mega-menu-cards-grid li {
  display: block;
}

/* Rounded Cards similar to Academics section */
.mega-menu-card {
  display: flex;
  flex-direction: column;
  background-color: #f3f4f6;
  /* Subtle grey bg */
  border-radius: 14px;
  overflow: hidden;
  border: none;
  /* No borders */
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  text-align: left;
  /* Left align card contents */
}

.mega-menu-card:hover {
  transform: translateY(-4px);
  background-color: #e5e7eb;
  /* Subtle darker hover grey */
  box-shadow: var(--shadow-sm);
  border: none;
}

.mega-menu-card-image {
  height: 110px;
  overflow: hidden;
  position: relative;
  background-color: #e5e7eb;
  width: 100%;
}

.mega-menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mega-menu-card:hover .mega-menu-card-image img {
  transform: scale(1.05);
}

.mega-menu-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.mega-menu-card-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-dark) !important;
  margin: 0;
  padding: 0 !important;
  line-height: 1.3;
}

.mega-menu-card-desc {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--neutral-dark-gray);
  line-height: 1.4;
  margin: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--neutral-dark);
  transition: var(--transition-normal);
}

/* ==========================================
   Hero Section (1-1 match)
   ========================================== */
.hero {
  position: relative;
  min-height: 95vh;
  padding-top: 146px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

/* Hero Progress Bar Loader */
.hero-progress-bar {
  position: absolute;
  top: 86px;
  /* Align right below the sticky navigation bar */
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(150, 150, 150, 0.2);
  /* Subtle semitransparent gray track */
  z-index: 10;
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background-color: rgba(200, 200, 200, 0.55);
  /* Subtle semitransparent gray fill */
}

/* Dual Background Crossfade setup */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

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

.hero-bg-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -1;
}

.hero .grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  padding-right: 1.5rem;
}

.hero-content h1 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 4.25rem;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Hero Interactive Tabs (1-1 layout) */
.hero-tabs {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Active vertical tab bar highlight */
.hero-tabs-indicator {
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  background-color: var(--white);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tab {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.4s ease-in-out;
  padding: 0.25rem 0;
}

.hero-tab.active {
  opacity: 1;
}

.hero-tab-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  font-weight: 300;
  margin-bottom: 0.25rem;
  display: block;
}

.hero-tab-subtitle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  display: block;
}

/* Hero Right Request Info Form */
.form-card {
  background-color: var(--white);
  border-radius: 22px;
  /* Smooth rounded corners matching Design */
  padding: 2rem 2.25rem;
  /* Smaller, tighter padding */
  color: var(--neutral-dark-gray);
  box-shadow: var(--shadow-premium);
  width: 100%;
  max-width: 440px;
  /* Overall smaller and tighter form */
  margin-left: auto;
}

.form-card h3 {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  color: var(--neutral-dark);
  margin-bottom: 1rem;
  /* Tighter title margin */
  font-weight: 600;
  text-align: center;
  /* Centered form title */
}

/* Spaced out evenly form fields (consistent spacing) */
.form-group {
  margin-bottom: 0.575rem;
  /* Closer vertical spacing */
  position: relative;
}

.form-group-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.575rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  /* More rounded corners */
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background-color: #fafafa;
  color: var(--neutral-dark-gray);
  height: 46px;
  /* Uniform height */
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #9ca3af;
  background-color: var(--white);
}

.form-group.invalid input,
.form-group.invalid select {
  border-color: var(--secondary-coral);
  background-color: #fff5f5;
}

.form-error {
  display: none;
  font-size: 0.725rem;
  color: var(--secondary-coral);
  margin-top: 4px;
  /* Ensured it does not touch the fields */
  margin-bottom: 2px;
  font-family: var(--font-sans);
}

.form-group.invalid .form-error {
  display: block;
}

.checkbox-group {
  display: flex;
  gap: 0.625rem;
  margin: 0 0 1.25rem 0;
  /* Consistent tighter spacing */
  align-items: flex-start;
}

.checkbox-group input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--secondary-coral);
}

.checkbox-group label {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b7280;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--secondary-coral);
  font-weight: 500;
}

.btn-submit {
  width: 100%;
  background-color: var(--secondary-coral);
  color: var(--white);
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  /* More rounded button */
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  height: 48px;
}

.btn-submit:hover {
  background-color: var(--secondary-coral-hover);
}

/* Rating Trust Badge */
.rating-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.rating-trust img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  /* Reverted back to circular! */
  object-fit: cover;
}

.rating-details p {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 1px;
  /* Closer line height and gaps */
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.rating-details .stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  color: var(--secondary-coral);
  /* Orange stars matching brand 1-1 */
  vertical-align: middle;
}

.rating-details .stars .star-icon {
  width: 14px;
  height: 14px;
  color: var(--secondary-coral);
  flex-shrink: 0;
}

.rating-details .stars .star-icon.half-star {
  stroke: var(--secondary-coral);
  stroke-width: 1px;
}

.rating-details span.subtitle {
  font-size: 0.75rem;
  color: var(--neutral-muted);
  display: block;
  line-height: 1.2;
}

/* ==========================================
   Thin Scrolling Marquee (Continuous Loop)
   ========================================== */
.thin-marquee {
  background-color: var(--neutral-dark);
  color: var(--white);
  padding: 0.875rem 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 25s) linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  padding-right: 3rem;
  /* Seamless spacing between repeat blocks */
}

.marquee-item img.asterisk {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
    /* 50% translation for perfect continuous loop */
  }
}

/* ==========================================
   Excellence Section (Matched 1-1 to image)
   ========================================== */
.excellence {
  padding: 100px 0;
  background-color: var(--white);
}

.excellence-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  width: 100%;
}

.excellence-header-row h2 {
  font-size: 3rem;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--neutral-dark);
  line-height: 1.15;
}

.excellence-header-row p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--neutral-dark);
  margin-top: 0.5rem;
  font-weight: 400;
}

.excellence-header-row img.silver-30 {
  height: 100px;
  width: auto;
  margin-left: 2rem;
  flex-shrink: 0;
}

.excellence .grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: flex-start;
  gap: 4rem;
}

.excellence-images {
  position: relative;
}

.excellence-img-wrapper {
  border-radius: 24px;
  /* Highly rounded corners */
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.excellence-img-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* Circular Spinning Badge (Image 3) */
.spinning-badge {
  position: absolute;
  top: -45px;
  right: -25px;
  /* Offset to edge of photo */
  width: 150px;
  height: 150px;
  z-index: 100;
}

.spinning-badge-svg {
  width: 100%;
  height: 100%;
  animation: spin-clockwise 20s linear infinite;
}

.spinning-badge-text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  fill: var(--secondary-coral);
  letter-spacing: 2.2px;
}

.spinning-badge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--secondary-coral);
  font-weight: 300;
  line-height: 1;
}

@keyframes spin-clockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.excellence-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* Even spacing between paragraphs */
  padding-top: 1rem;
}

.excellence-content p {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0;
  font-family: var(--font-sans);
}

/* ==========================================
   Academic Programs (1-1 Match to screenshot)
   ========================================== */
.programs {
  padding: 100px 0;
  background-color: #f2f2f2;
  /* Matched 1-1 to Figma background */
  background-image: url('assets/images/texture.svg');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 60%;
  position: relative;
}

.programs-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 1.05fr;
  /* 3 Column layout */
  gap: 1.5rem;
  align-items: stretch;
  height: 520px;
  /* Equal height container */
}

/* Stacked Column (Column 1) */
.programs-col-stacked {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

/* Blue Rating Card (Card 1A) */
.rating-card {
  background-color: #0c87f3;
  /* Exact Figma blue */
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  color: var(--white);
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.rating-card-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--white);
  line-height: 1.3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.rating-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.star-icon {
  width: 14px;
  height: 14px;
  color: var(--white);
  flex-shrink: 0;
}

.star-icon.half-star {
  stroke: var(--white);
  stroke-width: 1px;
}

.rating-card-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  font-weight: 500;
  display: block;
}

/* Overlapping profile heads inside blue card */
.profile-avatars-row {
  display: flex;
  margin-top: 1rem;
}

.profile-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--white);
  /* White borders 1-1 with design */
  margin-right: -10px;
  overflow: hidden;
  background-color: var(--white);
  position: relative;
  transition: var(--transition-fast);
}

.profile-avatar-circle:hover {
  transform: translateY(-3px);
  z-index: 10;
}

.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  /* Scale up to crop out the baked-in blue border */
}

/* Financial Aid Card (Card 1B) */
.fin-aid-card {
  background-color: #110c2d;
  /* Exact Figma deep indigo/navy */
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.fin-aid-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.fin-aid-logo-symbol {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--white);
  line-height: 1;
  font-weight: 300;
}

.fin-aid-card h3 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  color: var(--white);
  line-height: 1.25;
  font-weight: 400;
}

.fin-aid-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-top: auto;
  margin-bottom: 2rem;
  font-family: var(--font-sans);
}

.learn-more-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-sans);
}

.learn-more-link:hover {
  text-decoration: underline;
}

/* Image Background Cards (Column 2 & 3) */
.program-card-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.program-card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.program-card-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.program-card-image:hover .program-card-bg-img img {
  transform: scale(1.04);
}

.program-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17, 12, 45, 0.95) 0%, rgba(17, 12, 45, 0.5) 50%, rgba(17, 12, 45, 0) 85%);
  z-index: -1;
}

.program-card-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.program-card-icon {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.875rem;
  /* Space between icon and h3 */
}

.program-card-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.25px;
}

.program-card-image h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.875rem;
  font-weight: 400;
}

.program-card-image p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

/* ==========================================
   Campus Tour Section
   ========================================== */
.campus-tour {
  padding: 100px 0;
  background-color: var(--white);
}

/* Top Row: Video + Brand Card */
.tour-grid-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tour-main-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  min-height: 200px; /* fallback if brand card is very short */
}

.tour-main-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 30, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  transition: var(--transition-normal);
}

.tour-main-video:hover .video-overlay {
  background: rgba(10, 12, 30, 0.55);
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.25rem;
  transition: var(--transition-normal);
}

.play-btn svg {
  fill: var(--secondary-coral);
  color: var(--secondary-coral);
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.tour-main-video:hover .play-btn {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.video-overlay h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.375rem;
  font-weight: 500;
}

/* Brand Card */
.tour-brand-card {
  background-color: #f8f9fb;
  border-radius: 16px;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.tour-brand-icon {
  width: 105px;
  height: 105px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.tour-brand-intro {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--neutral-dark-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tour-brand-headings {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 1.25rem;
}

.tour-brand-headings span {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--neutral-dark);
  line-height: 1.2;
}

.tour-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
}

/* Carousel (Bottom Row) */
.tour-slider-wrapper {
  margin-bottom: 2.5rem;
  position: relative;
}

.tour-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: var(--neutral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.tour-slider-wrapper:hover .tour-arrow {
  opacity: 1;
  pointer-events: auto;
}

.tour-arrow-prev {
  left: -22px;
}

.tour-arrow-next {
  right: -22px;
}

.tour-arrow:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
}

.tour-slider-viewport {
  overflow: hidden;
  border-radius: 14px;
  touch-action: pan-y;
  user-select: none;
}

.tour-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-slider-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tour-slider-slide {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.tour-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.tour-slider-slide:hover img {
  transform: scale(1.04);
}

.tour-slider-slide.placeholder {
  background-color: #e5e7eb;
}

.tour-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
}

.tour-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tour-dot.active {
  width: 28px;
  border-radius: 5px;
  background-color: var(--primary-blue);
}

/* Glendale Intro Block */
.glendale-intro {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.glendale-intro .glendale-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary-coral);
  margin-bottom: 0.75rem;
}

.glendale-intro h3 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--neutral-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.glendale-intro p {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--neutral-dark-gray);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* Glendale Photo Grid */
.glendale-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 1rem;
  height: 480px;
}

.glendale-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.glendale-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.glendale-tall {
  height: 100%;
}

.glendale-stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.glendale-stacked-item {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
}

.glendale-stacked-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.glendale-stacked-item:hover img {
  transform: scale(1.04);
}

/* ==========================================
   Workforce Section
   ========================================== */
.workforce {
  background-color: var(--neutral-dark);
  color: var(--white);
  padding: 100px 0;
  position: relative;
}

.workforce-main-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: stretch;
}

.workforce-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  min-height: 580px;
  display: flex;
}

.workforce-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workforce-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(10, 8, 24, 0.95) 0%, rgba(10, 8, 24, 0) 100%);
  z-index: 1;
}

.workforce-image-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.workforce-overlay-badge {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: 9.5rem !important;
  left: 2rem !important;
  z-index: 3;
  width: 120px !important;
  height: 120px !important;
  display: block;
}

.workforce-overlay-badge .spinning-badge-svg {
  width: 100%;
  height: 100%;
  animation: spin-clockwise 20s linear infinite;
}

.workforce-overlay-badge .spinning-badge-text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  fill: #0c87f3;
  letter-spacing: 2.2px;
}

.workforce-overlay-badge .spinning-badge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #0c87f3;
  font-weight: 300;
  line-height: 1;
}

.workforce-content-wrapper {
  display: flex;
  flex-direction: column;
}

.workforce-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.workforce-info {
  display: flex;
  flex-direction: column;
}

.workforce-main-title {
  color: var(--white);
  font-size: 2.85rem;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.workforce-info-subtitle {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.workforce-info-desc {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.6;
}

.workforce-benefits-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.workforce-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.workforce-benefits-list li strong {
  color: var(--white);
  font-weight: 600;
}

.workforce-benefits-list .check-icon {
  color: #0c87f3;
  /* Brand Blue */
  flex-shrink: 0;
  margin-top: 2px;
}

/* Serif Marquee */
.marquee-serif .marquee-item {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.marquee-workforce {
  background-color: #262048;
}

/* ==========================================
   Alumni Testimonials
   ========================================== */
.alumni {
  padding: 100px 0;
  background-color: var(--white);
}

.alumni-carousel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.alumni-image-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.alumni-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.alumni-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.alumni-info-overlay {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 10;
  color: var(--white);
}

.alumni-info-overlay h4 {
  color: var(--white);
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.alumni-info-overlay p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

.alumni-content {
  position: relative;
}

.quote-icon {
  color: var(--primary-blue-light);
  font-size: 5rem;
  position: absolute;
  top: -3.5rem;
  left: -2rem;
  z-index: -1;
  font-family: var(--font-serif);
  line-height: 1;
}

.alumni-quote {
  font-size: 1.45rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--neutral-dark);
  margin-bottom: 2.5rem;
  line-height: 1.45;
  font-weight: 300;
}

.alumni-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.alumni-card-item {
  padding: 0.875rem;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
}

.alumni-card-item:hover {
  background-color: var(--neutral-light);
}

.alumni-card-item.active {
  border-color: #d1d5db;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.alumni-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.alumni-card-head img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.alumni-card-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neutral-dark);
}

.alumni-card-excerpt {
  font-size: 0.6875rem;
  color: var(--neutral-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* ==========================================
   Affiliations
   ========================================== */
.affiliations {
  padding: 80px 0;
  background-color: var(--neutral-light-warm);
}

.affiliations-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.affiliations-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliations-logo-item img {
  height: 120px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: var(--transition-normal);
}

.affiliations-logo-item img:hover {
  transform: translateY(-2px);
}

.affiliations-alert-box {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 1.25rem 2.25rem;
  border-radius: 12px;
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.affiliations-alert-box svg {
  color: var(--neutral-dark);
  flex-shrink: 0;
}

.affiliations-alert-box p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--neutral-dark);
  line-height: 1.4;
}

/* ==========================================
   Campus News Section
   ========================================== */
.news {
  padding: 100px 0;
  background-color: var(--white);
}

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

.news-header-text {
  text-align: left;
}

.news-header-text h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.news-header-text p {
  color: var(--neutral-muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-img {
  height: 190px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta-row {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-muted);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.news-category {
  color: var(--secondary-coral);
}

.news-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--neutral-dark);
  line-height: 1.35;
  flex-grow: 0;
}

.news-desc {
  font-size: 0.875rem;
  color: var(--neutral-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.news-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.news-link svg {
  margin-left: 0.25rem;
  transition: var(--transition-fast);
}

.news-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
  background-color: var(--neutral-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 500;
}

.footer-about .logo {
  margin-bottom: 1.25rem;
}

.footer-about .logo img {
  height: 48px;
  width: auto;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-documents {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-doc-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-doc-link svg {
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.footer-address {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-newsletter p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.newsletter-form .form-group {
  margin-bottom: 0;
  width: 100%;
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: #0c87f3;
  background-color: rgba(255, 255, 255, 0.12);
}

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

.site-footer .form-group.invalid input {
  background-color: rgba(255, 47, 10, 0.08);
  border-color: var(--secondary-coral);
}

.btn-subscribe {
  background-color: #0c87f3 !important;
  color: var(--white) !important;
  transition: var(--transition-normal);
}

.btn-subscribe:hover {
  background-color: #0b7be0 !important;
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .credit {
  margin-top: 4px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ==========================================
   Interactive Lightbox
   ========================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 12, 30, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

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

.lightbox-content img {
  border-radius: var(--radius-md);
  max-height: 80vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .programs-col-stacked {
    height: auto;
  }

  .workforce-main-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .workforce-image-wrapper {
    min-height: 460px;
    height: 460px;
  }

  .workforce-subgrid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .rating-card {
    flex: 1;
    height: 180px;
  }

  .fin-aid-card {
    flex: 1;
    height: 250px;
  }

  .program-card-image {
    height: 480px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {

  /* Navigation Mobile Overrides */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    /* Enable vertical scroll */
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu>li {
    width: 100%;
    display: block;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-menu>li>a {
    font-size: 1rem;
    padding: 1rem 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Space out title and chevron */
    color: var(--neutral-dark);
  }

  /* Reset dropdowns for inline flow on mobile */
  .sub-menu,
  .mega-menu-dropdown {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0 0 1rem 0.5rem !important;
    /* Indent submenu */
    background-color: transparent !important;
    display: none;
    /* Toggle via JS */
    pointer-events: auto !important;
  }

  .mega-menu-container {
    padding: 0 !important;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .mega-menu-column {
    grid-column: span 1 !important;
  }

  .mega-menu-column-title {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
  }

  .mega-menu-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .mega-menu-card {
    background-color: #f9fafb;
    /* Light tint for better contrast in mobile drawer */
  }

  .mega-menu-card-image {
    height: 100px;
  }

  .nav-menu>li.active-dropdown>a svg.chevron-down {
    transform: rotate(180deg);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-right {
    display: none;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Excellence */
  .excellence-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .excellence-header-row img.silver-30 {
    margin-left: 0;
  }

  .excellence .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Campus Tour */
  .tour-grid-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tour-main-video {
    min-height: 300px;
  }

  .tour-slider-page {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .glendale-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 0.75rem;
  }

  .glendale-tall {
    height: 240px;
  }

  .glendale-stacked {
    flex-direction: row;
    height: 180px;
  }

  /* Workforce */
  .workforce-main-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .workforce-image-wrapper {
    min-height: 420px;
    height: 420px;
  }

  /* Testimonials */
  .alumni-carousel {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .alumni-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

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