:root {
  --bg: #0f172a;
  --bg-2: #111827;
  --card: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
  --white: #ffffff;
  --primary: #2a7094;
  --primary-dark: #1f5670;
  --accent: #3b86ab;
  --line: #d7e1ea;
  --soft: #f8fafc;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(42, 112, 148, 0.14), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(215, 225, 234, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-links a:hover {
  background: rgba(42, 112, 148, 0.10);
  color: var(--primary-dark);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white !important;
  box-shadow: 0 14px 26px rgba(42, 112, 148, 0.24);
}

.nav-cta:hover {
  filter: brightness(1.03);
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(52, 130, 168, 1) 0%, rgba(0, 55, 89, 1) 100%),
    url("images/slider_homepage_1.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(42, 112, 148, 0.28), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(59, 134, 171, 0.22), transparent 28%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 88px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
  font-weight: 700;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-family: "Amatic SC", cursive;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.92;
  margin: 0 0 18px;
  letter-spacing: 0.5px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #e2e8f0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 16px 30px rgba(42, 112, 148, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(42, 112, 148, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-dark {
  color: white;
  background:
    linear-gradient(90deg, rgba(52, 130, 168, 1) 0%, rgba(0, 55, 89, 1) 100%),
    url("images/bg_2.jpg") center/cover fixed no-repeat;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-title p {
  color: rgba(226, 232, 240, 0.86);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.card {
  background: var(--card);
  border: 1px solid rgba(215, 225, 234, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-pad {
  padding: 28px;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.14);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead {
  font-size: 1.08rem;
  color: #334155;
}

.socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  background: #1877F2;
  color: white;
  box-shadow: 0 10px 18px rgba(42, 112, 148, 0.16);
}

.socials a:nth-child(2) {
  background: linear-gradient(135deg,
    #FEDA75 0%,
    #FA7E1E 20%,
    #D62976 45%,
    #962FBF 70%,
    #4F5BD5 100%
  );
}

.socials a:hover {
  filter: brightness(1.04);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.expand-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.expand-card__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.course-head,
.person-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.course-head img,
.person-head img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.card-copy {
  min-width: 0;
}

.card-copy h3,
.person-head h3,
.course-head h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  color: white;
}

.person-head h3 {
  font-size: 1.1rem;
}

.expand-card__preview {
  margin: 6px 0 4px;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.86);
}

.expand-card__hint {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.expand-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 1.2rem;
  font-weight: 900;
  flex: 0 0 auto;
  transition: transform 0.25s ease, background 0.25s ease;
}

.expand-card.is-open .expand-card__icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.2);
}

.expand-card__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0 24px 24px;
  transition: max-height 0.32s ease, opacity 0.22s ease, transform 0.22s ease, padding 0.28s ease;
}

.expand-card.is-open .expand-card__body {
  opacity: 1;
  transform: translateY(0);
}

.expand-card__body p {
  margin: 0 0 12px;
}

.expand-card__body p:last-child {
  margin-bottom: 0;
}

.expand-card.is-open {
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.20);
  border-color: rgba(255, 255, 255, 0.24);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.day {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.day h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.day ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.day li {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.98rem;
}

.day strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  padding: 34px 0;
  background: linear-gradient(90deg, rgba(52, 130, 168, 1) 0%, rgba(0, 55, 89, 1) 100%);
  color: #e2e8f0;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.98rem;
}

.backtop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 12px 24px rgba(42, 112, 148, 0.28);
  font-weight: 900;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .grid-2,
  .courses-grid,
  .schedule-grid,
  .collab-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 70vh;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--max));
  }

  .section {
    padding: 66px 0;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 8px 10px;
  }

  .card-pad,
  .day {
    padding: 18px;
  }

  .expand-card__head,
  .expand-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .expand-card__head {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .course-head img,
  .person-head img {
    width: 64px;
    height: 64px;
  }

  .card-copy h3,
  .person-head h3,
  .course-head h3 {
    font-size: 1.05rem;
  }

  .expand-card__preview {
    font-size: 0.9rem;
  }

  .person-head {
    min-width: 0;
  }

  .person {
    grid-template-columns: 1fr;
  }

  .person img {
    width: 84px;
    height: 84px;
  }
}