:root {
  --bg: #041428;
  --bg-soft: #0b1f3a;
  --panel: #0d2342;
  --panel-2: #112c52;
  --surface: #f7f9fc;
  --surface-2: #ffffff;
  --text: #eff4fb;
  --muted: #acc0dd;
  --dark: #081425;
  --gold: #d9ad4a;
  --gold-soft: #f3d793;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 64px rgba(2, 10, 22, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(217, 173, 74, 0.12), transparent 24%),
    linear-gradient(180deg, #031120 0%, #071a33 42%, #f4f7fb 42%, #f4f7fb 100%);
  color: var(--text);
}

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

.site-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f1cb77, #b88422);
  color: #0a1b34;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(217, 173, 74, 0.28);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 20px;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.topnav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.topnav a:hover,
.text-link:hover {
  color: var(--gold-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  padding: 24px 0 20px;
}

.hero-copy,
.hero-slider-card,
.feature-banner,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(10, 30, 57, 0.96), rgba(6, 20, 38, 0.98));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 16px 0 14px;
  line-height: 1.1;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  max-width: 580px;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.btn-gold {
  background: linear-gradient(135deg, #f1cc78, #c58d2c);
  color: #09162a;
  box-shadow: 0 12px 24px rgba(217, 173, 74, 0.24);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.hero-slider-card {
  min-height: 420px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-slide {
  min-height: 320px;
  border-radius: 26px;
  padding: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 173, 74, 0.24), transparent 18%),
    radial-gradient(circle at bottom left, rgba(92, 132, 232, 0.18), transparent 24%),
    linear-gradient(135deg, #112f59, #09182f);
  position: relative;
  overflow: hidden;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 173, 74, 0.3), transparent 68%);
}

.hero-slide h3 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
  max-width: 420px;
  line-height: 1.25;
}

.hero-slide p {
  color: #dbe6f7;
  font-size: 17px;
  line-height: 1.8;
  margin: 18px 0 0;
  max-width: 360px;
}

.hero-slide .slide-button {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--gold-soft);
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 18px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.hero-dots button.active {
  width: 34px;
  background: linear-gradient(135deg, #f2cf81, #c58b2a);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 26px;
}

.stat-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.stat-card strong {
  display: block;
  color: #fff;
  font-size: 28px;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
}

.feature-banner,
.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 28px 30px;
  margin: 10px 0 34px;
}

.feature-banner h2,
.contact-panel h2,
.section-head h2 {
  margin: 8px 0 10px;
  color: var(--dark);
}

.feature-banner h2,
.contact-panel h2 {
  color: #fff;
}

.feature-banner p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.9;
}

.feature-banner .feature-box {
  border-radius: 24px;
  background:
    radial-gradient(circle at left center, rgba(217, 173, 74, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: 24px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 20px;
  color: var(--dark);
}

.section-head .eyebrow {
  color: #b78428;
}

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

.course-card,
.free-card {
  background: var(--surface-2);
  color: var(--dark);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(12, 28, 58, 0.08);
}

.course-visual,
.free-visual {
  min-height: 190px;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(242, 196, 98, 0.46), transparent 18%),
    radial-gradient(circle at bottom right, rgba(24, 78, 142, 0.42), transparent 22%),
    linear-gradient(135deg, #102c54, #08192d);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-visual .badge,
.free-visual .badge,
.meta-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.course-visual .badge,
.free-visual .badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-soft);
}

.course-content,
.free-content {
  padding: 20px;
}

.course-content h3,
.free-content h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.course-content p,
.free-content p {
  color: #526176;
  line-height: 1.8;
  margin: 0 0 16px;
}

.course-meta,
.free-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.meta-tag {
  background: #f0f4fa;
  color: #3f5067;
}

.course-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price {
  color: #b37b17;
  font-size: 22px;
  font-weight: 800;
}

.link-btn {
  border: 0;
  border-radius: 999px;
  background: #0c2040;
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.announcements-list {
  display: grid;
  gap: 14px;
}

.announcement-item {
  background: var(--surface-2);
  color: var(--dark);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 12px 28px rgba(12, 28, 58, 0.07);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.announcement-item p {
  margin: 0;
  color: #526176;
  line-height: 1.8;
}

.announcement-time {
  min-width: 120px;
  text-align: left;
  color: #b47f22;
  font-weight: 700;
}

.contact-panel {
  margin-top: 34px;
}

.site-footer {
  margin-top: 30px;
  padding: 22px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(10, 30, 57, 0.96), rgba(6, 20, 38, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy strong {
  font-size: 20px;
}

.footer-copy span {
  color: var(--muted);
  font-size: 14px;
}

.enamad-badge {
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(217, 173, 74, 0.14));
  border: 1px solid rgba(217, 173, 74, 0.28);
  box-shadow: 0 16px 32px rgba(3, 9, 20, 0.2);
}

.enamad-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f1cc78, #be8424);
  color: #0b1b33;
  font-size: 28px;
  font-weight: 900;
  flex: 0 0 auto;
}

.enamad-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.enamad-copy strong {
  color: #fff;
  font-size: 16px;
}

.enamad-copy small {
  color: var(--gold-soft);
  font-size: 13px;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(900px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  background: #fff;
  color: var(--dark);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  padding: 28px;
}

.modal-close {
  position: sticky;
  top: 0;
  margin-right: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #f2f5fa;
  font-size: 28px;
  cursor: pointer;
}

.modal-hero {
  border-radius: 24px;
  padding: 28px;
  margin: 8px 0 22px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 173, 74, 0.24), transparent 16%),
    linear-gradient(135deg, #102b52, #08192f);
}

.modal-hero h3 {
  font-size: 34px;
  margin: 10px 0 12px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.modal-panel {
  background: #f8fafc;
  border-radius: 22px;
  padding: 20px;
}

.modal-panel h4 {
  margin: 0 0 14px;
  font-size: 20px;
}

.section-row,
.review-row {
  padding: 14px 0;
  border-bottom: 1px solid #e8eef6;
}

.section-row:last-child,
.review-row:last-child {
  border-bottom: 0;
}

.section-row strong,
.review-row strong {
  display: block;
  margin-bottom: 6px;
}

.section-row p,
.review-row p,
.modal-panel p {
  margin: 0;
  color: #516276;
  line-height: 1.8;
}

.review-rating {
  color: #b47f22;
  font-weight: 800;
  margin-top: 8px;
}

.review-time {
  color: #90a1b5;
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 1080px) {
  .hero,
  .feature-banner,
  .contact-panel,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid,
  .free-grid,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100%, calc(100% - 20px));
  }

  .topbar,
  .section-head,
  .announcement-item,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-copy,
  .hero-slider-card,
  .feature-banner,
  .contact-panel,
  .modal-card {
    padding: 20px;
  }

  .courses-grid,
  .free-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .course-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .announcement-time {
    min-width: 0;
    text-align: right;
  }

  .enamad-badge {
    min-width: 0;
    width: 100%;
  }
}
