/* -----------------------------
   Brand fonts
----------------------------- */

/*@font-face {
    font-family: 'Segoe UI';
    src: url('../Fonts/Collidge-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Segoe UI';
    src: url('../Fonts/Collidge-RegularOutline.otf') format('truetype');
}

@font-face {
    font-family: 'Segoe UI';
    src: url('../Fonts/BebasNeue-regular.ttf') format('truetype');
}*/

/* -----------------------------
   Brand tokens
----------------------------- */

:root {
  --ms-blue: #0067b8;
  --ms-yellow: #ffb900;
  --ms-red: #d83b01;
  --ms-green: #80cc28;
  --ms-green-dark: #042d22;
  --ms-orange: #fe4b11;
  --page-bg: #f2f2f2;
  /* Scrollbar tokens (for future use) */
  --txp-scrollbar-track: #e5e5f0;
  --txp-scrollbar-thumb: #000e7a;
}

/* -----------------------------
   Global typography
----------------------------- */

html,
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 400; /* Regular */
  color: black;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 300; /* Light by default for headings unless overridden */
  color: black;
  margin-top: 0;
}

/* Base Paragraph */
p {
  font-size: 1rem; /* Reduced from 1.125rem (Standard 16px) */
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Label / Micro heading */
h5 {
  /* Starts at 1.125rem (18px) - Reduced from 1.25rem */
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  font-weight: 400;
}

/* Small heading */
h4 {
  /* Starts at ~1.375rem (22px) - Reduced from 1.56rem */
  font-size: clamp(1.375rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}

/* Sub-section title */
h3 {
  /* Starts at ~1.75rem (28px) - Reduced from 1.95rem */
  font-size: clamp(1.75rem, 3.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

/* Section title */
h2 {
  /* Starts at ~2.1rem (34px) - Reduced from 2.44rem */
  font-size: clamp(2.1rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
}

/* override for scraped course content h2 > h4 size */
.course-content h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}

/* HERO / PAGE TITLE */
h1 {
  /* Starts at ~2.75rem (44px) - Reduced from 3.05rem */
  font-size: clamp(2.75rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
}

h1:focus {
  outline: 2px solid var(--ms-blue);
  outline-offset: 2px;
}

/* Ensure all focusable elements have visible focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ms-blue);
  outline-offset: 2px;
}

/* Skip link styling */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus\:not-sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* -----------------------------
   Links & buttons
----------------------------- */

a {
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  font-weight: 400;
}

/* Ensure links in content areas are distinguishable - WCAG 1.4.1 */
main p a,
main li a,
article a:not(.btn):not([class*="rounded"]) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

main p a:hover,
main li a:hover,
article a:not(.btn):not([class*="rounded"]):hover {
  text-decoration-thickness: 2px;
}

button {
  border: inherit;
  font-size: clamp(1.25rem, 2vw, 1.35rem);
  font-weight: 400;
}

.btn {
  border: inherit;
  font-size: clamp(1.56rem, 3vw, 1.8rem);
  font-weight: 600;
}

details {
  font-size: clamp(1.25rem, 2vw, 1.35rem);
  font-weight: 400;
}

summary {
  font-size: clamp(1.56rem, 3vw, 1.8rem);
  font-weight: 600;
}

/* -----------------------------
   Layout helpers
----------------------------- */

.nav-group {
  position: relative;
}

.nav-dropdown {
  display: none;
}

.nav-group:hover .nav-dropdown {
  display: block;
}

/* the bridge */
.nav-group::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  height: 16px; /* match your gap (mt-4 ≈ 16px) */
  width: 100%;
}

/* Navbar inner container: responsive horizontal padding, defined here to avoid
   Bootstrap's px-* !important utilities overriding Tailwind responsive prefixes */
.nav-inner-padding {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .nav-inner-padding {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.nav-menu {
  padding-top: 3rem;
  padding-bottom: 3rem;
  transition: padding 200ms ease;
}

.header--scrolled .nav-menu {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.nav-link {
  font-size: 1rem;
  color: #000;
}

.nav-link:hover {
  color: var(--ms-blue);
}

/* -----------------------------
   Forms & validation
----------------------------- */

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid var(--mtw-teal);
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

.form-floating > .form-select {
  padding-top: 0.6rem;
}

/* Radzen input radius variables */
.rz-datepicker,
rz-inputtext {
  --rz-border-radius: 0.5rem;
  --rz-input-border-radius: 0.5rem;
}

/* -----------------------------
   Animation utilities
----------------------------- */

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes ken-burns-seamless {
  0% {
    opacity: 0;
    transform: scale(1);
    z-index: 1;
  }
  /* Fade in starts (2% of 64s is ~1.2s) */
  1% {
    z-index: 30; /* Bring to very front */
  }

  6% {
    opacity: 1;
  }
  /* Stay on top layer for 8s total */
  12.5% {
    z-index: 30;
  }
  /* Drop to middle layer, but STAY OPAQUE */
  13% {
    z-index: 20;
  }
  /* Stay visible as a "floor" for another 8s to prevent gaps */
  25% {
    opacity: 1;
    z-index: 20;
  }
  /* Finally fade out and zoom */
  30% {
    opacity: 0;
    transform: scale(1.1);
    z-index: 1;
  }

  100% {
    opacity: 0;
    z-index: 1;
  }
}

.animate-loop {
  opacity: 0;
  animation: ken-burns-seamless 64s linear infinite;
  will-change: opacity, transform;
}

/* Respect user's motion preferences - WCAG 2.3.3 */
@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;
  }

  .animate-fade-in-up,
  .animate-loop {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* -----------------------------
   Text utilities
----------------------------- */

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truncate-learn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2-style {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -----------------------------
   Blazor error boundary
----------------------------- */

.blazor-error-boundary {
  background: var(--mtw-navy-dark);
  padding: 1rem 1rem 1rem 3.7rem;
  color: #ffffff;
  position: relative;
}

.blazor-error-boundary::before {
  content: "!";
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "BebasNeue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.15em;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

/* -----------------------------
   Brand imagery helpers
----------------------------- */

.brandimage {
  height: 40px;
}

.powerbyimage {
  height: 60px;
}

/* -----------------------------
   Radzen dialog tweaks
----------------------------- */

.rz-dialog .rz-dialog-content {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.rz-dialog .rz-dialog-titlebar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mtw-grey-mid);
  background-color: #ffffff;
  color: var(--mtw-navy);
  font-family: "BebasNeue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform:;
}

/* -----------------------------
   Blazor reconnect modal
----------------------------- */

#components-reconnect-modal {
  display: none !important;
}

/* Base slider */
input.distance-slider[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  height: 32px; /* click area */
  position: relative;
  padding: 0;
  border: none;
}

/* TRACK (Chrome/Edge/Safari) */
input.distance-slider[type="range"]::-webkit-slider-runnable-track {
  height: 15px;
  border-radius: 9999px;
  background: var(--ms-yellow);
  position: relative;
}

/* VERTICAL TICKS � grow DOWN from bottom of bar, skip first position */

/* THUMB (Chrome/Edge/Safari) */
input.distance-slider[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--ms-blue); /* solid blue */
  border: none;
  box-shadow: 0 0 0 3px var(--page-bg); /* subtle halo vs yellow */
  cursor: grab;
  /* center thumb vertically on 15px track */
  margin-top: calc((15px / 2) - 11px);
}

/* FIREFOX equivalents */
input.distance-slider[type="range"]::-moz-range-track {
  height: 15px;
  border-radius: 9999px;
  background: var(--ms-yellow);
}

input.distance-slider[type="range"]::-moz-range-progress {
  background: transparent;
}

input.distance-slider[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--ms-blue);
  border: none;
  box-shadow: 0 0 0 3px var(--page-bg);
  cursor: grab;
}

/* ---------- SWConnector opportunity cards ---------- */
/* Scope everything to this site only via .swc-opps */

.swc-opps {
  background: var(--page-bg, #f4f4f4);
}

/* Grid layout for cards: 1 / 2 / 3 columns */
.swc-opps .grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile: 1 column */
  row-gap: 3.5rem; /* extra space for closing-soon tag */
  column-gap: 2rem;
}

@media (min-width: 768px) {
  /* 2 columns */
  .swc-opps .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  /* 3 columns */
  .swc-opps .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Base card styling */
.swc-opps article,
.opp-carousel article {
  position: relative;
  border: none;
  border-radius: 1.75rem;
  padding: 1.25rem 1rem 3.5rem; /* smaller padding with space for bottom bar */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .swc-opps article,
  .opp-carousel article {
    padding: 1.5rem 1.5rem 3.5rem;
  }
}

/* Only cards with class 'closing-soon' get the pill */
.swc-opps article.closing-soon::before,
.opp-carousel article.closing-soon::before {
  content: "Closing Soon";
  position: absolute;
  top: -1.2rem;
  right: 2rem;
  transform: translateY(-50%);
  padding: 0.5rem 1.5rem;
  border-radius: 1.25rem 1.25rem 0 0;
  background: #00c896;
  color: #ffffff;
}

/* Reorder inner layout:
       - logo block (was right column) at the top
       - text block underneath
    */
.swc-opps article > div:last-child,
.opp-carousel article > div:last-child {
  order: 1; /* logo + button wrapper */
  width: 100% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.swc-opps article > div:first-child,
.opp-carousel article > div:first-child {
  order: 2; /* text + meta */
  width: 100%;
  text-align: center;
}

/* Logo area */
.swc-opps article > div:last-child > div:first-child,
.opp-carousel article > div:last-child > div:first-child {
  max-width: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swc-opps article > div:last-child > div:first-child img,
.opp-carousel article > div:last-child > div:first-child img {
  height: 100%;
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}

/* Main title */
.swc-opps article header h4,
.opp-carousel article header h4 {
  margin-top: 1.5rem;
  color: #003b3f;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}

.swc-opps article header p,
.opp-carousel article header p {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: #003b3f;
  font-size: 1rem;
  line-height: 1.5;
}

.swc-opps article dl,
.opp-carousel article dl {
  margin-top: 1.25rem;
}

.swc-opps article dl dt,
.opp-carousel article dl dt {
  display: none;
}

.swc-opps article dl dd,
.opp-carousel article dl dd {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: #e7f5f2;
  color: #003b3f;
}

.swc-opps article > div:last-child button,
.opp-carousel article > div:last-child button {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 1.75rem 1.75rem;
  background: #1a1a1a !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  text-transform: none;
  justify-content: center;
  box-shadow: none;
  border: none;
}

.swc-opps article:hover,
.opp-carousel article > div:last-child button {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.swc-opps article > div:last-child a,
.opp-carousel article > div:last-child a {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 1.75rem 1.75rem;
  background: #1a1a1a !important;
  color: #ffffff !important;
  padding: 1rem 1.5rem;
  text-transform: none;
  justify-content: center;
  box-shadow: none;
  border: none;
}

.swc-opps article:hover,
.opp-carousel article > div:last-child a {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* ---------- Posted / Closing pills inside the same DL ---------- */

/* Base pill styling (used for posted/closing) */
.swc-opps .opp-pill,
.opp-carousel .opp-pill {
  display: inline-block;
  vertical-align: middle;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Red variant matching the design */
.swc-opps .opp-pill--red,
.opp-carousel .opp-pill--red {
  background: #ffe0dc; /* pale red background */
  color: #b5463b; /* darker red text */
}

/* Ensure DD with opp-pill doesn�t pick up extra stuff from the generic dd rule */
.swc-opps article dl dd.opp-pill,
.opp-carousel article dl dd.opp-pill {
  margin: 0; /* kill default dd margin */
}

/* ----- SWConnector opportunity detail: accordion card + buttons ----- */
.swc-opp-detail {
  --accordion-radius: 1.5rem;
}

.swc-opp-detail .opp-accordion-card {
  background: var(--page-bg, #f4f4f4);
  border-radius: 1.5rem;
}

/* space between accordion items */
.swc-opp-detail .opp-accordion__item + .opp-accordion__item {
  margin-top: 0.5rem;
}

/* header rows */
.swc-opp-detail .opp-accordion__toggle {
  background: #ffffff;
  color: #1f2933;
  border-radius: var(--accordion-radius); /* SAME radius closed */
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  text-align: left;
}

/* icon colour */
.swc-opp-detail .opp-accordion__icon {
  color: #373746;
}

/* panel */
.swc-opp-detail .opp-accordion__panel {
  background: #ffffff;
  border-radius: 0 0 var(--accordion-radius) var(--accordion-radius);
  border: none;
  margin-top: 0;
}

/* OPEN STATE – visually one card, SAME radius */
@supports selector(:has(*)) {
  .swc-opp-detail .opp-accordion__item:has(.opp-accordion__panel) {
    border-radius: var(--accordion-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: #ffffff;
  }

  .swc-opp-detail
    .opp-accordion__item:has(.opp-accordion__panel)
    .opp-accordion__toggle {
    border-radius: var(--accordion-radius) var(--accordion-radius) 0 0;
    box-shadow: none;
  }

  .swc-opp-detail
    .opp-accordion__item:has(.opp-accordion__panel)
    .opp-accordion__panel {
    border-radius: 0 0 var(--accordion-radius) var(--accordion-radius);
  }
}

/* secondary "Apply now" pill button under accordions */
.swc-opp-detail .swc-apply-pill {
  background: var(--ms-yellow, #ffc300);
  color: #000000;
  padding: 0.8rem 1.9rem;
  border-radius: 9999px;
  text-transform:;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.swc-opp-detail .swc-apply-pill:hover {
  filter: brightness(0.97);
}

.swc-opp-detail .swc-apply-pill img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

/* =========================================
   Microsoft Learn cards
   ========================================= */

.learning-holder .learn-card-wrapper {
  padding: 0 0.75rem;
}

/* Main card */
.learning-holder .ms-learn-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1.5rem 3.25rem; /* extra bottom space for CTA bar */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.learning-holder .ms-learn-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Title + summary */
.learning-holder .ms-learn-card__title {
  color: #003b3f;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.learning-holder .ms-learn-card__summary {
  max-width: 32rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
  color: #003b3f;
}

/* Meta layout */
.learning-holder .ms-learn-card__meta {
  width: 100%;
  margin-top: 0.35rem;
}

.learning-holder .ms-learn-card__row {
  margin-bottom: 0.75rem;
  text-align: left;
}

.learning-holder .ms-learn-card__label {
  display: block;
  color: #003b3f;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.learning-holder .ms-learn-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Base pill */
.learning-holder .ms-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.75rem;
  font-size: 1rem;
  border-radius: 9999px;
  white-space: nowrap;
  max-height: 1.75rem;
}

/* Colour variants to match design */
.learning-holder .ms-pill--level {
  background: #fbd1c5; /* soft peach */
  color: #743327;
}

.learning-holder .ms-pill--product {
  background: #cae0f5; /* pale blue */
  color: #11436b;
}

.learning-holder .ms-pill--role {
  background: #fbe3a0; /* pale yellow */
  color: #7a4e07;
}

/* CTA bar at bottom */
.learning-holder .ms-learn-card__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.75rem;
  border-radius: 0 0 1.25rem 1.25rem;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: none;
}

.learning-holder .ms-learn-card__cta:hover {
  background: #000000;
}

/* --- Opportunity carousel card (matches yellow tile design) --- */
.opp-carousel-card {
  height: 100%;
}

.opp-carousel-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 4px solid var(--ms-yellow, #ffc000);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.opp-carousel-card__title {
  margin: 0;
  padding: 18px 18px 10px;
  letter-spacing: 0.06em;
  text-transform:;
  color: #0b0b0b;
  line-height: 1.15;
}

.opp-carousel-card__list {
  list-style: none;
  margin: 0;
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}

.opp-carousel-card__item {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  column-gap: 12px;
}

.opp-carousel-card__icon {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  border-radius: 0;
  display: block;
}

.opp-carousel-card__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  opacity: 0.9;
}

.opp-carousel-card__text {
  color: #222;
  line-height: 1.3;
  text-align: left;
}

.opp-carousel-card__cta {
  margin-top: auto;
  background: var(--ms-yellow, #ffc000);
  height: 34px;
  display: grid;
  place-items: center;
}

.opp-carousel-card__cta-arrow {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* optional: hover */
.opp-carousel-card__link:hover {
  transform: translateY(-2px);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

/*============================================ Adviser Resources ============================================*/
.adviser-resource-downloads {
  background-color: #ddd;
  border-radius: 5px;
}

.timing-header {
  background-color: #ddd;
}

.timing-row {
  border-bottom: 1px solid #bbb;
}

.btn-black {
  background-color: #000 !important;
  color: #fff !important;
}

.btn-black:hover {
  color: #fff !important;
}

.btn-white {
  background-color: #fff !important;
  border: 1px solid #000;
  color: #000 !important;
}

.curriculumbuttons .btn-secondary {
  background-color: var(--primary-color) !important;
}

/* =====================================================
   Copilot Chat Page (iframe content)
   ===================================================== */

.copilot-chat-layout {
  display: flex;
  flex-direction: column;
  height: 100dvh; /* dvh shrinks when the on-screen keyboard appears, vh does not */
  background: #ffffff;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.copilot-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.copilot-chat-header__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copilot-chat-header__avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: hue-rotate(155deg);
}

.copilot-chat-header__title {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
}

.copilot-chat-header__refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: #888888;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition:
    color 0.15s,
    background 0.15s;
}

.copilot-chat-header__refresh:hover {
  color: #0067b8;
  background: #f0f4ff;
}

.copilot-chat-header__refresh .material-symbols-outlined {
  font-size: 20px;
}

.copilot-chat-body-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.copilot-chat-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Suggested questions — sits between chat and send box in flow */
.suggested-questions {
  flex-shrink: 0;
  padding: 10px 16px 6px;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
}

.suggested-questions__label {
  font-size: 13px;
  font-weight: 600;
  color: #666666;
  margin: 0 0 8px;
  text-align: center;
}

.suggested-questions__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.suggested-chip {
  background: #ffffff;
  border: 1.5px solid #d83b01;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: #d83b01;
  cursor: pointer;
  font-family: "Segoe UI", system-ui, sans-serif;
  transition:
    background 0.15s,
    color 0.15s;
}

.suggested-chip:hover {
  background: #d83b01;
  color: #ffffff;
}

/* Link definitions text colour override */
@media (forced-colors: none) {
  .webchat__link-definitions .webchat__link-definitions__list-item-text {
    color: var(--ms-red) !important;
  }

  .webchat__link-definitions .webchat__link-definitions__open-in-new-window-icon {
    color: var(--ms-red) !important;
  }
}

/* Send button icon override */
.webchat__icon-button {
  fill: var(--ms-red) !important;
}

/* User message bubble override */
.webchat__bubble.webchat__bubble--from-user .webchat__bubble__content {
  background: var(--ms-red) !important;
  border-color: var(--ms-red) !important;
  color: #ffffff !important;
}

/* Send box — rounded pill input */
.webchat__send-box {
  padding: 10px 12px !important;
  background: #ffffff !important;
  border-top: 1px solid #e8e8e8 !important;
}

.webchat__send-box__main {
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 16px !important;
  background: #f8f8f8 !important;
  overflow: visible !important;
  padding: 0 4px !important;
  align-items: flex-end !important;
}

.webchat__send-box__input,
.webchat__send-box-text-box__input,
.webchat__send-box-text-box__input:focus {
  background: transparent !important;
  border: none !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  outline: none !important;
  --tw-ring-shadow: none !important;
  --tw-ring-color: transparent !important;
  border-color: transparent !important;
}

/* =====================================================
   Chat window (outer wrapper / FAB)
   ===================================================== */

.chat-window {
  position: fixed;
  bottom: 120px;
  right: 20px;
  width: 600px;
  height: 750px;
  max-height: calc(
    100vh - 140px
  ); /* never taller than viewport minus bottom offset + breathing room */
  z-index: 9999;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background: #f2f2f2;
}

.chat-window.hide {
  display: none;
}

.chat-window iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Resize handles (desktop only) */
.chat-resize-handle {
  position: absolute;
  z-index: 10000;
  background: transparent;
}

.chat-resize-handle.resize-left {
  left: 0;
  top: 12px;
  width: 8px;
  height: calc(100% - 24px);
  cursor: ew-resize;
}

.chat-resize-handle.resize-top {
  top: 0;
  left: 12px;
  height: 8px;
  width: calc(100% - 24px);
  cursor: ns-resize;
}

.chat-resize-handle.resize-corner {
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
}

/* FAB wrapper anchors both the label and button */
.fab-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--ms-red);
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 24px 10px color-mix(in srgb, var(--ms-red) 40%, transparent),
    0 6px 24px rgba(0, 0, 0, 0.2);
}

.fab-icon-img,
.chatbot-icon {
  object-fit: contain;
  filter: hue-rotate(155deg);
}

.fab-icon-img {
  width: 60%;
  height: 60%;
}

/* Hover label — hidden by default, slides in on hover */
.fab-label {
  background: white;
  color: #1a1a1a;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Show label on wrapper hover */
.fab-wrapper:hover .fab-label {
  opacity: 1;
  transform: translateX(0);
}

/* Persistent label — fades in and stays visible until clicked */
.fab-label.fab-label-persistent {
  animation: fabFadeIn 0.4s ease forwards;
}

@keyframes fabFadeIn {
  0% {
    opacity: 0;
    transform: translateX(12px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Optional: Add a slight rotation effect when opening */
.material-icons {
  transition: transform 0.2s ease-in-out;
}

/* Desktop FAB sizing */
@media (min-width: 501px) {
  .fab-wrapper {
    bottom: 24px;
    right: 24px;
  }

  .fab {
    width: 70px;
    height: 70px;
  }

  .chat-window {
    bottom: 110px;
    max-height: calc(100vh - 130px);
  }
}

/* When chat is open, FAB becomes standalone close button */
.fab.fab-open {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
}

@media (max-width: 500px) {
  .chat-window {
    width: 100%;
    height: calc(100dvh - 70px);
    max-height: calc(100dvh - 70px);
    top: 70px;
    right: 0;
    bottom: auto;
    border-radius: 0;
  }

  /* When chat is open on mobile, move FAB to top */
  .fab.fab-open {
    top: 10px;
    bottom: auto;
    right: 10px;
    width: 50px;
    height: 50px;
  }

  .fab-wrapper {
    bottom: 16px;
    right: 16px;
  }

  .fab {
    width: 54px;
    height: 54px;
  }

  /* Hide resize handles on mobile */
  .chat-resize-handle {
    display: none;
  }
}

/* Remove horizontal padding from page sections on mobile so content uses the full width */
@media (max-width: 767px) {
  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ── Mobile typography scale (below Tailwind's sm: breakpoint, 640px) ───────
   Each heading is reduced by ~15–20% from its desktop clamp() minimum.
   button inherits from the global rule; we nudge it down here too.
   p is already compact at 1rem – a small reduction keeps it readable.
── */
@media (max-width: 639px) {
  h1 {
    font-size: 2.1rem; /* desktop min: 2.75rem */
  }

  h2 {
    font-size: 1.65rem; /* desktop min: 2.1rem */
  }

  h3 {
    font-size: 1.35rem; /* desktop min: 1.75rem */
  }

  h4 {
    font-size: 1.1rem; /* desktop min: 1.375rem */
  }

  h5 {
    font-size: 0.975rem; /* desktop min: 1.125rem */
  }

  p {
    font-size: 0.9rem; /* desktop: 1rem */
  }

  button {
    font-size: 1rem; /* desktop min: 1.25rem */
  }

  /* Navbar: shrink vertical padding so the header is compact on mobile */
  .nav-menu {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  /* Hero sections: remove top padding on mobile – the first section on every
     page uses pt-6 to space from the header, but on mobile we want to
     reclaim that space. Covers both page structures:
       main > section  (most pages)
       main > main > section  (Home.razor, which wraps its own <main>) */
  main > section:first-of-type,
  main > main > section:first-of-type {
    padding-top: 0 !important;
  }
}

.opp-description a {
  text-decoration: underline;
  color: var(--ms-blue);
  font-size: 1rem;
  font-weight: 400;
}

.opp-description a:hover {
  text-decoration: none;
}

/* ---------- Opportunity carousel equal height cards ---------- */
.opp-carousel .glide__slides {
  align-items: stretch !important;
  padding-top: 2.5rem !important;
}

.opp-carousel .glide__slide {
  height: auto !important;
  align-self: stretch;
}

.opp-carousel .glide__slide > article {
  height: 100%;
}

.candidate-profile {
  background-color: var(--page-bg) !important;
}
