* {
  box-sizing: border-box;
}

:root {
  --emerald-950: #001815;
  --emerald-900: #012620;
  --emerald-800: #03382e;
  --emerald-700: #045443;
  --gold-600: #c79234;
  --gold-500: #d9aa4f;
  --gold-400: #f2d27f;
  --text-main: #f8e7b8;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 65% 25%, rgba(8, 82, 64, 0.3), transparent 44%),
    radial-gradient(circle at 20% 82%, rgba(10, 72, 58, 0.26), transparent 34%),
    linear-gradient(160deg, #021714, #03241f 46%, #05342b);
  color: var(--text-main);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  height: 160px;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -30px;
  background: linear-gradient(100deg, transparent 18%, rgba(57, 144, 120, 0.35) 48%, transparent 75%);
  filter: blur(14px);
  opacity: 0.45;
}

body::after {
  bottom: -40px;
  background: linear-gradient(280deg, transparent 18%, rgba(28, 109, 87, 0.45) 48%, transparent 75%);
  filter: blur(16px);
  opacity: 0.42;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 74px;
  padding: 10px 14px;
  background: linear-gradient(160deg, rgba(1, 33, 28, 0.9), rgba(4, 70, 56, 0.74));
  border-bottom: 1px solid rgba(242, 210, 127, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.dropdown {
  position: relative;
}

.logo-home {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  height: 52px;
  margin-left: 6px;
  text-decoration: none;
}

.logo-home img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-400);
  letter-spacing: 0.02em;
}

.icon-btn,
.chip-btn {
  height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(242, 210, 127, 0.88);
  background: linear-gradient(145deg, rgba(2, 57, 45, 0.9), rgba(1, 33, 27, 0.82));
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  cursor: pointer;
}

.icon-btn {
  width: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.icon-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
}

.chip-btn {
  min-width: 96px;
  padding: 0 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-pop {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 152px;
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(170deg, rgba(1, 40, 32, 0.97), rgba(2, 56, 45, 0.95));
  border: 1px solid rgba(242, 210, 127, 0.48);
  display: grid;
  gap: 4px;
}

.menu-option {
  border: none;
  background: transparent;
  color: #f7e8c5;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.flag-icon {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

.settings-panel {
  position: absolute;
  top: 66px;
  right: 14px;
  width: 190px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(242, 210, 127, 0.4);
  background: linear-gradient(170deg, rgba(1, 40, 32, 0.97), rgba(2, 56, 45, 0.95));
}

.settings-panel p {
  margin: 0 0 8px;
  font-weight: 700;
}

.panel-item {
  width: 100%;
  margin-bottom: 6px;
  border: 1px solid rgba(242, 210, 127, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #f5ecd6;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
}

.hidden {
  display: none;
}

.content {
  padding-top: 96px;
}

.hero-card {
  width: min(1100px, 92vw);
  margin: 0 auto;
  background: linear-gradient(155deg, rgba(2, 46, 38, 0.8), rgba(1, 27, 23, 0.88));
  border: 1px solid rgba(242, 210, 127, 0.36);
  border-radius: 18px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 18px;
  align-items: center;
}

.hero-badge {
  margin: 0 0 10px;
  color: var(--gold-400);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hero-text {
  max-width: 760px;
  line-height: 1.7;
}

.hero-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(242, 210, 127, 0.35);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(242, 210, 127, 0.75);
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 700;
  background: rgba(1, 35, 28, 0.5);
}

.section-card {
  width: min(1100px, 92vw);
  margin: 20px auto 0;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(2, 48, 39, 0.7), rgba(1, 27, 23, 0.78));
  border: 1px solid rgba(242, 210, 127, 0.2);
  padding: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
}

.section-head p {
  margin: 0 0 16px;
  color: #efdcae;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.courses-slider {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.courses-slider::-webkit-scrollbar {
  display: none;
}

.courses-slider.dragging {
  cursor: grabbing;
}

.courses-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.mini-card {
  width: 290px;
  flex: 0 0 290px;
  border-radius: 14px;
  border: 1px solid rgba(242, 210, 127, 0.24);
  background: rgba(1, 26, 22, 0.7);
  padding: 16px;
}

.card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(242, 210, 127, 0.3);
  margin-bottom: 10px;
}

.mini-card h3 {
  margin: 0 0 8px;
}

.mini-card p {
  margin: 0;
  color: #f0dfb3;
  line-height: 1.55;
}

.cta-card {
  text-align: center;
}

.cta-card h2 {
  margin: 0 0 8px;
}

.cta-card p {
  margin: 0 0 18px;
}

.application-card {
  width: min(1100px, 92vw);
  margin: 20px auto;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(242, 210, 127, 0.42);
  background: linear-gradient(165deg, rgba(2, 52, 42, 0.76), rgba(1, 28, 23, 0.84));
}

.application-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.application-card p {
  margin: 0 0 18px;
  color: #f8dfab;
}

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

.application-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.application-form label span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.application-form input,
.application-form select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(242, 210, 127, 0.5);
  outline: none;
  color: var(--gold-400);
  background: linear-gradient(160deg, rgba(2, 48, 39, 0.95), rgba(1, 29, 24, 0.92));
}

.application-form select option {
  color: var(--gold-400);
  background: #0a2e25;
}

.application-form input::placeholder {
  color: rgba(248, 231, 184, 0.72);
}

.application-form input:focus,
.application-form select:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 2px rgba(242, 210, 127, 0.2);
}

.application-form .gold-btn {
  width: 100%;
}

.full-row {
  grid-column: 1 / -1;
}

.inline-options {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(242, 210, 127, 0.35);
  background: rgba(2, 43, 35, 0.72);
}

.inline-options label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(242, 210, 127, 0.35);
  background: rgba(1, 30, 24, 0.8);
}

.inline-options input[type="radio"] {
  width: 14px;
  height: 14px;
  margin: 0;
}

.form-status {
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-status.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(242, 210, 127, 0.35);
  border-top-color: var(--gold-400);
  animation: spin 0.8s linear infinite;
}

.form-status.success {
  color: #9cf0b8;
}

.form-status.error {
  color: #ffb1a5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.location-card {
  width: min(1100px, 92vw);
  margin: 20px auto 40px;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(242, 210, 127, 0.42);
  background: linear-gradient(165deg, rgba(2, 52, 42, 0.76), rgba(1, 28, 23, 0.84));
}

.location-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.location-card p {
  margin: 0 0 16px;
  color: #f8dfab;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.location-card iframe {
  width: 100%;
  height: 360px;
  border: 1px solid rgba(242, 210, 127, 0.42);
  border-radius: 14px;
}

.location-info {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(242, 210, 127, 0.28);
  background: rgba(1, 24, 20, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.location-text {
  line-height: 1.6;
}

.location-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.location-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4e2b3;
}

.location-meta i {
  color: var(--gold-400);
}

.map-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.feature-list p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f0dfb3;
}

.feature-list i {
  color: var(--gold-400);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(242, 210, 127, 0.88);
  background: linear-gradient(145deg, #f2d27f, #d9aa4f 56%, #c79234);
  color: #1a2b22;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gold-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.site-footer {
  width: min(1100px, 92vw);
  margin: 0 auto 24px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(242, 210, 127, 0.4);
  background: linear-gradient(170deg, rgba(1, 40, 32, 0.97), rgba(2, 56, 45, 0.95));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.phone-line {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(242, 210, 127, 0.7);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  background: linear-gradient(150deg, rgba(2, 47, 38, 0.95), rgba(1, 29, 24, 0.95));
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: linear-gradient(150deg, rgba(3, 64, 50, 0.96), rgba(1, 39, 32, 0.95));
}

body[data-theme="light"] {
  background: #ffffff;
  color: #1f3f37;
}

body[data-theme="light"] .topbar,
body[data-theme="light"] .settings-panel,
body[data-theme="light"] .menu-pop {
  background: linear-gradient(160deg, rgba(2, 57, 45, 0.96), rgba(1, 33, 27, 0.93));
  border-color: rgba(201, 146, 52, 0.82);
}

body[data-theme="light"] .chip-btn,
body[data-theme="light"] .icon-btn,
body[data-theme="light"] .panel-item,
body[data-theme="light"] .menu-option {
  color: #d9aa4f;
  background: linear-gradient(145deg, rgba(2, 57, 45, 0.95), rgba(1, 33, 27, 0.9));
  border-color: rgba(201, 146, 52, 0.82);
}

body[data-theme="light"] .icon-btn span {
  background: #14372d;
}

body[data-theme="light"] .location-card,
body[data-theme="light"] .application-card,
body[data-theme="light"] .hero-card,
body[data-theme="light"] .section-card,
body[data-theme="light"] .site-footer {
  background: linear-gradient(160deg, rgba(2, 57, 45, 0.96), rgba(1, 33, 27, 0.93));
  border-color: rgba(201, 146, 52, 0.82);
}

body[data-theme="light"] .location-card p,
body[data-theme="light"] .application-card p,
body[data-theme="light"] .hero-text,
body[data-theme="light"] .section-head p,
body[data-theme="light"] .mini-card p,
body[data-theme="light"] .cta-card p {
  color: #c79234;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] .application-form label,
body[data-theme="light"] .feature-list p,
body[data-theme="light"] .phone-line {
  color: #c79234;
}

body[data-theme="light"] .location-card iframe,
body[data-theme="light"] .social-links a {
  border-color: rgba(201, 146, 52, 0.5);
}

body[data-theme="light"] .application-form input,
body[data-theme="light"] .application-form select {
  color: #c79234;
  background: linear-gradient(160deg, rgba(2, 48, 39, 0.95), rgba(1, 29, 24, 0.92));
  border-color: rgba(201, 146, 52, 0.82);
}

body[data-theme="light"] .application-form input::placeholder {
  color: rgba(199, 146, 52, 0.75);
}

body[data-theme="light"] .location-info {
  background: rgba(1, 24, 20, 0.7);
}

body[data-theme="light"] .gold-btn {
  color: #d9aa4f;
  background: linear-gradient(145deg, rgba(2, 57, 45, 0.95), rgba(1, 33, 27, 0.9));
  border-color: rgba(201, 146, 52, 0.75);
}

body[data-theme="light"] .mini-card {
  background: rgba(1, 26, 22, 0.8);
  border-color: rgba(201, 146, 52, 0.6);
}

body[data-theme="light"] .outline-btn {
  color: #c79234;
  background: rgba(2, 57, 45, 0.9);
  border-color: rgba(201, 146, 52, 0.75);
}

body[data-theme="light"] .inline-options {
  background: rgba(2, 43, 35, 0.8);
  border-color: rgba(201, 146, 52, 0.65);
}

body[data-theme="light"] .inline-options label {
  color: #c79234;
  border-color: rgba(201, 146, 52, 0.65);
  background: rgba(1, 30, 24, 0.86);
}

body[data-theme="light"] .card-image {
  border-color: rgba(201, 146, 52, 0.55);
}

body[data-theme="light"] .hero-copy,
body[data-theme="light"] .hero-image-wrap,
body[data-theme="light"] .section-head,
body[data-theme="light"] .location-layout,
body[data-theme="light"] .map-actions,
body[data-theme="light"] .social-links,
body[data-theme="light"] .right-controls,
body[data-theme="light"] .dropdown {
  background: transparent;
}

@media (max-width: 768px) {
  .topbar {
    height: 68px;
    padding: 8px;
  }

  .logo-home {
    width: auto;
    height: 44px;
    margin-left: 4px;
  }

  .logo-home img {
    width: 44px;
    height: 44px;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .icon-btn,
  .chip-btn {
    height: 40px;
  }

  .chip-btn {
    min-width: 70px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .menu-pop {
    top: 44px;
    min-width: 138px;
  }

  .settings-panel {
    top: 60px;
    right: 8px;
  }

  .location-card {
    padding: 18px;
  }

  .application-card {
    padding: 18px;
  }

  .application-form {
    grid-template-columns: 1fr;
  }

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

  .mini-card {
    width: 82vw;
    flex-basis: 82vw;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

  .location-card iframe {
    height: 300px;
  }

  .location-layout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
