/* GFI Home - Gensantos Foundation College Incorporated */
@font-face {
  font-family: "Norwester";
  src: url("Fonts/norwester.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --gfi-red: #c41e3a;
  --gfi-red-dark: #9e1830;
  --nav-bg: #2d2d2d;
  --nav-bg-alt: #3a3a3a;
  --hero-bg: #5c2c2a;
  --cta-blue: #1e3a5f;
  --cta-blue-hover: #2a4a7a;
  --text-dark: #1a1a1a;
  --text-muted: #4a4a4a;
  --border-input: #ccc;
  --white: #fff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.4;
  background: #e8e8e8;
  overflow-x: hidden; /* prevent horizontal scroll from full-bleed heroes */
}

.gfi-modal-open {
  overflow: hidden;
}

.gfi-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gfi-modal[hidden] {
  display: none !important;
}

.gfi-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.gfi-modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 48px));
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.gfi-modal__panel--wide {
  width: min(960px, calc(100vw - 48px));
}

.gfi-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.gfi-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
}

.gfi-modal__close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.gfi-modal__body {
  padding: 16px 18px 6px;
  display: grid;
  gap: 10px;
}

.gfi-modal__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
}

.gfi-modal__input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: "Avenir", "Montserrat", sans-serif;
}

.gfi-modal__color {
  width: 100%;
  height: 44px;
  padding: 6px;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

/* Color wheel + hex code block for Edit Button modal */
.gfi-modal__color-wheels-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 14px;
}

.gfi-modal__color-wheels-row .gfi-modal__color-wheel-wrap {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.gfi-modal__color-wheel-wrap .gfi-modal__label {
  display: block;
  margin-bottom: 8px;
}

.gfi-modal__color-wheel-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.gfi-modal__color-wheel {
  width: 80px;
  height: 80px;
  padding: 0;
  border: 2px solid var(--border-input);
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
  display: block;
}

.gfi-modal__color-wheel::-webkit-color-swatch-wrapper {
  padding: 4px;
}

.gfi-modal__color-wheel::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.gfi-modal__color-wheel::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}

.gfi-modal__hex-input {
  width: 100%;
  max-width: 140px;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  text-transform: lowercase;
}

.gfi-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
}

.gfi-modal__btn {
  border: none;
  background: var(--cta-blue);
  color: var(--white);
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: "Avenir", "Montserrat", sans-serif;
}

.gfi-modal__btn--ghost {
  background: transparent;
  color: var(--cta-blue);
  border: 1px solid rgba(30, 58, 95, 0.35);
}

.banner-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 8px;
  max-height: 420px;
  overflow: auto;
  padding-bottom: 8px;
}

.banner-image-upload {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.banner-image-item {
  border: 1px solid #e6e6e6;
  background: #fafafa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 8px;
}

.banner-image-item:hover {
  background: #f2f2f2;
  border-color: #d9d9d9;
}

.banner-image-thumb {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #fff;
}

.banner-image-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: visible; /* allow logo to overlap into the nav */
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 2px 24px;
  position: relative;
  z-index: 2; /* keep logo/header layer above nav on mobile */
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(20px); /* move logo/text group right (~5 spaces) */
}

.logo {
  width: 80px;
  height: 80px; /* Keep layout stable */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: -18px; /* lift into the nav area (tuned) */
  position: relative;
  z-index: 1002;
  /* extend downward without changing layout size */
  transform: scale(1.45, 1.45); /* reduce vertical intrusion into nav */
  transform-origin: top center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* avoid extra side whitespace when the logo is stretched vertically */
  object-position: center top;
  display: block;
}

.brand-text {
  margin: 0;
  margin-left: 24px; /* move header text a bit more left while keeping logo unchanged */
  margin-top: 4px; /* drop text slightly down */
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

.school-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.school-name strong {
  font-weight: 700;
}

.tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-right: 40px; /* Shift navigation items to the left */
}

/* Dashboard header: align Username and Log out text on same baseline */
.header-actions:has(.dashboard-user) {
  align-items: baseline;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.search-wrap-container {
  position: relative;
  min-width: calc(260px + 6ch);
}

.search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  min-width: calc(260px + 6ch);
  flex: 1;
  max-width: 360px;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: var(--white);
  border: 1px solid var(--border-input);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-suggestions.is-open {
  display: block;
}

.search-suggestions-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.15s;
}

.search-suggestions-item:hover,
.search-suggestions-item:focus {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
}

.search-input::placeholder {
  color: #888;
}

.search-btn {
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  color: var(--text-dark);
}

.login-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s;
}

.login-link:hover {
  color: var(--gfi-red);
}

.login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.login-link:hover .login-icon {
  color: var(--gfi-red);
}

/* Navigation - jw.org-style size and arrangement */
.nav {
  background: var(--nav-bg);
  min-height: 46px; /* Reduced from 56px */
  padding: 8px 24px; /* Reduced from 10px 24px */
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 128px;
  gap: 8px;
  flex-wrap: wrap;
  transform: translateY(-2px); /* Adjusted slightly */
}

.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px; /* Reduced from 10px 18px */
  margin: 0;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border-radius: 0;
}

.nav-item--active {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  border-radius: 0;
}

/* HOME, NEWS, ABOUT US: red highlight */
a[href="index.html"].nav-item:hover,
a[href="index.html"].nav-item--active,
a[href="news.html"].nav-item:hover,
a[href="news.html"].nav-item--active,
a[href="about.html"].nav-item:hover,
a[href="about.html"].nav-item--active {
  background-color: rgba(200, 30, 40, 0.9);
  box-shadow: 0 0 12px rgba(200, 30, 40, 0.5);
}

/* EVENTS: green highlight */
a[href="events.html"].nav-item:hover,
a[href="events.html"].nav-item--active {
  background-color: rgba(94, 148, 64, 0.9);
  box-shadow: 0 0 12px rgba(94, 148, 64, 0.5);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.nav-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* EVENTS: larger visual icon without expanding nav bar height */
a[href="events.html"].nav-item .nav-icon img {
  transform: scale(2);
  transform-origin: center;
}

/* ABOUT US: same technique — bigger icon, nav bar layout unchanged */
a[href="about.html"].nav-item .nav-icon img {
  transform: scale(2);
  transform-origin: center;
}

.nav-label {
  white-space: nowrap;
}

/* Nudge EVENTS text slightly right to balance larger custom icon */
a[href="events.html"].nav-item .nav-label {
  margin-left: 6px;
}

a[href="about.html"].nav-item .nav-label {
  margin-left: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 460px;
  margin: 0; /* Set to 0 to align perfectly flush with navigation bar */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-hero {
  position: relative;
  height: 450px;
  margin: 0 -72px 0;
  padding-bottom: 0;
  width: calc(100% + 144px);
  max-width: none;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background-color: #ffffff;
  margin-top: 0;
}

.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.home-hero + .featured {
  margin-top: 56px;
}

.home-banner-box + .featured {
  margin-top: 32px;
}

.main--banner-article .page-content {
  padding-top: 0;
}

.banner-article-hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 450px;
  margin: 0 -72px 0;
  padding-bottom: 0;
  width: calc(100% + 144px);
  max-width: none;
  border: none;
  background-color: #ffffff;
  display: block;
}

.banner-article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 1;
  display: block;
}

.banner-article-team-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 16px;
  margin-top: -64px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.banner-article-team-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: transform 0.25s ease, z-index 0s;
  position: relative;
}

.banner-article-team-item:hover {
  transform: scale(1.15);
  z-index: 2;
}

.banner-article-team-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
}

.banner-article-team-name {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 96px;
}

.banner-article-team-item--tigers .banner-article-team-name { color: #c45c26; }
.banner-article-team-item--phoenix .banner-article-team-name { color: #c0392b; }
.banner-article-team-item--wolves .banner-article-team-name { color: #f39c12; }
.banner-article-team-item--phytons .banner-article-team-name { color: #27ae60; }
.banner-article-team-item--marlins .banner-article-team-name { color: #2980b9; }
.banner-article-team-item--bulls .banner-article-team-name { color: #922b21; }

.banner-article-hero-divider {
  margin: 32px -72px 0;
  border: 0;
  height: 0;
  border-top: 3px solid #e67e22;
  width: calc(100% + 144px);
  max-width: none;
  box-sizing: content-box;
}

.banner-article-video-wrap {
  margin-top: 24px;
  text-align: left;
  display: flex;
  justify-content: flex-start;
}

.banner-article-video-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* --banner-2026-col-nudge: shift 2026 column left (negative) or right (positive) */
.banner-article-video-pair {
  --banner-2026-col-nudge: -88px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.banner-article-video-pair-col {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.banner-article-video-pair-col:last-child {
  transform: translateX(var(--banner-2026-col-nudge));
}

/* Two columns × 60% width each ≈ same visual width as original 30% of full inner */
.banner-article-video-pair-col .banner-article-video-row .banner-article-video-player-wrap.video-wrap {
  width: 60%;
  min-width: 60%;
}

.banner-article-video-title {
  margin: 0;
  font-family: "Norwester", sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #e67e22;
}

.banner-article-video-title--2026 {
  color: #2b6cb0;
}

/* Match .banner-article-video-credit (BuRrn / Paragon caption) */
.banner-article-paduwa-theme-2026 {
  margin: 10px 0 0;
  max-width: 60%;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, #4a4a4a);
}

.banner-article-video-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: 100%;
}

.banner-article-video-player-wrap {
  width: 30%;
  min-width: 30%;
  flex-shrink: 0;
  aspect-ratio: auto;
  overflow: visible;
}

.banner-article-video-player-wrap .banner-article-video {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  min-width: 0;
}

.banner-article-video-divider {
  width: 3px;
  background-color: #2b6cb0;
  flex-shrink: 0;
  align-self: stretch;
}

.banner-article-video-credit-block {
  margin-top: 12px;
  max-width: 480px;
}

.banner-article-video-credit {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, #4a4a4a);
}

.banner-article-burrn-link,
.banner-article-paragon-link {
  display: inline-block;
  margin-top: 10px;
  line-height: 0;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.banner-article-burrn-link:hover,
.banner-article-paragon-link:hover {
  opacity: 0.88;
}

.banner-article-burrn-link:focus-visible,
.banner-article-paragon-link:focus-visible {
  outline: 2px solid var(--cta-blue, #1e3a5f);
  outline-offset: 3px;
}

.banner-article-burrn-logo,
.banner-article-paragon-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.banner-article-burrn-logo {
  max-width: 280px;
  max-height: 120px;
}

.banner-article-paragon-logo {
  max-width: 220px;
  max-height: 94px;
}

.banner-article-paduwa-2026-image-icon {
  flex-shrink: 0;
  width: auto;
  max-width: 72px;
  max-height: 72px;
  height: auto;
  object-fit: contain;
  align-self: center;
  margin: 0;
  position: relative;
  transform: translateX(220px);
  display: block;
}

.banner-article-video {
  width: 30%;
  min-width: 30%;
  height: auto;
  display: block;
  max-width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.banner-article-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  text-align: center;
}

.banner-article-hero-topline {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 18px;
  line-height: 1.35;
}

.banner-article-hero-title-wrap {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.banner-article-hero-title {
  font-family: "Bebas Neue", "Oswald", "Montserrat", sans-serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  color: #ff9b5a;
  line-height: 1;
}

.banner-article-hero-year {
  font-family: "Oswald", "Montserrat", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: #e7eef6;
  letter-spacing: 0.04em;
  line-height: 1;
}

.banner-article-meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.banner-article-kicker {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

.banner-article-headline {
  margin: 8px 0 0;
  font-size: 2.25rem;
  font-weight: 800;
  color: #6b1b1b;
  font-family: "Montserrat", sans-serif;
}

.banner-article-meta-divider {
  width: 2px;
  height: 52px;
  background: rgba(0, 0, 0, 0.18);
}

.banner-article-meta-right {
  justify-self: start;
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #1a1a1a;
}

.banner-article-credit {
  color: #1a1a1a;
  opacity: 0.85;
}

.banner-article-player {
  margin-top: 26px;
}

.banner-article-progress {
  height: 24px;
  display: flex;
  align-items: center;
}

.banner-article-scrub {
  width: 100%;
  height: 24px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  --scrub-fill: 0%;
  cursor: pointer;
}

.banner-article-scrub:focus-visible {
  outline: 3px solid rgba(255, 75, 75, 0.45);
  outline-offset: 4px;
  border-radius: 999px;
}

.banner-article-scrub::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #ff4b4b 0%,
    #ff4b4b var(--scrub-fill),
    rgba(255, 80, 80, 0.35) var(--scrub-fill),
    rgba(255, 80, 80, 0.35) 100%
  );
}

.banner-article-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff4b4b;
  border: 0;
  margin-top: -9px;
}

.banner-article-scrub::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 80, 80, 0.35);
}

.banner-article-scrub::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #ff4b4b;
}

.banner-article-scrub::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff4b4b;
  border: 0;
}

.banner-article-player-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.banner-article-time {
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  color: #1a1a1a;
}

.banner-article-player-row .banner-article-time:first-child {
  justify-self: start;
}

.banner-article-player-row .banner-article-time:last-child {
  justify-self: end;
}

.banner-article-tts-btn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 75, 75, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  padding: 0;
  cursor: pointer;
}

.banner-article-tts-btn:focus-visible {
  outline: 3px solid rgba(255, 75, 75, 0.45);
  outline-offset: 4px;
}

.banner-article-tts-btn .tts-bar {
  display: block;
  width: 8px;
  height: 26px;
  background: #ff4b4b;
  border-radius: 4px;
}

.banner-article-tts-btn .tts-play {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #ff4b4b;
  margin-left: 4px;
}

.banner-article-tts-btn[data-state="paused"] .tts-bar {
  display: none;
}

.banner-article-tts-btn[data-state="paused"] .tts-play {
  display: block;
}

.banner-article-tts-btn[data-state="playing"] .tts-bar {
  display: block;
}

.banner-article-tts-btn[data-state="playing"] .tts-play {
  display: none;
}

.banner-article-body {
  margin-top: 22px;
  max-width: 980px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #222;
  font-family: "Montserrat", sans-serif;
}

.banner-article-body p {
  margin: 0 0 20px;
}

.main--banner-article .banner-article-body + .featured {
  margin-top: 56px;
}

.dashboard-banner-article-preview {
  margin-top: 16px;
}

.dashboard-banner-article-editable {
  cursor: text;
  border-radius: 8px;
  outline: 1px dashed rgba(30, 58, 95, 0.22);
  outline-offset: 4px;
}

.dashboard-banner-article-editable:focus {
  outline: 2px solid rgba(30, 58, 95, 0.45);
  outline-offset: 4px;
}

.dashboard-banner-article-preview .dashboard-banner-article-editable {
  padding: 4px 6px;
}

.dashboard-banner-article-preview .banner-article-hero {
  height: 220px;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.dashboard-banner-article-preview .banner-article-hero-img {
  object-position: center 20%;
}

.dashboard-banner-article-preview .banner-article-meta {
  margin-top: 16px;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.dashboard-banner-article-preview .banner-article-meta-divider {
  display: none;
}

.dashboard-banner-article-preview .banner-article-kicker {
  font-size: 1.1rem;
}

.dashboard-banner-article-preview .banner-article-headline {
  font-size: 1.6rem;
}

.dashboard-banner-article-preview .banner-article-player {
  margin-top: 16px;
}

.dashboard-banner-article-preview .banner-article-body {
  margin-top: 16px;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.65;
}

.dashboard-banner-article-preview .banner-article-body p:last-child {
  margin-bottom: 0;
}

.dashboard-banner-article-preview .banner-article-scrub,
.dashboard-banner-article-preview .banner-article-tts-btn {
  opacity: 0.7;
}

@media (max-width: 860px) {
  .banner-article-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .banner-article-meta-divider {
    display: none;
  }

  .banner-article-meta-right {
    justify-self: start;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-bg);
  background-image: url('Images/paduwa-banner.png');
  background-size: 85% auto;
  background-position: center 5%; /* Shifted image content up within the frame */
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(92, 44, 42, 0.4) 0%,
    rgba(92, 44, 42, 0.6) 100%
  );
  pointer-events: none;
}

/* Hero caption - jw.org style preview text at bottom left */
.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 24px 5em 24px;
  padding-left: calc(24px + 9ch);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
}

.hero-caption-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-caption-text {
  margin: 0;
  max-width: 640px;
  font-size: 38px;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: bold;
  color: var(--white);
  line-height: 1.4;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-caption-subtext {
  margin: -10px 0 0;
  max-width: 640px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hero-caption-btn {
  display: inline-block;
  padding: 10px 20px;
  background: indigo;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
}

.hero-caption-btn:hover {
  filter: brightness(1.1);
}

/* Dashboard action buttons: match Welcome video action button style */
.main--dashboard .hero-caption-btn,
.main--dashboard .gfi-modal__btn,
.main--dashboard .dashboard-input-check,
.main--dashboard .addpost-events-text-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background-color: var(--gfi-red, #c41e3a);
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.main--dashboard .hero-caption-btn:hover,
.main--dashboard .gfi-modal__btn:hover,
.main--dashboard .dashboard-input-check:hover,
.main--dashboard .addpost-events-text-modal__btn:hover {
  background-color: var(--gfi-red-dark, #9e1830);
  color: #ffffff;
  filter: none;
}

.main--dashboard .hero-caption-btn:active,
.main--dashboard .gfi-modal__btn:active,
.main--dashboard .dashboard-input-check:active,
.main--dashboard .addpost-events-text-modal__btn:active {
  background-color: #7f1327;
}

.tour-actions {
  text-align: left;
}

.tour-submit-btn {
  padding: 10px 20px;
  background-color: var(--gfi-red, #c41e3a);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
}

.addpost-events-preview-wrap {
  margin-top: 1rem;
  max-height: min(78vh, 960px);
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
}

.addpost-events-preview-root.main--events {
  margin: 0;
}

body.gfi-modal-open {
  overflow: hidden;
}

.addpost-events-preview-root .addpost-events-editable {
  cursor: pointer;
  border-radius: 2px;
  transition: box-shadow 0.15s ease;
}

.addpost-events-preview-root .addpost-events-editable:hover {
  box-shadow: 0 0 0 2px rgba(0, 74, 173, 0.35);
}

.addpost-events-preview-root .hero-image[data-hero-slide-index],
.addpost-events-preview-root .election-box-img,
.addpost-events-preview-root .event-item-image,
.addpost-events-preview-root .events-attendance-logo {
  cursor: pointer;
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}

.addpost-events-preview-root .hero-image[data-hero-slide-index]:hover,
.addpost-events-preview-root .election-box-img:hover,
.addpost-events-preview-root .event-item-image:hover,
.addpost-events-preview-root .events-attendance-logo:hover {
  box-shadow: 0 0 0 2px rgba(0, 80, 157, 0.45);
  filter: brightness(1.03);
}

.addpost-events-preview-root .events-content-box .info-icon {
  cursor: pointer;
  border-radius: 4px;
  transition: box-shadow 0.15s ease;
}

.addpost-events-preview-root .events-content-box .info-icon:hover {
  box-shadow: 0 0 0 2px rgba(0, 80, 157, 0.4);
}

.addpost-events-preview-root .events-content-box .info-icon .box-icon-custom {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.addpost-events-text-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.addpost-events-text-modal[hidden] {
  display: none !important;
}

.addpost-events-text-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.addpost-events-text-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.addpost-events-text-modal__heading {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.addpost-events-text-modal__label {
  display: block;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.addpost-events-text-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  min-height: 4rem;
}

.addpost-events-text-modal__row {
  margin-top: 0.75rem;
}

.addpost-events-text-modal__row--inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.addpost-events-text-modal__row--inline > div {
  flex: 1 1 140px;
}

.addpost-events-text-modal__select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.addpost-events-text-modal__color {
  width: 100%;
  height: 40px;
  padding: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}

.addpost-events-text-modal__number {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}

.addpost-events-text-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.addpost-events-text-modal__btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.addpost-events-text-modal__btn--secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

.addpost-events-text-modal__btn--secondary:hover {
  background: #e2e8f0;
}

.addpost-events-text-modal__btn--primary {
  background: #00509d;
  color: #fff;
}

.addpost-events-text-modal__btn--primary:hover {
  filter: brightness(1.06);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  max-width: 700px;
}

.hero-subtitle {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(-2px);
}

.hero-title {
  margin: 0 0 4px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #f97316;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-year {
  display: block;
  color: var(--white);
  font-size: 0.85em;
}

.hero-tagline {
  margin: 0 0 24px;
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 500;
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--cta-blue);
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 6px;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: var(--cta-blue-hover);
}

/* Main content area - jw.org-style layout */
.main {
  background: #f5f5f5;
}

.section-divider {
  border: 0;
  height: 1px;
  background-color: gray !important;
  margin: 56px 0;
}

.page-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* About Us - creative section */
.about-us-creative .section-title {
  margin-bottom: 18px;
}

.about-us-hero {
  position: relative;
  border-radius: 18px;
  padding: 30px 24px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.10) 0%, rgba(196, 30, 58, 0.08) 55%, rgba(94, 148, 64, 0.08) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.about-us-hero::after {
  content: "";
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 260px;
  background:
    radial-gradient(circle at 20% 40%, rgba(30, 58, 95, 0.25), transparent 55%),
    radial-gradient(circle at 70% 20%, rgba(196, 30, 58, 0.22), transparent 52%),
    radial-gradient(circle at 55% 80%, rgba(94, 148, 64, 0.18), transparent 48%);
  pointer-events: none;
}

.about-us-hero-copy {
  position: relative;
  z-index: 1;
}

.about-us-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1a1a1a;
}

.about-us-lead {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #222;
}

.about-us-pill-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-us-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.about-us-hero-art {
  position: relative;
  z-index: 1;
  height: 180px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.about-us-hero-art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-us-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.about-us-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.about-us-card::after {
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(30, 58, 95, 0.18), transparent 62%);
  pointer-events: none;
}

.about-us-card-title {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--gfi-red-dark, #9e1830);
  margin-bottom: 10px;
}

.about-us-card-text {
  position: relative;
  margin: 0;
  color: #222;
  line-height: 1.6;
}

.about-us-card-body {
  position: relative;
  color: #222;
  line-height: 1.6;
  font-size: 0.95rem;
}

.about-us-card-body p {
  margin: 0 0 12px;
}

.about-us-card-body p:last-child {
  margin-bottom: 0;
}

.about-us-card-body strong {
  font-weight: 800;
  color: #1a1a1a;
}

.about-us-proud {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 18px 16px;
}

.about-us-subtitle {
  margin: 0 0 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #1a1a1a;
}

.about-us-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-us-pill-card {
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: #1a1a1a;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.about-us-accordion {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.about-us-details {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}

.about-us-details > summary {
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  color: #1a1a1a;
  list-style: none;
}

.about-us-details > summary::-webkit-details-marker {
  display: none;
}

.about-us-details > p {
  margin: 10px 0 0;
  color: #222;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .about-us-hero {
    grid-template-columns: 1fr;
  }

  .about-us-hero-art {
    height: 140px;
  }

  .about-us-cards {
    grid-template-columns: 1fr;
  }

  .about-us-pill-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured cards */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image {
  aspect-ratio: 16 / 10;
  background: #e8e8e8;
  overflow: hidden;
}

.card-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image--placeholder {
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 20px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
}

.card-desc {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cta-blue);
}

.card-link:hover .card-more {
  text-decoration: underline;
}

/* Search results page – smaller cards */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.search-results-grid .card-image {
  aspect-ratio: 16 / 10;
}

.search-results-grid .card-body {
  padding: 12px 14px;
}

.search-results-grid .card-title {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.search-results-grid .card-desc {
  font-size: 0.8125rem;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-results-grid .card-category,
.search-results-grid .card-meta {
  font-size: 0.75rem;
}

.search-results-grid .card-more {
  font-size: 0.8125rem;
}

/* Topic grid - jw.org style categories */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.topic-icon {
  font-size: 2rem;
}

.topic-name {
  text-align: center;
}

/* Welcome video section */
.section-welcome-video {
  margin-bottom: 48px;
}

.section-welcome-video .section-title {
  margin-bottom: 6px;
}

.welcome-video-subtext {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.3;
}

.wid-breadcrumb {
  margin: 0 0 12px 0;
  font-size: 1.15rem;
  color: #c00;
  font-family: 'Poppins', sans-serif;
}

.wid-breadcrumb-link {
  color: #c00;
  text-decoration: none;
}

.wid-breadcrumb-link:hover {
  text-decoration: underline;
}

/* Home: hide legacy course promo strip (8 program images) — any layout */
.main--home .section-welcome-video .image-wrap,
.main--home .courses-title + .image-wrap {
  display: none !important;
}

.main--home img[src*="Accountancy.png"]:not([src*="Images/Course/"]),
.main--home img[src*="Arts%20and%20Culture"]:not([src*="Images/Course/"]),
.main--home img[src*="Arts and Culture"]:not([src*="Images/Course/"]),
.main--home img[src*="Business%20Admin"]:not([src*="Images/Course/"]),
.main--home img[src*="Business Admin"]:not([src*="Images/Course/"]),
.main--home img[src*="Criminology.png"]:not([src*="Images/Course/"]),
.main--home img[src*="Information%20System"]:not([src*="Images/Course/"]),
.main--home img[src*="Information System"]:not([src*="Images/Course/"]),
.main--home img[src*="Office%20Admin"]:not([src*="Images/Course/"]),
.main--home img[src*="Office Admin"]:not([src*="Images/Course/"]),
.main--home img[src*="Secondary%20Education"]:not([src*="Images/Course/"]),
.main--home img[src*="Secondary Education"]:not([src*="Images/Course/"]),
.main--home img[src*="Tourism.png"]:not([src*="Images/Course/"]) {
  display: none !important;
}

.courses-title {
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  color: var(--gfi-red);
  font-size: 2rem; /* Increased font size */
  margin-top: 4rem; /* Increased space above the title */
  margin-bottom: 16px; /* Tighter to preview banner below */
}

/* Small preview-style banner under "Courses That We Offer" (HOME) */
.section-courses .courses-preview-banner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto 1.5rem;
  padding: 0 8px;
  max-width: 100%;
}

.section-courses .courses-preview-banner-img {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  max-height: 140px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  /* Crop a little of the bottom so the banner doesn't look too tall */
  -webkit-clip-path: inset(0 8% 14% 0);
  clip-path: inset(0 8% 14% 0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

@keyframes courses-offer-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3x3 courses grid (HOME) */
.section-courses .courses-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px;
  margin: 0 0 1.5rem;
  align-items: start;
}

.section-courses .courses-offer-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  animation: courses-offer-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section-courses .courses-offer-item:nth-child(1) { animation-delay: 0.05s; }
.section-courses .courses-offer-item:nth-child(2) { animation-delay: 0.1s; }
.section-courses .courses-offer-item:nth-child(3) { animation-delay: 0.15s; }
.section-courses .courses-offer-item:nth-child(4) { animation-delay: 0.2s; }
.section-courses .courses-offer-item:nth-child(5) { animation-delay: 0.25s; }
.section-courses .courses-offer-item:nth-child(6) { animation-delay: 0.3s; }
.section-courses .courses-offer-item:nth-child(7) { animation-delay: 0.35s; }
.section-courses .courses-offer-item:nth-child(8) { animation-delay: 0.4s; }
.section-courses .courses-offer-item:nth-child(9) { animation-delay: 0.45s; }

.section-courses .courses-offer-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop without stretching */
  object-position: left top;
  border-radius: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-courses .courses-offer-img-frame {
  width: 100%;
  height: 140px;
  overflow: hidden; /* Makes the crop apply to the frame, not the layout */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.section-courses .courses-offer-item:hover .courses-offer-img-frame {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.section-courses .courses-offer-item:hover .courses-offer-img {
  transform: scale(1.06);
}

.section-courses .courses-offer-label {
  margin-top: 10px;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  color: var(--gfi-red);
  font-size: 1.05rem;
  line-height: 1.2;
  transition: color 0.25s ease, transform 0.25s ease;
}

.section-courses .courses-offer-item:hover .courses-offer-label {
  color: var(--gfi-red-dark);
  transform: translateY(-2px);
}

.section-courses .courses-offer-more {
  margin: 60px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
}

.section-courses .courses-offer-more::before,
.section-courses .courses-offer-more::after {
  content: "";
  width: 72px;
  height: 2px;
  background-color: var(--gfi-red, #c41e3a);
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .section-courses .courses-offer-item {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .section-courses .courses-offer-img,
  .section-courses .courses-offer-img-frame,
  .section-courses .courses-offer-label {
    transition: none;
  }

  .section-courses .courses-offer-item:hover .courses-offer-img-frame,
  .section-courses .courses-offer-item:hover .courses-offer-img,
  .section-courses .courses-offer-item:hover .courses-offer-label {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }

  .section-courses .courses-offer-item:hover .courses-offer-label {
    color: var(--gfi-red);
  }
}

@media (min-width: 768px) {
  .section-courses .courses-preview-banner-img {
    max-width: min(100%, 640px);
    max-height: 160px;
    -webkit-clip-path: inset(0 10% 16% 0);
    clip-path: inset(0 10% 16% 0);
  }
  .section-courses .courses-offer-img {
    height: 100%;
  }
  .section-courses .courses-offer-img-frame {
    height: 160px;
  }
}

@media (min-width: 1024px) {
  .section-courses .courses-preview-banner-img {
    max-width: min(100%, 720px);
    max-height: 180px;
    -webkit-clip-path: inset(0 12% 18% 0);
    clip-path: inset(0 12% 18% 0);
  }
  .section-courses .courses-offer-img {
    height: 100%;
  }
  .section-courses .courses-offer-img-frame {
    height: 180px;
  }
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.banner-article-video-row .video-wrap {
  aspect-ratio: auto;
  width: 30%;
  min-width: 30%;
  flex-shrink: 0;
}

.image-wrap {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
}

.image-wrap img {
  max-width: 270px;
  width: auto;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.image-wrap img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Video controls — black bar, blue scrubber, title row (site-wide) */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  z-index: 2;
  transition: opacity 0.35s ease;
}

.video-wrap.video-controls-idle .video-controls {
  opacity: 0;
  pointer-events: none;
}

.video-progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 49, 49, 0.38);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.video-progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 2px;
}

.video-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #ff3131;
  border-radius: 2px;
}

.video-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background: #ff3131;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.video-controls-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 1.25rem;
}

.video-controls-title {
  flex: 1;
  min-width: 0;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-article-video-player-wrap .video-controls-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-controls-meta-row .video-time-display {
  flex-shrink: 0;
  color: #ffffff;
  font-size: 13px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
}

.video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-controls-left,
.video-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.video-btn:hover {
  color: #e8eef9;
}

.video-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.video-btn.video-skip-back,
.video-btn.video-skip-forward {
  flex-direction: column;
  gap: 0;
  padding: 0 2px;
  min-width: 28px;
}

.video-btn.video-skip-back .video-skip-icon-svg,
.video-btn.video-skip-forward .video-skip-icon-svg,
.video-btn.video-restart .video-skip-icon-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.video-skip-sec {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #ffffff;
  margin-top: 1px;
}

.video-time-display {
  color: #fff;
  font-size: 13px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
}

.video-volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.volume-slider-container {
  width: 72px;
  height: 4px;
  background: rgba(255, 49, 49, 0.38);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.volume-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.volume-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #ff3131;
  border-radius: 2px;
}

.volume-thumb {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 10px;
  height: 10px;
  background: #ff3131;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@media (max-width: 520px) {
  .video-controls-left,
  .video-controls-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .video-controls-meta-row .video-controls-title {
    font-size: 11px;
  }
}

/* Video Settings Menu */
.video-settings-container {
  position: relative;
}

.settings-menu {
  position: absolute;
  bottom: 52px;
  right: 0;
  background: rgba(28, 28, 28, 0.9);
  width: 200px;
  border-radius: 4px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.settings-menu.active {
  display: flex;
}

.settings-menu-item {
  background: none;
  border: none;
  color: #fff;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.settings-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-value {
  color: #aaa;
}

.settings-back-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.settings-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.check-icon {
  color: #fff;
}

.welcome-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* What's New list */
.whats-new {
  margin-top: -28px;
  padding-top: 0;
}

.whats-new .section-title {
  margin-bottom: 16px;
}

.whats-new .section-subtitle {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.whats-new .whats-new-hub-text {
  color: #3469af;
}

/* Science icon overlay on Giraffe banner (left side) – cropped from bottom */
.giraffe-banner-wrap {
  position: relative;
  height: 550px;
  overflow: hidden;
}

.giraffe-banner-wrap .giraffe-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 72%;
  transition: transform 0.4s ease;
}
.giraffe-banner-wrap:hover .giraffe-banner-img {
  transform: scale(1.06);
}

.giraffe-banner-science-icon {
  position: absolute;
  left: 44px;
  top: 31%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

/* Giraffe “What’s New” banner — overlays (desktop; mobile stacks via .giraffe-banner-wrap--stack-mobile) */
.giraffe-banner-overlay {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
}

.giraffe-banner-overlay--title {
  top: 141px;
  left: 110px;
  color: #fff;
  padding: 5px 10px;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.giraffe-banner-overlay--subtitle {
  top: 190px;
  left: 0;
  right: auto;
  max-width: min(720px, calc(100% - 90px));
  color: #ffbd59;
  padding: 5px 10px 5px 60px;
  font-size: 22px;
  font-family: 'Glacial Indifference', 'Poppins', sans-serif;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.7);
  margin: 0;
}

.giraffe-banner-overlay--cta {
  top: 270px;
  left: 60px;
  display: inline-block;
  padding: 10px 20px;
  background-color: #3469af;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.giraffe-banner-overlay--cta:hover {
  filter: brightness(1.08);
}

.new-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.new-list li {
  border-bottom: 1px solid #eee;
}

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

.new-list a {
  display: block;
  padding: 16px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.2s;
}

.new-list a:hover {
  background: #f9f9f9;
}

/* CTA strip */
.cta-strip {
  background: var(--cta-blue);
  padding: 32px 24px;
  border-radius: 8px;
  margin-top: 40px;
}

.cta-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cta-strip-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--white);
  color: var(--cta-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.cta-strip-btn:hover {
  background: #f0f0f0;
}

.cta-strip-btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta-strip-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Footer - jw.org style */
.footer {
  background: var(--nav-bg);
  color: var(--white);
  padding: 48px 24px 24px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 40px;
  margin-bottom: 40px;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-text {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.footer-text.footer-tagline {
  text-align: left;
  margin-bottom: 12px;
}

.footer-tagline-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-tagline-wrap .footer-tagline {
  margin-bottom: 0;
}

.footer-about-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.footer-about-logo {
  display: block;
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.footer-tagline-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.footer-text a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-text a:hover {
  color: var(--white);
}

.footer-links {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 18px;
  padding-left: 40px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 20px;
}

.footer-links li.footer-link-with-icon {
  padding-left: 0;
}

.footer-links li.footer-link-with-icon::before {
  display: none;
}

.footer-link-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;
  display: block;
}

.footer-contact-icon-wrap {
  margin-top: 12px;
}

.footer-contact-icon-wrap a {
  display: inline-block;
  line-height: 0;
}

.footer-contact-icon-wrap .footer-link-icon {
  margin-right: 0;
}

.footer-links li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-lang-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.footer-lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-legal {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Legal pages (Terms / Privacy) - JW-like readable alignment */
.legal-content {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 26px 22px 28px;
  box-shadow: 0 12px 36px rgba(30, 58, 95, 0.06);
}

/* Terms of Use / Privacy Policy – hero + navigation */
html:has(.terms-of-use-page),
html:has(.privacy-policy-page) {
  scroll-behavior: smooth;
}

.terms-hero {
  position: relative;
  border-radius: 20px;
  padding: 28px 26px 26px;
  margin-bottom: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(30, 58, 95, 0.07) 42%, rgba(196, 30, 58, 0.06) 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(30, 58, 95, 0.09);
}

.terms-hero::after {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: min(380px, 75vw);
  height: min(380px, 75vw);
  background: radial-gradient(circle, rgba(196, 30, 58, 0.12) 0%, transparent 62%);
  pointer-events: none;
}

.terms-hero-inner {
  position: relative;
  z-index: 1;
}

.terms-hero-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(30, 58, 95, 0.14);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cta-blue);
}

.terms-hero-title {
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  color: var(--text-dark);
  line-height: 1.15;
}

.terms-hero-lead {
  margin: 0 0 20px;
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #2a2a2a;
  font-family: "Montserrat", sans-serif;
}

.terms-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-hero-meta li {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
  font-family: "Montserrat", sans-serif;
  line-height: 1.45;
}

.terms-hero-meta li span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.legal-intro {
  font-size: 1.02rem;
  line-height: 1.68;
}

.terms-of-use-page .legal-toc,
.privacy-policy-page .legal-toc {
  margin: 22px 0 26px;
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.05) 0%, rgba(255, 255, 255, 0.65) 100%);
  border: 1px solid rgba(30, 58, 95, 0.11);
  border-radius: 14px;
}

.terms-of-use-page .legal-toc-title,
.privacy-policy-page .legal-toc-title {
  margin: 0 0 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cta-blue);
}

.terms-of-use-page .legal-toc-grid,
.privacy-policy-page .legal-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-of-use-page .legal-toc-grid a,
.privacy-policy-page .legal-toc-grid a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.terms-of-use-page .legal-toc-grid a:hover,
.privacy-policy-page .legal-toc-grid a:hover {
  border-color: rgba(30, 58, 95, 0.28);
  background: var(--white);
  color: var(--cta-blue);
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.08);
  transform: translateY(-1px);
}

.terms-of-use-page .legal-h2,
.privacy-policy-page .legal-h2 {
  scroll-margin-top: 120px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-of-use-page .legal-h2::before,
.privacy-policy-page .legal-h2::before {
  content: "";
  width: 4px;
  align-self: stretch;
  min-height: 1.15em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gfi-red) 0%, var(--cta-blue) 100%);
  flex-shrink: 0;
}

.legal-h2 {
  margin: 22px 0 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.legal-content p {
  margin: 0 0 10px;
  color: #222;
  line-height: 1.65;
  font-family: "Montserrat", sans-serif;
}

.legal-content ul:not(.legal-toc-grid) {
  margin: 8px 0 14px 22px;
  padding: 0;
}

.legal-content li {
  margin: 7px 0;
  color: #222;
  line-height: 1.6;
}

.legal-content .legal-toc-grid li {
  margin: 0;
}

@media (max-width: 600px) {
  .terms-hero {
    padding: 22px 18px 20px;
  }

  .terms-of-use-page .legal-h2,
  .privacy-policy-page .legal-h2 {
    scroll-margin-top: 100px;
  }
}

/* Login page */
.main--login {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-page {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 32px;
}

.login-icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
}

.login-subtitle {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: -4px;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: var(--cta-blue);
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.2);
}

.login-input::placeholder {
  color: #999;
}

.login-submit {
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--cta-blue);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
}

.login-submit:hover {
  background: var(--cta-blue-hover);
}

.login-submit:active {
  filter: brightness(0.95);
}

.login-form-footer {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.login-signup-link {
  color: var(--cta-blue);
  font-weight: 600;
  text-decoration: none;
}

.login-signup-link:hover {
  text-decoration: underline;
}

.login-copyright {
  margin: 16px 0 0;
  font-size: 10px;
  color: #888;
  text-align: center;
}

/* Event status styles */
.event-date.happening-today {
  font-family: 'Avenir', sans-serif;
  font-size: 15px;
  color: red;
  font-weight: bold;
}

.event-date.event-ended {
  font-family: 'Avenir', sans-serif;
  font-size: 15px;
  color: #7d7d7d; /* Space Gray approx */
  font-weight: bold;
}

/* Events page - interactive images */
.main--events {
  background: #f5f5f5; /* Keep background light grey for the margins */
  padding: 0;
  margin-top: 0; /* Set to 0 to align perfectly flush with navigation bar */
}

.main--events .page-content {
  background-color: #ffffff; /* Make the content area white */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 72px 60px; /* Horizontal padding; bottom padding so white meets footer */
  padding-top: 0; /* Remove top padding to let hero touch the nav */
}

/* Attendance block: last content inside white area, pulled up to sit right under GFIEVENT section */
.events-attendance-block {
  margin-top: -20px;
  margin-bottom: 0;
}

.events-attendance-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.events-attendance-logo {
  max-width: 80px;
  width: 100%;
  height: auto;
}

.events-attendance-divider {
  width: 2px;
  height: 80px;
  background-color: #9e9e9e;
}

.events-attendance-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-attendance-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: -5px 0 0;
}

.events-attendance-link {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  color: #5f9ea0;
  margin: 4px 0 0;
  text-decoration: none;
}

.events-hero {
  background-color: #e9ecef;
  height: 450px; /* Adjusted to 450px */
  margin: 0 -72px 10px; /* Adjusted negative margin to match new padding */
  width: calc(100% + 144px); /* Adjusted width calc to match new padding (72px * 2) */
  max-width: none; /* Allow it to exceed parent width */
  border: none; /* Removed border to eliminate the white highlight */
  border-radius: 0; /* Sharp edges for a rectangular shape */
  position: relative; /* Container for slider and nav buttons */
  overflow: hidden; /* Hide overflowing images */
  margin-top: 0; /* Ensure no top margin */
}

.hero-slider {
  display: flex; /* Images side-by-side */
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother sliding curve */
}

.hero-image {
  flex: 0 0 100%; /* Each image takes full width */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Shifted image content up within the frame */
  display: block;
}

/* Removed active class as we'll use transform instead */

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.15); /* Slightly darker for better visibility */
  color: #333; /* Darker color for the arrow */
  border: none;
  font-size: 2rem; /* Reduced from 4rem */
  padding: 15px 10px; /* Reduced from 30px 20px */
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s; /* Added transform transition for a slight hover effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1; /* Ensures the arrow is centered vertically */
}

.hero-nav-btn:hover {
  background-color: #70a850; /* Changed to green on hover */
  transform: translateY(-50%) scale(1.1); /* Slightly scale up on hover */
}

.hero-nav-btn--left {
  left: 0; /* Move to the very edge */
}

.hero-nav-btn--right {
  right: 0; /* Move to the very edge */
}

.events-hero-content {
  padding: 40px 0; /* Added vertical padding for spacing */
  text-align: left; /* Aligned text to the left corner */
  max-width: calc(1200px - 48px);
  margin: 0; /* Removed auto to align to the left corner */
  width: 100%; /* Take full width of the container */
}

.events-content-box {
  background-color: rgba(255, 255, 255, 0.75); /* Reduced transparency to 75% */
  padding: 40px 60px; /* Reduced horizontal padding to accommodate image better */
  margin: -60px auto 10px; /* Centered with negative top margin to overlap the image frame */
  max-width: 850px; /* Narrowed width from 1000px to 850px */
  width: 90%; /* Take most of the container width on smaller screens */
  text-align: left; /* Keep text left-aligned */
  border: 1px solid #dee2e6;
  /* Sharp rectangle corners */
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Slightly stronger shadow for the overlap */
  min-height: auto; /* Removed fixed min-height to let content define height */
  position: relative; /* Needed for z-index */
  z-index: 5; /* Ensures it sits above the image frame */
  display: flex; /* Added flex to position image on the left */
  justify-content: center; /* Changed from space-between to center content */
  align-items: center;
  gap: 40px; /* Added gap for better spacing between image and text */
}

/* Events page: make the white hero box a bit thinner vertically */
.page-events .events-content-box {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Pen edit control (events hero white card only) */
.events-box-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00509d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.events-box-edit-btn:hover {
  background: #f0f4f8;
}

.events-box-edit-btn:focus-visible {
  outline: 2px solid #00509d;
  outline-offset: 2px;
}

.events-box-edit-btn--active {
  background: #00509d;
  color: #fff;
  border-color: #00509d;
}

.addpost-events-preview-root .events-content-box .title-text.addpost-events-editable,
.addpost-events-preview-root .events-content-box .info-text.addpost-events-editable {
  border-radius: 4px;
  min-height: 1.2em;
}

.home-banner-box {
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  min-height: 160px;
  width: 98%;
  max-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  gap: 24px;
  /* Sharp rectangle corners */
  border-radius: 0;
  position: relative;
  overflow: visible;
}

/* Out-of-flow so asset size never shifts the banner box layout */
.home-banner-box-logo {
  position: static;
  flex: 0 0 auto;
  width: 86px;
  max-width: min(86px, 22vw);
  height: auto;
  max-height: 90px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  margin-right: 4px;
}

.home-banner-box-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.home-banner-countdown {
  flex: 0 0 auto;
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.countdown-item {
  min-width: 74px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.countdown-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  line-height: 1.05;
}

.countdown-label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.election-period-info {
  color: #00509d; /* Deep blue from image */
  font-family: 'Proxima Nova', 'Montserrat', sans-serif;
}

/* Extra space for pen control (addpost preview only; public events.html has no pen) */
.events-content-box:has(.events-box-edit-btn) .election-period-info {
  padding-right: 48px;
}

.election-box-image {
  flex-shrink: 0;
}

.election-box-img {
  width: 180px; /* same size with the images from March */
  height: auto;
  border-radius: 4px;
}

.election-title {
  font-size: 1.5rem; /* Reduced from 2.4rem */
  font-weight: 700;
  margin-bottom: 30px; /* Reduced margin */
  display: flex;
  align-items: center; /* Use center for reliable vertical alignment of text and separator */
  gap: 12px; /* Slightly tighter gap */
  color: #00509d;
  line-height: normal; /* Use normal line-height to avoid flex centering issues */
}

.election-title .separator {
  font-weight: 400;
  opacity: 0.8;
  margin: 0 4px;
  position: relative;
  top: -1px; /* Subtle adjustment to align | visually with caps */
}

.month {
  font-weight: 700;
  position: relative;
  top: -1px; /* Match separator adjustment for a unified look */
}

.info-row {
  display: flex;
  align-items: center;
  gap: 16px; /* Reduced gap from 24px */
  margin-bottom: 20px; /* Reduced margin from 32px */
}

.info-icon {
  width: 28px; /* Reduced from 54px */
  height: 28px; /* Reduced from 54px */
  flex-shrink: 0;
}

.events-content-box .info-icon .box-icon-custom {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.info-text {
  font-size: 1.125rem; /* Reduced from 1.75rem */
  font-weight: 500;
}

.events-hero-title {
  font-family: 'Proxima Nova', 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: var(--cta-blue);
  margin-bottom: 16px;
  font-weight: 700;
  text-align: left; /* Aligned title to the left */
}

.events-hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.6;
  text-align: left; /* Aligned description to the left */
  margin: 0; /* Removed margin auto to keep it on the left */
}

.main--events .page-content {
  padding-top: 0; /* Removed top padding as content box handles it */
}

/* Home section - white content area like Events, same width as Paduwa banner */
.main--home {
  background: #f5f5f5;
  padding: 0;
  margin-top: 0;
}

.main--home .page-content {
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 72px 60px;
  padding-top: 0;
}

.tour-cta-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.section-courses .courses-admission-cta-row {
  justify-content: center;
  margin-top: 24px;
}

.tour-cta-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gfi-red, #c41e3a);
}

.tour-cta-btn:hover {
  background-color: var(--gfi-red-dark, #9e1830);
}

.main--tour .page-content {
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 72px 60px;
}

.tour-subtitle {
  margin: 10px 0 18px;
  max-width: 820px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tour-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 22px;
}

.tour-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tour-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(30, 58, 95, 0.04);
}

.tour-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.tour-radio input {
  width: 18px;
  height: 18px;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.tour-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tour-field--full {
  grid-column: 1 / -1;
}

.tour-field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.tour-field input,
.tour-field select,
.tour-field textarea {
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  outline: none;
}

.tour-field textarea {
  resize: vertical;
}

.tour-field input:focus,
.tour-field select:focus,
.tour-field textarea:focus {
  border-color: rgba(30, 58, 95, 0.45);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.12);
}

.tour-subheading {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
}

.tour-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 6px;
}

.tour-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  display: none;
  font-weight: 700;
}

.tour-message--success,
.tour-message--error {
  display: block;
}

.tour-message--success {
  background: #e8f7ed;
  border: 1px solid #bde8ca;
  color: #1d6b36;
}

.tour-message--error {
  background: #fdeeee;
  border: 1px solid #f6caca;
  color: #9b1f1f;
}

@media (max-width: 768px) {
  .main--tour .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .tour-actions {
    justify-content: flex-start;
  }
}

.events-category-header {
  border-bottom: 2px solid rgba(30, 58, 95, 0.3);
  margin-bottom: 32px;
  padding-bottom: 8px;
}

.events-year-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--cta-blue);
  font-family: 'Poppins', sans-serif;
}

.events-month-group {
  margin-bottom: 48px;
}

.month-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.month-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.month-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0, 80, 157, 0.35);
  background: #00509d;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.month-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(196, 30, 58, 0.35);
  background: #c41e3a;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.month-remove-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.month-add-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.events-brand-block {
  margin-bottom: 0;
}

.event-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.event-text-item {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.event-text-item:last-child {
  border-bottom: none;
}

.event-text-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  padding: 0;
}

.event-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  background: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}

.event-image-item {
  display: flex;
  flex-direction: column;
  background: none !important;
  box-shadow: none !important;
  max-width: 180px;
  padding: 0;
  margin: 0;
  position: relative;
  transition: transform 0.3s ease; /* Added for hover shift */
}

.event-image-item:hover {
  transform: translateY(-6px); /* Slight lift like in news */
}

.event-add-item {
  display: flex;
  flex-direction: column;
  background: none !important;
  box-shadow: none !important;
  max-width: 180px;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease;
}

.event-add-image-btn {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  border: 2px solid rgba(0, 80, 157, 0.35);
  background: rgba(0, 80, 157, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 80, 157, 0.95);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.event-add-image-btn:hover {
  transform: translateY(-6px);
  filter: brightness(1.08);
}

.event-add-plus {
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
  margin-top: -6px; /* optical centering */
}

.event-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(196, 30, 58, 0.35);
  background: rgba(196, 30, 58, 0.12);
  color: rgba(196, 30, 58, 0.95);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  z-index: 5;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.event-remove-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.event-image-item.is-dragging {
  opacity: 0.6;
  transform: none !important;
}

.event-item-image-wrap {
  cursor: grab;
}

.event-item-image-wrap {
  width: 100%;
  overflow: hidden; /* Ensures scaling image stays within bounds */
  border-radius: 8px; /* Added rounded corners back for better look with animation */
  margin-bottom: 16px;
}

.event-item-image {
  width: 100%;
  height: auto;
  margin-bottom: 0; /* Margin moved to wrap */
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  display: block;
  transition: transform 0.5s ease; /* Matching news image transition */
}

.event-image-item:hover .event-item-image {
  transform: scale(1.06); /* Matching news image scale */
}

.event-image-item.event-ended .event-item-image {
  /* Make ended event thumbnails appear black-and-white */
  filter: grayscale(100%) contrast(1.15);
}

.event-item-content {
  padding: 0; /* Remove padding since the box is gone */
}

.event-card-image {
  height: 200px;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.event-title--highlight {
  color: var(--gfi-red);
}

.event-date {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.event-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--cta-blue);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-link:hover {
  text-decoration: underline;
}

/* Timeline styles removed in favor of grid layout */

/* News page - interactive images */
.main--news {
  background: #f5f5f5;
  padding: 40px 24px 56px;
}

.news-page {
  max-width: 1100px;
  margin: 0 auto;
}

.news-page-header {
  margin-bottom: 40px;
}

.news-page-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
}

.news-page-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Featured article - interactive image */
.news-featured {
  margin-bottom: 48px;
}

.news-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.news-featured-link:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.news-featured-image-wrap {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.news-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-featured-link:hover .news-featured-image {
  transform: scale(1.06);
}

.news-featured-body {
  padding: 24px 28px;
}

.news-meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cta-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.news-featured-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  line-height: 1.3;
}

.news-featured-excerpt {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Shared overlay for interactive images */
.news-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.news-featured-link:hover .news-image-overlay,
.news-card-link:hover .news-image-overlay {
  opacity: 1;
}

.news-read-more {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border: 2px solid var(--white);
  border-radius: 8px;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}

.news-featured-link:hover .news-read-more,
.news-card-link:hover .news-read-more {
  transform: translateY(0);
}

/* News grid cards - interactive images */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}

.news-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.news-card-link:hover .news-card-image {
  transform: scale(1.08);
}

.news-card-body {
  padding: 20px 22px;
}

.news-card-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  line-height: 1.35;
}

.news-card-excerpt {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Signup page */
.main--signup {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.signup-page {
  width: 100%;
  max-width: 440px;
}

.signup-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 32px;
}

.signup-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
}

.signup-subtitle {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signup-form .login-submit {
  margin-top: 8px;
}

/* Auth messages (login/signup) */
.auth-message {
  display: none;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.auth-message--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-message--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Dashboard - Student */
.main--dashboard {
  background: #f0f2f5;
  padding: 32px 24px 56px;
}

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 160px);
}

.dashboard-layout .main {
  flex: 1 1 auto;
  margin-left: 260px;
}

.dashboard-sidebar {
  position: fixed;
  left: 0;
  top: 118px;
  width: 260px;
  height: calc(100vh - 118px);
  background: #e69e30;
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.dashboard-sidebar--collapsed {
  width: 72px; /* Slightly wider to comfortably fit icons */
}

.dashboard-layout:has(.dashboard-sidebar--collapsed) .main {
  margin-left: 72px;
}

/* Footer on dashboard pages: shift right so it is not covered by the fixed sidebar */
.dashboard-layout + .footer {
  margin-left: 260px;
}

.dashboard-layout:has(.dashboard-sidebar--collapsed) + .footer {
  margin-left: 72px;
}

/* Hide text labels and titles when collapsed */
.dashboard-sidebar--collapsed .dashboard-sidebar-title,
.dashboard-sidebar--collapsed .dashboard-sidebar-label,
.dashboard-sidebar--collapsed .dashboard-sidebar-chevron,
.dashboard-sidebar--collapsed .dashboard-sidebar-submenu {
  display: none !important; /* Force hide */
}

/* Center icons when collapsed */
.dashboard-sidebar--collapsed .dashboard-sidebar-link {
  justify-content: center;
  padding: 14px 0;
}

.dashboard-sidebar--collapsed .dashboard-sidebar-icon {
  margin: 0;
}

.dashboard-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  /* Keep header height consistent */
  min-height: 70px;
  white-space: nowrap;
}

.dashboard-menu-btn {
  width: 32px;
  height: 24px;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.dashboard-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
}

.dashboard-sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.dashboard-sidebar-nav {
  display: flex;
  flex-direction: column;
}

.dashboard-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
}

.dashboard-sidebar-link--active {
  background: rgba(0, 0, 0, 0.15);
}

.dashboard-sidebar-link:hover {
  background: rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.dashboard-sidebar-group .dashboard-sidebar-link {
  border-bottom: none;
}

.dashboard-sidebar-chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.dashboard-sidebar-dropdown-toggle[aria-expanded="true"] .dashboard-sidebar-chevron {
  transform: rotate(180deg);
}

.dashboard-sidebar-submenu {
  display: none;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
}

.dashboard-sidebar-submenu.is-open {
  display: flex;
}

.dashboard-sidebar-sublink {
  padding: 10px 20px 10px 56px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
}

.dashboard-sidebar-sublink:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.dashboard-sidebar-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-sidebar-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.dashboard-sidebar-label {
  font-weight: 500;
}

.page-was-it-designed .header {
  border-bottom: none;
}

.page-was-it-designed .main {
  background: #ffffff;
}

.wid-caption-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.wid-video-caption {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a1a1a;
}

.wid-language-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wid-language-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  cursor: pointer;
}

.wid-language-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
}

.wid-language-icon svg {
  display: block;
}

.wid-language-select {
  padding: 6px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  min-width: 120px;
}

.wid-duration-text {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 1rem;
  color: #1a1a1a;
}

.wid-video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.wid-video-courtesy {
  font-size: 0.9rem;
  color: var(--text-muted, #4a4a4a);
  margin: 0;
}

.wid-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background-color: #3469af;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.wid-action-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wid-action-btn-icon svg {
  display: block;
  color: #ffffff;
}

.wid-action-btn:hover {
  background-color: #2a5490;
}

.wid-action-btn:active {
  background-color: #1e3d6b;
}

/* HOME welcome video: match action buttons to video-control color theme */
#welcome-video .wid-action-btn {
  background-color: var(--gfi-red);
  color: #ffffff;
}

#welcome-video .wid-action-btn:hover {
  background-color: var(--gfi-red-dark, #9e1830);
  color: #ffffff;
}

#welcome-video .wid-action-btn:active {
  background-color: #7f1327;
}

/* Download dropdown */
.wid-download-wrap {
  position: relative;
  display: inline-block;
}

.wid-download-wrap .wid-action-btn {
  display: inline-flex;
}

.wid-download-chevron {
  display: inline-flex;
  margin-left: 4px;
  transition: transform 0.2s;
}

.wid-download-wrap.is-open .wid-download-chevron {
  transform: rotate(180deg);
}

.wid-download-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 120px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
}

.wid-download-dropdown[hidden] {
  display: none !important;
}

.wid-download-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.wid-download-option:hover {
  background: #f0f0f0;
}

.wid-download-option:not(:last-child) {
  border-bottom: 1px solid #eee;
}

/* Video credit / license below Download button */
.wid-video-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e8e8e8;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.wid-video-credit-left p {
  margin: 0 0 6px 0;
}

.wid-video-credit-left p:last-child {
  margin-bottom: 0;
}

.wid-video-credit-license {
  text-align: right;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin: 0;
  margin-right: -16px;
}

/* Share popup */
.wid-share-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wid-share-modal[hidden] {
  display: none !important;
}

.wid-share-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.wid-share-panel {
  position: relative;
  width: max-content;
  min-width: 320px;
  max-width: min(90vw, 560px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  padding: 24px 48px 24px 24px;
}

.wid-share-title {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  padding-right: 28px;
  white-space: nowrap;
}

.wid-share-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wid-share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.wid-share-option:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.wid-share-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #555;
}

.wid-share-option-icon--facebook {
  color: #1877f2;
}

.wid-share-option-icon--messenger {
  color: #0084ff;
}

.wid-share-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
}

.wid-share-close:hover {
  background: #eee;
  color: #1a1a1a;
}

.page-was-it-designed {
  background: #ffffff;
}

.page-was-it-designed .sticky-header {
  box-shadow: none;
}

.dashboard-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.dashboard-welcome {
  margin-bottom: 32px;
}

.dashboard-welcome-inner {
  background: linear-gradient(135deg, var(--cta-blue) 0%, #2a4a7a 100%);
  color: var(--white);
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.25);
}

.dashboard-welcome-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: var(--white);
}

.dashboard-welcome-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.dashboard-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dashboard-card--narrow {
  max-width: 800px;
  margin: 0 auto;
}

.dashboard-card--admission {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 96px;
}

.dashboard-admission-current {
  margin: 10px 0 6px;
  font-weight: 600;
  color: var(--text-dark);
}

.dashboard-admission-question {
  margin: 12px 0 14px;
  font-size: 1.05rem;
}

.dashboard-admission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.dashboard-admission-btn {
  min-width: 88px;
}

.dashboard-admission-btn--active {
  box-shadow: 0 0 0 2px rgba(52, 105, 175, 0.45);
}

.dashboard-admission-feedback {
  margin-top: 4px;
  min-height: 1.25em;
}

.dashboard-admission-admin-note {
  margin-top: 6px;
  color: var(--text-muted, #666);
}

.admission-lock-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #fff8e6;
  border: 1px solid #f0d99a;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-dark);
}

.admission-lock-banner[hidden] {
  display: none;
}

.admission-form-shell--locked .admission-form-card {
  opacity: 0.92;
}

/* Add Post → Events: wide card so the embedded events prototype fits */
.dashboard-card--events-preview {
  max-width: min(100%, 1600px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-card--paduwa-highlight {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Keep the banner-article prototype fully contained inside the dashboard card */
.dashboard-card--paduwa-highlight .dashboard-banner-article-preview {
  width: 100%;
  overflow: visible;
}

.dashboard-card--paduwa-highlight .banner-article-team-logos {
  margin-top: 12px;
  justify-content: center;
  gap: 10px 14px;
}

.dashboard-card--paduwa-highlight .banner-article-team-logo {
  width: 72px;
  height: 72px;
}

.dashboard-card--paduwa-highlight .banner-article-team-name {
  font-size: 0.9rem;
  max-width: 84px;
}

.dashboard-card--paduwa-highlight .banner-article-hero-divider {
  margin: 14px 0 0;
  width: 100%;
}

.dashboard-card--paduwa-highlight .banner-article-video-wrap {
  margin-top: 14px;
  width: 100%;
}

.dashboard-card--paduwa-highlight .banner-article-video-inner {
  width: 100%;
}

.dashboard-card--paduwa-highlight .banner-article-video-pair {
  --banner-2026-col-nudge: 0px;
  gap: 14px;
}

.dashboard-card--paduwa-highlight .banner-article-video-pair-col:last-child {
  transform: none;
}

.dashboard-card--paduwa-highlight .banner-article-video-player-wrap {
  width: 30%;
  min-width: 30%;
  max-width: 30%;
  flex-shrink: 0;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 8px;
}

.dashboard-card--paduwa-highlight .banner-article-video-player-wrap .banner-article-hero-img {
  height: auto;
  object-fit: contain;
}

.dashboard-card--paduwa-highlight .paduwa-prototype-video {
  width: 100%;
  height: auto;
  display: block;
  min-width: 0;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.dashboard-card--paduwa-highlight .banner-article-video-row {
  width: 100%;
  overflow: visible;
}

.dashboard-card--paduwa-highlight .banner-article-video-divider {
  align-self: stretch;
}

.dashboard-card--paduwa-highlight .banner-article-paduwa-2026-image-icon {
  width: 72px;
  height: 72px;
  margin-left: 10px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  transform: none;
  position: static;
  align-self: center;
}

.dashboard-card--paduwa-highlight .banner-article-paduwa-theme-2026 {
  margin-top: 2px;
}

@media (max-width: 860px) {
  .dashboard-card--paduwa-highlight .banner-article-video-pair {
    flex-direction: column;
  }

  .dashboard-card--paduwa-highlight .banner-article-video-pair-col {
    width: 100%;
  }

  .dashboard-card--paduwa-highlight .banner-article-video-player-wrap {
    width: 30%;
    min-width: 30%;
    max-width: 30%;
  }

  .dashboard-card--paduwa-highlight .paduwa-prototype-video {
    height: auto;
  }

  .dashboard-card--paduwa-highlight .banner-article-paduwa-2026-image-icon {
    width: 60px;
    height: 60px;
    margin-left: 6px;
  }
}

.dashboard-card--narrow + .dashboard-card--narrow {
  margin-top: 24px;
}

.dashboard-card-grid {
  width: min(1200px, 100%);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .dashboard-card-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card-title {
  margin: 0 0 20px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
}

.dashboard-banner-preview {
  display: block;
}

.dashboard-banner-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.dashboard-banner-actions {
  margin-top: 12px;
}

.dashboard-banner-image-actions {
  margin-top: 12px;
}

.dashboard-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--cta-blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.dashboard-btn:hover {
  filter: brightness(1.1);
}
.dashboard-btn--replace {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  font-family: "Avenir", "Montserrat", sans-serif;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.25);
  letter-spacing: 0.03em;
}

.dashboard-btn--replace:hover {
  filter: brightness(1.08);
}
.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dashboard-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}

.dashboard-quick-item:hover {
  background: var(--cta-blue);
  color: var(--white);
}

.dashboard-quick-icon {
  font-size: 1.5rem;
}

.dashboard-profile-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.dashboard-profile-row:last-child {
  border-bottom: none;
}

.dashboard-profile-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dashboard-profile-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
}
 
 .dashboard-form-field {
   margin-top: 16px;
 }
 
 .dashboard-input {
   width: 100%;
   padding: 10px 12px;
   border: 1px solid var(--border-input);
   border-radius: 8px;
   font-size: 0.9375rem;
   color: var(--text-dark);
   background: var(--white);
 }
 
.dashboard-input--banner {
  font-family: "Avenir", "Montserrat", sans-serif;
  border: 2px solid #2e7d32;
  background: #f0fdf4;
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.12);
  padding: 12px 14px;
}

.dashboard-input--banner:focus {
  outline: none;
  border-color: #166534;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.18), 0 10px 22px rgba(46, 125, 50, 0.14);
}

 .dashboard-form-actions {
   margin-top: 12px;
   width: 100%;
   display: flex;
   align-items: center;
 }
 
 .dashboard-form-actions--split {
   justify-content: space-between;
 }

.dashboard-form-actions--end {
  justify-content: flex-end;
}

.banner-article-controls {
  gap: 10px;
}

.banner-article-controls-btn {
  width: 52px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1;
}

.dashboard-input-wrap {
  position: relative;
}

.dashboard-input-wrap .dashboard-input--banner {
  padding-right: 56px;
  padding-left: 56px;
}

.dashboard-input-option {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(46, 125, 50, 0.35);
  border-radius: 10px;
  background: rgba(46, 125, 50, 0.12);
  color: #166534;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.02em;
}

.dashboard-input-option:hover {
  background: rgba(46, 125, 50, 0.18);
}

.dashboard-input-option:active {
  transform: translateY(-50%) scale(0.98);
}

.dashboard-input-check {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #2e7d32;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.18);
}

.dashboard-input-check:hover {
  filter: brightness(1.08);
}

.dashboard-input-check:active {
  transform: translateY(-50%) scale(0.98);
}

.dashboard-blank-section {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-top: 16px;
  min-height: 360px;
  width: 100%;
}

.dashboard-blank-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
}

.dashboard-upcoming-list,
.dashboard-announce-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-upcoming-list li,
.dashboard-announce-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.dashboard-upcoming-list li:last-child,
.dashboard-announce-list li:last-child {
  border-bottom: none;
}

.dashboard-upcoming-list a {
  color: var(--cta-blue);
  text-decoration: none;
  font-weight: 500;
}

.dashboard-upcoming-list a:hover {
  text-decoration: underline;
}

.dashboard-announce-list li {
  color: var(--text-muted);
}

.dashboard-user {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.account-field {
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 14px;
  background: #f9fbfd;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-field-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-field-value {
  font-size: 0.9375rem;
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-word;
}

.account-edit-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d7e2ee;
  border-radius: 999px;
  background: #ffffff;
  color: #2c5f93;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.account-edit-btn:hover {
  background: #ebf4ff;
  border-color: #bcd3ea;
}

.account-access-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.account-access-item {
  border-radius: 999px;
  background: #e9f3ff;
  color: #1e4d88;
  border: 1px solid #c4dcfb;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
}

.account-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.account-form .hero-caption-btn {
  align-self: flex-start;
  margin-top: 6px;
}

.account-password-instruction {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef5ff;
  border: 1px solid #d5e4fa;
  color: #234b7a;
  font-size: 0.875rem;
  line-height: 1.45;
}

.account-feedback {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.account-feedback--success,
.account-feedback--error {
  display: block;
}

.account-feedback--success {
  background: #e8f7ed;
  border: 1px solid #bde8ca;
  color: #1d6b36;
}

.account-feedback--error {
  background: #fdeeee;
  border: 1px solid #f6caca;
  color: #9b1f1f;
}

.account-edit-modal[hidden] {
  display: none !important;
}

.account-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.account-edit-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.account-edit-modal__panel {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
  padding: 16px;
}

.account-edit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-edit-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.account-edit-modal__close {
  border: none;
  background: transparent;
  color: #4a5d70;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.account-edit-modal__body {
  margin-top: 12px;
}

.account-edit-modal__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.account-edit-modal__btn--secondary {
  background: #607d8b;
}

.account-edit-modal__btn--secondary:hover {
  background: #4f6873;
}

@media (max-width: 640px) {
  .dashboard-quick-grid {
    grid-template-columns: 1fr;
  }

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

/* Responsive */
@media (max-width: 768px) {
  /* Header / logo / nav: same horizontal structure as desktop (see 1024px rules) */

  .hero {
    min-height: 360px;
  }

  .hero-content {
    padding: 32px 16px;
  }

  .page-content {
    padding: 24px 16px 40px;
  }

  .card-grid--featured {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-strip-inner {
    flex-direction: column;
  }

  .cta-strip-btn {
    width: 100%;
    text-align: center;
  }

  /* Full-bleed heroes: cancel negative margins (fixes mobile horizontal overflow) */
  .home-hero,
  .events-hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-hero {
    height: auto;
    min-height: 260px;
    max-height: min(420px, 52vh);
  }

  .events-hero {
    height: auto;
    min-height: 280px;
    max-height: min(440px, 48vh);
  }

  .banner-article-hero,
  .banner-article-hero-divider {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .banner-article-hero {
    height: auto;
    min-height: 240px;
    max-height: min(400px, 50vh);
  }

  /* Tight side padding on “white column” layouts (beats 72px desktop padding) */
  .main--home .page-content,
  .main--events .page-content {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: min(420px, 52vh);
    object-fit: cover;
  }

  .home-banner-box {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
    gap: 16px;
  }

  .home-banner-box-logo {
    width: 70px;
    max-width: min(70px, 28vw);
    max-height: 74px;
    margin-right: 0;
    align-self: flex-start;
  }

  .home-banner-countdown {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .countdown-item {
    min-width: 62px;
    padding: 8px 6px;
  }

  .hero-caption-text {
    font-size: clamp(1.35rem, 5vw, 2rem);
    max-width: 100%;
  }

  .hero-caption-subtext {
    font-size: 0.9rem;
    max-width: 100%;
  }

  /* Events page content box (not the home Paduwa strip) */
  .events-content-box:not(.home-banner-box) {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 16px;
    width: 100%;
    max-width: 100%;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .election-box-img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    display: block;
  }

  .events-hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .events-hero-desc {
    font-size: 1rem;
  }

  /* What’s New: WID banners stack */
  .home-wid-banners {
    flex-direction: column;
    align-items: stretch;
  }

  .home-wid-banners .home-songbird-banner {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .home-wid-banners .home-songbird-banner-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* Courses grid: 2 columns on phones/tablets in this breakpoint */
  .section-courses .courses-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 8px;
  }

  .giraffe-banner-wrap {
    height: auto;
  }

  .giraffe-banner-wrap .giraffe-banner-img {
    height: min(280px, 55vw);
    min-height: 200px;
  }

  .giraffe-banner-wrap--stack-mobile {
    display: flex;
    flex-direction: column;
  }

  .giraffe-banner-wrap--stack-mobile .giraffe-banner-science-icon {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: -28px auto 12px;
    width: 56px;
    height: 56px;
  }

  .giraffe-banner-wrap--stack-mobile .giraffe-banner-overlay {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    text-align: center;
    padding: 10px 16px !important;
    margin: 0;
  }

  .giraffe-banner-wrap--stack-mobile .giraffe-banner-overlay--subtitle {
    font-size: 1rem !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .giraffe-banner-wrap--stack-mobile .giraffe-banner-overlay--title {
    font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
    margin-top: 8px;
  }

  .giraffe-banner-wrap--stack-mobile .giraffe-banner-overlay--cta {
    margin: 8px auto 16px;
    display: inline-block !important;
  }

  .event-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px;
  }

  .section-divider {
    margin: 32px 0;
  }

  .courses-title {
    margin-top: 2rem;
    font-size: clamp(1.35rem, 4vw, 2rem);
  }

  .banner-article-team-logos {
    justify-content: center;
    gap: 10px 12px;
    margin-top: 16px;
  }

  .banner-article-team-logo {
    width: 72px;
    height: 72px;
  }

  .banner-article-team-name {
    font-size: 1rem;
    max-width: 88px;
  }

  .map-section .map-container,
  .map-container {
    min-height: 280px;
    height: min(50vh, 400px) !important;
  }

  iframe[src*="google.com/maps"] {
    min-height: 280px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
  line-height: 1.6;
  color: #555;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-body ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

.modal-close-btn {
  background-color: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.modal-close-btn:hover {
  background-color: #5a6268;
}

/* Privacy Settings modal */
.modal-overlay.privacy-settings-modal-overlay {
  z-index: 10050;
}

.footer-legal .privacy-settings-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-decoration: none;
  vertical-align: baseline;
}

.footer-legal .privacy-settings-trigger:hover {
  color: var(--white);
  text-decoration: underline;
}

.modal-content--privacy {
  max-width: 680px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.privacy-modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.privacy-modal-intro {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #444;
}

.privacy-modal-quick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #f6f8fa;
  border: 1px solid #e8eaed;
  border-radius: 10px;
}

.privacy-modal-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #333;
  margin: 0;
}

.privacy-modal-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--cta-blue);
  cursor: pointer;
}

.privacy-modal-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #444;
  background: rgba(30, 58, 95, 0.06);
  border-left: 4px solid var(--cta-blue);
  border-radius: 0 8px 8px 0;
}

.privacy-modal-section-title {
  margin: 0 0 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
}

.privacy-modal-customize {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.privacy-modal-option {
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.privacy-modal-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.privacy-modal-option-title {
  font-weight: 700;
}

.privacy-modal-option-desc {
  margin: 8px 0 0 30px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #555;
}

.modal-footer--privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.privacy-settings-modal-save {
  background-color: var(--cta-blue);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.privacy-settings-modal-save:hover {
  background-color: var(--cta-blue-hover);
}

.gfi-intro-trigger {
  cursor: pointer;
}

.gfi-intro-trigger:hover {
  text-decoration: underline;
  color: var(--white);
}

.page-search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10000;
}

.page-search-overlay.is-open {
  display: flex;
}

.page-search-panel {
  background-color: var(--white);
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.page-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-search-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
}

.page-search-close {
  width: 40px;
  height: 40px;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  background: #f6f6f6;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-search-close:hover {
  background: #efefef;
}

.page-search-subtitle {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.page-search-results {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-search-result {
  width: 100%;
  text-align: left;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.page-search-result:hover {
  background: #f2f2f2;
  border-color: #d9d9d9;
}

.page-search-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.page-search-snippet {
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.page-search-mark {
  background: rgba(196, 30, 58, 0.18);
  border-radius: 4px;
  padding: 0 2px;
}

.page-search-empty {
  padding: 16px 6px;
  color: var(--text-muted);
}

.page-search-target {
  outline: 3px solid rgba(196, 30, 58, 0.75);
  outline-offset: 4px;
  border-radius: 8px;
  animation: page-search-flash 1.2s ease-out;
}

@keyframes page-search-flash {
  from { background-color: rgba(196, 30, 58, 0.12); }
  to { background-color: transparent; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }
}

/* HOME – SongBird banner below hero image (20% width) */
.home-songbird-banner {
  margin-top: 40px;
  margin-bottom: 16px;
  text-align: left;
}
.home-songbird-banner-img {
  width: 25%;
  height: auto;
  display: inline-block;
  border-radius: 0;
}
.home-wid-banner-link {
  display: block;
  text-decoration: none;
}

.home-songbird-caption-group {
  display: inline-block;
}

.home-songbird-caption-link {
  color: #0066cc;
  text-decoration: none;
}

.home-songbird-caption-group:hover .home-songbird-caption-link {
  text-decoration: underline;
}

.home-songbird-caption {
  margin: 8px 0 0;
  font-size: 20px;
  color: #0066cc;
  line-height: 0.8;
}
.home-songbird-caption--bottom {
  margin-top: 0.8em;
}
.home-songbird-caption--single {
  margin-top: 20px;
  white-space: nowrap;
}

/* Move caption text lower for SongBird and Shark */
.home-wid-banner--text-down .home-songbird-caption:first-child {
  margin-top: 28px;
}

/* Wrapper for three Was It Designed banners: left, center, right */
.home-wid-banners {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 16px;
  margin-top: 40px;
  margin-bottom: 16px;
}
.home-wid-banners .home-songbird-banner {
  margin-top: 0;
  margin-bottom: 0;
  flex: 0 0 25%;
  min-width: 0;
  box-sizing: border-box;
}
/* Each image 25% of row: column is 25% wide, image fills column */
.home-wid-banners .home-songbird-banner-img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.home-wid-banners .home-wid-banner-link {
  overflow: hidden;
  display: block;
}
.home-wid-banners .home-wid-banner-link:hover .home-songbird-banner-img {
  transform: scale(1.08);
}
.home-wid-banner--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-wid-banner--center .home-songbird-banner-img {
  margin-left: auto;
  margin-right: auto;
}

/* Banner article + Was It Designed: stack video / meta on narrow screens */
@media (max-width: 768px) {
  .banner-article-video-pair {
    flex-direction: column;
    gap: 20px;
  }

  .banner-article-video-pair-col {
    width: 100%;
  }

  .banner-article-video-pair-col:last-child {
    transform: none;
  }

  .banner-article-video-pair-col .banner-article-video-row .banner-article-video-player-wrap.video-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .banner-article-video-row {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-article-video-player-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* Keep the icon aligned with the stacked layout */
  .banner-article-paduwa-2026-image-icon {
    transform: none;
    margin: 0;
  }

  .banner-article-video-divider {
    width: 100%;
    height: 3px;
    min-height: 3px;
  }

  .page-was-it-designed .wid-caption-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .wid-video-caption {
    font-size: 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive header shell for tablets/phones
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sticky-header {
    box-shadow: none;
  }

  .header {
    background: #ececec;
    border-bottom: 0;
    padding: 12px 14px 10px;
  }

  .header-inner {
    max-width: none;
    margin: 0;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: visible;
  }

  .brand {
    transform: none;
    gap: 0;
  }

  .logo {
    width: 64px;
    height: 64px;
    margin: 0 0 6px 0;
    overflow: visible;
    transform: none;
  }

  .logo-img {
    object-fit: contain;
    object-position: center;
  }

  .brand-text,
  .header-actions {
    display: none;
  }

  .nav {
    min-height: 0;
    padding: 2px 14px 10px;
    background: #ececec;
    overflow: visible;
  }

  .nav-inner {
    max-width: none;
    margin: 0;
    min-height: 38px;
    padding: 0 14px 0 42px;
    transform: none;
    background: #575757;
    position: relative;
    gap: 0;
    border-radius: 0;
  }

  /* Left mobile icon: visual hamburger like the sample */
  .nav-inner::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 18px;
    height: 12px;
    transform: translateY(-50%);
    background:
      linear-gradient(#dcdcdc, #dcdcdc) 0 0 / 100% 1px no-repeat,
      linear-gradient(#dcdcdc, #dcdcdc) 0 50% / 100% 1px no-repeat,
      linear-gradient(#dcdcdc, #dcdcdc) 0 100% / 100% 1px no-repeat;
    opacity: 0.95;
  }

  .nav-item {
    display: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-item--active {
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 38px;
    color: #f0f0f0;
    letter-spacing: 0.04em;
    font-weight: 700;
  }

  .nav-item--active .nav-icon {
    display: none;
  }

  .nav-item--active .nav-label {
    font-size: 1.95rem;
    line-height: 1;
    transform: translateY(-1px);
  }

  /* Fallback pages without explicit active nav item (e.g., auth pages). */
  .nav-inner:not(:has(.nav-item--active)) .nav-item:first-child {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: #f0f0f0;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .nav-inner:not(:has(.nav-item--active)) .nav-item:first-child .nav-icon {
    display: none;
  }

  .nav-inner:not(:has(.nav-item--active)) .nav-item:first-child .nav-label {
    font-size: 1.95rem;
    line-height: 1;
    transform: translateY(-1px);
  }
}

/* --------------------------------------------------------------------------
   Small phones: single-column courses, tighter nav
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .section-courses .courses-offer-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .header {
    padding: 10px 10px 9px;
  }

  .nav {
    padding: 0 10px 10px;
  }

  .logo {
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
  }

  .nav-inner {
    padding-left: 38px;
  }

  .nav-inner::before {
    left: 10px;
    width: 16px;
  }

  .nav-item--active .nav-label {
    font-size: 1.7rem;
  }

  .nav-inner:not(:has(.nav-item--active)) .nav-item:first-child .nav-label {
    font-size: 1.7rem;
  }

  .home-songbird-caption--single {
    white-space: normal;
  }

  .school-name {
    font-size: 1.125rem;
  }

  .tagline {
    font-size: 0.8125rem;
  }

  .section-welcome-video .video-wrap {
    min-height: 200px;
  }

  .election-title {
    flex-wrap: wrap;
    font-size: 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   Device-based logo behavior (jw.org-like): tablet vs phone
   Desktop remains unchanged.
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .header {
    padding: 12px 16px 8px;
  }

  .brand {
    align-items: flex-start;
  }

  .logo {
    width: 60px;
    height: 60px;
    margin: 0;
  }

  .logo-img {
    object-fit: contain;
    object-position: top left;
  }

  .nav {
    padding: 2px 16px 12px;
  }

  .nav-inner {
    min-height: 40px;
    padding-left: 44px;
  }

  .nav-inner::before {
    left: 12px;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 10px 12px 8px;
  }

  .brand {
    align-items: flex-start;
  }

  .logo {
    width: 50px;
    height: 50px;
    margin: 0;
  }

  .logo-img {
    object-fit: contain;
    object-position: top left;
  }

  .nav {
    padding: 2px 12px 10px;
  }

  .nav-inner {
    min-height: 36px;
    padding-left: 40px;
  }

  .nav-inner::before {
    left: 11px;
    width: 16px;
  }
}

/* Admission — offline-friendly local application form */
.admission-form-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.admission-form-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px 24px 32px;
}

.admission-form-card .signup-form {
  gap: 14px;
}

.admission-form-section-title {
  margin: 28px 0 14px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.admission-form-section-title:first-of-type {
  margin-top: 0;
}

.admission-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 12px;
  align-items: end;
}

.admission-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .admission-form-grid-3,
  .admission-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admission-form-card select.login-input {
  background-color: var(--white);
}

.admission-form-card textarea.login-input {
  min-height: 100px;
  resize: vertical;
}

.admission-form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -6px 0 0;
  line-height: 1.4;
}

.admission-form-radio-row--enrollment {
  margin-bottom: 2px;
}

/* Philippine address autocomplete (admission form) */
.ph-address-ac-wrap {
  min-width: 0;
}

.ph-address-ac-input-row {
  position: relative;
}

.ph-address-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--white, #fff);
  border: 1px solid var(--border-input, #ccc);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.ph-address-suggest__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-dark, #222);
  line-height: 1.35;
}

.ph-address-suggest__item:last-child {
  border-bottom: 0;
}

.ph-address-suggest__item:hover,
.ph-address-suggest__item:focus {
  background: rgba(30, 58, 95, 0.08);
  outline: none;
}

.admission-form-sex-course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px 28px;
  align-items: start;
  margin: 4px 0 8px;
}

.admission-form-sex-course-col .admission-form-hint {
  margin-top: 8px;
}

/* Admission: space between course label & select; shorter select control */
.admission-course-field > .admission-course-label {
  margin-bottom: 0;
}

.admission-course-field select.admission-course-select.login-input {
  margin-top: 16px;
  padding: 5px 30px 5px 10px;
  min-height: 32px;
  font-size: 0.875rem;
  line-height: 1.2;
  background-color: var(--white);
}

.admission-course-field .admission-form-hint {
  margin-top: 6px;
}

@media (max-width: 640px) {
  .admission-form-sex-course {
    grid-template-columns: 1fr;
  }
}

.admission-form-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  padding: 4px 0;
}

.admission-form-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  cursor: pointer;
}

.admission-offline-note {
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(30, 58, 95, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.admission-form-checkbox-row {
  margin-top: 8px;
}

.admission-form-checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}

.admission-form-checkbox-label input {
  margin-top: 4px;
  flex-shrink: 0;
}

.admission-same-address-option {
  margin-top: 14px;
  margin-bottom: 4px;
}

/* When "current same as permanent" is checked, hide current-address fields (screen + print). */
#admission-offline-form.admission-form--current-same-as-permanent .admission-current-address-block {
  display: none !important;
}

.admission-save-feedback {
  min-height: 1.25em;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

.admission-save-feedback:empty {
  display: none;
}

.admission-print-btn {
  margin-top: 0;
  background: #3d3d3d;
}

.admission-print-btn:hover {
  background: #2a2a2a;
}

/* --------------------------------------------------------------------------
   Final mobile/tablet top bar: jw.org-inspired single dark strip
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sticky-header {
    box-shadow: none !important;
  }

  .header {
    display: none !important;
  }

  .nav {
    background: #24262b !important;
    padding: 0 !important;
    min-height: 52px !important;
    display: block;
  }

  .nav-inner {
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 12px 0 74px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    transform: none !important;
    background: transparent !important;
    overflow: hidden !important;
    position: relative;
  }

  .nav-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 58px;
    height: 52px;
    background: #3f6ca8 url("Images/GFI.png") center/72% no-repeat;
  }

  .nav-item {
    display: none !important;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #f3f3f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    position: relative;
  }

  .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-toggle__line {
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }

  .mobile-menu-toggle__line:nth-child(1) { top: 13px; }
  .mobile-menu-toggle__line:nth-child(2) { top: 19px; }
  .mobile-menu-toggle__line:nth-child(3) { top: 25px; }

  .nav.mobile-nav-open .mobile-menu-toggle__line:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
  }

  .nav.mobile-nav-open .mobile-menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .nav.mobile-nav-open .mobile-menu-toggle__line:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
  }

  .mobile-nav-menu {
    display: none;
    background: #24262b;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav.mobile-nav-open .mobile-nav-menu {
    display: block;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    color: #f3f3f3;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav-link:last-child {
    border-bottom: 0;
  }

  .mobile-nav-link .nav-icon,
  .mobile-nav-link .nav-icon svg,
  .mobile-nav-link .nav-icon img {
    width: 18px !important;
    height: 18px !important;
    transform: none !important;
  }

  .mobile-nav-link.mobile-nav-link--active {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 767px) {
  .nav {
    min-height: 48px !important;
  }

  .nav-inner {
    min-height: 48px !important;
    padding-left: 68px !important;
  }

  .nav-inner::before {
    width: 54px;
    height: 48px;
  }

  .mobile-nav-link {
    min-height: 42px;
    font-size: 0.9rem;
  }
}

@media print {
  .sticky-header,
  .footer,
  .admission-offline-note,
  .login-submit,
  .admission-save-feedback {
    display: none !important;
  }

  .admission-form-card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}
