:root {
  --blue: #0e3066;
  --blue-dark: #0e3066;
  --blue-light: #47b2e2;
  --grey: #f2f2f4;
  --white: #ffffff;
  --cell-border: #0e3066;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ================= RESET / BASE ================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--blue);
  overflow-x: hidden;
}

section {
  padding: 60px 40px;
}

.container {
  max-width: 1300px;
  margin: auto;
}

.white-section {
  background-color: var(--white);
}

.grey-section {
  background-color: var(--grey);
}

h1 {
  font-size: 28px;
  font-weight: 800;
}

h2 {
  font-size: 22px;
  color: var(--blue-dark);
}

ul.bullets {
  padding-left: 20px;
  margin: 0;
  list-style-type: disc;
}

ul.bullets li {
  margin-bottom: 10px;
}

/* ================= NAVIGATION ================= */

nav {
  position: absolute;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: transparent;
  padding: 30px 0 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

nav.show {
  opacity: 1;
  transform: translateY(0);
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.nav-container img,
.logo-img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.1);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--blue);
  font-size: 18px;
  font-weight: 500;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

nav ul li a::before {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: -12px;
  right: -12px;
  background-color: transparent;
  border-radius: 99px;
  transition: background-color 0.3s ease;
  z-index: -1;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--blue-light);
}

nav ul li a:hover::before,
nav ul li a.active::before {
  background-color: var(--grey);
}

.nav-divider {
  max-width: 1100px;
  height: 1.6px;
  background-color: var(--blue);
  margin: 10px auto 20px;
}

/* Home nav */
.home-page nav {
  opacity: 0;
  transform: translateY(-40px);
}

.home-page nav.show {
  opacity: 1;
  transform: translateY(0);
}

.home-page nav ul li a {
  color: var(--white);
}

.home-page nav ul li a:hover,
.home-page nav ul li a.active {
  color: var(--blue-light);
}

.home-page nav ul li a:hover::before,
.home-page nav ul li a.active::before {
  background-color: transparent;
}

.home-page .nav-divider {
  background-color: var(--white);
  margin: 10px auto 0;
}

/* Non-home nav color scheme only */
body:not(.home-page) nav {
  background: #0e3066;
}

body:not(.home-page) nav ul li a {
  color: var(--white);
}

body:not(.home-page) nav ul li a:hover,
body:not(.home-page) nav ul li a.active {
  color: var(--white);
}

body:not(.home-page) nav ul li a:hover::before,
body:not(.home-page) nav ul li a.active::before {
  background-color: #59a9d8;
}

body:not(.home-page) .nav-divider {
  background-color: rgba(255, 255, 255, 0.85);
}

/* ================= BACK TO TOP ================= */

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
  width: 75px;
  height: 75px;
  background: url('LNDW Img/Back-to-top.png') no-repeat center center / contain;
  border: none;
  outline: 3px solid transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: background-image 0.3s ease, opacity 0.25s ease;
}

#backToTopBtn:hover {
  background-image: url('LNDW Img/Back-to-top-hover.png');
}

#backToTopBtn.show {
  display: block;
  opacity: 1;
}

/* ================= ANIMATIONS ================= */

@keyframes fadeInHero {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  0% {
    background-size: 100%;
  }

  50% {
    background-size: 105%;
  }

  100% {
    background-size: 100%;
  }
}

@keyframes fadeSlideHeading {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bullseyeZoom {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

/* ================= HOME PAGE ================= */

.home-page .hero-section {
  background-image:
    linear-gradient(rgba(14, 48, 102, 0.6), rgba(14, 48, 102, 0.6)),
    url('../LNDW Img/LNDW-Home-Background.png');
  height: 65vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  animation: fadeInHero 1.2s ease-out forwards, heroZoom 20s ease-in-out infinite;
}

.home-page .hero-heading {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeSlideHeading 1.6s ease-out forwards;
}

.home-page .hero-heading h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.home-page .hero-heading .wuduh-highlight {
  color: var(--blue-light);
}

/* Floating tab */

.floating-tab-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -62px;
  z-index: 5;
}

.floating-tab-container {
  background: var(--white);
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 980px;
  min-height: 122px;
  border-radius: 30px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  padding: 0 18px;
  position: relative;
  font-family: 'Inter', sans-serif;
}

#hoverOverlay {
  position: absolute;
  top: -18px;
  left: 0;
  width: 280px;
  height: 158px;
  background: #59a9d8;
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 2;
  text-align: center;
  line-height: 1.35;
  padding: 12px;
}

.hover-column {
  flex: 1;
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

.hover-column .hover-text {
  color: #203d7a;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* What is L&D */

.home-page #what-is-ld {
  background-color: var(--white);
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

.home-page .ld-doodle {
  position: absolute;
  left: -80px;
  top: 60px;
  z-index: 0;
}

.home-page .ld-content-wrapper {
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-page .ld-section-image {
  flex: 1;
  min-width: 500px;
  padding: 30px;
  opacity: 0;
}

.home-page .ld-section-image.animate {
  animation: zoomIn 0.5s ease forwards;
}

.home-page .ld-section-image img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.home-page .ld-section-text {
  flex: 2;
  min-width: 300px;
  padding: 30px;
  opacity: 0;
}

.home-page .ld-section-text.animate {
  animation: fadeSlideRight 0.5s ease forwards;
}

.home-page .ld-section-text h2 {
  color: var(--blue-light);
  font-size: 30px;
  font-weight: 800;
  margin-top: 0;
}

.home-page .ld-section-text p {
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
}

/* Updates */

.home-updates-section {
  background-color: var(--grey);
  padding: 30px;
}

.home-updates-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.home-updates-inner h2 {
  color: var(--blue);
  font-size: 36px;
  font-weight: 800;
}

.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;
}

.home-updates-inner p {
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  margin-top: 20px;
}

/* Home carousel */

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--grey);
  padding: 50px 20px 80px;
  position: relative;
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 420px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-card {
  width: 320px;
  height: 390px;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 24px;
  text-align: center;
  padding: 35px 20px;
  background: var(--blue);
  color: var(--white);
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
  opacity: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  filter: blur(0);
}

.carousel-card.center {
  filter: blur(0);
}

.carousel-card:not(.center) {
  filter: blur(2.8px);
}

.carousel-card h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  min-height: 56px;
}

.pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.carousel-card .pill {
  background: transparent;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.85);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  line-height: 1.3;
}

.carousel-card a {
  color: var(--blue-light);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.carousel-card a:hover {
  color: var(--white);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  width: 58px;
  height: 58px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-button.prev {
  left: 100px;
}

.carousel-button.next {
  right: 100px;
}

.carousel-button:hover {
  background: transparent;
  transform: translateY(-50%) scale(1.05);
}

/* ================= ABOUT PAGE ================= */

.about-page {
  background: var(--white);
  color: var(--blue);
}

.page-top-spacer {
  height: 175px;
}

.about-container {
  max-width: 1200px;
  margin: auto;
}

/* About cards */

.about-cards-section {
  background-color: var(--white);
  padding: 60px 40px;
}

.about-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  position: relative;
}

.about-card {
  flex: 1 1 300px;
  background-color: var(--grey);
  border-radius: 20px;
  padding: 60px 25px 40px;
  text-align: center;
  position: relative;
  color: var(--blue);
  transition: all 0.4s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.about-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--blue);
  transition: color 0.4s ease;
}

.about-card p {
  line-height: 1.7;
}

.about-icon {
  width: 150px;
  position: absolute;
  top: -75px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  transition: transform 0.4s ease;
}

.about-card.hovered {
  background-color: var(--blue-light);
  color: var(--white);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.about-card.hovered h3 {
  color: var(--white);
}

.about-card.hovered .about-icon {
  transform: translateX(-50%) scale(1.1);
}

.animate-fade-in {
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-in:nth-child(1) {
  animation-delay: 0.2s;
}

.animate-fade-in:nth-child(2) {
  animation-delay: 0.4s;
}

.animate-fade-in:nth-child(3) {
  animation-delay: 0.6s;
}

/* Impact */

.impact-section {
  background-color: var(--grey);
  padding: 60px 40px;
}

.impact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.impact-row:first-child {
  margin-bottom: 60px;
}

.impact-copy {
  flex: 1 1 550px;
}

.impact-copy h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 40px;
}

.impact-list {
  font-size: 20px;
  color: var(--blue);
}

.impact-list p {
  margin-bottom: 15px;
}

.impact-image {
  flex: 1 1 400px;
}

.impact-image-right {
  text-align: right;
}

.impact-image-left {
  text-align: left;
}

.impact-image img {
  max-width: 80%;
  border-radius: 20px;
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.2);
}

.about-divider {
  height: 1.5px;
  background-color: var(--blue);
  border: none;
  margin: 50px 0;
}

/* About fade animation */

.fade-in,
.fade-in-left,
.fade-in-right {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease-out;
}

.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-right {
  transform: translateX(50px);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.3s;
}

/* Focus */

.focus-section {
  background-color: var(--blue);
  padding: 80px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.focus-inner {
  max-width: 1300px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.focus-title-sub {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
}

.focus-title-sub.animate {
  opacity: 1;
  transform: translateY(0);
}

.focus-title-sub h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-light);
  margin-bottom: 15px;
}

.focus-title-sub p {
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 40px;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.focus-pill {
  background-color: var(--blue);
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 999px;
  padding: 18px 25px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

.focus-pill.animate {
  opacity: 1;
  transform: scale(1);
}

.focus-pill:nth-child(1).animate {
  transition-delay: 0.1s;
}

.focus-pill:nth-child(2).animate {
  transition-delay: 0.25s;
}

.focus-pill:nth-child(3).animate {
  transition-delay: 0.4s;
}

.focus-pill:nth-child(4).animate {
  transition-delay: 0.55s;
}

.focus-bullseye {
  position: absolute;
  bottom: -290px;
  right: -400px;
  height: 230%;
  opacity: 0.7;
  z-index: 0;
}

.bullseye-animate {
  animation: bullseyeZoom 16s ease-in-out infinite;
}

/* More than training */

.more-than-training-section {
  background-color: var(--white);
  padding: 60px 40px;
  color: var(--blue);
}

.more-than-training-section h2.ld-section-text {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-light);
  margin-bottom: 30px;
  opacity: 0;
}

.more-than-training-section p.ld-section-text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--blue);
  margin-bottom: 80px;
  opacity: 0;
}

.more-than-training-section .ld-section-text.animate {
  animation: fadeSlideRight 0.5s ease forwards;
}

.about-quote-box {
  background-color: var(--grey);
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
}

.about-quote-box h2 {
  font-size: 25px;
  font-weight: 800;
  text-align: center;
  color: var(--blue);
  line-height: 1.5;
  margin: 0;
}

/* ================= CALENDAR PAGE ================= */

.calendar-page {
  background: var(--white);
  color: var(--blue);
}

.calendar-page .nav-spacer {
  height: 150px;
}

.calendar-page .calendar-main {
  padding: 0 40px 60px;
}

.calendar-page .container {
  max-width: 1200px;
  margin: auto;
  padding: 32px 24px;
}

.calendar-page h1 {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.calendar-page .chips {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 22px auto 32px;
  max-width: 1300px;
  flex-wrap: nowrap;
}

.calendar-page .chip {
  flex: 0 0 auto;
  width: 390px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  user-select: none;
  cursor: default;
  transition: transform 0.25s ease;
}

.calendar-page .chip:hover {
  transform: scale(1.08);
}

.calendar-page .focus-pill {
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.calendar-page .focus-pill.animate {
  opacity: 1;
  transform: scale(1);
}

.calendar-page .divider {
  height: 2px;
  background: var(--blue);
  margin: 40px auto;
  width: 100%;
}

.calendar-page .subtitle {
  text-align: center;
  margin: 0 0 18px;
  opacity: 0.85;
  color: var(--blue);
  line-height: 1.7;
}

.calendar-page .switcher {
  display: flex;
  justify-content: center;
  background: #eaf2fb;
  border: 1px solid #cfe0f4;
  border-radius: 12px;
  overflow: hidden;
  width: max-content;
  margin: 18px auto 10px;
}

.calendar-page .switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.calendar-page .switcher button.active,
.calendar-page .switcher button:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.calendar-page .meta {
  font-weight: 700;
  text-align: center;
  margin: 6px 0 18px;
}

.calendar-page .cal-wrap {
  background: var(--grey);
  border-radius: 26px;
  padding: 24px;
  position: relative;
  overflow: visible;
  margin-top: 18px;
}

.calendar-page .frame-shell {
  background: var(--white);
  border: 1.5px solid var(--cell-border);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.calendar-page iframe.outlook-frame {
  width: 100%;
  height: 78vh;
  min-height: 520px;
  border: 0;
  border-radius: 14px;
  display: block;
  background: var(--white);
}

.calendar-note {
  text-align: center;
  margin: 24px auto 0;
  max-width: 1050px;
  color: var(--blue);
  line-height: 1.7;
  font-size: 15px;
}

/* ================= PROGRAMS PAGE ================= */

.programs-page {
  background: var(--white);
  color: var(--blue);
}

.header-section {
  padding-top: 175px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  will-change: transform, opacity;
}

.header-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.header-section h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
}

.header-section p {
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 8px;
}

/* Catalog */

.catalog-wrap {
  padding: 35px 20px 60px;
}

.catalog-wrap .container {
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-wrap .controls {
  margin: 0 0 22px;
}

.controls-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.controls-inner.in-view {
  opacity: 1;
  transform: translateY(0);
}

.catalog-wrap .search {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  background: var(--grey);
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid #e6e6ea;
}

.catalog-wrap .search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--blue);
}

.catalog-wrap .pillbar {
  flex: 1 1 auto;
}

.pillbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillbar .pill {
  user-select: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--blue-light);
  font-size: 13px;
  color: var(--blue);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  background: var(--white);
}

.pillbar .pill[aria-pressed="true"],
.pillbar .pill:hover {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
  transform: translateY(-1px);
}

.view-toggle {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.btn {
  cursor: pointer;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--blue);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn[aria-pressed="true"] {
  background: var(--blue-light);
  color: var(--blue);
  border-color: var(--blue-light);
}

.catalog-wrap .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 0;
  align-items: flex-start;
}

.catalog-wrap .group {
  padding: 0 !important;
  margin: 24px 0 10px;
  flex: 1 0 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.45s ease;
}

.catalog-wrap .group.in-view {
  opacity: 1;
  transform: translateY(0);
}

.catalog-wrap .group h3 {
  margin: 0 0 10px;
  padding-left: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}

.catalog-wrap .category-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}

.catalog-wrap .category-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.card {
  flex: 1 1 calc(50% - 8px);
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: 18px;
  padding: 8px 14px;
  margin: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
  cursor: pointer;
  user-select: none;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(8px);
  will-change: transform, opacity;
}

.card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.card[open] {
  padding: 14px 16px;
  border-color: var(--blue-light);
  box-shadow: 0 6px 24px rgba(14,48,102,0.08);
}

.card:hover {
  box-shadow: 0 6px 24px rgba(14,48,102,0.08);
  border-color: var(--blue-light);
}

.card summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.card summary::-webkit-details-marker {
  display: none;
}

.card summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-light);
  border-bottom: 2px solid var(--blue-light);
  transform: rotate(-45deg);
  position: absolute;
  right: 2px;
  top: 4px;
  transition: transform 0.25s ease;
}

.card[open] summary::after {
  transform: rotate(45deg);
}

.title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.card[open] .desc {
  max-height: 500px;
  opacity: 1;
}

.compact .card {
  padding: 12px;
}

.compact .card:not([open]) .desc {
  display: none;
}

.empty {
  padding: 16px 14px;
  text-align: center;
  border: 1px dashed #c8d9ec;
  border-radius: 12px;
  color: #5b7398;
  background: #f8fbff;
}

/* Learning paths */

.learning-paths {
  background: var(--grey);
  padding: 60px 20px;
  text-align: center;
}

.learning-paths h2,
.learning-paths p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.learning-paths.animate h2,
.learning-paths.animate p {
  opacity: 1;
  transform: translateY(0);
}

.learning-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1400px;
  margin: auto;
}

.learning-item {
  flex: 1 1 400px;
  max-width: 400px;
  text-align: center;
}

.learning-item strong {
  font-size: 16px;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.learning-box {
  flex: 1 1 400px;
  max-width: 400px;
  background: var(--blue);
  color: var(--white);
  border-radius: 99px;
  padding: 5px;
  min-height: 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: background 0.3s ease, transform 0.6s ease, opacity 0.6s ease;
}

.learning-box.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.learning-box span {
  font-size: 14px;
  line-height: 1.5;
}

/* ================= FAQ PAGE ================= */

.faq-page {
  background: var(--white);
  color: var(--blue);
}

.main-wrap,
.faq-page .main-wrap {
  max-width: 1200px;
  margin: 170px auto 80px;
  padding: 0 20px;
}

.page-head {
  text-align: center;
  margin-bottom: 22px;
}

.page-head h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 26px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq {
  background: var(--white);
  border: 1px solid #d9e6f3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(14,48,102,0.06);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--blue);
  font-size: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq .badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(71,178,226,0.12);
  border: 1px solid #cfeaf7;
  color: var(--blue-light);
  font-weight: 800;
  transition: transform 0.18s ease;
}

.faq[open] {
  border-color: var(--blue-light);
  box-shadow: 0 10px 26px rgba(14,48,102,0.10);
}

.faq[open] summary .badge {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 14px 22px 18px;
  color: #32507f;
  line-height: 1.7;
  font-size: 15px;
  border-top: 1px dashed #e6edf5;
  background: #fbfdff;
}

.faq .answer a {
  color: var(--blue-light);
  font-weight: 700;
  text-decoration: none;
}

.faq .answer a:hover {
  text-decoration: underline;
}

.ask {
  background: var(--white);
  border: 1px solid #d9e6f3;
  border-radius: 18px;
  padding: 26px 26px 30px;
  box-shadow: 0 10px 26px rgba(14,48,102,0.08);
  height: 520px;
  overflow: auto;
  position: sticky;
  top: 110px;
}

.ask h3 {
  font-size: 22px;
  margin: 6px 0 8px;
  font-weight: 800;
}

.ask p {
  margin: 0 0 16px;
  color: #3a5581;
}

.illu {
  display: block;
  margin: 6px auto 14px;
  width: 300px;
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
}

.faq-search-label {
  display: block;
  font-weight: 600;
  margin: 22px 0 6px;
}

.faq-search-box {
  margin-bottom: 16px;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.pager button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #cfe2f5;
  background: var(--white);
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(14,48,102,0.06);
}

.pager button:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

.pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Shared search */

.search {
  width: min(900px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--grey);
  border: 1px solid #e6edf5;
  border-radius: 999px;
  padding: 12px 16px;
}

.search input,
.search input:focus,
.search input:focus-visible {
  flex: 1;
  border: none !important;
  background: transparent;
  outline: 2px solid transparent !important;
  box-shadow: none !important;
  font-size: 16px;
  color: var(--blue);
}

.search:has(input:focus) {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(71,178,226,0.15);
}

.clear-btn {
  border: none;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d7e6f4;
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
}

.clear-btn:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

/* ================= GLOSSARY PAGE ================= */

.glossary-page {
  background: var(--white);
  color: var(--blue);
}

.glossary-spacer {
  height: 135px;
}

.glossary-page .glossary-section {
  padding: 40px 40px 70px;
}

.glossary-page .container {
  max-width: 1300px;
  margin: auto;
}

.glossary-section h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
}

.term-block {
  margin-bottom: 30px;
}

.term-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.term-container {
  background-color: var(--grey);
  color: var(--blue);
  padding: 20px 25px;
  border-radius: 40px;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  line-height: 1.7;
}

.term-container.hovered {
  background-color: var(--blue-light);
  color: var(--white);
  transform: scale(1.02);
}

.delay1 { animation-delay: 0.1s; }
.delay2 { animation-delay: 0.2s; }
.delay3 { animation-delay: 0.3s; }
.delay4 { animation-delay: 0.4s; }
.delay5 { animation-delay: 0.5s; }
.delay6 { animation-delay: 0.6s; }
.delay7 { animation-delay: 0.7s; }
.delay8 { animation-delay: 0.8s; }
.delay9 { animation-delay: 0.9s; }
.delay10 { animation-delay: 1s; }

/* ================= CONTACT PAGE ================= */

.contact-page {
  background: var(--white);
  color: var(--blue);
}

.contact-spacer {
  height: 135px;
}

.contact-section {
  padding: 40px 40px 70px;
  background-color: var(--white);
  text-align: center;
}

.contact-section .container {
  max-width: 1000px;
  margin: auto;
}

.contact-section h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
}

.contact-intro {
  margin-bottom: 20px;
  color: var(--blue);
}

.contact-section h2 {
  font-size: 22px;
  margin-top: 40px;
  color: var(--blue-dark);
}

.contact-section iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 10px;
  margin-top: 30px;
}

.contact-page .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  animation-delay: 0.3s;
}

.contact-page .pill-row .pill {
  flex: 1 1 200px;
  background-color: var(--blue);
  border-radius: 999px;
  padding: 14px 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}

.contact-page .pill-row .pill:nth-child(1) {
  animation-delay: 0.5s;
}

.contact-page .pill-row .pill:nth-child(2) {
  animation-delay: 0.7s;
}

.contact-page .pill-row .pill:nth-child(3) {
  animation-delay: 0.9s;
}

.contact-page .pill-row .pill:nth-child(4) {
  animation-delay: 1.1s;
}

.contact-page .pill-row .pill:hover {
  background-color: var(--blue-light);
  color: var(--white);
}

/* ================= FOOTER ================= */

.site-footer {
  background: var(--blue);
  padding: 40px 0;
  text-align: center;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.site-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-footer-main {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
}

.site-footer-sub {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.50);
}

/* ================= ACCESSIBILITY ================= */

.pill:focus-visible,
.btn:focus-visible,
.card summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .carousel-viewport {
    height: 390px;
  }

  .carousel-card {
    width: 280px;
    height: 330px;
  }

  .carousel-button.prev {
    left: 35px;
  }

  .carousel-button.next {
    right: 35px;
  }
}

@media (max-width: 1024px) {
  .calendar-page .chips {
    flex-wrap: wrap;
  }

  .calendar-page .chip {
    width: 300px;
  }
}

@media (max-width: 980px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-page .main-wrap {
    margin-top: 190px;
  }

  .ask {
    position: static;
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .impact-image-right,
  .impact-image-left {
    text-align: center;
    margin-top: 30px;
  }

  .impact-image img {
    max-width: 100%;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-bullseye {
    opacity: 0.25;
    right: -520px;
  }

  .card {
    flex: 1 1 100%;
  }

  .calendar-page .chips {
    flex-wrap: wrap;
  }

  .calendar-page .chip {
    width: 100%;
    max-width: 390px;
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li a {
    font-size: 15px;
  }

  section {
    padding: 45px 20px;
  }

  #backToTopBtn {
    width: 60px;
    height: 60px;
    right: 22px;
    bottom: 22px;
  }

  .floating-tab-wrapper {
    margin-top: -40px;
    padding: 0 15px;
  }

  .floating-tab-container {
    min-height: auto;
    padding: 20px 10px;
    flex-direction: column;
    gap: 20px;
  }

  .hover-column {
    min-height: auto;
  }

  .hover-column .hover-text {
    font-size: 22px;
  }

  #hoverOverlay {
    display: none;
  }

  .home-page #what-is-ld {
    padding: 80px 20px;
  }

  .home-page .ld-section-image {
    min-width: 100%;
    padding: 20px 0;
  }

  .home-page .ld-section-text {
    min-width: 100%;
    padding: 20px 0;
  }

  .carousel-wrapper {
    padding: 40px 15px 60px;
  }

  .carousel-viewport {
    height: 350px;
  }

  .carousel-card {
    width: 240px;
    height: 300px;
    padding: 18px 14px;
  }

  .carousel-card h3 {
    font-size: 18px;
    min-height: 48px;
  }

  .carousel-card .pill {
    font-size: 13px;
    min-height: 48px;
  }

  .carousel-button.prev,
  .carousel-button.next {
    display: none;
  }

  .page-top-spacer {
    height: 210px;
  }

  .about-cards-section,
  .impact-section,
  .focus-section,
  .more-than-training-section {
    padding: 50px 20px;
  }

  .about-card {
    margin-top: 55px;
  }

  .impact-copy h2,
  .focus-title-sub h2,
  .more-than-training-section h2.ld-section-text {
    font-size: 26px;
  }

  .impact-list,
  .focus-title-sub p,
  .more-than-training-section p.ld-section-text {
    font-size: 17px;
  }

  .focus-pill {
    font-size: 17px;
  }

  .calendar-page .nav-spacer {
    height: 190px;
  }

  .calendar-page .calendar-main {
    padding: 0 20px 50px;
  }

  .calendar-page .switcher {
    width: 100%;
    flex-direction: column;
  }

  .calendar-page .switcher button {
    width: 100%;
  }

  .calendar-page iframe.outlook-frame {
    min-height: 480px;
  }

  .catalog-wrap .view-toggle {
    margin-left: 0;
  }

  .glossary-spacer,
  .contact-spacer {
    height: 190px;
  }

  .glossary-page .glossary-section,
  .contact-section {
    padding: 35px 20px 60px;
  }

  .contact-section iframe {
    height: 700px;
  }
}

/* ================= PROFILES PAGE ================= */

.profiles-spacer {
  height: 145px;
}

.profiles-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.profiles-hero {
  padding: 76px 40px 66px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(71, 178, 226, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f2f2f4 100%);
}

.profiles-hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.profiles-hero p {
  max-width: 690px;
  margin: 20px auto 0;
  color: var(--blue);
  font-size: 19px;
  line-height: 1.7;
}

.profiles-section {
  padding: 78px 40px 90px;
  background: var(--white);
}

.profile-teams {
  display: grid;
  gap: 30px;
}

.team-section {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(14, 48, 102, 0.14);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(14, 48, 102, 0.08);
}

.team-toggle {
  width: 100%;
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 25px 32px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 27px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.team-toggle small {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-toggle-icon {
  flex: 0 0 auto;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.team-toggle-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.team-toggle:hover .team-toggle-icon,
.team-toggle:focus-visible .team-toggle-icon {
  background: var(--blue-light);
  border-color: var(--white);
}

.team-toggle:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: -3px;
}


.team-section.open .team-toggle-icon svg {
  transform: rotate(90deg);
}

.team-content {
  padding: 38px;
}

.team-content[hidden] {
  display: none;
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 45px;
}

.profile-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(14, 48, 102, 0.12);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(14, 48, 102, 0.09);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.profile-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.profile-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(14, 48, 102, 0.16);
}

.profile-card:nth-child(odd) .profile-photo {
  grid-column: 1;
  grid-row: 1;
}

.profile-card:nth-child(odd) .profile-content {
  grid-column: 2;
  grid-row: 1;
}

.profile-card:nth-child(even) .profile-photo {
  grid-column: 2;
  grid-row: 1;
}

.profile-card:nth-child(even) .profile-content {
  grid-column: 1;
  grid-row: 1;
}

.profile-photo {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue), #1d5da2);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo span {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--white);
  font-size: 30px;
  font-weight: 800;
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 38px;
}

.profile-department {
  margin: 0 0 10px;
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-content h2 {
  margin: 0;
  color: var(--blue);
  font-size: 25px;
}

.profile-content h3 {
  margin: 7px 0 16px;
  color: var(--blue-light);
  font-size: 16px;
  font-weight: 600;
}

.profile-details {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.profile-detail {
  padding: 22px;
  border-radius: 16px;
  background: var(--grey);
}

.profile-detail-wide {
  grid-column: 1 / -1;
}

.profile-detail h4 {
  margin: 0 0 10px;
  color: var(--blue-light);
  font-size: 17px;
}

.profile-detail p {
  margin: 0;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.75;
}

.profile-detail ul {
  margin: 0;
  padding-left: 20px;
  color: var(--blue);
}

.profile-detail li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.profile-note {
  margin-top: 14px !important;
}

@media (max-width: 850px) {
  .profiles-spacer {
    height: 205px;
  }

  .profiles-hero,
  .profiles-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .profiles-container {
    width: 100%;
  }

  .team-toggle {
    min-height: 90px;
    padding: 22px;
    font-size: 21px;
  }

  .team-content {
    padding: 20px;
  }

  .profile-card {
    display: flex;
    flex-direction: column;
  }

  .profile-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .profile-card:nth-child(odd) .profile-photo,
  .profile-card:nth-child(even) .profile-photo,
  .profile-card:nth-child(odd) .profile-content,
  .profile-card:nth-child(even) .profile-content {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-photo {
    min-height: 0;
  }

  .profile-content {
    padding: 28px 22px;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .profile-detail-wide {
    grid-column: auto;
  }
}

/* ================= 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;
  }
}

@media (max-width: 850px) {
  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    min-height: 0;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .profile-detail-wide {
    grid-column: auto;
  }
}

/* Release layout: keep every profile image on the left and content on the right. */
.profiles-page .profile-card {
  grid-template-columns: 320px minmax(0, 1fr);
}

.profiles-page .profile-card:nth-child(even) {
  grid-template-columns: 320px minmax(0, 1fr);
}

.profiles-page .profile-card:nth-child(even) .profile-photo,
.profiles-page .profile-card:nth-child(odd) .profile-photo {
  grid-column: 1;
  grid-row: 1;
}

.profiles-page .profile-card:nth-child(even) .profile-content,
.profiles-page .profile-card:nth-child(odd) .profile-content {
  grid-column: 2;
  grid-row: 1;
}

/* Compact portraits inside the profile column rather than full-height photos. */
.profiles-page .profile-photo {
  width: 180px;
  height: 220px;
  min-height: 0;
  margin: 32px auto;
  align-self: start;
  justify-self: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #eaf7fc, var(--grey));
}

.profiles-page .profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 850px) {
  .profiles-page .profile-card,
  .profiles-page .profile-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .profiles-page .profile-card:nth-child(even) .profile-photo,
  .profiles-page .profile-card:nth-child(odd) .profile-photo {
    grid-column: 1;
    grid-row: 1;
  }

  .profiles-page .profile-card:nth-child(even) .profile-content,
  .profiles-page .profile-card:nth-child(odd) .profile-content {
    grid-column: 1;
    grid-row: 2;
  }

  .profiles-page .profile-photo {
    width: 150px;
    height: 185px;
    margin: 24px auto;
  }
}

.search input:focus-visible,
.catalog-wrap .search input:focus-visible {
  outline-color: var(--blue-light) !important;
  outline-offset: 3px;
}

#backToTopBtn:focus-visible {
  outline-color: var(--blue-light);
  outline-offset: 3px;
}

.noscript-message {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 2px solid var(--blue-light);
  border-radius: 12px;
  color: var(--blue);
  background: #fff;
}

.about-card:focus-visible,
.term-container:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 4px;
}
