/* ==========================================================================
   Reusable UI components: buttons, cards, hero slider, pagination, FAQ, etc.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--color-navy-light);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* -- Hero slider — full-screen, centered, official-portal variant -- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-dark);
  color: var(--color-white);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
}

.hero-slide.is-active {
  display: flex;
}

/* Lighter wash than a typical dark hero overlay — bottom-weighted so the
   photo reads clearly at the top and text stays legible lower down. */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 24, 54, 0.35) 0%, rgba(14, 24, 54, 0.45) 45%, rgba(14, 24, 54, 0.72) 100%);
}

.hero-slide__content {
  position: relative;
  max-width: 720px;
  padding: var(--space-9) var(--space-5);
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-slide__crest {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), var(--shadow-lg);
  margin-bottom: var(--space-5);
}

.hero-slide__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #c3d8f2;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}

.hero-slide__kicker::before,
.hero-slide__kicker::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
}

.hero-slide__title {
  color: var(--color-white);
  font-size: var(--text-5xl);
  text-wrap: balance;
}

.hero-slide__subtitle {
  font-size: var(--text-lg);
  color: #e3e9f0;
  margin-bottom: var(--space-7);
  max-width: 56ch;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.hero-slider__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-xl);
  animation: hero-scroll-bounce 2s infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.hero-slider__controls {
  position: absolute;
  inset-inline: 0;
  bottom: var(--space-5);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.hero-slider__dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.hero-slider__dot.is-active {
  background: var(--color-accent);
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease);
}

.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-slider__arrow--prev { left: var(--space-5); }
.hero-slider__arrow--next { right: var(--space-5); }

/* -- Grid -- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

/* -- News / Education cards -- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-300);
}

.card__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--color-gray-100);
}

.card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card__excerpt {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  flex: 1;
}

.card__link {
  margin-top: var(--space-4);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent-dark);
}

/* -- Statistic item -- */
.statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.statistic-item {
  text-align: center;
  padding: var(--space-5) var(--space-3);
}

.statistic-item__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-accent-dark);
  letter-spacing: -0.02em;
}

.statistic-item__label {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Statistics band — a full-width navy strip, a common institutional
   pattern for headline numbers (used on the home page). */
.stats-band {
  background: var(--color-navy-dark);
  background-image: radial-gradient(circle at 15% 20%, rgba(68, 114, 184, 0.18), transparent 45%);
}

.stats-band .statistic-item {
  border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.stats-band .statistic-item__value {
  color: var(--color-white);
}

.stats-band .statistic-item__label {
  color: #a9b7c6;
}

.stats-band .section-header__eyebrow {
  color: #a9c8ec;
}

/* -- Breadcrumb already in layout.css -- */

/* -- Pagination -- */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin-top: var(--space-6);
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: var(--space-2);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-size: var(--text-sm);
}

.pagination__link.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.pagination__link[aria-disabled="true"] {
  color: var(--color-gray-400);
  pointer-events: none;
}

/* -- FAQ accordion -- */
.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-4) 0;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.faq-item__answer {
  padding-bottom: var(--space-4);
  color: var(--color-gray-600);
}

/* -- Badges -- */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-gray-100);
  color: var(--color-navy);
}

.badge--demo {
  background: #fdf3e7;
  color: #8a5a17;
}

/* -- Forms -- */
.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--color-navy);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-accent);
}
