:root {
  --aq-gold: #ebba32;
  --aq-olive: #757a11;
  --aq-dark: #333333;
  --aq-bg: #f7f7f3;
  --aq-white: #ffffff;
  --aq-muted: #686868;
  --aq-border: rgba(51, 51, 51, 0.10);
  --aq-shadow: 0 22px 60px rgba(51, 51, 51, 0.16);
  --aq-shadow-soft: 0 12px 35px rgba(51, 51, 51, 0.10);
  --aq-radius: 22px;
  --aq-gradient: linear-gradient(135deg, #333333 0%, #757a11 58%, #ebba32 100%);
  --aq-gold-gradient: linear-gradient(135deg, #ebba32 0%, #d7a51f 100%);
  --aq-font: "Cairo", "IBM Plex Sans Arabic", "Tajawal", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--aq-font);
  background:
    radial-gradient(circle at top right, rgba(235, 186, 50, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(117, 122, 17, 0.16), transparent 30%),
    var(--aq-bg);
  color: var(--aq-dark);
  line-height: 1.9;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--aq-gold);
  color: var(--aq-dark);
}

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

.aq-top-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(51, 51, 51, 0.94), rgba(51, 51, 51, 0.78), rgba(117, 122, 17, 0.74)),
    url("../images/hero-pattern.svg") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.aq-top-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(235, 186, 50, 0.28), transparent 26%),
    radial-gradient(circle at 86% 80%, rgba(117, 122, 17, 0.40), transparent 34%);
  z-index: -1;
}

.aq-top-hero::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(235, 186, 50, 0.22);
  filter: blur(16px);
  z-index: -1;
  animation: floatOrb 7s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-35px) scale(1.08); }
}

.hero-title {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 88px 0 90px;
}

.aq-logo-card {
  width: min(430px, 92%);
  margin: 0 auto 30px;
  padding: 24px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-align: center;
}

.aq-logo-card img {
  max-height: 105px;
  object-fit: contain;
  display: inline-block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-badge i {
  color: var(--aq-gold);
}

.hero-title h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 900;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.30);
}

.hero-title p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  font-weight: 500;
}

.section-space {
  padding: 78px 0;
}

.glass-box {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: var(--aq-shadow);
}

.welcome-box {
  padding: clamp(28px, 5vw, 56px);
  margin-top: 0px;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.welcome-box::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(235, 186, 50, 0.18);
}

.welcome-box::after {
  content: "";
  position: absolute;
  bottom: -110px;
  left: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(117, 122, 17, 0.13);
}

.welcome-inner {
  position: relative;
  z-index: 1;
}

.section-title {
  color: var(--aq-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-align: center;
}

.section-title span {
  color: var(--aq-olive);
  position: relative;
}

.section-title span::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -8px;
  height: 5px;
  border-radius: 999px;
  background: var(--aq-gold);
}

.welcome-text {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  color: var(--aq-dark);
  font-size: clamp(1.05rem, 2vw, 1.30rem);
  font-weight: 500;
}

.application-title {
  color: var(--aq-dark);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 900;
  text-align: center;
  margin: 42px 0 30px;
}

.main-action-area {
  margin-top: 34px;
}

.action-card {
  height: 100%;
  border-radius: 24px;
  padding: 30px 22px;
  background: var(--aq-white);
  box-shadow: var(--aq-shadow-soft);
  border: 1px solid var(--aq-border);
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(235, 186, 50, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(117, 122, 17, 0.06), rgba(235, 186, 50, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.action-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--aq-shadow);
  border-color: rgba(235, 186, 50, 0.70);
}

.action-card:hover::before {
  opacity: 1;
}

.action-card-inner {
  position: relative;
  z-index: 1;
}

.action-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--aq-gradient);
  color: #fff;
  font-size: 1.85rem;
  box-shadow: 0 16px 35px rgba(51, 51, 51, 0.24);
  transition: all 0.35s ease;
}

.action-card:hover .action-icon {
  transform: rotate(-5deg) scale(1.06);
  background: var(--aq-gold-gradient);
  color: var(--aq-dark);
}

.aq-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: var(--aq-dark);
  background: var(--aq-gold-gradient);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 14px 30px rgba(235, 186, 50, 0.30);
}

.aq-btn:hover {
  color: #fff;
  background: var(--aq-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(51, 51, 51, 0.28);
}

.programs-section {
  padding: 86px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(247,247,243,0.96));
}

.program-card {
  height: 100%;
  background: var(--aq-white);
  border-radius: 28px;
  border: 1px solid var(--aq-border);
  box-shadow: var(--aq-shadow-soft);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-11px);
  box-shadow: var(--aq-shadow);
}

.program-card-header {
  padding: 34px 28px 24px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(235, 186, 50, 0.34), transparent 35%),
    linear-gradient(135deg, #333333 0%, #4b4b30 48%, #757a11 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.program-card-header::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -82px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.program-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 17px;
  border-radius: 30px;
  background: rgba(235, 186, 50, 0.18);
  border: 1px solid rgba(235, 186, 50, 0.42);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

.program-card-header h3 {
  font-size: 1.68rem;
  font-weight: 900;
  margin: 0;
  position: relative;
  z-index: 1;
}

.program-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card-body p {
  color: var(--aq-muted);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 24px;
}

.program-links {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.program-link {
  border-radius: 16px;
  padding: 12px 14px;
  background: #fbfaf5;
  border: 1px solid rgba(117, 122, 17, 0.16);
  color: var(--aq-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-align: center;
}

.program-link i {
  color: var(--aq-olive);
  transition: color 0.25s ease;
}

.program-link:hover {
  background: var(--aq-olive);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--aq-olive);
}

.program-link:hover i {
  color: var(--aq-gold);
}

.stats-strip {
  background: var(--aq-dark);
  color: #fff;
  padding: 58px 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(235, 186, 50, 0.20), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(117, 122, 17, 0.32), transparent 34%);
}

.stat-box {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  height: 100%;
  backdrop-filter: blur(12px);
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--aq-gold);
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  color: rgba(255,255,255,0.82);
  font-weight: 700;
}

.footer {
  background: #2c2c2c;
  color: #fff;
  padding: 38px 0;
  text-align: center;
  border-top: 5px solid var(--aq-gold);
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  max-height: 82px;
  max-width: 260px;
  background: #fff;
  padding: 12px 18px;
  border-radius: 18px;
}

.footer span {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}

.scroll-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--aq-gold-gradient);
  color: var(--aq-dark);
  box-shadow: 0 14px 30px rgba(51, 51, 51, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top:hover {
  background: var(--aq-dark);
  color: #fff;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .aq-top-hero { min-height: 340px; }
  .welcome-box { margin-top: -50px; }
  .main-action-area { margin-top: 28px; }
}

@media (max-width: 575px) {
  .section-space { padding: 58px 0; }
  .hero-title { padding: 62px 0 74px; }
  .aq-logo-card { padding: 16px; border-radius: 22px; }
  .welcome-box { padding: 28px 18px; }
  .program-card-body { padding: 22px; }
  .action-card { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
