/* ===============================
   Design Tokens
   =============================== */
:root {
  --color-brand: #1E407C;
  --color-brand-50: rgba(30, 64, 124, 0.5);
  --color-text: #343434;
  --color-white: #fff;
  --shadow-brand: #001E44;

  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-600: 1.25rem;
  --fs-900: 2.5rem;
  --fs-1100: 5rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-30: 120px;

  --radius-2: 8px;

  --ease: cubic-bezier(.22,1,.36,1);
  --dur-fast: 120ms;
  --dur-med: 300ms;
  --dur-slow: 400ms;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===============================
   Header & Navigation
   =============================== */
#app-header { background-color: var(--color-white); }

ul.nav,
span.Dropdown__ToggleIcon--header.icon-right,
span.Dropdown__ToggleText,
#user-nav > a,
.search-refine-button__contents { color: var(--color-text); }

#user-nav { padding-top: var(--space-6); }

#page-links { display: inline-block; }

#page-links a {
  display: inline-block;
  padding: var(--space-2) var(--space-4) var(--space-2) 0;
  font-size: 14px;
  color: var(--color-text);
}

#page-links .piped-list > li:not(:last-child)::after {
  content: "|";
  color: var(--color-text);
  margin: 0 var(--space-1);
}

/* ===============================
   Buttons & Icons
   =============================== */
.btn-info,
.Icon__CircleWrap--info,
.product-flag.product-flag-free,
.ProductIcon__LargeCircle--course,
.ProductIcon__SmallCircle--course {
  background: var(--color-brand);
}

.btn-info:hover,
.btn-info:focus,
.ProductIcon__LargeCircle--course:focus {
  background: var(--color-brand);
  filter: brightness(85%);
}

/* ===============================
   Responsive Banner
   =============================== */
.feature-region {

  background-image: url("https://cfvod.kaltura.com/p/2356971/sp/235697100/thumbnail/entry_id/1_qvtiqtkk/version/100011/width/0/height/0");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;

  /* responsive height */
  height: clamp(280px, 50vh, 560px);

  /* center text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-inline: 1rem; /* prevent clipping on small screens */
}

/* Subtle overlay for better text contrast */
.feature-region::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 68, 0.6), rgba(30, 64, 124, .7));
  z-index: 0;
}

/* Subtle fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner text */
#banner-h1 {
  font-family: "Roboto Slab", Roboto, sans-serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--color-white);
  text-shadow: 0 0 10px var(--shadow-brand);
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 1100px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s var(--ease) forwards;
}

#banner-p {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  color: var(--color-white);
  text-shadow: 0 0 8px var(--shadow-brand);
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 1100px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s var(--ease) 0.2s forwards;
  animation-fill-mode: both;
}

/* ===============================
   Search Panel
   =============================== */
#search-form .search-form-container { background-color: var(--color-brand); }

.search-refine-button__text,
.icon.search-refine-button__icon.icon-circle-down,
.icon.search-refine-button__icon.icon-circle-up { color: var(--color-white); }

/* ===============================
   Product Tiles & Hover Animations
   =============================== */

/* Option 1: Minimal Elevation */
.product-tile {
  display: inline-block;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(30, 64, 124, 0.15);
}

/* Remove the blue underline bar */
.product-results .product-tile {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-results .product-tile:hover {
  box-shadow: 0 12px 24px rgba(30, 64, 124, 0.15);
  transform: translateY(-4px);
}

.product-tile .tile-image,
.product-tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}

.product-tile:hover .tile-image,
.product-tile:hover img {
  transform: scale(1.03);
}

.product-tile .tile-title,
.product-link {
  transition: color 0.2s ease;
}

.product-tile:hover .tile-title,
.product-tile:hover .product-link {
  color: var(--color-brand);
}

/* ===============================
   Description Page Formatting
   =============================== */
span.css-1biq480-baseButton__content { background-color: var(--color-brand); }

#description p, #description li { font-size: 16px; }

#description h3 {
  font-size: 21px;
  color: var(--color-brand);
  font-weight: 600;
}

#description h2 {
  margin-bottom: 15px;
  color: var(--color-brand);
  font-weight: 600;
  font-size: 25px;
  padding-inline-start: 15px;
}

#course-dates {
  margin-bottom: 0;
  padding-inline-start: 15px;
  font-style: italic;
}