@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --primary-color: #2563eb;
  --text-dark: #222222;
  --text-light: #ffffff;
  --text-gray: #666666;
  --bg-light: #f9f9f9;
  --border-color: #eeeeee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

body.home {
  background-color: #051024;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

header.scrolled {
  background: transparent;
  box-shadow: none;
}

header.scrolled .logo,
header.scrolled nav ul li a {
  color: var(--text-dark);
}

header.scrolled .btn-donate {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 40px;
  width: auto;
  border-radius: 50%; /* Character logo circle */
}

nav {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  overflow: visible;
  transition:
    width 0.42s ease,
    max-width 0.42s ease,
    padding 0.42s ease,
    transform 0.42s ease,
    background-color 0.42s ease,
    border-color 0.42s ease,
    box-shadow 0.42s ease,
    backdrop-filter 0.42s ease,
    -webkit-backdrop-filter 0.42s ease;
}

nav::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.04));
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
}

header.scrolled nav {
  width: auto;
  max-width: min(calc(100vw - 30px), 780px);
  padding: 8px 14px;
  transform: translateY(2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 16px 28px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 -1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

header.scrolled nav::before {
  opacity: 1;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.nav-active-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(59,130,246,0.96), rgba(37,99,235,0.92));
  border: 1px solid rgba(255,255,255,0.24);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

nav ul li {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

nav ul li a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  padding: 8px 0;
  border-radius: 999px;
  transition: color 0.3s, background-color 0.3s, transform 0.3s;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--text-light);
}

nav ul li.current-menu-item > a,
nav ul li.current_page_item > a,
nav ul li.current-menu-ancestor > a {
  color: var(--text-light);
}

header.scrolled nav ul li a {
  color: var(--text-gray);
  padding: 8px 12px;
}
header.scrolled nav ul li a:hover, header.scrolled nav ul li a.active {
  color: var(--text-dark);
  transform: translateY(-1px);
}

header.scrolled nav ul li.current-menu-item > a,
header.scrolled nav ul li.current_page_item > a,
header.scrolled nav ul li.current-menu-ancestor > a,
.header-subpage nav ul li.current-menu-item > a,
.header-subpage nav ul li.current_page_item > a,
.header-subpage nav ul li.current-menu-ancestor > a {
  color: var(--text-dark) !important;
}

header.scrolled nav ul li.current-menu-item > a,
header.scrolled nav ul li.current_page_item > a,
header.scrolled nav ul li.current-menu-ancestor > a {
  color: #ffffff !important;
  background: transparent;
}

header.scrolled nav ul li a.is-preview-active {
  color: #ffffff !important;
}

header.scrolled .nav-active-indicator {
  opacity: 1;
}

header.scrolled nav ul {
  gap: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-donate {
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  background-color: var(--text-light);
  color: var(--text-dark);
  white-space: nowrap;
  transition: all 0.3s;
}
header.scrolled .btn-donate {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Subpage static header */
.header-subpage {
  background-color: transparent;
  box-shadow: none;
}
.header-subpage .logo,
.header-subpage nav ul li a {
  color: var(--text-dark) !important;
}
.header-subpage .btn-donate {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: calc(10% + 40px);
  text-align: right;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero {
    height: 100svh;
    min-height: 720px;
    aspect-ratio: auto;
  }
}

.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  background-color: #051024;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.bg-left {
  background-size: auto 100%;
  background-position: left bottom;
  background-repeat: no-repeat;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slider::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Overall dark overlay for better readability */
}

.hero-slide.bg-shifted {
  background-position: center 70%; /* Adjusted crop to prevent cutting off heads */
  background-size: cover;
}

@media (max-width: 768px) {
  .hero-slide {
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.hero-content .hero-kicker {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -2px;
  color: var(--text-light);
  opacity: 1;
  margin-bottom: 0;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-content p,
.hero-description {
  font-size: 28px;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-description-line,
.hero-description-separator {
  display: inline;
}

.hero-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--text-light);
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.3s;
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
}

.hero-secondary-button {
  background-color: var(--text-light);
  border-color: var(--text-light);
  color: var(--text-dark);
}

.hero-secondary-button:hover {
  background-color: rgba(255,255,255,0.92);
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* Unified Global Page Title */
.global-page-title {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: -1.5px;
  line-height: 1.3;
}
.global-page-title span {
  color: var(--primary-color);
}

/* Activities Section */
.section-activities {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
}
.section-header .sub-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
  display: block;
}

.view-all {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}
.view-all:hover {
  text-decoration: underline;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; /* Reduced gap to widen the cards */
}

.activity-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s, box-shadow 0.4s;
  height: 380px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #000;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(37,99,235,0.2);
}

.card-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
  z-index: 1;
}

.activity-card:hover .card-img {
  transform: scale(1.08);
}

.activity-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
  z-index: 2;
  transition: background 0.4s;
}

.activity-card:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 100%);
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 30px 24px;
}

.card-date {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
  color: #60a5fa; /* Bright light blue for visibility on dark background */
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 0;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: margin-bottom 0.4s;
}

.activity-card:hover .card-title {
  margin-bottom: 12px;
}

.card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: all 0.4s ease;
}

.activity-card:hover .card-desc {
  opacity: 1;
  max-height: 100px;
}

/* Footer */
footer {
  background-color: var(--bg-light);
  padding: 32px 40px 20px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p, .footer-col a {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 10px;
  display: block;
}

.footer-contact {
  display: grid;
  gap: 6px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  line-height: 1.5;
}

.footer-contact p span:first-child {
  flex: 0 0 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-contact p span:last-child {
  flex: 1 1 auto;
}

.footer-col .footer-contact a {
  display: inline;
  margin-bottom: 0;
}

.footer-col a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: background 0.3s;
}
.social-links a:hover {
  background: var(--border-color);
}

.social-links a.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-gray);
  display: flex;
  justify-content: center;
}

/* Page Headers (for subpages) */
.page-header {
  height: 300px;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 74px; /* offset header */
}
.page-header h1 {
  font-size: 40px;
  font-weight: 800;
}
.page-header .sub-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 114px 20px 60px 20px; /* Offset for fixed header without page-header */
}

/* Schedule Timeline Layout */
.timeline-shell {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.timeline-wrapper {
  position: relative;
  padding: 40px 0;
}
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 40px; left: 149px;
  width: 2px; height: calc(100% - 80px);
  background: var(--border-color);
}
.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}
.timeline-date {
  width: 150px;
  padding-right: 40px;
  text-align: right;
  position: relative;
}
.timeline-date h3 {
  font-size: 28px;
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 5px;
}
.timeline-date span {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 700;
}
.timeline-dot {
  position: absolute;
  top: 5px; right: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 4px solid var(--bg-light);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.timeline-content {
  flex: 1;
  padding-left: 50px;
}
.timeline-card {
  position: relative;
  background: #fff;
  padding: 24px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.4s, box-shadow 0.4s;
  overflow: hidden;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.timeline-item--past .timeline-date h3,
.timeline-item--future .timeline-date h3 {
  color: #94a3b8;
}

.timeline-item--past .timeline-date span,
.timeline-item--future .timeline-date span {
  color: #cbd5e1;
}

.timeline-item--next-future .timeline-date::after,
.timeline-item--future .timeline-date::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -1px;
  width: 2px;
  height: calc(100% + 50px);
  background: repeating-linear-gradient(
    to bottom,
    #cbd5e1 0 8px,
    transparent 8px 14px
  );
}

.timeline-item--future:last-child .timeline-date::after {
  display: none;
}

.timeline-item--past .timeline-dot,
.timeline-item--future .timeline-dot {
  background: #cbd5e1;
  border-color: var(--bg-light);
  box-shadow: none;
}

.timeline-item--past .timeline-card,
.timeline-item--future .timeline-card {
  background: #f8fafc;
  box-shadow: none;
  border: 1px dashed #cbd5e1;
}

.timeline-item--past .timeline-card:hover,
.timeline-item--future .timeline-card:hover {
  transform: none;
  box-shadow: none;
}

.timeline-item--past .timeline-card h4,
.timeline-item--past .timeline-card p,
.timeline-item--future .timeline-card h4,
.timeline-item--future .timeline-card p {
  color: #64748b;
}

.timeline-item--past .event-time,
.timeline-item--future .event-time {
  background: #e2e8f0;
  color: #64748b;
}
.event-time {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}
.timeline-card h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.timeline-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}
.event-location {
  margin-top: 15px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Schedule Page Fullscreen Layout Overrides */
.page-schedule {
  background-color: var(--bg-light);
}
.page-schedule .page-content {
  padding: 114px 20px 80px 20px; /* Offset for fixed header */
  margin: 0 auto;
  max-width: 1000px;
}
.page-schedule .timeline-shell {
  padding-right: 2px;
}
.page-schedule .timeline-wrapper {
  background: transparent;
  box-shadow: none;
  padding: 0 0 80px 0; 
  border-radius: 0;
}

.timeline-end-spacer {
  height: 0;
}
.page-schedule .timeline-wrapper::before {
  top: 0;
  height: 100%;
  left: 149px;
}

@media (min-width: 769px) {
  .page-schedule .timeline-wrapper {
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding-right: 14px;
    min-height: 360px;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.25) transparent;
  }

  .page-schedule .timeline-wrapper:not(.is-ready) {
    visibility: hidden;
  }

  .page-schedule .timeline-wrapper::-webkit-scrollbar {
    width: 10px;
  }

  .page-schedule .timeline-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }

  .page-schedule .timeline-wrapper::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  .page-schedule .timeline-wrapper:hover::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.34);
    border: 2px solid transparent;
    background-clip: padding-box;
  }
}

.schedule-today-fab {
  position: fixed;
  right: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 62px;
  height: 62px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.09));
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  isolation: isolate;
  overflow: hidden;
  z-index: 60;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.schedule-today-fab::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.04));
  pointer-events: none;
  z-index: 0;
}

.schedule-today-fab:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.12));
  border-color: rgba(255,255,255,0.28);
}

.schedule-today-fab:focus-visible {
  outline: 3px solid rgba(191, 219, 254, 0.95);
  outline-offset: 3px;
}

.single-activity-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.single-activity-hero {
  margin-bottom: 28px;
}

.single-activity-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.single-activity-title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: -1.6px;
  margin-bottom: 20px;
}

.single-activity-summary {
  font-size: 18px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 28px;
}

.single-activity-thumb {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 32px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.single-activity-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.single-activity-content {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
  padding: 34px;
  color: #334155;
}

.single-activity-content p,
.single-activity-content li {
  font-size: 17px;
  line-height: 1.95;
}

.single-activity-content h2,
.single-activity-content h3,
.single-activity-content h4 {
  color: #0f172a;
  letter-spacing: -0.8px;
  margin: 1.5em 0 0.75em;
}

.single-activity-back {
  margin-top: 28px;
}

.single-activity-back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 700;
}

@media (max-width: 1024px) {
  header {
    padding: 0 24px;
  }

  nav ul {
    gap: 20px;
  }

  .hero {
    padding-right: 40px;
    padding-left: 24px;
  }

  .hero-content h1 {
    font-size: 54px;
  }

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

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .single-activity-wrap {
    padding-top: 108px;
  }
}

@media (max-width: 768px) {
  header {
    height: 66px;
    padding: 0 14px;
    justify-content: center;
    overflow: visible;
  }

  nav {
    overflow: visible;
  }

  nav ul {
    justify-content: center;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 2px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

header.scrolled nav {
  width: calc(100vw - 12px);
  max-width: calc(100vw - 12px);
  padding: 6px 6px;
  transform: translateY(0);
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(255,255,255,0.08);
}

header.scrolled nav ul {
  justify-content: center;
  gap: 4px;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  padding-inline: 4px;
  padding-top: 1px;
  padding-bottom: 2px;
}

header.scrolled nav ul li a {
  font-size: 15px;
  line-height: 1;
  min-height: 34px;
  padding: 7px 6px;
  letter-spacing: 0;
}

header.scrolled nav ul li.current-menu-item > a,
header.scrolled nav ul li.current_page_item > a,
header.scrolled nav ul li.current-menu-ancestor > a {
  padding-left: 9px;
  padding-right: 9px;
}

  .hero {
    min-height: 100svh;
    height: auto;
    padding: 88px 18px 88px;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
  }

  .hero-slide.slide-01 {
    background-position: center center;
  }

  .hero-slide.slide-02 {
    background-position: center center;
  }

  .hero-slide.slide-03 {
    background-position: center center;
  }

  .hero-slide.slide-04 {
    background-position: center center;
  }

  .hero-content {
    width: min(100%, 320px);
    margin-left: auto;
    transform: translateY(40px);
  }

  .hero-content h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.06;
    letter-spacing: -1.2px;
    margin-bottom: 14px;
  }

  .hero-content .hero-kicker {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.06;
    letter-spacing: -1.2px;
    margin-bottom: 0;
  }

  .hero-content p,
  .hero-description {
    font-size: 23px;
    margin-bottom: 24px;
  }

  .hero-description-line {
    display: block;
  }

  .hero-description-separator {
    display: none;
  }

  .hero-description-name {
    font-size: 43px;
    line-height: 1.04;
    letter-spacing: -1.2px;
  }

  .hero-buttons {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .btn-primary,
  .btn-outline {
    padding: 10px 20px;
    font-size: 15px;
  }

  .scroll-down {
    display: none;
  }

  .global-page-title {
    font-size: 30px;
    margin-bottom: 28px;
    letter-spacing: -1px;
  }

  .section-activities {
    padding: 72px 16px;
  }

  .section-header {
    margin-bottom: 24px;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .activity-grid {
    gap: 12px;
  }

  .activity-card {
    height: 320px;
    transform: none;
  }

  .activity-card:hover {
    transform: none;
  }

  .activity-card:hover .card-img {
    transform: none;
  }

  .card-content {
    padding: 20px 18px;
  }

  .card-title {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .card-desc {
    opacity: 1;
    max-height: 120px;
  }

  .page-content,
  .page-schedule .page-content {
    padding: 90px 16px 88px;
  }

  .timeline-shell {
    overflow: visible;
  }

  .timeline-wrapper {
    padding: 12px 0 0;
    overflow: visible !important;
    height: auto !important;
  }

  .timeline-wrapper::before,
  .page-schedule .timeline-wrapper::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .timeline-date {
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 0;
    padding-left: 24px;
    text-align: left;
  }

  .timeline-date h3 {
    font-size: 24px;
    margin-bottom: 0;
  }

  .timeline-date span {
    font-size: 13px;
  }

  .timeline-dot {
    left: 0;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .timeline-item--future .timeline-date::after {
    display: none;
  }

  .timeline-content {
    padding-left: 0;
  }

  .timeline-card {
    padding: 20px 18px;
  }

  .timeline-card > div:first-child {
    flex-wrap: wrap;
    gap: 10px !important;
  }

  .timeline-card h4 {
    font-size: 18px;
  }

  .timeline-card p {
    font-size: 14px;
  }

  .schedule-today-fab {
    display: inline-flex;
  }

  footer {
    padding: 28px 16px 18px;
  }

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

  .footer-bottom {
    margin-top: 18px;
    padding-top: 12px;
    flex-direction: column;
    gap: 8px;
  }

  .single-activity-wrap {
    padding: 100px 16px 64px;
  }

  .single-activity-summary {
    font-size: 16px;
  }

  .single-activity-content {
    padding: 24px 20px;
  }

  .single-activity-content p,
  .single-activity-content li {
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    height: 340px;
  }

  .hero-content {
    width: min(100%, 300px);
  }

  .hero-content h1 {
    font-size: clamp(30px, 9.5vw, 38px);
  }

  .hero-slide.slide-01 {
    background-position: center center;
  }

  .hero-slide.slide-02 {
    background-position: center center;
  }

  .hero-slide.slide-03 {
    background-position: center center;
  }

  .hero-slide.slide-04 {
    background-position: center center;
  }

  .hero-buttons {
    width: 100%;
  }

  .btn-primary,
  .btn-outline {
    width: auto;
  }
}
