:root {
  --bg: #f6fbff;
  --card: #ffffff;

  --blue: #1769aa;
  --blue-dark: #0b2545;
  --blue-soft: #e2f3ff;
  --blue-light: #7cc7f2;

  --sky: #21a7df;
  --sky-soft: #e8f8ff;

  --white: #ffffff;
  --text: #142033;
  --muted: #667085;

  --border: #d9edf9;

  --shadow-sm: 0 8px 24px rgba(23, 105, 170, 0.07);
  --shadow-md: 0 18px 45px rgba(23, 105, 170, 0.12);
  --shadow-lg: 0 28px 70px rgba(23, 105, 170, 0.16);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", Arial, Tahoma, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(33, 167, 223, 0.13), transparent 35%),
    radial-gradient(circle at top left, rgba(23, 105, 170, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(92%, 1180px);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* ================= Header ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 251, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 237, 249, 0.9);
}

.header-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--blue-dark);
  letter-spacing: -0.6px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: white;
  font-size: 20px;
  box-shadow: 0 12px 28px rgba(33, 167, 223, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a {
  position: relative;
  transition: 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--sky);
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue-dark);
}

.main-nav a:hover::after {
  width: 100%;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-link {
  color: var(--blue-dark);
  font-weight: 800;
}

/* ================= Buttons ================= */

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  padding: 13px 24px;
  font-weight: 900;
  transition: 0.22s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: white;
  box-shadow: 0 14px 32px rgba(33, 167, 223, 0.28);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(33, 167, 223, 0.36);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue-dark);
  border-color: rgba(217, 237, 249, 0.95);
  box-shadow: var(--shadow-sm);
}

.secondary-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(33, 167, 223, 0.4);
  color: var(--blue);
}

.small-btn {
  padding: 10px 15px;
  border-radius: 14px;
  font-size: 14px;
}

/* ================= Hero ================= */

.hero-section {
  padding: 78px 0 48px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
}

.eyebrow,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky);
  font-weight: 900;
  margin-bottom: 12px;
}

.eyebrow::before,
.section-heading span::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--sky);
}

.hero-text h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.12;
  color: var(--blue-dark);
  letter-spacing: -1.8px;
}

.hero-text p {
  font-size: 18px;
  line-height: 2;
  color: var(--muted);
  max-width: 640px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 11px;
  margin-top: 30px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 237, 249, 0.95);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: 0.22s ease;
  box-shadow: var(--shadow-sm);
}

.social-links a:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-4px);
}

.hero-visual {
  position: relative;
}

.hero-image {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(232, 248, 255, 0.96));
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 45px;
  background: linear-gradient(135deg, rgba(33, 167, 223, 0.15), rgba(23, 105, 170, 0.1));
  filter: blur(8px);
}

.hero-image img {
  border-radius: 26px;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  z-index: 5;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 237, 249, 0.95);
  border-radius: 18px;
  padding: 13px 16px;
  box-shadow: var(--shadow-md);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 14px;
}

.floating-card i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--sky));
}

.card-one {
  top: 30px;
  right: -22px;
}

.card-two {
  left: -18px;
  bottom: 42px;
}

/* ================= Sections ================= */

.section {
  padding: 72px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 38px;
}

.section-heading span {
  justify-content: center;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  color: var(--blue-dark);
  letter-spacing: -0.8px;
  line-height: 1.25;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 500;
}

.compact-heading {
  margin-bottom: 24px;
}

.compact-heading h2 {
  font-size: clamp(26px, 3.5vw, 38px);
}

.cards-grid {
  display: grid;
  gap: 22px;
}

/* ================= Stages ================= */

.stages-section {
  padding: 54px 0 48px;
}

.stages-panel {
  max-width: 940px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(217, 237, 249, 0.95);
  box-shadow: var(--shadow-sm);
}

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

.stage-card {
  position: relative;
  min-height: 112px;
  padding: 18px 18px 18px 58px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(33, 167, 223, 0.13), transparent 38%),
    linear-gradient(135deg, #ffffff, #f4fbff);
  border: 1px solid rgba(124, 199, 242, 0.35);
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: 0.24s ease;
}

.stage-card::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: rgba(33, 167, 223, 0.08);
  transition: 0.24s ease;
}

.stage-card::after {
  content: "\f104";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 16px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(23, 105, 170, 0.12);
  transition: 0.22s ease;
}

.stage-card h3 {
  position: relative;
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.4px;
}

.stage-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 600;
  font-size: 13px;
}

.stage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 167, 223, 0.55);
  box-shadow: var(--shadow-md);
}

.stage-card:hover::after {
  background: var(--blue);
  color: white;
}

.stage-card:hover::before {
  transform: scale(1.2);
  background: rgba(33, 167, 223, 0.14);
}

.stage-card.active {
  border-color: var(--sky);
  background:
    radial-gradient(circle at top right, rgba(33, 167, 223, 0.22), transparent 38%),
    linear-gradient(135deg, #ffffff, #e8f8ff);
  box-shadow: 0 18px 45px rgba(33, 167, 223, 0.14);
}

.stage-card.active::after {
  background: var(--sky);
  color: white;
}

/* Tracks List */

.tracks-box {
  max-width: 760px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(124, 199, 242, 0.35);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.tracks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 4px 4px 0;
}

.tracks-header h3 {
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--blue-dark);
}

.tracks-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tracks-header i {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--sky));
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(217, 237, 249, 0.95);
  box-shadow: none;
  cursor: pointer;
  transition: 0.24s ease;
  overflow: hidden;
}

.track-card::before {
  content: "";
  width: 9px;
  height: 38px;
  border-radius: 999px;
  background: var(--blue-soft);
  transition: 0.22s ease;
}

.track-card::after {
  content: "\f053";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  min-width: 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  transition: 0.22s ease;
}

.track-card .track-info {
  flex: 1;
}

.track-card h3 {
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  color: var(--blue-dark);
}

.track-card p {
  display: none;
}

.track-card:hover {
  transform: translateX(-4px);
  background: #f8fcff;
  border-color: rgba(33, 167, 223, 0.55);
}

.track-card:hover::before {
  background: var(--sky);
}

.track-card:hover::after {
  background: var(--blue);
  color: white;
}

.track-card.active {
  background: linear-gradient(135deg, #ffffff, var(--sky-soft));
  border-color: var(--sky);
}

.track-card.active::before,
.track-card.active::after {
  background: var(--sky);
  color: white;
}

.message-box {
  margin-top: 18px;
  background: linear-gradient(135deg, #ffffff, var(--sky-soft));
  border: 1px solid rgba(33, 167, 223, 0.28);
  color: var(--blue);
  padding: 17px 20px;
  border-radius: 20px;
  text-align: center;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.message-box i {
  color: var(--sky);
}

/* ================= Teachers ================= */

.teachers-section {
  background:
    linear-gradient(180deg, rgba(232, 248, 255, 0.72), rgba(246, 251, 255, 0.95));
  scroll-margin-top: 94px;
}

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

.teacher-card {
  position: relative;
  text-align: center;
   padding: 18px 18px 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(33, 167, 223, 0.15), transparent 38%),
    linear-gradient(180deg, #ffffff, #f8fcff);
  border: 1px solid rgba(217, 237, 249, 0.95);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  transition: 0.25s ease;
}

.teacher-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 70%;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.teacher-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: rgba(33, 167, 223, 0.45);
}

.teacher-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 22px;
  border: 4px solid var(--blue-soft);
  box-shadow: 0 18px 36px rgba(23, 105, 170, 0.16);
}

.teacher-card h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 1.45;
}

.teacher-card .subject-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

/* ================= Courses ================= */

.courses-section {
  background: var(--bg);
}

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

.course-card {
  position: relative;
  padding: 0;
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(217, 237, 249, 0.95);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: 0.25s ease;
}

.course-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: 0.25s ease;
}

.course-card:hover img {
  transform: scale(1.04);
}

.course-content {
  padding: 20px;
}

.course-card h3 {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.45;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  font-weight: 500;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 237, 249, 0.9);
}

.price {
  color: var(--blue);
  font-weight: 900;
  font-size: 19px;
}

.subject {
  color: var(--blue);
  background: var(--sky-soft);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}

/* ================= Features ================= */

.features-section {
  background:
    linear-gradient(180deg, rgba(232, 248, 255, 0.75), rgba(255, 255, 255, 0.86));
}

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

.feature-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(33, 167, 223, 0.13), transparent 38%),
    #ffffff;
  border: 1px solid rgba(217, 237, 249, 0.95);
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: white;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 18px;
  box-shadow: 0 14px 28px rgba(33, 167, 223, 0.22);
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 500;
}

/* ================= Contact ================= */

.contact-section {
  padding-top: 42px;
}

.contact-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(33, 167, 223, 0.35), transparent 34%),
    linear-gradient(135deg, var(--blue-dark), #063f70);
  color: white;
  border-radius: 34px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg);
}

.contact-box::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.contact-box > * {
  position: relative;
  z-index: 1;
}

.contact-box h2 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.5px;
}

.contact-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-weight: 500;
}

.contact-box .eyebrow {
  color: #b7eaff;
}

.contact-box .eyebrow::before {
  background: #b7eaff;
}

/* ================= Footer ================= */

.site-footer {
  padding: 28px 0;
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.footer-content p {
  margin: 0;
  font-weight: 600;
}

/* ================= States ================= */

.loading-text,
.empty-text {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 237, 249, 0.95);
  padding: 24px;
  border-radius: 22px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ================= Responsive ================= */

@media (max-width: 1000px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

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

  .card-one {
    right: 10px;
  }

  .card-two {
    left: 10px;
  }

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

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .header-content {
    gap: 14px;
  }

  .logo {
    font-size: 19px;
  }

  .auth-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-section {
    padding-top: 48px;
  }

  .hero-text h1 {
    letter-spacing: -1px;
  }

  .floating-card {
    position: static;
    margin-top: 12px;
    min-width: auto;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
  }

  .card-one {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .card-two {
    order: 3;
  }

  .teachers-grid,
  .courses-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stages-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .stage-card {
    min-height: auto;
  }

  .contact-box {
    padding: 28px;
    border-radius: 26px;
  }

  .contact-box h2 {
    font-size: 26px;
  }
}
.small-header-btn {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: 0.22s ease;
}

.user-chip:hover {
  transform: translateY(-2px);
  color: var(--blue);
}

.user-chip i {
  color: var(--blue);
}

.admin-chip {
  background: #fff7e6;
  color: #9a6700;
}

.admin-chip i {
  color: #d89614;
}

.logout-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #fef3f2;
  color: #b42318;
  font-family: "Cairo", Arial, Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.22s ease;
}

.logout-header-btn:hover {
  transform: translateY(-2px);
  background: #fee4e2;
}

.logout-header-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

@media (max-width: 700px) {
  .auth-actions {
    gap: 8px;
  }

  .user-chip span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .small-header-btn,
  .login-btn,
  .user-chip,
  .logout-header-btn {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }
}

/* ================= Subjects Cards ================= */

.subject-card {
  position: relative;
  min-height: 230px;
  padding: 26px 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(33, 167, 223, 0.15), transparent 38%),
    linear-gradient(180deg, #ffffff, #f8fcff);
  border: 1px solid rgba(217, 237, 249, 0.95);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}

.subject-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 70%;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.subject-card:hover,
.subject-card.active {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: rgba(33, 167, 223, 0.45);
}

.subject-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  font-size: 24px;
  box-shadow: 0 14px 28px rgba(33, 167, 223, 0.22);
}

.subject-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1.45;
}

.subject-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}
/* ==================================================
   Teachers Marquee – Creative Glowing Style
================================================== */

.teachers-marquee-section {
  position: relative;
  z-index: 5;
  padding: 45px 0 50px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(33, 167, 223, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 40%,
      rgba(23, 105, 170, 0.16),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #d8effb 0%,
      #e5f5fc 45%,
      #d4edf9 100%
    );

  border-top: 1px solid rgba(33, 167, 223, 0.35);
  border-bottom: 1px solid rgba(33, 167, 223, 0.35);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.7),
    0 0 35px rgba(33, 167, 223, 0.16);
}

/* توهج أعلى وأسفل القسم */
.teachers-marquee-section::before,
.teachers-marquee-section::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(33, 167, 223, 0.65),
    rgba(255, 255, 255, 0.95),
    rgba(33, 167, 223, 0.65),
    transparent
  );

  filter: blur(0.5px);
  box-shadow: 0 0 14px rgba(33, 167, 223, 0.55);
}

.teachers-marquee-section::before {
  top: 0;
}

.teachers-marquee-section::after {
  bottom: 0;
}

/* عنوان القسم */
.teachers-marquee-heading {
  position: relative;
  z-index: 3;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 28px;
}

.teachers-marquee-heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(26px, 3vw, 39px);
  line-height: 1.3;
}

.teachers-marquee-heading p {
  max-width: 500px;
  margin: 0;

  color: #47677c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

/* الحاوية الخارجية للشريط */
.teachers-marquee {
  position: relative;
  z-index: 3;

  width: 100%;
  overflow: hidden;
  padding: 15px 0 22px;

  direction: ltr;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

/* خط المدرسين المتحرك */
.teachers-marquee-track {
  display: flex;
  align-items: flex-start;

  width: max-content;
  min-width: max-content;

  gap: 26px;
  padding-inline: 30px;

  will-change: transform;

  animation:
    teachersMarqueeMove 28s linear infinite;
}

/* توقف الحركة عند وضع الماوس */
.teachers-marquee:hover .teachers-marquee-track,
.teachers-marquee:focus-within .teachers-marquee-track {
  animation-play-state: paused;
}

/* كارت المدرس */
.marquee-teacher-card {
  width: 220px;
  flex: 0 0 220px;

  direction: rtl;
  text-align: center;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.marquee-teacher-card:hover {
  transform: translateY(-9px);
}

/* رابط الكارت */
.marquee-teacher-card a {
  display: block;
  padding: 14px 12px 16px;

  color: inherit;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;

  box-shadow:
    0 14px 35px rgba(23, 105, 170, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.marquee-teacher-card:hover a {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(33, 167, 223, 0.55);

  box-shadow:
    0 20px 45px rgba(23, 105, 170, 0.22),
    0 0 24px rgba(33, 167, 223, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* صورة المدرس المربعة */
.marquee-teacher-card img {
  display: block;

  width: 185px;
  height: 185px;

  margin: 0 auto 14px;

  object-fit: cover;
  object-position: center top;

  border-radius: 16px;
  border: 4px solid rgba(255, 255, 255, 0.95);

  outline: 2px solid rgba(33, 167, 223, 0.32);

  background: var(--blue-soft);

  box-shadow:
    0 15px 30px rgba(23, 105, 170, 0.2),
    0 0 18px rgba(33, 167, 223, 0.12);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.marquee-teacher-card:hover img {
  transform: scale(1.025);

  box-shadow:
    0 20px 38px rgba(23, 105, 170, 0.27),
    0 0 25px rgba(33, 167, 223, 0.2);
}

/* اسم المدرس */
.marquee-teacher-card h3 {
  margin: 0;

  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* اسم المادة */
.marquee-teacher-card span {
  display: block;
  margin-top: 4px;

  color: var(--sky);
  font-size: 13px;
  font-weight: 800;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* رسائل التحميل والخطأ */
.teachers-marquee-message {
  width: 100vw;
  margin: 0;

  direction: rtl;
  text-align: center;

  color: var(--muted);
  font-weight: 700;
}

/*
  الحركة تبدأ من يمين الشاشة
  وتنتهي بعد خروج جميع العناصر من اليسار
*/
@keyframes teachersMarqueeMove {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}

/* تقليل الحركة لمن يفعّل الخيار من النظام */
@media (prefers-reduced-motion: reduce) {
  .teachers-marquee-track {
    animation: none;
    transform: none;
  }
}

/* التابلت */
@media (max-width: 900px) {
  .teachers-marquee-section {
    padding: 38px 0 43px;
  }

  .teachers-marquee-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .teachers-marquee-track {
    gap: 21px;
    animation-duration: 25s;
  }

  .marquee-teacher-card {
    width: 195px;
    flex-basis: 195px;
  }

  .marquee-teacher-card img {
    width: 160px;
    height: 160px;
    border-radius: 14px;
  }
}

/* الموبايل */
@media (max-width: 560px) {
  .teachers-marquee-section {
    padding: 32px 0 38px;
  }

  .teachers-marquee-heading {
    margin-bottom: 19px;
  }

  .teachers-marquee-heading p {
    font-size: 13px;
  }

  .teachers-marquee-track {
    gap: 16px;
    padding-inline: 20px;
    animation-duration: 22s;
  }

  .marquee-teacher-card {
    width: 165px;
    flex-basis: 165px;
  }

  .marquee-teacher-card a {
    padding: 10px 9px 13px;
    border-radius: 17px;
  }

  .marquee-teacher-card img {
    width: 140px;
    height: 140px;
    margin-bottom: 11px;

    border-width: 3px;
    border-radius: 12px;
  }

  .marquee-teacher-card h3 {
    font-size: 14px;
  }

  .marquee-teacher-card span {
    font-size: 12px;
  }
}/* ================= Fix Transparent PNG Hero Image ================= */

.hero-visual,
.hero-image {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  z-index: -1;

  background: radial-gradient(
    circle,
    rgba(33, 167, 223, 0.28),
    rgba(33, 167, 223, 0.08) 55%,
    transparent 72%
  );

  border-radius: 50%;
  filter: blur(25px);
  pointer-events: none;
}

.hero-image img,
#heroImage {
  display: block;
  width: 100%;
  height: 520px;

  object-fit: contain;
  object-position: center;

  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;

  box-shadow: none !important;
  filter: drop-shadow(
    0 28px 30px rgba(11, 37, 69, 0.18)
  );
}

/* Tablet */
@media (max-width: 900px) {
  .hero-image img,
  #heroImage {
    height: 430px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .hero-image img,
  #heroImage {
    height: 350px;
  }
}
/* ==================================================
   Dark Blue Creative Hero Waves
================================================== */

.hero-section {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;

  min-height: 650px;
  display: flex;
  align-items: center;

  background:
    radial-gradient(
      circle at 78% 22%,
      rgba(12, 82, 145, 0.28),
      transparent 32%
    ),
    radial-gradient(
      circle at 15% 75%,
      rgba(20, 123, 189, 0.22),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #d1eafa 0%,
      #e2f3fc 45%,
      #c5e3f6 100%
    ) !important;
}

/* إبقاء المحتوى أعلى التموجات */
.hero-section .container,
.hero-section .hero-grid {
  position: relative;
  z-index: 5;
}

/* الإعداد العام للتموجات */
.hero-wave {
  position: absolute;
  display: block !important;
  pointer-events: none;
  z-index: 1;

  border-radius:
    48% 52% 58% 42% /
    55% 42% 58% 45%;

  opacity: 1;
}

/* التموج الكبير أعلى اليسار */
.hero-wave-one {
  width: 850px;
  height: 520px;

  top: -260px;
  left: -280px;

  background:
    linear-gradient(
      135deg,
      rgba(8, 71, 132, 0.68),
      rgba(18, 119, 188, 0.32)
    );

  transform: rotate(-13deg);

  box-shadow:
    0 30px 80px rgba(7, 68, 128, 0.22),
    inset 0 -2px 0 rgba(255, 255, 255, 0.2);
}

/* التموج الكبير أسفل اليمين */
.hero-wave-two {
  width: 780px;
  height: 390px;

  right: -280px;
  bottom: -190px;

  background:
    linear-gradient(
      120deg,
      rgba(11, 83, 151, 0.62),
      rgba(28, 141, 205, 0.28)
    );

  transform: rotate(10deg);

  box-shadow:
    0 -25px 70px rgba(10, 78, 143, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.22);
}

/* التموج الخطي في منتصف الخلفية */
.hero-wave-three {
  width: 540px;
  height: 260px;

  right: 23%;
  top: 45px;

  background: transparent;

  border:
    3px solid rgba(8, 79, 145, 0.38);

  transform: rotate(-16deg);

  box-shadow:
    0 0 35px rgba(20, 127, 193, 0.14),
    inset 0 0 30px rgba(255, 255, 255, 0.12);
}

/* تموجات داخلية إضافية بدون HTML جديد */
.hero-section::before {
  content: "";
  position: absolute;

  width: 620px;
  height: 210px;

  left: 18%;
  bottom: -115px;

  z-index: 1;
  pointer-events: none;

  border-radius: 50%;

  border-top:
    3px solid rgba(9, 83, 149, 0.34);

  transform: rotate(7deg);

  box-shadow:
    0 -15px 45px rgba(13, 100, 170, 0.15);
}

.hero-section::after {
  content: "";
  position: absolute;

  width: 360px;
  height: 360px;

  right: 8%;
  top: 12%;

  z-index: 1;
  pointer-events: none;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(11, 91, 158, 0.14),
      rgba(26, 138, 201, 0.06) 52%,
      transparent 70%
    );

  filter: blur(8px);
}

/* ==================================================
   Keep Hero PNG Transparent
================================================== */

.hero-visual {
  position: relative;
  z-index: 6;
}

.hero-image {
  position: relative;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* توهج خلف الصورة فقط، بدون خلفية بيضاء */
.hero-image::before {
  content: "";
  position: absolute;

  inset: 10% 12%;
  z-index: -1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(10, 92, 158, 0.3),
      rgba(22, 130, 194, 0.1) 52%,
      transparent 72%
    );

  filter: blur(28px);
  pointer-events: none;
}

.hero-image img,
#heroImage {
  position: relative;
  z-index: 2;

  display: block;
  width: 100%;
  height: 520px;

  object-fit: contain;
  object-position: center;

  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  filter:
    drop-shadow(
      0 30px 32px rgba(5, 45, 88, 0.25)
    );
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 900px) {
  .hero-section {
    min-height: auto;
  }

  .hero-wave-one {
    width: 650px;
    height: 400px;
    left: -250px;
    top: -210px;
  }

  .hero-wave-two {
    width: 600px;
    height: 310px;
    right: -260px;
    bottom: -160px;
  }

  .hero-wave-three {
    width: 400px;
    height: 190px;
    right: 12%;
  }

  .hero-image img,
  #heroImage {
    height: 430px;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding-top: 45px;
  }

  .hero-wave-one {
    width: 470px;
    height: 300px;
    left: -230px;
    top: -150px;
  }

  .hero-wave-two {
    width: 440px;
    height: 230px;
    right: -220px;
    bottom: -110px;
  }

  .hero-wave-three {
    width: 280px;
    height: 140px;
    right: 5%;
    top: 85px;
  }

  .hero-image img,
  #heroImage {
    height: 350px;
  }
}
/* ================= Larger Hero Image Area ================= */

.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 30px;
}

.hero-visual {
  width: 100%;
  max-width: none;
}

.hero-image {
  width: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img,
#heroImage {
  width: 115%;
  max-width: none;
  height: 620px;
  object-fit: contain;
  object-position: center;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 500px;
  }

  .hero-image img,
  #heroImage {
    width: 100%;
    height: 500px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .hero-image {
    min-height: 420px;
  }

  .hero-image img,
  #heroImage {
    width: 110%;
    height: 420px;
  }
}/* ================= Compact Hero Section ================= */

.hero-section {
  min-height: 520px !important;
  padding: 35px 0 !important;
}

.hero-grid {
  min-height: auto !important;
  gap: 20px !important;
  align-items: center;
}

.hero-image {
  min-height: auto !important;
}

.hero-image img,
#heroImage {
  height: 460px !important;
  width: 100% !important;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-section {
    min-height: auto !important;
    padding: 30px 0 !important;
  }

  .hero-image img,
  #heroImage {
    height: 390px !important;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .hero-section {
    padding: 25px 0 !important;
  }

  .hero-image img,
  #heroImage {
    height: 320px !important;
  }
}
/* ==================================================
   Creative Compact Hero Section
================================================== */

.hero-section {
  position: relative !important;
  min-height: 500px !important;
  padding: 35px 0 25px !important;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(
      circle at 15% 12%,
      rgba(18, 102, 169, 0.48),
      transparent 27%
    ),
    radial-gradient(
      circle at 82% 75%,
      rgba(32, 147, 211, 0.28),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #b9d9ed 0%,
      #d9edf8 44%,
      #b6d6eb 100%
    ) !important;

  border-bottom: 1px solid rgba(9, 80, 144, 0.2);
}

/* شبكة الهيرو */
.hero-section .hero-grid {
  position: relative;
  z-index: 6;

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;

  min-height: 430px;
  gap: 35px;
}

/* دائرة كبيرة إبداعية */
.hero-section::before {
  content: "";
  position: absolute;

  width: 580px;
  height: 580px;

  top: -330px;
  left: -170px;

  z-index: 1;
  pointer-events: none;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(8, 72, 136, 0.52),
      rgba(24, 133, 201, 0.2)
    );

  box-shadow:
    0 40px 90px rgba(5, 60, 116, 0.22),
    inset 0 -2px 0 rgba(255, 255, 255, 0.23);
}

/* دائرة أسفل اليمين */
.hero-section::after {
  content: "";
  position: absolute;

  width: 600px;
  height: 270px;

  right: -190px;
  bottom: -165px;

  z-index: 1;
  pointer-events: none;

  border-radius: 50%;

  background:
    linear-gradient(
      120deg,
      rgba(10, 86, 151, 0.52),
      rgba(27, 137, 202, 0.25)
    );

  transform: rotate(9deg);

  box-shadow:
    0 -25px 65px rgba(7, 71, 132, 0.18);
}

/* التموجات */
.hero-wave {
  position: absolute;
  display: block !important;

  z-index: 2;
  pointer-events: none;

  border-radius:
    48% 52% 57% 43% /
    55% 43% 57% 45%;
}

/* خط بيضاوي خلف المحتوى */
.hero-wave-one {
  width: 590px;
  height: 270px;

  top: 20px;
  left: 35%;

  background: transparent;

  border: 3px solid rgba(10, 87, 154, 0.33);

  transform: rotate(-14deg);

  box-shadow:
    0 0 25px rgba(18, 115, 181, 0.1),
    inset 0 0 25px rgba(255, 255, 255, 0.08);
}

/* تموج شفاف خلف الصورة */
.hero-wave-two {
  width: 480px;
  height: 220px;

  left: 6%;
  bottom: -90px;

  background:
    linear-gradient(
      135deg,
      rgba(21, 119, 185, 0.25),
      rgba(255, 255, 255, 0.03)
    );

  transform: rotate(8deg);
}

/* خط زخرفي إضافي */
.hero-wave-three {
  width: 320px;
  height: 150px;

  right: 8%;
  top: 55px;

  background: transparent;

  border-top: 2px solid rgba(8, 75, 139, 0.28);
  border-right: 2px solid rgba(8, 75, 139, 0.18);

  transform: rotate(12deg);
}

/* محتوى النص */
.hero-content {
  position: relative;
  z-index: 7;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 14px;
  padding: 8px 15px;

  color: #0875ba;
  font-size: 15px;
  font-weight: 800;

  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;

  box-shadow:
    0 8px 25px rgba(10, 85, 149, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-content h1 {
  margin: 0 0 14px;

  color: #082c52;
  font-size: clamp(40px, 5vw, 67px);
  font-weight: 900;
  line-height: 1.12;

  text-shadow:
    0 10px 30px rgba(4, 48, 91, 0.08);
}

.hero-content p {
  max-width: 570px;
  margin: 0 0 22px;

  color: #536f87;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.9;
}

/* الأزرار */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn-primary {
  background:
    linear-gradient(
      135deg,
      #0876ba,
      #20a5dc
    );

  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    0 15px 30px rgba(8, 105, 171, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px);

  box-shadow:
    0 20px 38px rgba(8, 105, 171, 0.34);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    0 12px 27px rgba(8, 72, 132, 0.12);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* صورة الهيرو */
.hero-visual {
  position: relative;
  z-index: 7;

  width: 100%;
}

.hero-image {
  position: relative;

  min-height: 430px !important;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* توهج خلف الصورة */
.hero-image::before {
  content: "";
  position: absolute;

  width: 72%;
  height: 68%;

  left: 50%;
  bottom: 6%;

  z-index: -1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(14, 101, 169, 0.34),
      rgba(30, 145, 207, 0.12) 52%,
      transparent 72%
    );

  filter: blur(28px);
  transform: translateX(-50%);
}

.hero-image img,
#heroImage {
  display: block;

  width: 115% !important;
  max-width: none !important;
  height: 455px !important;

  object-fit: contain;
  object-position: center bottom;

  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  filter:
    drop-shadow(
      0 28px 27px rgba(5, 46, 89, 0.25)
    );
}

/* إخفاء البوكسات العائمة القديمة */
.hero-floating-card,
.hero-card-top,
.hero-card-bottom {
  display: none !important;
}/* ==================================================
   Creative Teachers Showcase
================================================== */

.teachers-marquee-section {
  position: relative;
  z-index: 8;

  margin: 0;
  padding: 42px 0 48px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 12% 40%,
      rgba(34, 156, 216, 0.24),
      transparent 25%
    ),
    radial-gradient(
      circle at 88% 70%,
      rgba(7, 83, 148, 0.23),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #a9cee5 0%,
      #c2e0ef 48%,
      #a4cbe4 100%
    );

  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(8, 81, 145, 0.27);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    0 15px 45px rgba(5, 69, 128, 0.12);
}

/* خط إضاءة أعلى وأسفل الشريط */
.teachers-marquee-section::before,
.teachers-marquee-section::after {
  content: "";
  position: absolute;

  left: 10%;
  right: 10%;

  height: 2px;
  z-index: 2;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(20, 134, 199, 0.65),
      rgba(255, 255, 255, 0.95),
      rgba(20, 134, 199, 0.65),
      transparent
    );

  box-shadow:
    0 0 18px rgba(17, 129, 196, 0.65);
}

.teachers-marquee-section::before {
  top: 0;
}

.teachers-marquee-section::after {
  bottom: 0;
}

/* أشكال زخرفية في الخلفية */
.teachers-marquee-section .container {
  position: relative;
  z-index: 4;
}

.teachers-marquee-heading {
  position: relative;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 25px;
}

.teachers-marquee-heading::before {
  content: "";

  position: absolute;
  right: 0;
  bottom: -11px;

  width: 72px;
  height: 4px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #0874b7,
      #24a8df
    );

  box-shadow:
    0 0 15px rgba(20, 144, 207, 0.4);
}

.teachers-marquee-heading h2 {
  margin: 0;

  color: #072f56;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.25;
}

.teachers-marquee-heading p {
  max-width: 490px;
  margin: 0;

  color: #46677f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

/* الشريط */
.teachers-marquee {
  position: relative;
  z-index: 5;

  width: 100%;
  overflow: hidden;

  padding: 15px 0 21px;

  direction: ltr;

  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
}

.teachers-marquee-track {
  display: flex;
  align-items: stretch;

  width: max-content;
  min-width: max-content;

  gap: 24px;
  padding-inline: 32px;

  will-change: transform;

  animation:
    teachersMarqueeMove 27s linear infinite;
}

.teachers-marquee:hover .teachers-marquee-track,
.teachers-marquee:focus-within .teachers-marquee-track {
  animation-play-state: paused;
}

/* كارت المدرس */
.marquee-teacher-card {
  width: 218px;
  flex: 0 0 218px;

  direction: rtl;
  text-align: center;

  transition:
    transform 0.3s ease;
}

.marquee-teacher-card:hover {
  transform: translateY(-10px);
}

.marquee-teacher-card a {
  position: relative;

  display: block;
  height: 100%;

  padding: 12px 12px 17px;

  color: inherit;
  text-decoration: none;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.65),
      rgba(235, 248, 255, 0.36)
    );

  border: 1px solid rgba(255, 255, 255, 0.87);
  border-radius: 24px;

  box-shadow:
    0 18px 38px rgba(5, 71, 130, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  overflow: hidden;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* خط إضاءة أعلى الكارت */
.marquee-teacher-card a::before {
  content: "";

  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;

  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(27, 157, 217, 0.9),
      transparent
    );

  box-shadow:
    0 0 14px rgba(27, 157, 217, 0.6);
}

.marquee-teacher-card:hover a {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.83),
      rgba(232, 248, 255, 0.56)
    );

  border-color: rgba(21, 143, 205, 0.58);

  box-shadow:
    0 24px 50px rgba(4, 66, 122, 0.22),
    0 0 24px rgba(26, 151, 213, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* صورة المدرس */
.marquee-teacher-card img {
  display: block;

  width: 188px;
  height: 188px;

  margin: 0 auto 14px;

  object-fit: cover;
  object-position: center top;

  background: #cde7f4;

  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 18px;

  outline: 1px solid rgba(13, 101, 167, 0.32);

  box-shadow:
    0 16px 30px rgba(4, 67, 124, 0.2),
    0 0 17px rgba(23, 145, 205, 0.14);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.marquee-teacher-card:hover img {
  transform: scale(1.035);

  box-shadow:
    0 22px 38px rgba(4, 62, 116, 0.27),
    0 0 23px rgba(19, 142, 204, 0.22);
}

.marquee-teacher-card h3 {
  margin: 0;

  color: #092f54;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marquee-teacher-card span {
  display: block;

  margin-top: 4px;

  color: #087bbd;
  font-size: 13px;
  font-weight: 800;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* حركة الشريط من اليمين إلى اليسار */
@keyframes teachersMarqueeMove {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}
/* ================= Compact Hero Section ================= */

.hero-section {
  min-height: 520px !important;
  padding: 35px 0 !important;
}

.hero-grid {
  min-height: auto !important;
  gap: 20px !important;
  align-items: center;
}

.hero-image {
  min-height: auto !important;
}

.hero-image img,
#heroImage {
  height: 460px !important;
  width: 100% !important;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-section {
    min-height: auto !important;
    padding: 30px 0 !important;
  }

  .hero-image img,
  #heroImage {
    height: 390px !important;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .hero-section {
    padding: 25px 0 !important;
  }

  .hero-image img,
  #heroImage {
    height: 320px !important;
  }
}/* ==================================================
   Teachers Marquee – White Creative Compact Style
================================================== */

.teachers-marquee-section {
  position: relative;
  z-index: 5;

  width: 100%;
  padding: 22px 0;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 12% 35%,
      rgba(33, 167, 223, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 87% 65%,
      rgba(23, 105, 170, 0.07),
      transparent 25%
    ),
    #ffffff;

  border-top: 1px solid rgba(33, 167, 223, 0.15);
  border-bottom: 1px solid rgba(33, 167, 223, 0.15);

  box-shadow:
    inset 0 10px 25px rgba(33, 167, 223, 0.025),
    inset 0 -10px 25px rgba(33, 167, 223, 0.025);
}

/* خط مضيء أعلى وأسفل الشريط */
.teachers-marquee-section::before,
.teachers-marquee-section::after {
  content: "";
  position: absolute;
  right: 12%;
  left: 12%;

  height: 1px;
  z-index: 2;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(33, 167, 223, 0.45),
    rgba(255, 255, 255, 0.95),
    rgba(33, 167, 223, 0.45),
    transparent
  );

  box-shadow:
    0 0 10px rgba(33, 167, 223, 0.25),
    0 0 18px rgba(33, 167, 223, 0.12);
}

.teachers-marquee-section::before {
  top: 0;
}

.teachers-marquee-section::after {
  bottom: 0;
}

/* ================= الرموز المتحركة ================= */

.teachers-floating-symbol {
  position: absolute;
  z-index: 1;
  pointer-events: none;

  color: rgba(33, 167, 223, 0.17);
  font-weight: 800;
  line-height: 1;

  animation: teacherSymbolFloat 6s ease-in-out infinite;
}

.symbol-one {
  top: 18%;
  left: 5%;
  font-size: 28px;
  animation-delay: 0s;
}

.symbol-two {
  right: 7%;
  bottom: 20%;
  font-size: 24px;
  animation-delay: -1.5s;
}

.symbol-three {
  top: 13%;
  right: 27%;
  font-size: 33px;
  animation-delay: -3s;
}

.symbol-four {
  bottom: 12%;
  left: 27%;
  font-size: 24px;
  animation-delay: -2s;
}

.symbol-five {
  top: 48%;
  left: 48%;
  font-size: 22px;
  animation-delay: -4s;
}

@keyframes teacherSymbolFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-15px) rotate(12deg);
    opacity: 0.8;
  }
}

/* ================= الحاوية الخارجية ================= */

.teachers-marquee {
  position: relative;
  z-index: 3;

  width: 100%;
  padding: 15px 0 20px;
  overflow: hidden;

  direction: ltr;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}

/* ================= المسار المتحرك ================= */

.teachers-marquee-track {
  display: flex;
  align-items: center;

  width: max-content;
  min-width: max-content;

  gap: 24px;
  padding-inline: 30px;

  will-change: transform;

  animation: teachersMarqueeMove 28s linear infinite;
}

/* توقف الحركة عند الوقوف على الشريط */
.teachers-marquee:hover .teachers-marquee-track,
.teachers-marquee:focus-within .teachers-marquee-track {
  animation-play-state: paused;
}

@keyframes teachersMarqueeMove {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ================= كارت المدرس ================= */

.marquee-teacher-card {
  position: relative;

  width: 205px;
  height: 245px;

  flex: 0 0 205px;

  direction: rtl;
  text-align: center;

  border-radius: 18px;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

/* الكارت يرتفع عند الوقوف عليه */
.marquee-teacher-card:hover {
  z-index: 10;

  transform:
    translateY(-14px)
    scale(1.035);
}

/* رابط الكارت */
.marquee-teacher-card a {
  position: relative;

  display: block;
  width: 100%;
  height: 100%;

  overflow: hidden;
  border-radius: 18px;

  color: inherit;
  text-decoration: none;

  background: #ffffff;
  border: 1px solid rgba(23, 105, 170, 0.12);

  box-shadow:
    0 10px 24px rgba(16, 71, 110, 0.13),
    0 3px 8px rgba(16, 71, 110, 0.07);

  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.marquee-teacher-card:hover a {
  border-color: rgba(33, 167, 223, 0.55);

  box-shadow:
    0 22px 45px rgba(23, 105, 170, 0.22),
    0 7px 17px rgba(23, 105, 170, 0.13),
    0 0 0 3px rgba(33, 167, 223, 0.08),
    0 0 25px rgba(33, 167, 223, 0.16);
}

/* ================= صورة المدرس ================= */

.marquee-teacher-card img {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0;

  object-fit: cover;
  object-position: center top;

  border: 0;
  outline: 0;
  border-radius: 18px;

  background: #eef8fd;

  filter:
    saturate(0.95)
    contrast(1.02);

  transition:
    transform 0.5s ease,
    filter 0.35s ease;
}

/* تكبير الصورة قليلًا عند الوقوف عليها */
.marquee-teacher-card:hover img {
  transform: scale(1.06);

  filter:
    saturate(1.08)
    contrast(1.04)
    brightness(1.02);
}

/* تدرج أسفل الصورة لظهور الاسم */
.marquee-teacher-card a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 48%;

  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(4, 31, 52, 0.88) 0%,
    rgba(4, 31, 52, 0.56) 38%,
    rgba(4, 31, 52, 0.08) 80%,
    transparent 100%
  );

  transition:
    height 0.35s ease,
    background 0.35s ease;
}

.marquee-teacher-card:hover a::after {
  height: 55%;

  background: linear-gradient(
    to top,
    rgba(4, 38, 65, 0.92) 0%,
    rgba(10, 91, 145, 0.55) 42%,
    rgba(33, 167, 223, 0.08) 82%,
    transparent 100%
  );
}

/* ================= اسم المدرس ================= */

.marquee-teacher-card h3 {
  position: absolute;
  right: 12px;
  bottom: 33px;
  left: 12px;
  z-index: 3;

  margin: 0;

  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition: transform 0.35s ease;
}

/* المادة */
.marquee-teacher-card span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 3;

  display: block;
  margin: 0;

  color: rgba(255, 255, 255, 0.87);
  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition:
    color 0.35s ease,
    transform 0.35s ease;
}

.marquee-teacher-card:hover h3,
.marquee-teacher-card:hover span {
  transform: translateY(-3px);
}

.marquee-teacher-card:hover span {
  color: #bdeaff;
}

/* ================= رسالة التحميل ================= */

.teachers-marquee-message {
  width: 100vw;
  margin: 0;

  direction: rtl;
  text-align: center;

  color: var(--muted);
  font-weight: 700;
}

/* ================= التابلت ================= */

@media (max-width: 900px) {
  .teachers-marquee-section {
    padding: 18px 0;
  }

  .teachers-marquee {
    padding: 13px 0 18px;
  }

  .teachers-marquee-track {
    gap: 19px;
    animation-duration: 25s;
  }

  .marquee-teacher-card {
    width: 185px;
    height: 225px;
    flex-basis: 185px;
  }

  .marquee-teacher-card h3 {
    font-size: 15px;
  }
}

/* ================= الموبايل ================= */

@media (max-width: 560px) {
  .teachers-marquee-section {
    padding: 14px 0;
  }

  .teachers-marquee {
    padding: 12px 0 17px;
  }

  .teachers-marquee-track {
    gap: 15px;
    padding-inline: 18px;
    animation-duration: 22s;
  }

  .marquee-teacher-card {
    width: 155px;
    height: 195px;
    flex-basis: 155px;

    border-radius: 15px;
  }

  .marquee-teacher-card a,
  .marquee-teacher-card img {
    border-radius: 15px;
  }

  .marquee-teacher-card:hover {
    transform:
      translateY(-10px)
      scale(1.025);
  }

  .marquee-teacher-card h3 {
    right: 9px;
    bottom: 29px;
    left: 9px;

    font-size: 14px;
  }

  .marquee-teacher-card span {
    right: 9px;
    bottom: 9px;
    left: 9px;

    font-size: 11px;
  }

  .teachers-floating-symbol {
    font-size: 18px;
  }
}

/* إلغاء الحركة لمن يفعّل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .teachers-marquee-track {
    animation: none;
    transform: none;
  }

  .teachers-floating-symbol {
    animation: none;
  }
}
/* ==================================================
   Hero Section – White Clean Scientific Creative Style
================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: #ffffff;
}

/* محتوى الهيرو فوق الخلفية */
.hero-section .hero-grid {
  position: relative;
  z-index: 3;
}

/* طبقة الخلفية */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ================= Blue Creative Waves ================= */

.hero-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  opacity: 1;
}

.hero-wave-one {
  width: 760px;
  height: 760px;
  top: -280px;
  left: -220px;
  background:
    radial-gradient(
      circle,
      rgba(33, 167, 223, 0.14) 0%,
      rgba(33, 167, 223, 0.08) 35%,
      rgba(33, 167, 223, 0.03) 58%,
      transparent 72%
    );
  animation: heroWaveFloatOne 10s ease-in-out infinite;
}

.hero-wave-two {
  width: 620px;
  height: 620px;
  right: -170px;
  bottom: -180px;
  background:
    radial-gradient(
      circle,
      rgba(23, 105, 170, 0.14) 0%,
      rgba(23, 105, 170, 0.07) 38%,
      rgba(23, 105, 170, 0.025) 60%,
      transparent 74%
    );
  animation: heroWaveFloatTwo 11s ease-in-out infinite;
}

.hero-wave-three {
  width: 440px;
  height: 440px;
  top: 70px;
  right: 20%;
  background:
    radial-gradient(
      circle,
      rgba(125, 208, 245, 0.18) 0%,
      rgba(125, 208, 245, 0.07) 40%,
      transparent 72%
    );
  animation: heroWaveFloatThree 8s ease-in-out infinite;
}

/* ================= Scientific Symbols ================= */

.hero-symbol {
  position: absolute;
  z-index: 1;
  color: rgba(23, 105, 170, 0.16);
  font-weight: 800;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(33, 167, 223, 0.08);
}

.symbol-1 {
  top: 16%;
  left: 8%;
  font-size: 34px;
  animation: scientificFloat 6s ease-in-out infinite;
}

.symbol-2 {
  top: 24%;
  right: 10%;
  font-size: 30px;
  animation: scientificFloat 7s ease-in-out infinite -1.5s;
}

.symbol-3 {
  bottom: 24%;
  left: 14%;
  font-size: 40px;
  animation: scientificFloat 8s ease-in-out infinite -2.2s;
}

.symbol-4 {
  top: 14%;
  right: 28%;
  font-size: 28px;
  animation: scientificFloat 6.5s ease-in-out infinite -0.8s;
}

.symbol-5 {
  bottom: 18%;
  right: 13%;
  font-size: 36px;
  animation: scientificFloat 7.5s ease-in-out infinite -2.8s;
}

.symbol-6 {
  top: 50%;
  left: 48%;
  font-size: 24px;
  animation: scientificFloat 6s ease-in-out infinite -1.2s;
}

/* ================= Extra subtle lines ================= */

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(33, 167, 223, 0.03) 30%,
      transparent 60%
    );
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(33, 167, 223, 0.035),
      transparent 55%
    );
}

/* ================= Hero Image style (optional elegant touch) ================= */

.hero-visual {
  position: relative;
  z-index: 3;
}

.hero-image {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 9% 10%;
  z-index: -1;
  background:
    radial-gradient(
      circle,
      rgba(33, 167, 223, 0.20),
      rgba(33, 167, 223, 0.05) 55%,
      transparent 72%
    );
  filter: blur(24px);
  border-radius: 50%;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(16, 62, 110, 0.14));
  border-radius: 0;
}

/* ================= Animations ================= */

@keyframes scientificFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-14px) rotate(8deg) scale(1.06);
    opacity: 0.9;
  }
}

@keyframes heroWaveFloatOne {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(22px, 18px) scale(1.05);
  }
}

@keyframes heroWaveFloatTwo {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-18px, -16px) scale(1.04);
  }
}

@keyframes heroWaveFloatThree {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(0, 16px) scale(1.07);
  }
}

/* ================= Responsive ================= */

@media (max-width: 900px) {
  .hero-section {
    min-height: auto;
  }

  .hero-image img {
    height: 430px;
  }

  .hero-wave-one {
    width: 560px;
    height: 560px;
    top: -210px;
    left: -180px;
  }

  .hero-wave-two {
    width: 480px;
    height: 480px;
    right: -140px;
    bottom: -150px;
  }

  .hero-wave-three {
    width: 320px;
    height: 320px;
    right: 12%;
    top: 90px;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding-top: 45px;
  }

  .hero-image img {
    height: 350px;
  }

  .hero-symbol {
    opacity: 0.7;
  }

  .symbol-1,
  .symbol-2,
  .symbol-3,
  .symbol-4,
  .symbol-5,
  .symbol-6 {
    font-size: 20px;
  }

  .hero-wave-one {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -120px;
  }

  .hero-wave-two {
    width: 330px;
    height: 330px;
    right: -100px;
    bottom: -100px;
  }

  .hero-wave-three {
    width: 220px;
    height: 220px;
    top: 120px;
    right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave,
  .hero-symbol {
    animation: none;
  }
}
/* Hero clean white background */

.hero-section {
  background: #ffffff !important;
}

.hero-bg-layer {
  background: transparent !important;
}

.hero-wave {
  display: none !important;
}

.hero-section::before,
.hero-section::after {
  display: none !important;
}
/* ================= Hero Mobile Layout Fix ================= */

@media (max-width: 768px) {
  .hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px;
    align-items: center;
  }

  .hero-content,
  .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    order: 1;
    text-align: center;
  }

  .hero-visual {
    order: 2;
    display: flex;
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
  }

  .hero-actions,
  .hero-stats,
  .hero-features {
    justify-content: center;
  }
}/* ==================================================
   Creative White & Light Blue Hero Background
================================================== */

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 650px;
  display: flex;
  align-items: center;

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #ffffff 42%,
      #f5fbff 72%,
      #eaf7ff 100%
    );
}

/* المحتوى فوق عناصر الخلفية */
.hero-section .hero-grid {
  position: relative;
  z-index: 5;
}

/* طبقة الخلفية */
.hero-creative-background {
  position: absolute;
  inset: 0;
  z-index: 0;

  overflow: hidden;
  pointer-events: none;
}

/* =========================================
   Educational grid pattern
========================================= */

.hero-grid-pattern {
  position: absolute;
  inset: 0;

  opacity: 0.42;

  background-image:
    linear-gradient(
      rgba(33, 167, 223, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(33, 167, 223, 0.045) 1px,
      transparent 1px
    );

  background-size: 44px 44px;

  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.25) 55%,
    transparent
  );

  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.25) 55%,
    transparent
  );

  animation: heroGridMovement 22s linear infinite;
}

/* =========================================
   Creative flowing blue lines
========================================= */

.hero-flow-line {
  position: absolute;

  width: 700px;
  height: 220px;

  border: 2px solid rgba(33, 167, 223, 0.13);
  border-left-color: transparent;
  border-right-color: transparent;

  border-radius: 50%;

  filter:
    drop-shadow(0 0 10px rgba(33, 167, 223, 0.08));

  opacity: 0.9;
}

.hero-flow-line-one {
  top: -70px;
  right: -170px;

  transform: rotate(-10deg);

  animation: heroFlowOne 11s ease-in-out infinite;
}

.hero-flow-line-two {
  width: 850px;
  height: 260px;

  right: -240px;
  bottom: -95px;

  border-color: rgba(23, 105, 170, 0.1);
  border-left-color: transparent;
  border-right-color: transparent;

  transform: rotate(8deg);

  animation: heroFlowTwo 13s ease-in-out infinite;
}

.hero-flow-line-three {
  width: 500px;
  height: 180px;

  top: 42%;
  left: -260px;

  border-color: rgba(92, 196, 235, 0.12);
  border-left-color: transparent;
  border-right-color: transparent;

  transform: rotate(-18deg);

  animation: heroFlowThree 9s ease-in-out infinite;
}

/* خط داخلي مضيء */
.hero-flow-line::after {
  content: "";
  position: absolute;
  inset: 8px;

  border: 1px solid rgba(33, 167, 223, 0.055);
  border-left-color: transparent;
  border-right-color: transparent;

  border-radius: inherit;
}

/* =========================================
   Scientific symbols
========================================= */

.hero-science-symbol {
  position: absolute;
  z-index: 2;

  color: rgba(23, 105, 170, 0.11);

  font-family:
    "Cairo",
    Arial,
    sans-serif;

  font-weight: 900;
  line-height: 1;

  user-select: none;

  text-shadow:
    0 0 15px rgba(33, 167, 223, 0.07);

  animation: heroScienceFloat 7s ease-in-out infinite;
}

.hero-science-symbol-1 {
  top: 15%;
  left: 8%;

  font-size: 32px;
  animation-delay: 0s;
}

.hero-science-symbol-2 {
  top: 19%;
  right: 11%;

  font-size: 29px;
  animation-delay: -1.3s;
}

.hero-science-symbol-3 {
  bottom: 20%;
  left: 12%;

  font-size: 39px;
  animation-delay: -2.8s;
}

.hero-science-symbol-4 {
  right: 7%;
  bottom: 16%;

  font-size: 35px;
  animation-delay: -4.2s;
}

.hero-science-symbol-5 {
  top: 48%;
  right: 43%;

  font-size: 25px;
  animation-delay: -2s;
}

.hero-science-symbol-6 {
  top: 9%;
  left: 43%;

  font-size: 25px;
  animation-delay: -5s;
}

/* =========================================
   Small glowing dots
========================================= */

.hero-light-dot {
  position: absolute;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: rgba(33, 167, 223, 0.5);

  box-shadow:
    0 0 0 6px rgba(33, 167, 223, 0.055),
    0 0 18px rgba(33, 167, 223, 0.35);

  animation: heroDotPulse 4s ease-in-out infinite;
}

.hero-light-dot-1 {
  top: 23%;
  left: 24%;
}

.hero-light-dot-2 {
  top: 65%;
  right: 19%;

  animation-delay: -1.5s;
}

.hero-light-dot-3 {
  right: 38%;
  bottom: 10%;

  animation-delay: -2.7s;
}

.hero-light-dot-4 {
  top: 11%;
  right: 34%;

  animation-delay: -3.4s;
}

/* =========================================
   Soft white overlay
========================================= */

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.7) 48%,
      rgba(234, 247, 255, 0.12)
    );
}

/* لمعة لبني خفيفة قرب الصورة */
.hero-section::after {
  content: "";
  position: absolute;
  z-index: 1;

  width: 360px;
  height: 360px;

  left: 6%;
  top: 50%;

  transform: translateY(-50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(33, 167, 223, 0.11) 0%,
      rgba(33, 167, 223, 0.035) 45%,
      transparent 72%
    );

  filter: blur(25px);
  pointer-events: none;
}

/* =========================================
   Hero image
========================================= */

.hero-visual {
  position: relative;
  z-index: 6;
}

.hero-image {
  position: relative;

  padding: 0;
  border: 0;

  background: transparent;
  box-shadow: none;
}

.hero-image img {
  display: block;

  width: 100%;
  height: 520px;

  object-fit: contain;

  filter:
    drop-shadow(0 25px 30px rgba(17, 75, 119, 0.14));
}

/* =========================================
   Animations
========================================= */

@keyframes heroGridMovement {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 44px 44px;
  }
}

@keyframes heroFlowOne {
  0%,
  100% {
    transform:
      translate(0, 0)
      rotate(-10deg);
  }

  50% {
    transform:
      translate(-25px, 13px)
      rotate(-7deg);
  }
}

@keyframes heroFlowTwo {
  0%,
  100% {
    transform:
      translate(0, 0)
      rotate(8deg);
  }

  50% {
    transform:
      translate(28px, -15px)
      rotate(5deg);
  }
}

@keyframes heroFlowThree {
  0%,
  100% {
    transform:
      translate(0, 0)
      rotate(-18deg);
  }

  50% {
    transform:
      translate(35px, -12px)
      rotate(-14deg);
  }
}

@keyframes heroScienceFloat {
  0%,
  100% {
    transform:
      translateY(0)
      rotate(0deg);

    opacity: 0.35;
  }

  50% {
    transform:
      translateY(-14px)
      rotate(8deg);

    opacity: 0.9;
  }
}

@keyframes heroDotPulse {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.35;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 900px) {
  .hero-section {
    min-height: auto;
  }

  .hero-image img {
    height: 430px;
  }

  .hero-flow-line-one {
    right: -330px;
  }

  .hero-flow-line-two {
    right: -390px;
  }

  .hero-section::after {
    width: 280px;
    height: 280px;

    left: 50%;
    top: 70%;

    transform: translate(-50%, -50%);
  }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 560px) {
  .hero-section {
    padding-top: 40px;

    background:
      linear-gradient(
        180deg,
        #ffffff 0%,
        #ffffff 52%,
        #eef9ff 100%
      );
  }

  .hero-grid-pattern {
    background-size: 32px 32px;
    opacity: 0.32;
  }

  .hero-flow-line {
    opacity: 0.6;
  }

  .hero-flow-line-one {
    width: 430px;
    height: 150px;

    top: -55px;
    right: -240px;
  }

  .hero-flow-line-two {
    width: 500px;
    height: 170px;

    right: -270px;
    bottom: -45px;
  }

  .hero-flow-line-three {
    display: none;
  }

  .hero-science-symbol {
    font-size: 20px;
  }

  .hero-light-dot {
    width: 5px;
    height: 5px;
  }

  .hero-image img {
    height: auto;
    max-height: 350px;
  }
}

/* =========================================
   Reduced motion
========================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-grid-pattern,
  .hero-flow-line,
  .hero-science-symbol,
  .hero-light-dot {
    animation: none;
  }
}
/* ==================================================
   Home Refresh – Teachers Showcase + Creative Stages
   Applied to the original project version
================================================== */

/* ================= Teachers Showcase ================= */

.teachers-marquee-section {
  padding: 70px 0 54px;
  background:
    radial-gradient(circle at 14% 16%, rgba(98, 201, 243, 0.22), transparent 24%),
    radial-gradient(circle at 88% 76%, rgba(33, 167, 223, 0.17), transparent 27%),
    linear-gradient(180deg, #f7fcff 0%, #ffffff 100%);
  border-top: 0;
  border-bottom: 0;
  box-shadow: none;
  isolation: isolate;
}

.teachers-marquee-section::before {
  top: 30px;
  right: auto;
  left: 7%;
  width: 92px;
  height: 92px;
  border: 18px solid rgba(98, 201, 243, 0.18);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.teachers-marquee-section::after {
  right: 5%;
  bottom: 22px;
  left: auto;
  width: 120px;
  height: 120px;
  border-radius: 34px;
  background-image: radial-gradient(rgba(23, 105, 170, 0.23) 2px, transparent 2px);
  background-size: 15px 15px;
  box-shadow: none;
  transform: rotate(8deg);
}

.teachers-orbit {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(23, 105, 170, 0.12);
  border-radius: 50%;
}

.teachers-orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #62c9f3;
  box-shadow: 0 0 0 7px rgba(98, 201, 243, 0.18);
}

.teachers-orbit-one {
  width: 260px;
  height: 260px;
  top: -105px;
  right: 13%;
  animation: teachersOrbitSpin 18s linear infinite;
}

.teachers-orbit-one::after {
  top: 42px;
  left: 28px;
}

.teachers-orbit-two {
  width: 180px;
  height: 180px;
  bottom: -86px;
  left: 18%;
  animation: teachersOrbitSpin 14s linear infinite reverse;
}

.teachers-orbit-two::after {
  right: 22px;
  bottom: 26px;
}

.teachers-showcase-head {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.teachers-showcase-copy {
  max-width: 650px;
}

.teachers-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #705b00;
  background: #e7f8ff;
  border: 1px solid rgba(98, 201, 243, 0.55);
  font-size: 13px;
  font-weight: 900;
}

.teachers-showcase-badge i {
  color: #159acb;
}

.teachers-showcase-copy h2 {
  margin: 0 0 11px;
  color: var(--blue-dark);
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -1px;
}

.teachers-showcase-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.9;
}

.teachers-showcase-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 18px;
  color: var(--blue-dark);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(23, 105, 170, 0.14);
  box-shadow: 0 14px 32px rgba(17, 75, 119, 0.10);
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.teachers-showcase-action i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #0c6387;
  background: #62c9f3;
}

.teachers-showcase-action:hover {
  transform: translateY(-4px);
  background: #f4fbff;
  box-shadow: 0 20px 40px rgba(17, 75, 119, 0.15);
}

.teachers-marquee {
  z-index: 3;
  padding: 18px 0 30px;
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.teachers-marquee-track {
  align-items: stretch;
  gap: 26px;
  padding-inline: 13px;
  animation: teachersMarqueeCreativeMove 36s linear infinite;
}

@keyframes teachersMarqueeCreativeMove {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 13px), 0, 0);
  }
}

.marquee-teacher-card {
  width: 270px;
  height: 340px;
  flex: 0 0 270px;
  border-radius: 34px 34px 92px 34px;
  transform: translateY(0);
}

.marquee-teacher-card:nth-child(3n + 2) {
  transform: translateY(14px);
}

.marquee-teacher-card:nth-child(3n + 3) {
  transform: translateY(6px);
}

.marquee-teacher-card:hover {
  transform: translateY(-12px) scale(1.025);
}

.marquee-teacher-card a {
  border-radius: 34px 34px 92px 34px;
  border: 1px solid rgba(23, 105, 170, 0.13);
  box-shadow:
    0 24px 55px rgba(17, 75, 119, 0.14),
    0 8px 18px rgba(17, 75, 119, 0.08);
}

.marquee-teacher-card a::before {
  content: "مدرس";
  position: absolute;
  z-index: 5;
  top: 17px;
  right: 17px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0b5f82;
  background: rgba(98, 201, 243, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(5, 77, 108, 0.12);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.marquee-teacher-card a::after {
  height: 58%;
  background: linear-gradient(
    to top,
    rgba(3, 28, 47, 0.96) 0%,
    rgba(4, 56, 91, 0.76) 38%,
    rgba(9, 99, 151, 0.16) 78%,
    transparent 100%
  );
}

.marquee-teacher-card:hover a::after {
  height: 64%;
}

.marquee-teacher-card img {
  border-radius: 34px 34px 92px 34px;
  object-position: center top;
  filter: saturate(0.98) contrast(1.03);
}

.marquee-teacher-card h3 {
  right: 20px;
  bottom: 54px;
  left: 20px;
  font-size: 22px;
  text-align: right;
}

.marquee-teacher-card span {
  right: 20px;
  bottom: 24px;
  left: 20px;
  width: fit-content;
  max-width: calc(100% - 40px);
  padding: 6px 10px;
  border-radius: 10px;
  color: #0b5f82;
  background: rgba(98, 201, 243, 0.92);
  font-size: 12px;
  text-align: right;
}

.marquee-teacher-card:hover span {
  color: #074f6f;
}

/* ================= Creative Stage Selection ================= */

.stages-section {
  position: relative;
  padding: 86px 0 74px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    radial-gradient(circle at 82% 20%, rgba(98, 201, 243, 0.25), transparent 23%),
    radial-gradient(circle at 12% 86%, rgba(33, 167, 223, 0.14), transparent 25%);
}

.stages-section .compact-heading > span {
  color: #0b6488;
  background: #dff6ff;
  border: 1px solid rgba(98, 201, 243, 0.50);
}

.stages-panel {
  position: relative;
  max-width: 1120px;
  padding: 20px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 105, 170, 0.12);
  box-shadow:
    0 30px 75px rgba(17, 75, 119, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

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

.stage-card {
  appearance: none;
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 24px;
  border-radius: 30px;
  text-align: right;
  font-family: inherit;
  color: inherit;
  background:
    radial-gradient(circle at 20% 10%, rgba(98, 201, 243, 0.18), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f5fbff 100%);
  border: 1px solid rgba(23, 105, 170, 0.12);
  box-shadow: 0 14px 34px rgba(17, 75, 119, 0.08);
  isolation: isolate;
  overflow: hidden;
}

.stage-card::before {
  right: auto;
  left: -48px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(98, 201, 243, 0.15);
  border: 26px solid rgba(98, 201, 243, 0.10);
  z-index: -1;
}

.stage-card::after {
  content: "";
  left: auto;
  right: 0;
  top: 0;
  width: 6px;
  height: 0;
  border: 0;
  border-radius: 0 30px 30px 0;
  background: #62c9f3;
  transition: height 0.3s ease;
}

.stage-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.stage-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 25px;
  color: #075b7d;
  background: linear-gradient(145deg, #9ee3ff, #62c9f3);
  box-shadow:
    0 16px 28px rgba(25, 154, 203, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 29px;
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.stage-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 1px dashed rgba(7, 91, 125, 0.22);
}

.stage-number {
  color: rgba(23, 105, 170, 0.16);
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
}

.stage-card-copy {
  display: block;
  margin: 26px 0 20px;
}

.stage-card h3 {
  margin-bottom: 9px;
  font-size: 23px;
}

.stage-card p {
  max-width: 250px;
  font-size: 14px;
  line-height: 1.8;
}

.stage-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid rgba(23, 105, 170, 0.10);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.stage-card-action i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #5b4800;
  background: #62c9f3;
  transition: transform 0.3s ease;
}

.stage-card:hover {
  transform: translateY(-10px);
  border-color: rgba(30, 168, 223, 0.75);
  box-shadow:
    0 28px 55px rgba(17, 75, 119, 0.14),
    0 8px 18px rgba(30, 168, 223, 0.12);
}

.stage-card:hover::after,
.stage-card.active::after {
  height: 100%;
}

.stage-card:hover .stage-icon,
.stage-card.active .stage-icon {
  transform: rotate(-5deg) scale(1.06);
}

.stage-card:hover .stage-card-action i,
.stage-card.active .stage-card-action i {
  transform: translateX(-5px);
}

.stage-card.active {
  border-color: #62c9f3;
  background:
    radial-gradient(circle at 18% 10%, rgba(98, 201, 243, 0.28), transparent 31%),
    linear-gradient(145deg, #f7fdff 0%, #f0faff 100%);
  box-shadow:
    0 30px 60px rgba(17, 75, 119, 0.16),
    0 0 0 4px rgba(98, 201, 243, 0.13);
}

.stage-card:focus-visible {
  outline: 4px solid rgba(98, 201, 243, 0.35);
  outline-offset: 4px;
}

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

@media (max-width: 900px) {
  .teachers-marquee-section {
    padding: 58px 0 45px;
  }

  .teachers-showcase-head {
    align-items: flex-start;
  }

  .teachers-marquee-track {
    gap: 20px;
    padding-inline: 10px;
    animation-duration: 31s;
  }

  .marquee-teacher-card {
    width: 225px;
    height: 290px;
    flex-basis: 225px;
  }

  .marquee-teacher-card h3 {
    font-size: 19px;
  }

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

@media (max-width: 650px) {
  .teachers-marquee-section {
    padding: 48px 0 38px;
  }

  .teachers-showcase-head {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    padding-inline: 20px;
    margin-bottom: 19px;
  }

  .teachers-showcase-action {
    width: fit-content;
  }

  .teachers-marquee {
    padding: 12px 0 24px;
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  }

  .teachers-marquee-track {
    gap: 14px;
    padding-inline: 7px;
    animation-duration: 26s;
  }

  .marquee-teacher-card {
    width: 178px;
    height: 235px;
    flex-basis: 178px;
    border-radius: 25px 25px 62px 25px;
  }

  .marquee-teacher-card a,
  .marquee-teacher-card img {
    border-radius: 25px 25px 62px 25px;
  }

  .marquee-teacher-card a::before {
    top: 11px;
    right: 11px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .marquee-teacher-card h3 {
    right: 13px;
    bottom: 42px;
    left: 13px;
    font-size: 16px;
  }

  .marquee-teacher-card span {
    right: 13px;
    bottom: 15px;
    left: 13px;
    max-width: calc(100% - 26px);
    padding: 5px 8px;
    font-size: 10px;
  }

  .stages-section {
    padding: 64px 0 54px;
  }

  .stages-panel {
    padding: 12px;
    border-radius: 28px;
  }

  .stage-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .stage-card {
    min-height: 235px;
    padding: 20px;
    border-radius: 24px;
  }

  .stage-icon {
    width: 64px;
    height: 64px;
    border-radius: 21px;
    font-size: 24px;
  }

  .stage-number {
    font-size: 42px;
  }

  .stage-card-copy {
    margin: 20px 0 16px;
  }

  .stage-card h3 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teachers-orbit,
  .teachers-marquee-track {
    animation: none !important;
  }
}


/* ==================================================
   Home Refinement – Light Blue Accent + Inline Tracks
================================================== */

:root {
  --home-sky: #62c9f3;
  --home-sky-strong: #159acb;
  --home-sky-deep: #0b6488;
  --home-sky-soft: #e7f8ff;
  --home-sky-pale: #f5fcff;
}

/* Replace the former yellow visual accents with light blue. */
.teachers-orbit::after,
.teachers-showcase-action i,
.stage-card::after,
.stage-card-action i {
  background: var(--home-sky);
}

.teachers-showcase-badge {
  color: var(--home-sky-deep);
  background: var(--home-sky-soft);
  border-color: rgba(98, 201, 243, 0.42);
}

.teachers-showcase-badge i {
  color: var(--home-sky-strong);
}

.marquee-teacher-card a::before,
.marquee-teacher-card span {
  color: #075b7d;
  background: rgba(98, 201, 243, 0.94);
}

.stage-icon {
  color: #075b7d;
  background: linear-gradient(145deg, #b8ebff, var(--home-sky));
  box-shadow:
    0 16px 28px rgba(21, 154, 203, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.stage-card:hover,
.stage-card.active {
  border-color: var(--home-sky);
}

.stage-card.active {
  background:
    radial-gradient(circle at 18% 10%, rgba(98, 201, 243, 0.28), transparent 31%),
    linear-gradient(145deg, #f8fdff 0%, #edfaff 100%);
  box-shadow:
    0 30px 60px rgba(17, 75, 119, 0.16),
    0 0 0 4px rgba(98, 201, 243, 0.15);
}

.stage-card:focus-visible {
  outline-color: rgba(98, 201, 243, 0.42);
}

/* The tracks panel is inserted directly after the second-stage card. */
.stage-grid > .tracks-box {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 10px 0 4px;
  padding: 24px;
  border: 1px solid rgba(98, 201, 243, 0.48);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(98, 201, 243, 0.23), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,250,255,0.98));
  box-shadow:
    0 24px 55px rgba(17, 75, 119, 0.13),
    inset 0 1px 0 rgba(255,255,255,0.95);
  overflow: visible;
  transform-origin: top center;
  animation: tracksPanelReveal 0.45s cubic-bezier(.2,.8,.2,1) both;
}

.stage-grid > .tracks-box::before {
  content: "";
  position: absolute;
  top: -13px;
  right: 50%;
  width: 26px;
  height: 26px;
  border-top: 1px solid rgba(98, 201, 243, 0.48);
  border-right: 1px solid rgba(98, 201, 243, 0.48);
  background: #f7fdff;
  transform: translateX(50%) rotate(-45deg);
  border-radius: 0 5px 0 0;
}

@keyframes tracksPanelReveal {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tracks-header {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding: 0;
}

.tracks-header h3 {
  margin-bottom: 7px;
  font-size: 22px;
}

.tracks-header p {
  font-size: 14px;
  line-height: 1.75;
}

.tracks-header > i {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--home-sky-deep);
  background: linear-gradient(145deg, #c9f1ff, var(--home-sky));
  box-shadow: 0 14px 28px rgba(21, 154, 203, 0.20);
  font-size: 22px;
}

.track-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.track-card {
  appearance: none;
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  padding: 15px;
  text-align: right;
  font-family: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 105, 170, 0.12);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(17, 75, 119, 0.07);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.track-card::before,
.track-card::after {
  content: none;
}

.track-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: rgba(98, 201, 243, 0.75);
  box-shadow: 0 18px 34px rgba(17, 75, 119, 0.12);
}

.track-card.active {
  background: linear-gradient(145deg, #ffffff, #e7f8ff);
  border-color: var(--home-sky);
  box-shadow:
    0 18px 36px rgba(17, 75, 119, 0.13),
    0 0 0 3px rgba(98, 201, 243, 0.13);
}

.track-icon,
.track-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.track-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--home-sky-deep);
  background: linear-gradient(145deg, #d7f5ff, #a8e8ff);
  font-size: 21px;
  transition: transform 0.25s ease;
}

.track-card:hover .track-icon,
.track-card.active .track-icon {
  transform: rotate(-6deg) scale(1.06);
}

.track-card .track-info {
  min-width: 0;
}

.track-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.track-card p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.track-arrow {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--home-sky-deep);
  background: var(--home-sky-soft);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.track-card:hover .track-arrow,
.track-card.active .track-arrow {
  color: #ffffff;
  background: var(--home-sky-strong);
  transform: translateX(-4px);
}

@media (min-width: 901px) {
  .stage-grid > .stage-card:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .stage-grid > .stage-card:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .stage-grid > .stage-card:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .stage-grid > .tracks-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 700px) {
  .stage-grid > .tracks-box {
    padding: 18px;
    border-radius: 24px;
  }

  .tracks-header h3 {
    font-size: 19px;
  }

  .tracks-header > i {
    width: 50px;
    height: 50px;
    border-radius: 17px;
  }

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

  .track-card {
    min-height: 94px;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    gap: 11px;
    padding: 13px;
    border-radius: 19px;
  }

  .track-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 19px;
  }

  .track-arrow {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-grid > .tracks-box {
    animation: none !important;
  }
}

/* ==================================================
   Home Learning Cards – Subjects + Featured Courses
   Typography-first cards with no thumbnail images
================================================== */

.subject-typography-card,
.course-typography-card {
  appearance: none;
  position: relative;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  text-align: right;
  color: inherit;
  border: 1px solid rgba(98, 201, 243, 0.42);
  background:
    radial-gradient(circle at 12% 8%, rgba(98, 201, 243, 0.20), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f2fbff 100%);
  box-shadow:
    0 18px 42px rgba(17, 75, 119, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.subject-typography-card::before,
.course-typography-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, var(--home-sky), var(--home-sky-strong));
  transform: scaleY(0.38);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.subject-typography-card::after,
.course-typography-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -48px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 24px solid rgba(98, 201, 243, 0.12);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.subject-typography-card:hover,
.subject-typography-card.active,
.course-typography-card:hover {
  transform: translateY(-8px);
  border-color: var(--home-sky);
  background:
    radial-gradient(circle at 12% 8%, rgba(98, 201, 243, 0.27), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #eaf9ff 100%);
  box-shadow:
    0 28px 56px rgba(17, 75, 119, 0.15),
    0 0 0 4px rgba(98, 201, 243, 0.10);
}

.subject-typography-card:hover::before,
.subject-typography-card.active::before,
.course-typography-card:hover::before {
  transform: scaleY(1);
}

.subject-typography-card:hover::after,
.subject-typography-card.active::after,
.course-typography-card:hover::after {
  transform: translate(10px, -8px) scale(1.05);
}

.subject-typography-card:focus-visible,
.course-typography-card:focus-visible {
  outline: 4px solid rgba(98, 201, 243, 0.40);
  outline-offset: 4px;
}

.learning-card-decoration {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background-image: radial-gradient(rgba(11, 100, 136, 0.35) 1.5px, transparent 1.5px);
  background-size: 9px 9px;
  opacity: 0.55;
  pointer-events: none;
}

.learning-card-number {
  position: absolute;
  top: 20px;
  left: 27px;
  z-index: 1;
  color: rgba(11, 100, 136, 0.16);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  pointer-events: none;
}

.learning-card-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--home-sky-deep);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(168, 232, 255, 0.96));
  border: 1px solid rgba(98, 201, 243, 0.46);
  box-shadow:
    0 16px 30px rgba(21, 154, 203, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-size: 25px;
  transition: transform 0.28s ease, background 0.28s ease;
}

.subject-typography-card:hover .learning-card-icon,
.subject-typography-card.active .learning-card-icon,
.course-typography-card:hover .learning-card-icon {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(145deg, #d8f5ff, var(--home-sky));
}

.learning-card-copy {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 0;
}

.learning-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--home-sky-deep);
  background: var(--home-sky-soft);
  border: 1px solid rgba(98, 201, 243, 0.32);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.learning-card-copy h3 {
  margin: 12px 0 8px;
  color: var(--blue-dark);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.48;
  letter-spacing: -0.25px;
}

.learning-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.8;
}

.learning-card-action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--home-sky-deep);
  font-size: 13px;
  font-weight: 900;
}

.learning-card-action i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: var(--home-sky-strong);
  box-shadow: 0 10px 20px rgba(21, 154, 203, 0.20);
  transition: transform 0.25s ease;
}

.subject-typography-card:hover .learning-card-action i,
.subject-typography-card.active .learning-card-action i,
.course-typography-card:hover .learning-card-action i {
  transform: translateX(-5px);
}

/* ================= Subject cards ================= */

.teachers-grid:has(.subject-typography-card) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.subject-typography-card {
  min-height: 285px;
  padding: 24px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
}

.subject-typography-card .learning-card-copy {
  margin-top: auto;
}

.subject-typography-card .learning-card-action {
  padding-top: 16px;
  border-top: 1px solid rgba(98, 201, 243, 0.25);
}

.subject-typography-card.active {
  border-color: var(--home-sky-strong);
  box-shadow:
    0 30px 58px rgba(17, 75, 119, 0.17),
    0 0 0 4px rgba(98, 201, 243, 0.15);
}

/* ================= Featured course cards ================= */

.courses-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.course-typography-card {
  min-height: 385px;
  padding: 24px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

.course-card-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding-left: 64px;
}

.course-card-topline .learning-card-number {
  top: 3px;
  left: 0;
}

.course-popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--home-sky-deep);
  background: rgba(231, 248, 255, 0.92);
  border: 1px solid rgba(98, 201, 243, 0.36);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.course-popular-badge i {
  color: var(--home-sky-strong);
}

.course-card-copy {
  flex: 1;
}

.course-card-copy h3 {
  font-size: 22px;
  line-height: 1.55;
}

.course-teacher-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.course-teacher-name i {
  color: var(--home-sky-strong);
}

.course-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 17px;
  border-top: 1px solid rgba(98, 201, 243, 0.28);
}

.course-price-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.course-price-block small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.course-price-block strong {
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.course-typography-card .learning-card-action {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .teachers-grid:has(.subject-typography-card),
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .teachers-grid:has(.subject-typography-card),
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .subject-typography-card,
  .course-typography-card {
    min-height: 0;
    padding: 20px;
    border-radius: 25px;
  }

  .subject-typography-card {
    gap: 18px;
  }

  .course-typography-card {
    gap: 18px;
  }

  .learning-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 19px;
    font-size: 22px;
  }

  .learning-card-copy h3 {
    font-size: 21px;
  }

  .learning-card-number {
    top: 18px;
    left: 22px;
    font-size: 34px;
  }

  .course-card-topline {
    min-height: 58px;
    padding-left: 52px;
  }

  .course-card-topline .learning-card-number {
    font-size: 31px;
  }

  .course-popular-badge {
    font-size: 10px;
  }

  .course-card-footer {
    align-items: center;
  }

  .course-typography-card .learning-card-action span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subject-typography-card,
  .course-typography-card,
  .learning-card-icon,
  .learning-card-action i {
    transition: none !important;
  }
}

/* ==================================================
   Featured courses — keep thumbnails, match light-blue style
================================================== */

.course-typography-card.course-card-with-image {
  min-height: 0;
  padding: 0;
  gap: 0;
  border-radius: 32px;
  background: #ffffff;
  overflow: hidden;
}

.course-typography-card.course-card-with-image::before,
.course-typography-card.course-card-with-image::after {
  display: none;
}

.course-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #dff6ff, #a8e8ff);
}

.course-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.course-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 37, 69, 0.04) 20%, rgba(7, 37, 69, 0.72) 100%),
    linear-gradient(90deg, rgba(98, 201, 243, 0.18), transparent 48%);
  pointer-events: none;
}

.course-popular-badge-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  color: #075574;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 28px rgba(7, 37, 69, 0.18);
  backdrop-filter: blur(8px);
}

.course-media-number {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 8px 22px rgba(7, 37, 69, 0.34);
}

.course-card-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 22px 24px 24px;
  background:
    radial-gradient(circle at 8% 5%, rgba(98, 201, 243, 0.14), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f3fbff 100%);
}

.course-subject-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-subject-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--home-sky-deep);
  background: linear-gradient(145deg, #ffffff, #b8edff);
  border: 1px solid rgba(98, 201, 243, 0.42);
  box-shadow: 0 10px 22px rgba(21, 154, 203, 0.14);
  font-size: 17px;
  transition: transform 0.28s ease, background 0.28s ease;
}

.course-card-with-image .course-card-copy {
  flex: 1;
}

.course-card-with-image .course-card-copy h3 {
  margin-top: 0;
  font-size: 22px;
}

.course-card-with-image .course-card-footer {
  margin-top: auto;
}

.course-card-with-image:hover .course-card-media img {
  transform: scale(1.065);
  filter: saturate(1.06) contrast(1.03);
}

.course-card-with-image:hover .course-subject-icon {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(145deg, #d8f5ff, var(--home-sky));
}

@media (max-width: 650px) {
  .course-typography-card.course-card-with-image {
    padding: 0;
    border-radius: 25px;
  }

  .course-card-body {
    padding: 19px 20px 21px;
  }

  .course-popular-badge-overlay {
    top: 12px;
    right: 12px;
  }

  .course-media-number {
    left: 14px;
    bottom: 12px;
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card-media img,
  .course-subject-icon {
    transition: none !important;
  }
}


/* ==================================================
   Teacher marquee card cleanup
   Remove the top teacher badge and bottom subject badge
================================================== */

.marquee-teacher-card a::before {
  content: none !important;
  display: none !important;
}

.marquee-teacher-card h3 {
  bottom: 24px;
}

.marquee-teacher-card span {
  display: none !important;
}

/* ==================================================
   Hero refresh — light-blue creative card system
================================================== */

.logo-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.logo-copy > span {
  color: var(--blue-dark);
  font-weight: 800;
}

.logo-copy strong {
  font-family: "Alexandria", "Cairo", sans-serif;
  font-weight: 900;
  color: var(--home-sky-strong, #159acb);
  letter-spacing: -0.7px;
}

.hero-section {
  min-height: auto;
  padding: 42px 0 70px;
  background:
    radial-gradient(circle at 8% 18%, rgba(98, 201, 243, 0.18), transparent 25%),
    radial-gradient(circle at 92% 76%, rgba(21, 154, 203, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fdff 0%, #eef9ff 100%);
}

.hero-section::before,
.hero-section::after {
  content: none;
  display: none;
}

.hero-section > .container {
  position: relative;
  z-index: 6;
}

.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(98, 201, 243, 0.42);
  border-radius: 44px;
  background:
    radial-gradient(circle at 8% 8%, rgba(98, 201, 243, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 251, 255, 0.96));
  box-shadow:
    0 34px 80px rgba(17, 75, 119, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -135px;
  right: -105px;
  width: 360px;
  height: 360px;
  border: 55px solid rgba(98, 201, 243, 0.09);
  border-radius: 50%;
}

.hero-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 36px;
  bottom: 30px;
  width: 86px;
  height: 86px;
  opacity: 0.35;
  background-image: radial-gradient(rgba(11, 100, 136, 0.42) 1.6px, transparent 1.6px);
  background-size: 11px 11px;
}

.hero-section .hero-grid {
  min-height: 610px;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 52px;
  padding: 48px 54px;
}

.hero-text {
  position: relative;
  z-index: 3;
}

.hero-text .eyebrow {
  width: fit-content;
  margin-bottom: 20px;
  padding: 9px 14px;
  border: 1px solid rgba(98, 201, 243, 0.4);
  border-radius: 999px;
  color: var(--home-sky-deep, #075574);
  background: rgba(216, 245, 255, 0.8);
  box-shadow: 0 9px 24px rgba(21, 154, 203, 0.1);
  font-size: 13px;
}

.hero-text .eyebrow::before {
  display: none;
}

.hero-text .eyebrow i {
  color: var(--home-sky-strong, #159acb);
}

.hero-text h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0 0 20px;
  color: var(--blue-dark);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-title-prefix {
  display: block;
  color: var(--blue-dark);
  font-family: "Cairo", sans-serif;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-brand-word {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding: 4px 0 14px;
  font-family: "Alexandria", "Cairo", sans-serif;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -2.4px;
  color: var(--home-sky-strong, #159acb);
  background: linear-gradient(105deg, #075574 5%, #159acb 48%, #62c9f3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 16px 34px rgba(21, 154, 203, 0.13);
}

.hero-brand-word::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: min(72%, 330px);
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-sky, #62c9f3), rgba(98, 201, 243, 0.08));
  box-shadow: 0 8px 18px rgba(21, 154, 203, 0.2);
}

.hero-text p {
  max-width: 590px;
  margin: 0;
  color: #5d7184;
  font-size: 17px;
  font-weight: 650;
  line-height: 2;
}

.hero-buttons {
  margin-top: 25px;
}

.hero-buttons .primary-btn,
.hero-buttons .secondary-btn {
  min-height: 50px;
  border-radius: 17px;
}

.hero-buttons .primary-btn {
  background: linear-gradient(135deg, #075574, #159acb 62%, #62c9f3);
  box-shadow: 0 16px 34px rgba(21, 154, 203, 0.27);
}

.hero-highlights {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(98, 201, 243, 0.32);
  border-radius: 13px;
  color: #315d73;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.hero-highlights i {
  color: var(--home-sky-strong, #159acb);
}

.hero-text .social-links {
  margin-top: 21px;
}

.hero-text .social-links a {
  width: 41px;
  height: 41px;
  border-color: rgba(98, 201, 243, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--home-sky-deep, #075574);
  box-shadow: 0 10px 24px rgba(17, 75, 119, 0.08);
}

.hero-text .social-links a:hover {
  color: #ffffff;
  background: var(--home-sky-strong, #159acb);
}

.hero-visual {
  position: relative;
  z-index: 4;
  width: 100%;
}

.hero-visual-frame {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid rgba(98, 201, 243, 0.43);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(217, 246, 255, 0.78));
  box-shadow:
    0 28px 58px rgba(17, 75, 119, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-visual-frame::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(21, 154, 203, 0.2);
  border-radius: 29px;
  pointer-events: none;
}

.hero-frame-dots {
  position: absolute;
  top: 24px;
  left: 25px;
  width: 58px;
  height: 58px;
  opacity: 0.48;
  background-image: radial-gradient(rgba(7, 85, 116, 0.42) 1.5px, transparent 1.5px);
  background-size: 9px 9px;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
}

.hero-image::before {
  content: none;
  display: none;
}

.hero-image img {
  width: 100%;
  height: 470px;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 26px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(17, 75, 119, 0.16));
}

.hero-visual .floating-card {
  position: absolute;
  z-index: 8;
  min-width: 196px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(98, 201, 243, 0.44);
  border-radius: 18px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 17px 36px rgba(17, 75, 119, 0.15);
  backdrop-filter: blur(12px);
}

.hero-visual .floating-card i {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--home-sky-deep, #075574);
  background: linear-gradient(145deg, #ffffff, #a8e8ff);
  border: 1px solid rgba(98, 201, 243, 0.38);
  box-shadow: 0 10px 20px rgba(21, 154, 203, 0.15);
}

.hero-visual .floating-card span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.hero-visual .floating-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.hero-visual .card-one {
  top: 48px;
  right: -24px;
}

.hero-visual .card-two {
  left: -24px;
  bottom: 52px;
}

.hero-creative-background {
  opacity: 0.72;
}

.hero-grid-pattern {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 92%);
}

@media (max-width: 1000px) {
  .hero-section .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 34px;
    padding: 42px 38px;
  }

  .hero-brand-word {
    font-size: clamp(43px, 6vw, 62px);
  }

  .hero-visual-frame {
    min-height: 450px;
  }

  .hero-image img {
    height: 410px;
  }
}

@media (max-width: 840px) {
  .hero-section {
    padding: 30px 0 58px;
  }

  .hero-shell {
    border-radius: 36px;
  }

  .hero-section .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 42px 36px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text .eyebrow,
  .hero-brand-word {
    margin-inline: auto;
  }

  .hero-text h1 {
    align-items: center;
  }

  .hero-text p {
    margin-inline: auto;
  }

  .hero-buttons,
  .hero-highlights,
  .hero-text .social-links {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .logo-copy {
    gap: 3px;
  }

  .logo-copy > span {
    display: none;
  }

  .logo-copy strong {
    font-size: 17px;
  }

  .hero-section {
    padding: 20px 0 46px;
  }

  .hero-shell {
    border-radius: 28px;
  }

  .hero-shell::before {
    top: -165px;
    right: -170px;
  }

  .hero-section .hero-grid {
    gap: 32px;
    padding: 30px 18px 20px;
  }

  .hero-text .eyebrow {
    margin-bottom: 16px;
  }

  .hero-title-prefix {
    font-size: 25px;
  }

  .hero-brand-word {
    padding-bottom: 12px;
    font-size: clamp(38px, 12vw, 48px);
    letter-spacing: -1.6px;
  }

  .hero-brand-word::after {
    right: 50%;
    width: 70%;
    height: 6px;
    transform: translateX(50%);
  }

  .hero-text p {
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-buttons .primary-btn,
  .hero-buttons .secondary-btn {
    width: 100%;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-highlights span {
    justify-content: center;
  }

  .hero-visual-frame {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 27px;
  }

  .hero-visual-frame::before,
  .hero-frame-dots {
    display: none;
  }

  .hero-image {
    grid-column: 1 / -1;
  }

  .hero-image img {
    height: auto;
    max-height: 330px;
    border-radius: 21px;
  }

  .hero-visual .floating-card {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 10px;
    border-radius: 15px;
    backdrop-filter: none;
  }

  .hero-visual .floating-card i {
    width: 35px;
    height: 35px;
    border-radius: 12px;
  }

  .hero-visual .floating-card span {
    font-size: 11px;
  }

  .hero-visual .floating-card small {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shell,
  .hero-visual-frame,
  .hero-brand-word {
    transition: none !important;
  }
}
