@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy: #0B1F4A;
  --navy-mid: #122560;
  --navy-light: #1a3278;
  --navy-deep: #071430;
  --gold: #E8A020;
  --gold-light: #F5B93A;
  --gold-dark: #C8860A;
  --gold-pale: #FDF3DC;
  --white: #FFFFFF;
  --off-white: #F8F9FC;
  --gray-50: #F4F5F7;
  --gray-100: #E8EAF0;
  --gray-200: #CDD1DE;
  --gray-400: #8B93A9;
  --gray-600: #4E5568;
  --gray-800: #252B3B;
  --font-en: 'Inter', system-ui, sans-serif;
  --font-ar: 'Noto Kufi Arabic', 'Inter', system-ui, sans-serif;
  --section-py: 90px;
  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 4px rgba(11, 31, 74, .08);
  --shadow-md: 0 4px 20px rgba(11, 31, 74, .12);
  --shadow-lg: 0 12px 48px rgba(11, 31, 74, .16);
  --shadow-xl: 0 24px 80px rgba(11, 31, 74, .22);
  --shadow-gold: 0 8px 32px rgba(232, 160, 32, .30);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: 280ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--font-en);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.65;
  overflow-x: hidden
}

body[dir="rtl"] {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block
}

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

ul {
  list-style: none
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit
}

input,
select,
textarea {
  font-family: inherit
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  font-weight: 700
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px
}

@media(min-width:768px) {
  .container {
    padding: 0 40px
  }
}

.section {
  padding: var(--section-py) 15px
}

.section-sm {
  padding: 56px 15px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase
}

.badge--gold {
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid rgba(232, 160, 32, .25)
}

.badge--navy {
  background: rgba(11, 31, 74, .08);
  color: var(--navy);
  border: 1px solid rgba(11, 31, 74, .12)
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px
}

.section-header .badge {
  margin-bottom: 14px
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 800
}

.section-title span {
  color: var(--gold)
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.75
}

.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
  margin: 16px auto 0
}

.divider--left {
  margin-left: 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: none;
  cursor: pointer
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  box-shadow: var(--shadow-gold)
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 160, 32, .45)
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(8px)
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .7);
  transform: translateY(-2px)
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy)
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px)
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  padding: 0;
  gap: 8px
}

.btn--ghost:hover {
  gap: 14px
}

.btn--lg {
  padding: 17px 38px;
  font-size: 1.05rem
}

.btn--sm {
  padding: 10px 22px;
  font-size: .875rem
}

.btn--navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md)
}

.btn--navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg)
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease)
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

/* Logo image — replace images/school-logo.png with the real file */
.nav-logo-img {
  height: 54px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  flex-shrink: 0;
  display: block
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2
}

.nav-logo-text strong {
  font-size: .88rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .01em;
  transition: color var(--duration) var(--ease);
}

.nav.scrolled .nav-logo-text strong {
  color: var(--navy);
}

.nav-logo-text span {
  font-size: .67rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease);
}

.nav.scrolled .nav-logo-text span {
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px
}

.nav-links a {
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.8);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  position: relative
}

.nav.scrolled .nav-links a {
  color: var(--navy);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white)
}

.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active {
  color: var(--navy-deep)
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 13px;
  right: 13px
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer
}

.nav.scrolled .lang-toggle {
  color: var(--navy);
  border-color: rgba(11, 31, 74, 0.2);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav.scrolled .lang-toggle:hover {
  background: rgba(11, 31, 74, 0.05);
  border-color: rgba(11, 31, 74, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease)
}

.hamburger:hover {
  background: rgba(11, 31, 74, 0.05)
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease)
}

.nav.scrolled .hamburger span {
  background: var(--navy);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0)
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.mobile-nav {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 20, 48, .98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform var(--duration) var(--ease)
}

.mobile-nav.open {
  transform: translateX(0)
}

.mobile-nav a {
  color: rgba(255, 255, 255, .85);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  text-align: center
}

.mobile-nav a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, .06)
}

.mobile-nav .btn {
  margin-top: 20px
}

/* FOOTER */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .75);
  padding: 72px 0 0
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px
}

.footer-brand-tagline {
  font-size: .78rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: .04em
}

.footer-desc {
  font-size: .875rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .6)
}

.footer-socials {
  display: flex;
  gap: 10px
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration) var(--ease);
  border: 1px solid rgba(255, 255, 255, .1)
}

.social-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Brand specific hover effects */
.social-btn[aria-label="WhatsApp"]:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.social-btn[aria-label="Facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-btn[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.footer-links a {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  transition: color var(--duration) var(--ease);
  display: flex;
  align-items: center;
  gap: 8px
}

.footer-links a::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem
}

.footer-links a:hover {
  color: var(--white)
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .875rem;
  color: rgba(255, 255, 255, .6)
}

.footer-contact-icon {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .4)
}

.footer-bottom-links {
  display: flex;
  gap: 20px
}

.footer-bottom-links a {
  font-size: .8rem;
  color: rgba(255, 255, 255, .4);
  transition: color var(--duration) var(--ease)
}

.footer-bottom-links a:hover {
  color: var(--gold)
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-gold);
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration) var(--ease);
  pointer-events: none;
  cursor: pointer;
  border: none
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(232, 160, 32, .5)
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-14px)
  }
}

@keyframes pulse-ring {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 160, 32, .5)
  }

  50% {
    box-shadow: 0 0 0 14px rgba(232, 160, 32, 0)
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease)
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0)
}

@media(max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:768px) {
  :root {
    --section-py: 40px
  }

  .section-sm {
    padding: 40px 15px
  }

  .nav-links,
  .nav-actions .btn--primary {
    display: none
  }

  .hamburger {
    display: flex
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  .scroll-top {
    right: 16px;
    bottom: 16px
  }
}

@media(max-width:480px) {
  .container {
    padding: 0 16px
  }
}

[dir="rtl"] .divider--left {
  margin-left: auto;
  margin-right: 0
}

[dir="rtl"] .footer-links a::before {
  content: '‹'
}

[dir="rtl"] .mobile-nav {
  transform: translateX(100%)
}

[dir="rtl"] .mobile-nav.open {
  transform: translateX(0)
}

[dir="rtl"] .scroll-top {
  right: auto;
  left: 28px
}

@media(max-width:768px) {
  [dir="rtl"] .scroll-top {
    left: 16px;
    right: auto
  }
}