/* Homepage redesign scoped to body.home-page */
.home-page {
  --home-navy-deep: #042a59;
  --home-navy: #063b7a;
  --home-blue: #0b62c4;
  --home-blue-bright: #1d7de0;
  --home-sky: #eaf4ff;
  --home-sky-strong: #d7ebff;
  --home-orange: #f47b20;
  --home-orange-dark: #d95f08;
  --home-orange-soft: #fff1e7;
  --home-ink: #14243a;
  --home-muted: #66758a;
  --home-subtle: #8a98aa;
  --home-border: #dce7f2;
  --home-surface: #ffffff;
  --home-background: #f4f8fc;
  --home-success: #238a5b;
  --home-shadow-sm: 0 8px 24px rgba(19, 55, 94, 0.08);
  --home-shadow-md: 0 18px 46px rgba(19, 55, 94, 0.12);
  --home-shadow-lg: 0 28px 70px rgba(8, 48, 96, 0.18);

  /* Compatibility aliases used by dynamic templates in index.html. */
  --primary-color: var(--home-blue);
  --secondary-color: #54718f;
  --accent-color: var(--home-orange);
  --success-color: var(--home-success);
  --warning-color: var(--home-orange);
  --bg-primary: var(--home-background);
  --bg-secondary: var(--home-surface);
  --bg-tertiary: var(--home-sky);
  --bg-card: var(--home-surface);
  --bg-hover: #f8fbff;
  --bg-dark: var(--home-navy-deep);
  --bg-medium: var(--home-navy);
  --bg-light: var(--home-sky);
  --text-primary: var(--home-ink);
  --text-secondary: var(--home-muted);
  --text-muted: var(--home-muted);
  --text-light: #ffffff;
  --text-color: var(--home-ink);
  --border-color: var(--home-border);
  --border-hover: #b9cfe4;
  --gradient-primary: linear-gradient(110deg, var(--home-navy), var(--home-blue));
  --gradient-secondary: linear-gradient(110deg, #60758b, #7f91a4);
  --gradient-success: linear-gradient(110deg, #1f8a59, #35a874);
  --gradient-warning: linear-gradient(110deg, var(--home-orange), #f6a044);
  --gradient-activity: linear-gradient(110deg, var(--home-blue), #32a5d8);

  min-width: 320px;
  margin: 0;
  padding-top: 80px !important;
  color: var(--home-ink);
  font-family: "Inter", "Public Sans", sans-serif;
  line-height: 1.6;
  background: var(--home-background) !important;
  overflow-x: hidden;
}

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

.home-page a {
  text-decoration: none;
}

.home-page img {
  max-width: 100%;
}

.home-page .container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.home-main {
  position: relative;
  overflow: hidden;
}

/* Shared header harmonized with the homepage only. */
.home-page #header-container {
  min-height: 80px;
  background: var(--home-navy-deep) !important;
  border-bottom: 0;
  box-shadow: 0 8px 30px rgba(2, 29, 64, 0.2) !important;
}

.home-page .header {
  background: rgba(4, 42, 89, 0.97) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 30px rgba(2, 29, 64, 0.2) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.home-page .header.scrolled {
  background: rgba(4, 42, 89, 0.985) !important;
  box-shadow: 0 12px 34px rgba(2, 29, 64, 0.24) !important;
}

.home-page .header-background {
  background:
    radial-gradient(circle at 15% 0%, rgba(29, 125, 224, 0.24), transparent 38%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025)) !important;
}

.home-page .header .logo {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain;
}

.home-page .header .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  border-radius: 10px;
}

.home-page .header .nav-link:hover,
.home-page .header .nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.home-page .header .nav-link.active::after {
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  content: "";
  background: var(--home-orange);
  border-radius: 999px;
}

.home-page .header .btn-login {
  color: #ffffff !important;
  background: var(--home-orange) !important;
  border-radius: 11px !important;
  box-shadow: 0 8px 18px rgba(244, 123, 32, 0.26);
}

.home-page .header .btn-login:hover {
  background: var(--home-orange-dark) !important;
  box-shadow: 0 10px 22px rgba(244, 123, 32, 0.34) !important;
}

.home-page .header .user-dropdown-item {
  color: rgba(255, 255, 255, 0.88);
}

.home-page .header .hamburger-line {
  background: #ffffff !important;
}

.home-page .header .mobile-menu {
  background: rgba(4, 42, 89, 0.99) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.home-page .header .mobile-nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.home-page .header .mobile-nav-link:hover,
.home-page .header .mobile-nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-left-color: var(--home-orange) !important;
}

.home-page .header .btn-mobile-login {
  color: #ffffff !important;
  background: var(--home-orange) !important;
}

/* Hero */
.home-page .hero-section {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 84px 0 116px;
  color: #ffffff;
  text-align: left;
  background:
    radial-gradient(circle at 82% 8%, rgba(80, 176, 255, 0.35), transparent 26rem),
    radial-gradient(circle at 12% 92%, rgba(244, 123, 32, 0.16), transparent 22rem),
    linear-gradient(135deg, var(--home-navy-deep) 0%, #0750a3 58%, #0b6fce 100%) !important;
  overflow: hidden;
}

.home-page .hero-section::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(115deg, #000, transparent 52%);
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 52%);
}

.home-page .hero-section::after {
  position: absolute;
  z-index: -1;
  right: -230px;
  bottom: -310px;
  width: 650px;
  height: 650px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 64px rgba(255, 255, 255, 0.025),
    0 0 0 132px rgba(255, 255, 255, 0.018);
}

.home-page .hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 76px;
  align-items: center;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-page .hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  padding: 0;
  animation: homeFadeUp 0.65s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 22px;
  padding: 9px 14px;
  color: #d9efff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--home-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(244, 123, 32, 0.16);
}

.home-page .hero-main-title {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 5.2vw, 4.9rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.052em;
  text-align: left;
}

.home-page .title-line-1,
.home-page .title-line-2 {
  display: block;
  color: #ffffff;
  font-size: 1em;
  line-height: inherit;
  text-align: left;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  animation: none;
  text-shadow: none;
}

.home-page .title-line-2 {
  margin-top: 8px;
  color: #9ed7ff;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.75;
}

.home-page .hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-btn:hover {
  transform: translateY(-2px);
}

.home-btn-primary {
  color: #ffffff;
  background: var(--home-orange);
  box-shadow: 0 13px 26px rgba(244, 123, 32, 0.25);
}

.home-btn-primary:hover,
.home-btn-primary:focus-visible {
  color: #ffffff;
  background: var(--home-orange-dark);
  box-shadow: 0 16px 30px rgba(244, 123, 32, 0.32);
}

.home-btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.23);
  backdrop-filter: blur(8px);
}

.home-btn-secondary:hover,
.home-btn-secondary:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.36);
}

.hero-proof {
  display: flex;
  gap: 18px 26px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 550;
}

.hero-proof-item i {
  color: #88d7b1;
  font-size: 1rem;
}

.home-page .hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: homeFadeUp 0.65s 0.12s ease both;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 510px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 30, 72, 0.28);
  backdrop-filter: blur(12px);
}

.home-page .hero-image-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-radius: 21px;
  box-shadow: none;
  overflow: hidden;
  animation: none;
}

.home-page .hero-image-container:hover {
  transform: none;
  box-shadow: none;
}

.home-page .hero-image {
  display: block;
  width: 100%;
  height: 410px;
  object-fit: cover;
  background: var(--home-sky);
  border: 0;
  border-radius: 21px;
  filter: saturate(0.94) contrast(1.03);
}

.hero-visual::after {
  position: absolute;
  inset: 12px;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 29, 63, 0.42), transparent 48%);
  border-radius: 21px;
}

.hero-visual-badge {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: -24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-shadow: var(--home-shadow-md);
}

.hero-visual-badge-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  font-size: 1rem;
  background: var(--home-orange);
  border-radius: 10px;
}

.hero-visual-badge span {
  display: block;
  color: var(--home-muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-visual-badge strong {
  display: block;
  margin-top: 2px;
  color: var(--home-ink);
  font-size: 0.85rem;
}

.hero-data-card {
  position: absolute;
  z-index: 2;
  right: -28px;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 245px;
  padding: 16px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: var(--home-shadow-md);
}

.hero-data-item {
  padding: 0 14px;
}

.hero-data-item:first-child {
  padding-left: 0;
  border-right: 1px solid var(--home-border);
}

.hero-data-item:last-child {
  padding-right: 0;
}

.hero-data-item strong {
  display: block;
  color: var(--home-blue);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.hero-data-item span {
  display: block;
  margin-top: 6px;
  color: var(--home-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Quick access cards */
.quick-access-section {
  position: relative;
  z-index: 5;
  margin-top: -54px;
  padding-bottom: 34px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-access-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 19px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(220, 231, 242, 0.9);
  border-radius: 18px;
  box-shadow: var(--home-shadow-md);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.quick-access-card::after {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 76px;
  height: 76px;
  content: "";
  background: var(--home-sky);
  border-radius: 50%;
  opacity: 0.72;
}

.quick-access-card:hover,
.quick-access-card:focus-visible {
  color: var(--home-ink);
  border-color: #b9d5ef;
  box-shadow: 0 20px 42px rgba(14, 68, 124, 0.14);
  transform: translateY(-4px);
}

.quick-access-icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--home-blue);
  font-size: 1.35rem;
  background: var(--home-sky);
  border-radius: 13px;
}

.quick-access-card:nth-child(2) .quick-access-icon,
.quick-access-card:nth-child(4) .quick-access-icon {
  color: var(--home-orange-dark);
  background: var(--home-orange-soft);
}

.quick-access-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.quick-access-copy strong {
  display: block;
  color: var(--home-ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.quick-access-copy span {
  display: block;
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-access-arrow {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: #a5b4c5;
  font-size: 1.1rem;
}

/* Shared section system */
.home-page .section {
  padding: 86px 0;
}

.home-section-white {
  background: var(--home-surface);
}

.home-section-soft {
  background:
    radial-gradient(circle at 90% 10%, rgba(11, 98, 196, 0.07), transparent 22rem),
    #eef5fc;
  border-top: 1px solid #e3edf7;
  border-bottom: 1px solid #e3edf7;
}

.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.home-section-heading-copy {
  max-width: 690px;
}

.home-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: var(--home-blue);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-section-eyebrow::before {
  width: 26px;
  height: 3px;
  content: "";
  background: var(--home-orange);
  border-radius: 999px;
}

.home-section-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-shadow: none;
  animation: none;
}

.home-section-heading p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.home-section-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 15px;
  color: var(--home-blue);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--home-sky);
  border: 1px solid #cfe5fa;
  border-radius: 11px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-section-link:hover,
.home-section-link:focus-visible {
  color: #ffffff;
  background: var(--home-blue);
  transform: translateY(-1px);
}

.subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 48px 0 4px;
  padding-top: 30px;
  border-top: 1px solid var(--home-border);
}

.subsection-heading h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.2rem;
  font-weight: 750;
}

.subsection-heading span {
  color: var(--home-muted);
  font-size: 0.78rem;
}

/* Events */
.home-page .events-section,
.home-page .featured-events {
  background: var(--home-surface);
}

.home-page .events-carousel-container {
  max-width: none;
  margin: 0;
  padding: 0 52px;
}

.home-page #eventsCarousel {
  position: relative;
  padding: 12px;
  background: #f7fbff;
  border: 1px solid var(--home-border);
  border-radius: 26px;
  box-shadow: var(--home-shadow-sm);
}

.home-page #eventsCarousel .carousel-inner {
  border-radius: 19px;
  overflow: hidden;
}

.home-page #eventsCarousel .carousel-item.active {
  display: block;
}

.home-page #eventsCarousel .carousel-item > .d-flex {
  display: block !important;
}

.home-page .event-card {
  position: relative;
  padding: 0 !important;
  color: var(--home-ink) !important;
  background: #ffffff !important;
  border: 1px solid var(--home-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--home-shadow-sm) !important;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
  backdrop-filter: none;
}

.home-page .event-card:hover {
  background: #ffffff !important;
  border-color: #b8d5ef !important;
  box-shadow: var(--home-shadow-md) !important;
  transform: translateY(-5px) !important;
}

.home-page #eventsCarousel .event-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: stretch;
  min-height: 390px;
  border: 0 !important;
  border-radius: 19px !important;
  box-shadow: none !important;
}

.home-page .event-image,
.home-page .event-image-placeholder {
  display: block;
  width: 100% !important;
  aspect-ratio: 16 / 10;
  height: auto !important;
  margin: 0 !important;
  object-fit: cover;
  background: var(--home-sky) !important;
  border: 0 !important;
  border-radius: 20px 20px 0 0 !important;
}

.home-page #eventsCarousel .event-image,
.home-page #eventsCarousel .event-image-placeholder {
  height: 100% !important;
  min-height: 390px;
  object-fit: cover;
  border-radius: 19px 0 0 19px !important;
}

.home-page .event-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--home-blue);
  font-size: 3rem;
}

.home-page .event-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.home-page #eventsCarousel .event-content {
  justify-content: center;
  padding: 38px 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 98, 196, 0.08), transparent 16rem),
    #ffffff;
}

.home-page .event-title,
.home-page .event-card h3 {
  color: var(--home-ink) !important;
  font-size: 1.15rem !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
}

.home-page #eventsCarousel .event-title {
  font-size: 1.55rem !important;
}

.home-page .event-description,
.home-page .event-card p {
  color: var(--home-muted) !important;
  line-height: 1.65 !important;
}

.home-page .event-meta {
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid #edf2f7;
}

.home-page .event-meta > div {
  min-width: 0;
}

.home-page .event-meta span {
  color: var(--home-muted) !important;
  text-shadow: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .event-meta > div:first-child span,
.home-page .event-meta > div:first-child i {
  color: var(--home-orange-dark) !important;
}

.home-page .event-badge {
  top: 16px;
  right: 16px;
  padding: 7px 11px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 750;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(20, 36, 58, 0.15);
}

.home-page #eventsCarousel .carousel-control-prev,
.home-page #eventsCarousel .carousel-control-next {
  top: 50%;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--home-navy) !important;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(5, 48, 101, 0.22);
  opacity: 1;
  transform: translateY(-50%);
}

.home-page #eventsCarousel .carousel-control-prev {
  left: -48px;
}

.home-page #eventsCarousel .carousel-control-next {
  right: -48px;
}

.home-page #eventsCarousel .carousel-control-prev:hover,
.home-page #eventsCarousel .carousel-control-next:hover {
  background: var(--home-blue) !important;
  transform: translateY(-50%) scale(1.06);
}

.home-page #eventsCarousel .carousel-indicators {
  bottom: -38px;
  margin: 0;
}

.home-page #eventsCarousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: #b6c9dc;
  border-radius: 999px;
  opacity: 1;
}

.home-page #eventsCarousel .carousel-indicators button.active {
  width: 24px;
  background: var(--home-orange);
  transform: none;
}

.home-page .events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
  margin: 22px 0 0;
}

/* Activities */
.home-page .featured-activities {
  padding: 86px 0;
  background:
    radial-gradient(circle at 8% 15%, rgba(11, 98, 196, 0.07), transparent 23rem),
    #eef5fc !important;
}

.home-page .activities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
  margin: 0;
}

.home-page .activity-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 215px;
  padding: 0;
  color: var(--home-ink);
  background: #ffffff !important;
  border: 1px solid var(--home-border) !important;
  border-radius: 20px;
  box-shadow: var(--home-shadow-sm) !important;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
}

.home-page .activity-card::before {
  display: none;
}

.home-page .activity-card:hover {
  background: #ffffff !important;
  border-color: #b8d5ef !important;
  box-shadow: var(--home-shadow-md) !important;
  transform: translateY(-5px) !important;
}

.home-page .activity-image,
.home-page .activity-image-placeholder {
  display: block;
  width: 190px !important;
  height: 100% !important;
  min-height: 215px;
  aspect-ratio: auto;
  margin: 0;
  object-fit: cover;
  color: var(--home-blue);
  background: var(--home-sky) !important;
  border: 0;
  border-radius: 20px 0 0 20px !important;
  filter: none;
}

.home-page .activity-image-placeholder {
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}

.home-page .activity-image:hover {
  filter: none;
  transform: scale(1.03);
}

.home-page .activity-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 20px;
}

.home-page .activity-title,
.home-page .activity-card h4 {
  color: var(--home-ink) !important;
  font-size: 1.02rem !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
  text-shadow: none !important;
}

.home-page .activity-event-info {
  margin: 0 !important;
  padding: 12px !important;
  background: #f6faff !important;
  border: 1px solid #dceaf7 !important;
  border-radius: 12px !important;
  backdrop-filter: none !important;
}

.home-page .activity-event-info > div {
  margin-bottom: 5px !important;
}

.home-page .activity-event-info > div:last-child {
  margin-bottom: 0 !important;
}

.home-page .activity-event-info i {
  color: var(--home-blue) !important;
  text-shadow: none !important;
}

.home-page .activity-event-info > div:nth-child(2) i,
.home-page .activity-event-info > div:nth-child(2) span {
  color: var(--home-orange-dark) !important;
}

.home-page .activity-event-info span {
  color: var(--home-muted) !important;
  text-shadow: none !important;
}

.home-page .activity-event-info > div:first-child span {
  color: var(--home-blue) !important;
}

.home-page .activity-event-info > div:last-child span,
.home-page .activity-event-info > div:last-child i {
  color: var(--home-success) !important;
}

.home-page .activity-meta {
  display: none !important;
}

/* Blogs */
.home-page .featured-blogs {
  background: #ffffff !important;
}

.home-page .blog-carousel-container {
  margin: 0;
  padding: 7px 4px 42px;
  border-radius: 0;
  overflow: hidden;
}

.home-page .blog-carousel-wrapper {
  gap: 18px;
  padding: 7px 0 16px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page .blog-carousel-wrapper .blog-card,
.home-page .blog-carousel-wrapper.single-blog .blog-card,
.home-page .blog-carousel-wrapper.two-blogs .blog-card,
.home-page .blog-carousel-wrapper.three-blogs .blog-card,
.home-page .blog-carousel-wrapper.four-plus-blogs .blog-card {
  flex-basis: calc(33.333% - 12px);
  min-height: 410px;
  margin: 0;
}

.home-page .blog-card {
  color: var(--home-ink);
  background: #ffffff;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  box-shadow: var(--home-shadow-sm);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-page .blog-card:hover {
  border-color: #b8d5ef;
  box-shadow: var(--home-shadow-md);
  transform: translateY(-5px);
}

.home-page .blog-image-container {
  background: var(--home-sky);
}

.home-page .blog-image {
  height: 210px;
  object-fit: cover;
  background: var(--home-sky);
  border: 0;
  border-radius: 0;
}

.home-page .blog-card .card-body {
  padding: 21px;
}

.home-page .blog-card .card-title {
  min-height: 2.8rem;
  color: var(--home-ink) !important;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.42;
}

.home-page .blog-card .card-text,
.home-page .blog-card .blog-meta,
.home-page .blog-card .text-muted {
  color: var(--home-muted) !important;
}

.home-page .blog-card .blog-meta {
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.home-page .blog-badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 750;
}

.home-page .badge-new {
  background: var(--home-success);
}

.home-page .badge-category {
  background: var(--home-blue);
}

.home-page .badge-hot {
  background: var(--home-orange);
}

.home-page .blog-carousel-nav {
  top: calc(50% - 20px);
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--home-navy);
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(4, 42, 89, 0.2);
}

.home-page .blog-carousel-nav:hover {
  background: var(--home-blue);
}

.home-page .blog-carousel-nav.prev {
  left: 10px;
}

.home-page .blog-carousel-nav.next {
  right: 10px;
}

.home-page .blog-carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  margin: 0;
}

.home-page .blog-carousel-indicator {
  width: 8px;
  height: 8px;
  background: #b6c9dc;
}

.home-page .blog-carousel-indicator.active {
  width: 24px;
  background: var(--home-orange);
  border-radius: 999px;
  transform: none;
}

/* Academic theme */
.home-page .academic-theme-section {
  position: relative;
  padding: 0 0 86px;
  background: #ffffff;
  border: 0;
}

.academic-theme-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 0%, rgba(79, 178, 255, 0.28), transparent 17rem),
    linear-gradient(125deg, var(--home-navy-deep), var(--home-blue));
  border-radius: 24px;
  box-shadow: var(--home-shadow-md);
  overflow: hidden;
}

.academic-theme-card::after {
  position: absolute;
  z-index: -1;
  right: -55px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.025);
}

.academic-theme-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #ffffff;
  font-size: 1.55rem;
  background: var(--home-orange);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(244, 123, 32, 0.25);
}

.academic-theme-copy small {
  display: block;
  color: #aad9ff;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.academic-theme-copy strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 720;
}

.academic-theme-year {
  position: relative;
  z-index: 1;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
}

/* About */
.home-page .about-university {
  position: relative;
  padding: 86px 0;
  color: var(--home-ink);
  background:
    radial-gradient(circle at 2% 90%, rgba(244, 123, 32, 0.06), transparent 20rem),
    #eef5fc !important;
  border-top: 1px solid #e1ecf6;
}

.home-page .about-university::before {
  display: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 64px;
  align-items: center;
}

.home-page .about-hero {
  margin: 0;
}

.home-page .about-hero-image {
  position: relative;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--home-border);
  border-radius: 26px;
  box-shadow: var(--home-shadow-md);
  overflow: visible;
}

.home-page .about-hero-image:hover {
  box-shadow: var(--home-shadow-lg);
  transform: translateY(-4px);
}

.home-page .campus-image {
  display: block;
  width: 100%;
  height: 470px;
  object-fit: cover;
  background: var(--home-sky);
  border: 0;
  border-radius: 19px;
}

.home-page .image-overlay {
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 17px;
  background: rgba(4, 42, 89, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.home-page .overlay-stats {
  justify-content: center;
  gap: 48px;
}

.home-page .overlay-stat .stat-number {
  color: #ffffff;
}

.home-page .overlay-stat .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

.about-copy .home-section-eyebrow {
  margin-bottom: 14px;
}

.about-copy h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 780;
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.about-copy .university-subtitle {
  margin: 12px 0 0;
  color: var(--home-blue);
  font-size: 0.96rem;
  font-style: normal;
  font-weight: 650;
}

.about-description {
  margin: 22px 0 0;
  color: var(--home-muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.home-page .values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.home-page .value-card {
  min-width: 0;
  padding: 17px;
  background: #ffffff !important;
  border: 1px solid var(--home-border) !important;
  border-radius: 16px;
  box-shadow: var(--home-shadow-sm);
  backdrop-filter: none;
}

.home-page .value-card::before {
  display: none;
}

.home-page .value-card:hover {
  border-color: #b8d5ef !important;
  box-shadow: var(--home-shadow-md);
  transform: translateY(-4px);
}

.home-page .value-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 0 13px;
  place-items: center;
  color: var(--home-blue) !important;
  font-size: 1.15rem;
  background: var(--home-sky) !important;
  border-radius: 12px;
}

.home-page .value-card:nth-child(2) .value-icon {
  color: var(--home-orange-dark) !important;
  background: var(--home-orange-soft) !important;
}

.home-page .value-content h4 {
  margin: 0 0 7px;
  color: var(--home-ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.home-page .value-content p {
  color: var(--home-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* Empty and loading states */
.home-page .error,
.home-page .loading-spinner {
  grid-column: 1 / -1;
  width: 100%;
  padding: 50px 24px;
  color: var(--home-muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed #c8d9e9;
  border-radius: 18px;
}

.home-page .error-icon {
  margin-bottom: 8px;
  font-size: 2rem;
}

/* Shared image and sponsor sections injected with the footer. */
.home-page #footer-container {
  color: var(--home-ink);
  background: #ffffff !important;
  border-top: 0 !important;
}

.home-page .images-section {
  padding: 84px 0;
  background: #ffffff !important;
  border-top: 1px solid var(--home-border);
}

.home-page .images-section .sponsors-header,
.home-page .sponsors-section .sponsors-header {
  margin-bottom: 32px;
}

.home-page .images-section .sponsors-title,
.home-page .sponsors-section .sponsors-title {
  color: var(--home-ink) !important;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 770;
  letter-spacing: -0.03em;
}

.home-page .images-section .sponsors-subtitle,
.home-page .sponsors-section .sponsors-subtitle {
  color: var(--home-muted) !important;
  font-size: 0.92rem;
}

.home-page .sponsors-section {
  margin: 0;
  padding: 72px 0;
  color: var(--home-ink);
  background: #eef5fc !important;
  border-top: 1px solid var(--home-border) !important;
}

.home-page .sponsors-section::before {
  background: linear-gradient(90deg, transparent, var(--home-orange), transparent) !important;
}

.home-page .tier-title {
  color: var(--home-ink) !important;
}

.home-page .sponsor-item {
  background: #ffffff !important;
  border-color: var(--home-border) !important;
  box-shadow: var(--home-shadow-sm) !important;
}

.home-page .sponsor-item:hover {
  border-color: #b8d5ef !important;
  box-shadow: var(--home-shadow-md) !important;
}

.home-page .sponsor-logo-container {
  background: #ffffff !important;
  border-color: #edf2f7 !important;
}

.home-page .sponsors-empty {
  color: var(--home-muted) !important;
}

.home-page .sponsors-empty i {
  color: var(--home-blue) !important;
}

.home-page .sponsors-loading .spinner {
  border-color: #d5e1ed !important;
  border-top-color: var(--home-blue) !important;
}

.home-page .footer {
  padding-top: 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(29, 125, 224, 0.2), transparent 24rem),
    linear-gradient(135deg, var(--home-navy-deep), #052f63) !important;
}

.home-page .footer::before {
  background: linear-gradient(90deg, transparent, var(--home-orange), transparent) !important;
}

.home-page .footer .section-title,
.home-page .footer .brand-main {
  color: #ffffff !important;
}

.home-page .footer-link:hover {
  color: #88c9ff !important;
}

.home-page .footer .brand-logo {
  background: #ffffff !important;
}

/* Interaction and accessibility */
.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid rgba(244, 123, 32, 0.55);
  outline-offset: 3px;
}

@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199.98px) {
  .home-page .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
    gap: 48px;
  }

  .home-page .hero-main-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    gap: 42px;
  }

  .home-page .values-grid {
    grid-template-columns: 1fr;
  }

  .home-page .value-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    align-items: start;
  }

  .home-page .value-icon {
    margin: 0;
  }
}

@media (max-width: 1023.98px) {
  .home-page .hero-section {
    padding: 70px 0 104px;
  }

  .home-page .hero-content {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .home-page .hero-left {
    align-items: center;
    text-align: center;
  }

  .home-page .hero-main-title,
  .home-page .title-line-1,
  .home-page .title-line-2 {
    text-align: center;
  }

  .hero-lead {
    max-width: 720px;
  }

  .home-page .hero-actions,
  .hero-proof {
    justify-content: center;
  }

  .hero-visual {
    max-width: 650px;
  }

  .home-page .hero-image {
    height: 390px;
  }

  .home-page #eventsCarousel .event-card {
    grid-template-columns: 1fr 0.8fr;
  }

  .home-page .activities-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-page .about-hero-image {
    max-width: 760px;
    margin: 0 auto;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy .home-section-eyebrow {
    justify-content: center;
  }

  .home-page .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: left;
  }

  .home-page .value-card {
    display: block;
  }

  .home-page .value-icon {
    margin-bottom: 13px;
  }
}

@media (max-width: 767.98px) {
  .home-page {
    padding-top: 80px !important;
  }

  .home-page .container {
    width: min(100% - 32px, 640px);
  }

  .home-page .hero-section {
    padding: 54px 0 90px;
  }

  .home-page .hero-main-title {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 0.94rem;
  }

  .home-page .hero-actions {
    width: 100%;
    margin-top: 26px;
  }

  .home-btn {
    flex: 1 1 180px;
  }

  .hero-proof {
    gap: 12px 18px;
    margin-top: 25px;
  }

  .hero-visual {
    width: calc(100% - 16px);
    padding: 8px;
    border-radius: 22px;
  }

  .home-page .hero-image,
  .home-page .hero-image-container {
    height: 300px;
    border-radius: 16px;
  }

  .hero-visual::after {
    inset: 8px;
    border-radius: 16px;
  }

  .hero-visual-badge {
    top: 20px;
    left: -12px;
  }

  .hero-data-card {
    right: -12px;
    bottom: 20px;
  }

  .quick-access-section {
    margin-top: -44px;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-access-card {
    align-items: flex-start;
    padding: 15px;
  }

  .quick-access-arrow {
    display: none;
  }

  .home-page .section,
  .home-page .featured-activities,
  .home-page .about-university {
    padding: 66px 0;
  }

  .home-section-heading {
    display: block;
    margin-bottom: 27px;
    text-align: left;
  }

  .home-section-heading h2 {
    font-size: 2rem;
  }

  .home-section-heading p {
    font-size: 0.88rem;
  }

  .home-section-link {
    margin-top: 18px;
  }

  .home-page .events-carousel-container {
    padding: 0;
  }

  .home-page #eventsCarousel {
    padding: 8px;
    border-radius: 20px;
  }

  .home-page #eventsCarousel .event-card {
    display: block;
    min-height: 0;
    border-radius: 14px !important;
  }

  .home-page #eventsCarousel .event-image,
  .home-page #eventsCarousel .event-image-placeholder {
    height: 245px !important;
    min-height: 0;
    border-radius: 14px 14px 0 0 !important;
  }

  .home-page #eventsCarousel .event-content {
    padding: 23px 20px;
  }

  .home-page #eventsCarousel .carousel-control-prev,
  .home-page #eventsCarousel .carousel-control-next {
    top: 145px;
    width: 38px;
    height: 38px;
  }

  .home-page #eventsCarousel .carousel-control-prev {
    left: 13px;
  }

  .home-page #eventsCarousel .carousel-control-next {
    right: 13px;
  }

  .home-page .events-grid {
    grid-template-columns: 1fr;
  }

  .home-page .activity-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .home-page .activity-image,
  .home-page .activity-image-placeholder {
    width: 150px !important;
  }

  .home-page .blog-carousel-container {
    padding-right: 0;
    padding-left: 0;
  }

  .home-page .blog-carousel-wrapper .blog-card,
  .home-page .blog-carousel-wrapper.single-blog .blog-card,
  .home-page .blog-carousel-wrapper.two-blogs .blog-card,
  .home-page .blog-carousel-wrapper.three-blogs .blog-card,
  .home-page .blog-carousel-wrapper.four-plus-blogs .blog-card {
    flex: 0 0 100% !important;
    max-width: 100%;
    min-height: 390px;
  }

  .home-page .academic-theme-section {
    padding-bottom: 66px;
  }

  .academic-theme-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 23px;
  }

  .academic-theme-year {
    display: none;
  }

  .home-page .campus-image {
    height: 370px;
  }

  .home-page .values-grid {
    grid-template-columns: 1fr;
  }

  .home-page .value-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
  }

  .home-page .value-icon {
    margin: 0;
  }

  .home-page .images-section,
  .home-page .sponsors-section {
    padding: 62px 0;
  }
}

@media (max-width: 479.98px) {
  .home-page .container {
    width: calc(100% - 28px);
  }

  .home-page .hero-section {
    padding-top: 42px;
  }

  .hero-eyebrow {
    padding: 8px 11px;
    font-size: 0.65rem;
  }

  .home-page .hero-main-title {
    font-size: 2.25rem;
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    text-align: left;
  }

  .home-page .hero-image,
  .home-page .hero-image-container {
    height: 245px;
  }

  .hero-visual-badge {
    display: none;
  }

  .hero-data-card {
    right: 10px;
    bottom: 12px;
    left: 10px;
    min-width: 0;
  }

  .quick-access-grid {
    grid-template-columns: 1fr;
  }

  .quick-access-card {
    align-items: center;
  }

  .home-section-heading h2 {
    font-size: 1.78rem;
  }

  .subsection-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .home-page #eventsCarousel .event-image,
  .home-page #eventsCarousel .event-image-placeholder {
    height: 205px !important;
  }

  .home-page #eventsCarousel .carousel-control-prev,
  .home-page #eventsCarousel .carousel-control-next {
    top: 124px;
  }

  .home-page .event-meta {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .home-page .activity-card {
    display: block;
  }

  .home-page .activity-image,
  .home-page .activity-image-placeholder {
    width: 100% !important;
    height: 205px !important;
    min-height: 0;
    border-radius: 20px 20px 0 0 !important;
  }

  .academic-theme-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .academic-theme-icon {
    margin: 0 auto;
  }

  .academic-theme-copy strong {
    font-size: 1.05rem;
  }

  .home-page .campus-image {
    height: 300px;
  }

  .home-page .image-overlay {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .home-page .overlay-stats {
    gap: 30px;
  }
}

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

/* Hero headline refinement: more compact and editorial. */
.home-page .hero-main-title {
  max-width: 650px;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-page .title-line-2 {
  margin-top: 5px;
}

@media (max-width: 1199.98px) {
  .home-page .hero-main-title {
    font-size: clamp(2.4rem, 4.25vw, 3.55rem);
  }
}

@media (max-width: 767.98px) {
  .home-page .hero-main-title {
    max-width: 540px;
    font-size: clamp(2.05rem, 8.5vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }
}

@media (max-width: 479.98px) {
  .home-page .hero-main-title {
    font-size: 1.9rem;
  }
}