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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Kufi Arabic", sans-serif;
  background: #f4f6f1;
  color: #242e38;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

/* ========================================
   ROOT
======================================== */
:root {
  --primary: #8cc63e;
  --dark: #242e38;
  --darker: #181f26;
  --light-bg: #f4f6f1;
  --white: #ffffff;
  --text: #242e38;
  --muted: #6b7580;
  --border: rgba(36, 46, 56, 0.08);
  --shadow: 0 18px 50px rgba(36, 46, 56, 0.12);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.16);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --gradient: linear-gradient(135deg, #8cc63e, #6fa52f);
}

/* ========================================
   GENERAL
======================================== */
.section {
  padding: 40px 0;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.section-head p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
  cursor: pointer;
  border: none;
}

.primary-btn {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(140, 198, 62, 0.28);
}

.secondary-btn {
  border: 1px solid rgba(36, 46, 56, 0.14);
  color: var(--dark);
  background: rgba(255, 255, 255, 0.96);
}

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

/* ========================================
   HEADER
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: rgba(244, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 46, 56, 0.08);
}

.header-wrap {
  min-height: 64px;
  position: relative;
}

.nav-toggle {
  display: none;
}

.site-logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.site-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #242e38;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #8cc63e;
}

.header-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.lang-btn,
.menu-btn {
  width: 46px;
  height: 40px;
  border: 1px solid rgba(36, 46, 56, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: #242e38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.lang-btn {
  font-size: 12px;
  font-weight: 700;
}

.lang-btn:hover,
.menu-btn:hover {
  background: rgba(140, 198, 62, 0.12);
  color: #8cc63e;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  width: 20px;
  height: 2px;
  background: #242e38;
  border-radius: 2px;
  display: block;
}

/* ========================================
   HEADER LAPTOP
======================================== */

/* English laptop */
html[dir="ltr"] .site-logo {
  left: 0;
}

html[dir="ltr"] .site-nav {
  left: 50%;
  transform: translate(-50%, -50%);
}

html[dir="ltr"] .header-side-left {
  right: 0;
}

/* Arabic laptop */
html[dir="rtl"] .site-logo {
  right: 0;
}

html[dir="rtl"] .site-nav {
  left: 50%;
  transform: translate(-50%, -50%);
  direction: rtl;
  flex-direction: row;
}

html[dir="rtl"] .site-nav a {
  direction: rtl;
}

html[dir="rtl"] .site-nav a {
  direction: rtl;
}

html[dir="rtl"] .header-side-left {
  left: 0;
}

/* hide menu button on laptop */
@media (min-width: 769px) {
  .header-side-right {
    display: none;
  }
}

/* ========================================
   HEADER MOBILE
======================================== */
@media (max-width: 768px) {
  .header-wrap {
    min-height: 64px;
    position: relative;
  }

  /* اللوجو دائمًا بالنص */
  .site-logo {
    position: absolute;
    top: 50%;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 20;
  }

  .site-logo-img {
    height: 24px;
    width: auto;
  }

  /* الأزرار */
  .header-side-left,
  .header-side-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    align-items: center;
  }

  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
  }

  /* إنجليزي: menu يسار / lang يمين */
  html[dir="ltr"] .header-side-right {
    left: 0;
    right: auto;
  }

  html[dir="ltr"] .header-side-left {
    right: 0;
    left: auto;
  }

  /* عربي: lang يسار / menu يمين */
  html[dir="rtl"] .header-side-left {
    left: 0;
    right: auto;
  }

  html[dir="rtl"] .header-side-right {
    right: 0;
    left: auto;
  }

  /* منيو الجوال - نلغي أي تمركز قديم */
  .site-nav {
    position: absolute !important;
    top: 100% !important;
    transform: none !important;
    margin: 0 !important;

    background: #ffffff;
    border: none;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 40px rgba(36, 46, 56, 0.08);

    padding: 18px 20px 20px;
    display: none;
    flex-direction: column !important;
    gap: 8px;
    z-index: 50;
  }

  .site-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 999px;
  }

  .site-nav a {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 6px;
    border-radius: 10px;
    color: #242e38 !important;
    background: transparent;
  }

  .site-nav a:hover {
    background: rgba(140, 198, 62, 0.08);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  /* إنجليزي: المنيو تفتح من اليسار */
  html[dir="ltr"] .site-nav {
    left: 0 !important;
    right: auto !important;
    width: calc(100% - 200px);
    text-align: left;
    align-items: flex-start;
  }

  html[dir="ltr"] .site-nav a {
    text-align: left;
  }

  /* عربي: المنيو تفتح من اليمين */
  html[dir="rtl"] .site-nav {
    right: 0 !important;
    left: auto !important;
    width: calc(100% - 200px);
    text-align: right;
    align-items: flex-end;
  }

  html[dir="rtl"] .site-nav a {
    text-align: right;
  }
}

/* ========================================
   HERO
======================================== */
.hero {
  position: relative;
  padding: 95px 0 75px;
  overflow: hidden;
  background: url("../assets/background.jpg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(244, 246, 241, 0.76),
      rgba(244, 246, 241, 0.92)
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(140, 198, 62, 0.08),
      transparent 28%
    );
}

.hero-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-copy {
  max-width: 780px;
  text-align: center;
}

.hero-symbol {
  width: 90px;
  height: auto;
  margin: 0 auto 20px;
  opacity: 0.98;
}

.hero-title {
  font-size: 2.65rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ========================================
   HERO LAPTOP
======================================== */
/* HERO LAPTOP */
@media (min-width: 769px) {
  .hero {
    display: flex;
    align-items: flex-start;
    padding: 120px 0 120px;
  }

  .hero-symbol {
    width: 92px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 2.65rem;
  }

  .hero-text {
    font-size: 1rem;
  }
  .hero-actions .btn {
    min-width: 180px;
    justify-content: center;
  }
}

/* ========================================
   HERO MOBILE
======================================== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 45px 0 52px;
  }

  .hero-symbol {
    width: 64px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.28;
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 0.96rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 40%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
}

/* ========================================
   CORE DISCIPLINES
======================================== */
.showcase-section .section-head {
  text-align: center;
}

.showcase-section .section-head p {
  margin: 0 auto;
}

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

.showcase-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.showcase-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #e9eee4;
}

.slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.7s ease,
    transform 2s ease;
}

.slider-image.active {
  opacity: 1;
  transform: scale(1);
}

.showcase-content {
  padding: 20px;
}

.showcase-tag {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(
    135deg,
    rgba(140, 198, 62, 0.16),
    rgba(36, 46, 56, 0.06)
  );
  color: var(--primary);
  font-weight: 800;
}

.showcase-content h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.showcase-content p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ========================================
   CORE LAPTOP
======================================== */
@media (min-width: 769px) {
  .showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   CORE MOBILE
======================================== */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .showcase-image {
    height: 180px;
  }

  .showcase-content {
    padding: 16px;
  }

  .showcase-content h3 {
    font-size: 1rem;
  }

  .showcase-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .showcase-image {
    height: 150px;
  }

  .showcase-content {
    padding: 14px;
  }

  .showcase-tag {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
    border-radius: 10px;
  }
}
/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--darker);
  color: var(--white);
  margin-top: 80px;
}

.footer-top-line {
  width: 100%;
  height: 3px;
  background: var(--gradient);
}

.footer-grid {
  display: flex;
  gap: 50px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 56px 0 34px;
}

.footer-col {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.footer-brand-col {
  flex: 1.2;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  transition: 0.25s ease;
}

.footer-logo-link:hover .footer-logo {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-brand-text {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 18px;
}

.footer-services-list,
.footer-links,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-services-list span,
.footer-links a,
.footer-contact-item {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.footer-title {
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 16px;
  transition: 0.25s ease;
}

.footer-title:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links a {
  transition: 0.25s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: 0.25s ease;
}

.footer-contact-item i {
  width: 18px;
  min-width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: 15px;
  transition: 0.25s ease;
}

.footer-contact-item:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-item:hover i {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 22px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

/* ========================================
   FOOTER MOBILE
======================================== */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 34px;
    padding: 46px 0 28px;
  }

  .footer-col {
    width: 100%;
  }
}
