/* ========================================
   UWC Technology Transfer Office - Shared Styles
   ======================================== */

:root {
  /* UWC Brand Colors */
  --uwc-blue: #0a1a5c;
  --uwc-blue-dark: #002244;
  --uwc-blue-light: #0055a4;
  --uwc-gold: #bd9a4f;
  --uwc-gold-light: #bd9a4f;
  --uwc-red: #8B1538;

  /* Accent Colors */
  --accent-teal: #00C9A7;
  --accent-purple: #845EC2;

  /* Gradients */
  --gradient-bg: linear-gradient(135deg,
    #f5f7fa 0%,
    #fdf9e8 20%,
    #fff8dc 40%,
    #f0f5ff 60%,
    #e6eef8 80%,
    #f5f7fa 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  --gradient-gold: linear-gradient(135deg, var(--uwc-gold) 0%, var(--uwc-gold-light) 100%);

  /* UI Colors */
  --bg-card: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-light: rgba(0,0,0,0.06);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 6px 10px rgba(0,0,0,0.05);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.055);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  scroll-padding-top: 180px;
  overflow-x: hidden;
}

:root {
  --pad-left: clamp(40px, 19.9vw, 382px);
  --pad-right: clamp(40px, 21.5vw, 412px);
}

/* Anchor offset for fixed header + nav strip */
[id="about"],
[id="acknowledgements"] {
  scroll-margin-top: 180px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   Preloader Overlay
   ======================================== */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--uwc-blue);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  width: 360px;
}

.preloader-logo {
  width: 200px;
  height: auto;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.preloader-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.preloader-progress-fill {
  height: 100%;
  background: var(--uwc-gold);
  border-radius: 3px;
  width: 0%;
  animation: preloaderFill 3s ease-out forwards;
}

.preloader-progress-fill.complete {
  width: 100% !important;
  animation: none;
  transition: width 0.3s ease;
}

@keyframes preloaderFill {
  0% { width: 0%; }
  30% { width: 40%; }
  60% { width: 65%; }
  80% { width: 80%; }
  100% { width: 90%; }
}

.preloader-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ========================================
   Back to Analytics Button (in header-actions, matches Export PDF placement)
   ======================================== */
.back-to-analytics-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--uwc-gold);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(189, 154, 79, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.back-to-analytics-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(189, 154, 79, 0.4);
}

.back-to-analytics-btn svg {
  flex-shrink: 0;
  stroke: #ffffff;
}

/* ========================================
   Header (White Banner) - Fixed
   ======================================== */
.header {
  background: #ffffff;
  padding: 0 var(--pad-right) 0 var(--pad-left);
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(0px, 2.3vw, 45px) 2px;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
}

.logo-zone-left {
  left: 0;
  width: 50%;
}

.logo-zone-right {
  right: 0;
  width: 50%;
}

.logo-zone:hover {
  opacity: 0.85;
}

.logo {
  height: 80px;
  width: auto;
  padding: 4px 0 4px 30px;
}

/* Nav item wrapper — holds link + dropdown */
.nav-item-wrapper {
  position: relative;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.72rem, 0.75vw, 0.92rem);
  font-weight: 700;
  color: var(--uwc-blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: clamp(0px, 0.03vw, 0.5px);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.nav-item:hover {
  background: transparent;
  color: var(--uwc-blue);
}

.nav-item svg.nav-chevron {
  width: clamp(18px, 1.3vw, 25px);
  height: clamp(18px, 1.3vw, 25px);
  transition: transform 0.2s;
  stroke: var(--uwc-gold);
  stroke-width: 3;
  filter: drop-shadow(0 0 0.5px var(--uwc-gold));
}

.nav-item:hover svg.nav-chevron {
  transform: translateY(2px);
}

/* ========================================
   Dropdown Menus (Nav)
   ======================================== */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 315px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  padding: 8px 0;
}

.nav-item-wrapper:hover .nav-dropdown,
.nav-item-wrapper.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5px 10px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--uwc-blue);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: #ffffff;
  color: var(--uwc-blue);
}

/* Gold chevron on dropdown items — matches nav-chevron style */
.nav-dropdown-item svg.dropdown-chevron {
  width: 25px;
  height: 25px;
  stroke: var(--uwc-gold);
  stroke-width: 3;
  filter: drop-shadow(0 0 0.5px var(--uwc-gold));
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}

.nav-dropdown-item:hover svg.dropdown-chevron {
  transform: translateY(2px);
}

/* ========================================
   Page Sidebar Navigation (anchor nav)
   ======================================== */
.page-layout {
  display: grid;
  grid-template-columns: clamp(172px, 18vw, 260px) 1fr;
  gap: 0;
}

.page-sidebar {
  position: sticky;
  top: 160px;
  align-self: start;
  padding: 8px 0;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.sidebar-nav-link {
  display: block;
  position: relative;
  padding: clamp(12px, 1.2vw, 18px) clamp(12px, 1.3vw, 20px);
  text-indent: 19px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.75rem, 0.9vw, 0.88rem);
  font-weight: 400;
  color: var(--uwc-blue);
  text-decoration: none;
  box-shadow: inset 6px 0 0 0 var(--uwc-blue);
  transition: background 0.2s ease, color 0.2s ease, font-weight 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.4;
}

.sidebar-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--uwc-gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-nav-link:hover {
  background: var(--uwc-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}

.sidebar-nav-link:hover::before {
  opacity: 1;
}

.sidebar-nav-link.active {
  font-weight: 700;
  color: var(--uwc-gold);
  background: #ffffff;
  box-shadow: inset 6px 0 0 0 var(--uwc-gold);
}

.sidebar-nav-link.active::before {
  opacity: 0;
}

.sidebar-nav-link.active:hover {
  background: var(--uwc-blue);
  color: #ffffff;
  box-shadow: none;
}

.sidebar-nav-link.active:hover::before {
  opacity: 1;
}

.page-main-content {
  padding-left: clamp(15px, 2.8vw, 55px);
  padding-right: clamp(0px, 0.9vw, 17px);
  min-width: 0;
  overflow: visible;
}

/* Clamp all media/embeds inside body content */
.page-main-content iframe,
.page-main-content video,
.page-main-content embed,
.page-main-content object,
.page-main-content img:not(.logo):not(.header-search-icon):not(.cf-hub-image):not(.team-img) {
  max-width: 100%;
  height: auto;
}

/* Responsive iframe wrapper — 795×315 default, scales down proportionally */
.responsive-iframe-wrap {
  position: relative;
  width: 100%;
  max-width: 795px;
  padding-bottom: min(39.62%, 315px);
  height: 0;
  overflow: hidden;
}

.responsive-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-divider {
  color: var(--uwc-blue);
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 1;
  position: relative;
  top: -3.5px;
  vertical-align: middle;
}

.header-section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.94rem;
  font-weight: 900;
  color: var(--uwc-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  top: -3.5px;
}

/* ========================================
   Blue Navigation Strip
   ======================================== */
.nav-strip {
  background: var(--uwc-blue);
  height: 56px;
  padding: 0 var(--pad-right) 0 var(--pad-left);
  display: flex;
  align-items: center;
  margin-top: 148px;
}

.nav-strip-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-strip-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-left: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.nav-strip-left span.breadcrumb-text {
  color: rgba(255,255,255,0.9);
}

.breadcrumb-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: var(--uwc-gold);
}

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

.breadcrumb-home-icon {
  height: 15px;
  width: auto;
  opacity: 1;
  filter: brightness(0) invert(1);
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.5);
  margin: 0 4px;
}

.nav-strip-right {
  font-size: 0.96rem;
  color: #ffffff;
  font-weight: 700;
}

/* ========================================
   Page Hero Section
   ======================================== */
.page-hero {
  background: #ffffff;
  border-bottom: none;
  padding: var(--space-xl) var(--pad-right) var(--space-md) var(--pad-left);
  margin-bottom: 0;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--uwc-blue);
  margin-bottom: 24px;
  position: relative;
  padding-top: 12px;
}

.hero-content h1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 4px;
  background: var(--uwc-gold);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-bottom: 5px;
}

/* ========================================
   TTO Main Hero (Full-Width Carousel Image)
   ======================================== */
.tto-main-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.Hero-Carousel-img {
  display: block;
  width: 100%;
  height: auto;
}

.tto-hero-quote {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  text-align: right;
  z-index: 2;
}

.tto-hero-quote p {
  font-family: 'Inter', sans-serif;
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
  margin: 0 auto;
  padding: var(--space-xl) var(--pad-right) var(--space-xl) var(--pad-left);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--uwc-blue);
  position: relative;
  padding-top: 12px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 4px;
  background: var(--uwc-gold);
  border-radius: 2px;
}

/* ========================================
   Project Cards Grid (Phase 3)
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(189, 154, 79, 0.3);
}

.project-card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #e6eef8 0%, #f0f5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,26,92,0.4) 0%, rgba(10,26,92,0) 30%),
    linear-gradient(to top, rgba(10,26,92,0.45) 0%, rgba(10,26,92,0) 35%),
    linear-gradient(to right, rgba(10,26,92,0.3) 0%, rgba(10,26,92,0) 25%),
    linear-gradient(to left, rgba(10,26,92,0.3) 0%, rgba(10,26,92,0) 25%);
  pointer-events: none;
  z-index: 1;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-thumb .placeholder-icon {
  color: var(--uwc-blue);
  opacity: 0.2;
}

.project-card-body {
  padding: var(--space-lg);
}

.project-card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--uwc-blue);
  margin-bottom: var(--space-sm);
}

.project-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--uwc-gold);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(189,154,79,0.3);
  white-space: nowrap;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(189,154,79,0.4);
}

.btn-gold svg {
  stroke: #ffffff;
}

.card-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--uwc-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--uwc-blue);
}

/* ========================================
   Team Grid
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem clamp(0.5rem, 1vw, 0.8125rem);
  margin-bottom: var(--space-xl);
}

.team-member {
  display: flex;
  flex-direction: column;
}

.team-photo {
  position: relative;
  width: 100%;
  height: clamp(280px, 18vw + 100px, 325px);
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  border-bottom: 7px solid var(--uwc-gold);
  transition: box-shadow 0.4s ease;
}

.team-photo:hover {
  box-shadow: 0 6px 30px rgba(10,26,92,0.12), 0 2px 20px rgba(0,0,0,0.08), 4px 4px 16px rgba(0,0,0,0.06), -4px 4px 16px rgba(0,0,0,0.06);
}

.team-photo img.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.team-photo:hover img {
  transform: scale(1.06);
  cursor: pointer;
}

.team-info {
  padding: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.78rem, 0.6vw + 0.4rem, 1.175rem);
  font-weight: 600;
  color: var(--uwc-blue);
  margin-bottom: 0;
}

.team-info p {
  font-size: clamp(0.3rem, 0.2vw + 0.18rem, 0.4rem);
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0;
}

.team-info .card-link {
  font-size: clamp(0.65rem, 0.5vw + 0.28rem, 0.9375rem);
  margin-top: auto;
  text-transform: none;
}

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

@media (max-width: 768px) {
  .team-photo {
    height: clamp(240px, 40vw, 300px);
  }
  .team-info h3 {
    font-size: 0.95rem;
  }
  .team-info p {
    font-size: 0.375rem;
  }
  .team-info .card-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .team-photo {
    height: 300px;
  }
  .team-info h3 {
    font-size: 1rem;
  }
  .team-info p {
    font-size: 0.4rem;
  }
  .team-info .card-link {
    font-size: 0.875rem;
  }
}

/* Coming Soon Card */
.project-card.coming-soon {
  opacity: 0.6;
  pointer-events: none;
}

.project-card.coming-soon .project-card-thumb {
  background: linear-gradient(135deg, #e8ecf1 0%, #f1f4f8 100%);
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e2e8f0;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

/* ========================================
   File Cards (Phase 4)
   ======================================== */
.files-section {
  margin-bottom: var(--space-2xl);
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.file-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: all 0.2s ease;
}

.file-card:hover {
  border-color: rgba(189, 154, 79, 0.3);
  box-shadow: var(--shadow-lg);
}

.file-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-icon.model { background: rgba(0, 201, 167, 0.12); color: var(--accent-teal); }
.file-icon.document { background: rgba(189, 154, 79, 0.12); color: var(--uwc-gold); }
.file-icon.image { background: rgba(132, 94, 194, 0.12); color: var(--accent-purple); }
.file-icon.analytics { background: rgba(10, 26, 92, 0.08); color: var(--uwc-blue); }

.file-info {
  flex: 1;
  min-width: 0;
}

.file-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-info .file-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.file-info .file-action {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--uwc-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.file-info .file-action:hover {
  color: var(--uwc-blue);
}

/* Analytics link card — wider style */
.analytics-link-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  transition: all 0.3s ease;
}

.analytics-link-card:hover {
  border-color: rgba(189, 154, 79, 0.3);
  box-shadow: var(--shadow-lg);
}

.analytics-link-info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.analytics-link-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(10, 26, 92, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uwc-blue);
  flex-shrink: 0;
}

.analytics-link-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--uwc-blue);
  margin-bottom: 2px;
}

.analytics-link-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   Full-Width Turtle Hero (Image + Quote)
   ======================================== */
.turtle-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.turtle-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10,26,92,0.45) 0%, rgba(10,26,92,0) 25%),
    linear-gradient(to top, rgba(10,26,92,0.5) 0%, rgba(10,26,92,0) 30%),
    linear-gradient(to right, rgba(10,26,92,0.35) 0%, rgba(10,26,92,0) 20%),
    linear-gradient(to left, rgba(10,26,92,0.35) 0%, rgba(10,26,92,0) 20%);
  pointer-events: none;
}

.turtle-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.turtle-hero-quote {
  position: absolute;
  bottom: 80px;
  left: 200px;
  right: 200px;
  text-align: right;
  z-index: 2;
}

.turtle-hero-quote p {
  font-family: 'Inter', sans-serif;
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}




/* ========================================
   Text Sections & Blocks (Phase 4 Content)
   ======================================== */
.text-section {
  margin-bottom: var(--space-2xl);
}

.text-block {
  max-width: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.text-block p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* Body content links — gold, bold */
.text-block a:not(.btn-gold),
.page-main-content a:not(.card-link):not(.sidebar-nav-link):not(.nav-item):not(.nav-dropdown-item):not(.btn-gold):not(.cf-phone-btn) {
  color: var(--uwc-gold);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.text-block a:not(.btn-gold):not(.cf-phone-btn):hover,
.page-main-content a:not(.card-link):not(.sidebar-nav-link):not(.nav-item):not(.nav-dropdown-item):not(.btn-gold):not(.cf-phone-btn):hover {
  color: var(--uwc-blue);
}

/* Partners Row */
.partners-row {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.partner-logo img {
  max-width: 220px;
  height: auto;
  display: block;
}

/* Info Callout */
.info-callout {
  background: #f5f6f8;
  border-left: 4px solid var(--border-light);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-2xl);
}

.info-callout p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.info-callout strong {
  color: var(--text-primary);
}

/* Experience Grid (text left, image right) */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.experience-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--uwc-blue);
  margin-bottom: var(--space-md);
}

.experience-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.experience-image {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.experience-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: contain;
}

/* Acknowledgements */
.acknowledgements-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}

.acknowledgements-list li {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  padding-left: var(--space-md);
  position: relative;
}

.acknowledgements-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--uwc-gold);
  border-radius: 50%;
}

.acknowledgements-list li:last-child {
  border-bottom: none;
}

.acknowledgements-list a {
  color: var(--uwc-gold);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.acknowledgements-list a:hover {
  color: var(--uwc-blue);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--uwc-blue);
  color: #fff;
  padding: var(--space-2xl) var(--pad-right) 68px var(--pad-left);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  align-items: start;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: 10px;
}

.footer-links a {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--uwc-gold-light);
}

.footer-info {
  justify-self: end;
  padding-right: var(--space-xl);
  padding-top: 10px;
}

.footer-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.9);
}

.footer-info p {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 5px;
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--uwc-gold-light);
}

.footer-brand-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 32px;
}

.footer-logo {
  width: clamp(140px, 15vw, 211px);
  height: auto;
  opacity: 0.95;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icons a {
  width: 51px;
  height: 51px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uwc-gold);
  transition: all 0.2s;
}

.social-icons a:hover {
  background: var(--uwc-gold);
  border-color: var(--uwc-gold);
  color: #ffffff;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-xl);
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 400;
  opacity: 0.8;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 400;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--uwc-gold-light);
}

/* ========================================
   Search Trigger & Header Gold Divider
   ======================================== */
.search-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  cursor: pointer;
}

.search-trigger .header-search-icon {
  width: 24px;
  height: 24px;
  box-sizing: content-box;
  margin-right: 1px;
  padding-bottom: 9px;
  border-bottom: 4px solid transparent;
  transition: border-color 0.15s ease-out;
  position: relative;
  top: 2px;
  vertical-align: middle;
}

.search-trigger:hover .header-search-icon,
.search-trigger.active .header-search-icon {
  border-bottom-color: var(--uwc-gold);
  transition: border-color 0.2s ease-in;
}

/* ========================================
   Search Page
   ======================================== */
.search-page-hero {
  margin-top: 148px;
}

.search-page-content {
  padding-top: 36px;
}

.search-input-container {
  margin: 0 0 50px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--uwc-blue);
}

.search-input {
  flex: 1;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--uwc-blue);
  border: 1.5px solid var(--uwc-blue);
  border-radius: 0;
  outline: none;
  background: #ffffff;
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus {
  box-shadow: none;
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-input-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  width: 63px;
  height: 30px;
  flex-shrink: 0;
  background: var(--uwc-blue);
  border: none;
  border-radius: 0;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  padding: 9px 0px;
}

.search-input-btn:hover {
  background: var(--uwc-blue-dark);
}

.search-btn-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.search-sections {
  margin-bottom: 60px;
}

.search-sections-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--uwc-blue);
  margin-bottom: 24px;
}

.search-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.search-section-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--uwc-gold);
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--uwc-gold);
  border-radius: 6px;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.search-section-btn:hover {
  background: var(--uwc-gold);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(189, 154, 79, 0.25);
}

/* Search Results */
.search-results {
  margin-bottom: 60px;
}

.search-results-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--uwc-blue);
  margin-bottom: 24px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-result-card {
  display: block;
  padding: 20px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-result-card:hover {
  border-color: var(--uwc-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.search-result-section {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--uwc-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.search-result-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--uwc-blue);
  margin-bottom: 6px;
}

.search-result-snippet {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.search-no-results {
  padding: 30px;
  text-align: center;
}

.search-no-results p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #64748b;
}

/* ========================================
   Homepage Specific Styles
   ======================================== */

/* Blue overlay bar at the top of homepage — matches uwc.ac.za (0.8 opacity) */
.home-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 95px;
  background: rgba(10, 26, 92, 0.8);
  z-index: 999;
  pointer-events: none;
}

/* White banner strip for nav area on homepage */
.home-nav-banner {
  position: fixed;
  top: 95px;
  left: 0;
  right: 0;
  height: 53px;
  background: #ffffff;
  z-index: 999;
  pointer-events: none;
}

/* Transparent top area on homepage header (logo row only) */
.home-header {
  background: transparent !important;
  box-shadow: none !important;
}

/* White search icon, text and divider on homepage */
.home-header .header-search-icon {
  filter: brightness(0) invert(1);
}

.home-header .header-divider {
  color: rgba(255, 255, 255, 0.7);
}

.home-header .header-section-label {
  color: #ffffff;
}

/* ========================================
   Hero Carousel (Homepage)
   ======================================== */
.hero-carousel.home-hero {
  position: relative;
  width: 100%;
  height: calc(100vh + 148px);
  margin-top: -148px;
  overflow: hidden;
  z-index: 0;
}

/* Slide track */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
  background: var(--uwc-blue);
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide image — 16:9 source, cover fills viewport */
.carousel-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Blue gradient overlay on each slide for text legibility */
.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,26,92,0.55) 0%, rgba(10,26,92,0.30) 40%, rgba(10,26,92,0.20) 60%, rgba(10,26,92,0.50) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Heavier overlay for slides with white/light background images */
.carousel-slide.slide-light-bg .carousel-slide-overlay {
  background:
    linear-gradient(to bottom, rgba(10,26,92,0.65) 0%, rgba(10,26,92,0.45) 35%, rgba(10,26,92,0.40) 60%, rgba(10,26,92,0.60) 100%);
}

/* Slide content — holds heading + CTA button, vertically centered in safe zone */
.carousel-slide-content {
  position: absolute;
  top: 318px;
  bottom: -27px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

/* Slide heading overlay text */
.carousel-slide-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 62px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.5px;
  max-width: 100%;
}

/* Gold gradient CTA button — matches uwc.ac.za style */
.carousel-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 30px;
  background: linear-gradient(to right, #a68535 0%, #b8943e 40%, #c9a84c 70%, #d4b85c 100%);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(189,154,79,0.3);
}

.carousel-cta-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(to right, #b8943e 0%, #c9a84c 40%, #d4b85c 70%, #dfc46a 100%);
  box-shadow: 0 4px 16px rgba(189,154,79,0.45);
}

.carousel-cta-btn .cta-chevron {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 3;
  flex-shrink: 0;
}

/* Carousel arrows — white circle, 80x80, matches uwc.ac.za */
.carousel-arrow {
  position: absolute;
  top: calc(50% + 120px);
  transform: translateY(-50%);
  z-index: 3;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  padding: 0;
}

.carousel-arrow:hover {
  opacity: 0.85;
}

.carousel-arrow-left {
  left: 40px;
}

.carousel-arrow-right {
  right: 40px;
}

.carousel-arrow img {
  display: block;
}

/* Carousel dots — matches uwc.ac.za */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.carousel-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: #ffffff;
  border-color: #ffffff;
}

.carousel-dot:hover {
  border-color: #ffffff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
  .page-main-content { padding-left: 0; padding-right: 0; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .turtle-hero-quote {
    bottom: 80px;
    left: var(--space-xl);
    right: var(--space-xl);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-info {
    justify-self: start;
    padding-right: 0;
  }

  .logo { height: 60px; }

  .header-section-label { display: none; }
  .header-divider { display: none; }

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

  /* Contact form grid — stack on tablets */
  .cf-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
  .cf-grid-form { grid-column: 1; grid-row: auto; }
  .cf-grid-map { grid-column: 1; grid-row: auto; }
  .cf-grid-address { grid-column: 1; grid-row: auto; }
  .cf-grid-phone { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .cf-grid-map iframe { min-height: 300px; }

  /* Partner logos — reduce for tablets */
  .partner-logo img { max-width: 180px; }

  /* Date picker — fit tablet screens */
  .date-picker-dropdown {
    width: min(520px, 90vw);
  }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 1.4rem; }

  .turtle-hero-quote {
    bottom: 40px;
    right: 32px;
    left: 32px;
    max-width: none;
    text-align: center;
  }

  .turtle-hero-quote p { font-size: 1rem; }

  .partners-row { gap: var(--space-lg); }
  .partner-logo img { max-width: 160px; }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-info {
    justify-self: center;
    text-align: center;
    padding-right: 0;
  }

  .footer-brand-social { align-items: center; }
  .social-icons { justify-content: center; }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    justify-content: center;
  }

  .footer-bottom-links { justify-content: center; }
  .logo { height: 45px; }

  /* Footer logo — scale down on mobile */
  .footer-logo {
    width: clamp(140px, 50vw, 211px);
    height: auto;
    margin-bottom: clamp(36px, 8vw, 72px);
  }

  /* Social icons — reduce on mobile */
  .social-icons a {
    width: 42px;
    height: 42px;
  }

  /* Files grid — single column on mobile */
  .files-grid {
    grid-template-columns: 1fr;
  }

  /* Search buttons — single column on mobile */
  .search-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   News & Events — 3-Part Search Bar
   ======================================== */
.news-search-container {
  margin-bottom: 36px;
}

.news-search-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

/* Shared styles for keyword input, title dropdown, date picker */
.search-field-keyword,
.search-field-title,
.search-field-date {
  height: 34px;
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1.04rem;
  border: 2px solid var(--uwc-gold);
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
}

/* Keyword input — left, bold gold italic */
.search-field-keyword {
  flex: 1;
  color: var(--uwc-gold);
  font-weight: 700;
  font-style: italic;
}

.search-field-keyword::placeholder {
  color: var(--uwc-gold);
  font-weight: 700;
  font-style: italic;
  opacity: 0.85;
}

.search-field-keyword:focus {
  border-color: var(--uwc-gold);
  box-shadow: 0 0 0 2px rgba(189, 154, 79, 0.15);
}

/* Title dropdown — middle, blue text */
.search-field-title {
  flex: 1.2;
  color: var(--uwc-blue);
  font-weight: 700;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a1a5c' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.search-field-title option {
  color: var(--uwc-blue);
  font-family: 'Inter', sans-serif;
}

/* Date picker trigger — right */
.search-field-date {
  flex: 0.7;
  color: var(--uwc-blue);
  min-width: 0;
  cursor: text;
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0;
}

/* Text input inside date box — blinking cursor */
.search-field-date .date-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--uwc-blue);
  padding: 0 14px;
  caret-color: var(--uwc-blue);
  box-sizing: border-box;
}

.search-field-date .date-input::placeholder {
  color: var(--uwc-blue);
  font-weight: 700;
  opacity: 1;
}

/* ---- Custom 2-Month Date Picker ---- */
.date-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 200;
  background: #ffffff;
  border: 1px solid var(--uwc-gold);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.09);
  padding: 6px 0 4px;
  width: min(520px, 90vw);
  min-height: 280px;
  box-sizing: border-box;
}

/* Speech-bubble nub / pearl arrow pointing up into the date box */
.date-picker-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 1px solid var(--uwc-gold);
  border-top: 1px solid var(--uwc-gold);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}

.date-picker-dropdown.show {
  display: block;
}

.dp-months-row {
  display: flex;
  gap: 0;
  align-items: flex-start;
  padding: 0;
  position: relative;
}

/* Nav arrows (chevrons) — absolutely positioned over Su/Sa columns */
.dp-nav-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 3px;
  height: 24px;
  border-radius: 4px;
  transition: background 0.15s;
  z-index: 2;
}

.dp-months-row > .dp-nav-arrow:first-child {
  left: 10px;
}

.dp-months-row > .dp-nav-arrow:last-child {
  right: 10px;
}

.dp-nav-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--uwc-blue);
  stroke-width: 2.5;
  fill: none;
}

.dp-nav-arrow:hover {
  background: rgba(10, 26, 92, 0.12);
}

.dp-nav-arrow:hover svg {
  stroke: #1a3aad;
}

/* Month panel */
.dp-month-panel {
  flex: 1;
  min-width: 0;
}

.dp-months-row .dp-month-panel:first-of-type {
  margin-left: 4px;
  margin-right: 18px;
}

.dp-months-row .dp-month-panel:last-of-type {
  margin-left: 18px;
  margin-right: 4px;
}

.dp-month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-top: 2px;
}

.dp-month-header select {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--uwc-blue);
  border: 1px solid var(--uwc-gold);
  border-radius: 3px;
  padding: 3px 14px;
  height: 24px;
  background: #fff;
  cursor: pointer;
  outline: none;
  min-width: 0;
  width: auto;
}

.dp-month-header select.dp-month-select {
  min-width: 95px;
}

.dp-month-header select.dp-year-select {
  min-width: 70px;
}

.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}

.dp-weekdays span {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--uwc-blue);
  padding: 4px 0;
}

.dp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 2px;
}

.dp-day {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--uwc-blue);
  padding: 7px 0;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.dp-day:hover {
  background: rgba(10, 26, 92, 0.08);
}

.dp-day.other-month {
  color: #b0b8c9;
}

.dp-day.today {
  background: var(--uwc-blue);
  color: #ffffff;
  font-weight: 700;
}

.dp-day.selected {
  background: var(--uwc-blue);
  color: #ffffff;
  font-weight: 700;
}

.dp-day.in-range {
  background: rgba(10, 26, 92, 0.12);
}

.dp-day.range-start,
.dp-day.range-end {
  background: var(--uwc-blue);
  color: #ffffff;
  font-weight: 700;
}

/* Footer row: range display to left of Clear Date, 24px gap */
.dp-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding: 4px 6px 0;
  border-top: 1px solid #e5e7eb;
}

.dp-footer-spacer {
  flex: 1;
}

.dp-range-display {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--uwc-blue);
  font-weight: 400;
  margin-right: 14px;
  white-space: nowrap;
}

.dp-clear-btn,
.dp-apply-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 18px;
  transition: background 0.15s ease;
}

.dp-clear-btn {
  background: none;
  border: none;
  color: var(--uwc-blue);
}

.dp-clear-btn:hover {
  background: none;
}

.dp-apply-btn {
  background: var(--uwc-blue);
  border: none;
  color: #ffffff;
}

.dp-apply-btn:hover {
  background: #0d2270;
}

/* GO button */
.search-go-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 22px;
  flex-shrink: 0;
  background: var(--uwc-gold);
  border: 2px solid var(--uwc-gold);
  border-radius: 6px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.search-go-btn:hover {
  background: #a8873f;
  border-color: #a8873f;
  transform: translateY(-1px);
}

.search-go-btn:active {
  transform: translateY(0);
}

/* No results message */
.news-no-results {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #64748b;
}

/* Search bar responsive */
@media (max-width: 900px) {
  .news-search-bar {
    flex-wrap: wrap;
  }
  .search-field-keyword,
  .search-field-title {
    flex: 1 1 45%;
  }
  .search-field-date {
    flex: 1 1 35%;
  }
  .search-go-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  .news-search-bar {
    flex-direction: column;
  }
  .search-field-keyword,
  .search-field-title,
  .search-field-date,
  .search-go-btn {
    width: 100%;
    flex: none;
  }
}

/* ========================================
   News Cards — 4×4 Grid, 178×164 thumbnails, gold bottom edge
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: var(--space-xl);
}

.news-card {
  background: #ffffff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.news-card-thumb {
  width: 100%;
  height: 164px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e6eef8 0%, #f0f5ff 100%);
}

.news-card-thumb img {
  width: 101%;
  min-height: 101%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

/* Vignette overlay on news thumbnails */
.news-card-thumb::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Gold bottom edge on news thumbnails */
.news-card-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--uwc-gold);
  z-index: 2;
}

/* Coming soon placeholder */
.news-card:has(.coming-soon),
.event-card:has(.coming-soon),
.tech-card:has(.coming-soon) {
  opacity: 0.7;
}

.news-card-thumb.coming-soon,
.event-card-thumb.coming-soon,
.tech-photo.coming-soon {
  background: linear-gradient(135deg, #e8ecf2 0%, #f4f6f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-thumb.coming-soon img,
.event-card-thumb.coming-soon img,
.tech-photo.coming-soon img {
  display: none;
}

.news-card-thumb.coming-soon::after,
.event-card-thumb.coming-soon::after,
.tech-photo.coming-soon::after {
  display: none;
}

.news-card-thumb.coming-soon::before,
.event-card-thumb.coming-soon::before,
.tech-photo.coming-soon::before {
  display: none;
}

.coming-soon-svg {
  width: 48px;
  height: 48px;
  opacity: 0.18;
  flex-shrink: 0;
}

.news-card-body {
  padding: 0;
  margin-top: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--uwc-blue);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.news-card-body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin: 0;
}

.news-meta {
  display: block;
  font-size: 0.65rem;
  color: var(--uwc-gold);
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.news-card-body .ne-read-more {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--uwc-gold);
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
  padding-top: 4px;
  display: inline-block;
  transition: color 0.2s ease;
}

.news-card-body .ne-read-more:hover {
  color: var(--uwc-blue);
}

.news-card-body .ne-read-more.disabled,
.event-card-body .ne-read-more.disabled,
.tech-read-more.disabled {
  display: none;
}

/* ========================================
   Events Cards — 4×4 Grid, 175×160 thumbnails, gold top+bottom edges
   ======================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: var(--space-xl);
}

.event-card {
  background: #ffffff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.event-card-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e6eef8 0%, #f0f5ff 100%);
}

.event-card-thumb img {
  width: 101%;
  min-height: 101%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.event-card-thumb:hover img {
  transform: scale(1.06);
}

/* Gold top edge on event thumbnails — 24px with date text */
.event-card-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--uwc-gold);
  z-index: 1;
}

.event-card-date {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* Gold bottom edge on event thumbnails — 35px with Archived text */
.event-card-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35px;
  background: var(--uwc-gold);
  z-index: 1;
}

.event-card-archived {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35px;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.event-card-body {
  padding: 0;
  margin-top: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.event-card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--uwc-blue);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.event-card-body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin: 0;
}

.event-card-body .ne-read-more {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--uwc-gold);
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
  padding-top: 4px;
  display: inline-block;
  transition: color 0.2s ease;
}

.event-card-body .ne-read-more:hover {
  color: var(--uwc-blue);
}

/* ========================================
   News & Events Grid Responsive
   ======================================== */
@media (max-width: 1200px) {
  .news-grid,
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .news-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Card Expand Overlay — fullscreen photo stack with text
   ======================================== */
.card-expand-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.card-expand-overlay.active {
  opacity: 1;
  visibility: visible;
}

.card-expand-inner {
  position: relative;
  width: 80vw;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.93);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 2px 12px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

.card-expand-overlay.active .card-expand-inner {
  transform: scale(1);
}

.card-expand-img {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-bottom: 7px solid var(--uwc-gold);
  flex-shrink: 0;
}

.card-expand-text {
  background: #ffffff;
  padding: 24px 28px 28px;
  overflow-y: auto;
  flex: 1;
}

.card-expand-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 1vw + 0.5rem, 1.35rem);
  font-weight: 700;
  color: var(--uwc-blue);
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.card-expand-text p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.85rem, 0.5vw + 0.55rem, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.card-expand-text p a,
.card-expand-text p a:visited {
  color: var(--uwc-gold);
  text-decoration: underline;
  word-break: break-all;
  transition: color 0.2s ease;
}

.card-expand-text p a:hover {
  color: var(--uwc-blue);
}

.card-expand-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: var(--uwc-gold);
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.card-expand-close:hover {
  background: var(--uwc-blue);
}

.card-expand-close svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

@media (max-width: 600px) {
  .card-expand-inner {
    width: 95vw;
  }
  .card-expand-img {
    max-height: 40vh;
  }
  .card-expand-text {
    padding: 16px 18px 20px;
  }
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form-container {
  max-width: 100%;
  background: #ffffff;
  padding: 15px 0 0 0;
}

.cf-security-info {
  background-color: #e7f3ff;
  border: 1px solid #b6d4fe;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #084298;
  text-align: center;
}

.cf-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cf-form-row .cf-form-group {
  flex: 1;
  min-width: 0;
}

.cf-form-group {
  margin-bottom: 10px;
}

.cf-form-group label {
  display: none;
}

.cf-checkbox-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--uwc-blue);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.cf-required {
  color: #dc3545;
}

.cf-form-group input[type="text"],
.cf-form-group input[type="email"],
.cf-form-group input[type="tel"],
.cf-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.1px solid var(--uwc-blue);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
  background: #fff;
  color: var(--uwc-blue);
}

.cf-form-group input::placeholder,
.cf-form-group textarea::placeholder {
  color: var(--uwc-blue);
  opacity: 0.5;
  font-weight: 700;
}

.cf-form-group input:focus,
.cf-form-group textarea:focus {
  outline: none;
  border-color: var(--uwc-gold);
  box-shadow: none;
}

.cf-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.cf-char-count {
  color: #6c757d;
  font-size: 12px;
  margin-top: 5px;
}

.cf-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.cf-checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--uwc-blue);
}

.cf-checkbox-label {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.cf-checkbox-label a {
  color: var(--uwc-blue);
  text-decoration: none;
  font-weight: 500;
}

.cf-checkbox-label a:hover {
  text-decoration: underline;
}

.cf-submit-btn {
  background: #ffffff;
  color: var(--uwc-gold);
  border: 1.3px solid var(--uwc-gold);
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 70px;
  height: 36px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}

.cf-submit-btn:hover:not(:disabled) {
  background: var(--uwc-gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(189, 154, 79, 0.4);
}

.cf-submit-btn:disabled {
  background: #f5f5f5;
  color: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cf-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid var(--uwc-gold);
  border-radius: 50%;
  animation: cfSpin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes cfSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cf-alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 14px;
  position: relative;
}

.cf-alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.cf-alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.cf-close-btn {
  float: right;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  margin-left: 10px;
}

.cf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Contact Grid: 3 columns, 2 rows */
.cf-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* Row 1, Col 1+2: Form */
.cf-grid-form {
  grid-column: 1 / 3;
  grid-row: 1;
}

/* Row 1+2, Col 3: Image + Map */
.cf-grid-map {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Row 2, Col 1: Address */
.cf-grid-address {
  grid-column: 1;
  grid-row: 2;
}

/* Row 2, Col 2: Phone */
.cf-grid-phone {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.cf-hub-image {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center center;
  border-bottom: 6px solid var(--uwc-gold);
  cursor: grab;
}

.cf-hub-image:active {
  cursor: grabbing;
}

.cf-grid-map iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 400px;
}

.cf-address-col {
  margin-bottom: 20px;
}

.cf-address-col h3 {
  color: var(--uwc-blue);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cf-address-col p {
  color: #333;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.cf-address-col a {
  color: var(--uwc-blue);
  text-decoration: none;
}

.cf-address-col a:hover {
  color: var(--uwc-gold);
}

.cf-phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cf-phone-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cf-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--uwc-gold);
  border: 1.3px solid var(--uwc-gold);
  border-radius: 3px;
  height: 36px;
  padding: 0 26px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cf-phone-btn:hover {
  background: var(--uwc-gold);
  color: #ffffff;
}

@media (max-width: 600px) {
  .contact-form-container {
    padding: 20px 0 0 0;
  }

  .cf-form-row {
    flex-direction: column;
  }

  .cf-form-row .cf-form-group {
    min-width: 100%;
  }

  .cf-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .cf-grid-map iframe {
    min-height: 350px;
  }
}

/* ========================================
   Tech Grid — 2-column layout, team-style cards
   ======================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: var(--space-xl);
}

.tech-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Cropped photo container */
.tech-photo {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  border-bottom: 7px solid var(--uwc-gold);
  transition: box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.tech-photo:hover {
  box-shadow: 0 6px 30px rgba(10,26,92,0.12), 0 2px 20px rgba(0,0,0,0.08), 4px 4px 16px rgba(0,0,0,0.06), -4px 4px 16px rgba(0,0,0,0.06);
}

.tech-photo img {
  min-width: 101%;
  min-height: 101%;
  width: 101%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.tech-photo:hover img {
  transform: scale(1.06);
}

/* Vignette gradient overlay — edges 35% gray fading to transparent center */
.tech-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---- Lightbox ---- */
.tech-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tech-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.tech-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.tech-lightbox-wrap {
  position: relative;
  z-index: 1;
  width: 70vw;
  height: 75vh;
  max-width: 900px;
  max-height: 680px;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.tech-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  display: block;
}

.tech-lightbox-close {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  width: 15px;
  height: 15px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.tech-lightbox-close:hover {
  background: var(--uwc-gold);
}

.tech-lightbox-close svg {
  width: 9px;
  height: 9px;
  stroke: var(--uwc-gold);
  stroke-width: 2.5;
  transition: stroke 0.2s ease;
}

.tech-lightbox-close:hover svg {
  stroke: #ffffff;
}

.tech-info {
  padding: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tech-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.78rem, 0.6vw + 0.4rem, 1.175rem);
  font-weight: 600;
  color: var(--uwc-blue);
  margin-bottom: 6px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-desc {
  position: relative;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.tech-desc p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 0.4vw + 0.5rem, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-desc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, #ffffff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tech-desc.expanded::after {
  opacity: 0;
}

.tech-read-more {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.7rem, 0.4vw + 0.4rem, 0.85rem);
  font-weight: 600;
  color: var(--uwc-gold);
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
  padding-top: 6px;
  display: inline-block;
  transition: color 0.2s ease;
}

.tech-read-more:hover {
  color: var(--uwc-blue);
}

@media (max-width: 1100px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-info h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .tech-info h3 {
    font-size: 1rem;
  }
}
