:root {
  --bg: #05060f;
  --card: rgba(8, 7, 14, 0.55);
  --line: rgba(255, 196, 149, 0.25);
  --text: #f5f6fa;
  --muted: #c4c8d3;
  --orange: #bf5f2b;
  --orange-soft: #f0a46f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.page-wrap {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 15%, rgba(187, 90, 41, 0.28), transparent 38%),
    radial-gradient(circle at 85% 20%, rgba(255, 196, 149, 0.16), transparent 45%),
    radial-gradient(circle at 55% 85%, rgba(255, 122, 73, 0.12), transparent 40%),
    #05060f;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  z-index: 0;
  animation: floaty 14s ease-in-out infinite;
}

.orb-a {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -40px;
  background: rgba(235, 136, 84, 0.26);
}

.orb-b {
  width: 220px;
  height: 220px;
  left: -60px;
  bottom: -70px;
  background: rgba(149, 71, 31, 0.3);
  animation-delay: 1.8s;
}

.orb-c {
  width: 140px;
  height: 140px;
  left: 15%;
  top: 68%;
  background: rgba(255, 187, 132, 0.2);
  animation-delay: 0.8s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-12px) translateX(6px);
  }
}

.glass-card {
  position: relative;
  z-index: 2;
  width: min(530px, 100%);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 90px rgba(36, 13, 6, 0.65);
  padding: 28px;
}

.logo-frame {
  width: 112px;
  height: 112px;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(220, 132, 82, 0.28), 0 12px 40px rgba(94, 34, 15, 0.5);
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-ar {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin: 0;
}

.brand-en {
  margin: 2px 0 0;
  letter-spacing: 0.35em;
  color: #f0e6df;
  font-size: 0.9rem;
  font-weight: 700;
}

.brand-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.links-wrap {
  display: grid;
  gap: 12px;
}

.link-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.03), rgba(255, 158, 106, 0.05));
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(191, 95, 43, 0), rgba(240, 164, 111, 0.28), rgba(191, 95, 43, 0));
  opacity: 0;
  transform: translateX(-35%);
  transition: 0.35s ease;
}

.link-card:hover {
  transform: translateY(-2px) scale(1.008);
  box-shadow: 0 0 0 1px rgba(236, 152, 101, 0.35), 0 10px 28px rgba(98, 38, 18, 0.45);
}

.link-card:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.link-label {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.link-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.24);
  color: var(--orange-soft);
  font-size: 0.95rem;
}

.reveal-up {
  animation: reveal 0.7s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.courses-page {
  min-height: 100vh;
}

.courses-wrap {
  min-height: 100vh;
  padding: 28px 16px 48px;
}

.courses-shell {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.courses-head {
  text-align: center;
  margin-bottom: 20px;
}

.courses-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.courses-head p {
  color: var(--muted);
  margin: 0;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: #f5f6fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
}

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

.course-card {
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  background: rgba(8, 7, 14, 0.5);
  box-shadow: 0 18px 42px rgba(14, 7, 5, 0.45);
  transition: 0.28s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(236, 152, 101, 0.35), 0 20px 42px rgba(98, 38, 18, 0.5);
}

.course-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.course-body {
  padding: 14px 14px 16px;
}

.course-body h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.course-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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