:root {
  --primary: #1f3f3a;
  --secondary: #2e5b55;
  --gold: #e7dabc;
  --light-gold: #f5f2ea;
  --text-gray: #6b6b6b;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}
body {
  line-height: 1.8;
  color: var(--primary);
}

section {
  padding: 80px 10%;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--gold);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(31, 63, 58, 0.95);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 10%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* اللوجو في النص */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 50px;
  height: auto;
  transform: scale(1.5);
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.6);
}

/* الناف */
/* RTL (عربي) */
html[dir="rtl"] .nav-right {
  margin-left: auto;
}

html[dir="rtl"] .nav-left {
  margin-right: auto;
}

/* LTR (إنجليزي) */
html[dir="ltr"] .nav-right {
  margin-right: auto;
}

html[dir="ltr"] .nav-left {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  color: #f5f2ea;
  text-decoration: none;
}

nav a:hover {
  color: var(--gold);
}
.lang-switch a {
  border: 1px solid #f5f2ea;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #ddc183;
  transition: 0.3s ease;
}

.lang-switch a:hover {
  background-color: #c6bba3;
  color: #fff;
}
.nav-right {
  justify-self: start;
}

.nav-left {
  justify-self: end;
}
/* إخفاء checkbox */
#menu-toggle {
  display: none;
}

/* زر التاب */
.menu-btn {
  display: none;
  width: 35px;
  height: 30px;
  cursor: pointer;
  position: absolute;
  left: 10%;
  top: 18px;
  z-index: 9999;
}

.menu-btn span {
  display: block;
  height: 3px;
  background: #f5f2ea;
  margin: 6px 0;
  border-radius: 3px;
}

/* Hero */
.hero {
  height: 100vh;
  margin-top: 70px;
  background:
    linear-gradient(rgba(31, 63, 58, 0.35), rgba(31, 63, 58, 0.65)),
    url("imgi_67_kafd-places-to-visit-in-riyadh-900 (1).jpg");
  background-size: cover;
  /* background-position: center top; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
.hero h1::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: var(--gold);
  margin: 15px auto 0;
  animation: lineGrow 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes lineGrow {
  to {
    width: 80px;
  }
}

.hero h1 {
  font-family: "Amiri", serif;
  font-size: 3.2rem;
  color: var(--gold);
}
.hero p {
  font-size: 1.3rem;
  color: #e8e1cf;
}
.slogan {
  font-size: 1.4rem;
  margin-top: 10px;
  color: #f5e9c8;
}
.cta-btn {
  margin-top: 35px;
  background: linear-gradient(135deg, var(--gold), #ba994c);
  color: var(--primary);
  padding: 15px 38px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px rgba(198, 167, 94, 0.35);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(198, 167, 94, 0.45);
}

/* About */
.about p {
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: var(--text-gray);
}

/* Vision & Mission */
.vision-mission {
  background: var(--light-gold);
}
.vm-grid {
  display: grid;
  grid-template-columns: 1fr; /* عمود واحد */
  gap: 30px;
}
.box {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  border-right: 5px solid var(--gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.box h3 {
  color: var(--gold);
  margin-bottom: 15px;
}

.vision2030 {
  background: linear-gradient(135deg, #1f3f3a, #2e5b55);
  color: #fff;
  text-align: center;
}
.vision2030 p {
  max-width: 850px;
  margin: auto;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat h3 {
  color: var(--gold);
  font-size: 2.4rem;
}

/************************ Values *********************/
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.value-item {
  background: var(--primary);
  color: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  transition: var(--transition);
}
.value-item i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.value-item small {
  display: block;
  font-size: 0.85rem;
  margin-top: 8px;
  opacity: 0.85;
}
.value-item:hover {
  background: var(--gold);
  color: var(--primary);
}

/****************** Services ***********************/
.services {
  background: #eef2ef;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--gold);
}
.service-card h3 {
  display: flex;
  gap: 10px;
  color: var(--primary);
}
.service-card i {
  color: var(--gold);
}
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--gold);
  cursor: pointer;
}

/* النص المخفي */
.service-desc {
  margin-top: 15px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;

  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
  opacity: 0;
}

/* عند الفتح */
.service-card.active .service-desc {
  max-height: 200px;
  opacity: 1;
}

/* Method */
#method {
  padding-bottom: 160px; /* أكبر من آخر translateY */
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.method-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 25px;
  padding-top: 80px; /* مساحة للصورة */
  border-radius: 6px;
  position: relative;
}

/* السلم */
.method-card:nth-child(1) {
  transform: translateY(0);
}

.method-card:nth-child(2) {
  transform: translateY(40px);
}

.method-card:nth-child(3) {
  transform: translateY(80px);
}

.method-card:nth-child(4) {
  transform: translateY(120px);
}

.method-card img {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  width: 42px;
  height: 42px;
  opacity: 0.75;
  object-fit: contain;
}

/**************** Partners ***************************/
/* Departments */
.departments {
  position: relative;
  background: url("imgi_2_Cqos9eMXgAAaUNM.jpg") center / cover no-repeat;
  padding: 150px 10%;
}

.departments::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(31, 63, 58, 0.82), rgba(31, 63, 58, 0.72));
}
.section-titlee {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid #e7dabc;
  color: #e7dabc;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 70px;
}

.departments > * {
  position: relative;
  z-index: 1;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 25px;
  justify-items: center;
}

/* الكرت نفسه */
.department-card {
  grid-column: span 4;
  text-align: center;
  width: 100%;
}

.department-card:nth-last-child(-n + 4) {
  grid-column: span 3;
}

/* الأيقونة */
.department-card i {
  font-size: 2.2rem;
  color: #e7dabc;
  margin-bottom: 12px;
}

/* العنوان */
.department-card h4 {
  color: #e7dabc;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: #e7dabc;
}

.department-card img {
  width: 48px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  color: #e7dabc;
}

/* Contact */
.contact-info-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

.contact-info h3,
.contact-qr h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--gold); /* نفس لونك */
}

.social i {
  font-size: 1.6rem;
}

footer {
  background: var(--primary);
  color: #ccc;
  text-align: center;
  padding: 30px;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  animation: fadeUp 1s ease forwards;
}

.hero p {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.slogan {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.cta-btn {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

/* ****************************************** */
.entities {
  padding: 80px 10%;
  background: #f8f8f8;
}

.entities .section-title {
  text-align: center;
  /* color: var(--gold); */
  margin-bottom: 40px;
}

.entity-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  width: 220px; /* عرض ثابت */
  height: 200px; /* ارتفاع ثابت */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.entity-card img {
  width: 90px;
  height: 90px; /* ارتفاع ثابت */
  object-fit: contain; /* يحافظ على نسبة الصورة */
  margin-bottom: 15px;
}

.entity-card h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  min-height: 40px; /* يخلي كل العناوين نفس الارتفاع */
}

.entity-card:hover {
  transform: translateY(-6px);
}
/* *********************************************************************** */
/* ================== Mobile Fixes ================== */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 0 5%;
    height: 60px;
  }

  .brand img {
    width: 42px;
    transform: scale(1.2);
  }

  /* Hero Section */
  @media (max-width: 768px) {
    .hero {
      height: 100vh;
      background-attachment: scroll; /* تتحرك مع السكرول */
      background-size: cover; /* تملأ الشاشة بشكل أنيق */
      background-position: center;
      background-repeat: no-repeat;
      padding: 0 20px;
    }
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .slogan {
    font-size: 1.1rem;
  }

  /* Sections padding */
  section {
    padding: 60px 5%;
  }

  /* Departments */
  @media (max-width: 768px) {
    .departments-grid {
      grid-template-columns: repeat(12, 1fr);
      gap: 20px;
    }

    /* أول 6 كروت (3 + 3) */
    .department-card:nth-child(-n + 6) {
      grid-column: span 4; /* 12 / 4 = 3 */
    }

    /* آخر 4 كروت */
    .department-card:nth-child(n + 7) {
      grid-column: span 3; /* 12 / 3 = 4 */
    }
  }

  /* Method cards */
  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    transform: none !important;
  }

  /* Contact */
  .contact-info-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
  }
}

.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-family: inherit;
  transition: 0.3s ease;
  background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 164, 77, 0.25);
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #b8923f;
  transform: translateY(-2px);
}
/*---------------------------------------------
  أيقونات الواتساب واللينكدإن (تأثير الضغط)
---------------------------------------------*/
.contact-info .social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(201, 164, 77, 0.3);
  color: var(--gold);
  transition: 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.contact-info .social a:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  /* ================= General ================= */
  body {
    font-size: 14px;
  }

  section {
    padding: 50px 6%;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 35px;
  }

  /* ================= Header ================= */
  header {
    padding: 0 6%;
    height: 60px;
  }

  nav ul {
    gap: 16px;
    flex-wrap: wrap; /* بس لف */
  }

  .brand img {
    width: 40px;
    transform: scale(1.2);
  }

  /* ================= Hero ================= */
  .hero h1 img {
    width: 280px;
    max-width: 85%;
  }

  .hero p,
  .slogan {
    font-size: 1.1rem;
  }

  .cta-btn {
    padding: 13px 30px;
    font-size: 14px;
  }

  /* ================= Services ================= */
  .services-grid {
    gap: 20px;
  }

  .service-card {
    padding: 22px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  /* ================= Method ================= */
  .method-grid {
    gap: 16px;
  }

  .method-card {
    padding: 22px;
    padding-top: 70px;
  }

  .method-card img {
    width: 36px;
    height: 36px;
  }

  /* ================= Departments ================= */
  .departments {
    padding: 120px 6%;
  }

  .departments-grid {
    gap: 18px;
  }

  .department-card h4 {
    font-size: 0.85rem;
  }

  /* ================= Entities ================= */
  .entity-card {
    width: 200px;
    height: 180px;
  }

  .entity-card img {
    width: 75px;
    height: 75px;
  }

  /* ================= Contact ================= */
  .contact-info-layout {
    gap: 20px;
  }

  .contact-form {
    padding: 22px;
  }
}

/* زر اللغة */
.lang-btn {
  display: none; /* يظهر فقط في الموبايل */
}

.lang-btn a {
  border: 1px solid #e7dabc;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #e7e5e2;
  text-decoration: none;
}

@media (max-width: 768px) {
  /* إظهار زر التاب */
  .menu-btn {
    display: block;
  } /* إظهار زر اللغة جنب التاب */
  .lang-btn {
    display: block;
    position: absolute;
    top: 18px;
    left: 14%;
  } /* إخفاء القوائم */
  .nav-left {
    display: none;
  } /* عند الضغط يظهر القوائم */
  #menu-toggle:checked ~ .nav-left {
    display: block;
    position: absolute;
    top: 70px;
    width: 100%;
    background: rgba(31, 63, 58, 0.95);
    padding: 10px 0;
    text-align: center;
  } /* ترتيب القوائم عموديًا */
  #menu-toggle:checked ~ .nav-left ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  /* زر اللغة على اليسار */
  .english.lang-switch {
    display: block;
    position: absolute;
    top: 18px;
    left: 14%;
  }

  /* زر القوائم على اليمين */
  .english .menu-btn {
    left: auto;
    right: 10%;
  }
}

/* ================= Contact Layout ================= */
.contact-info-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* الفورم أكبر */
  gap: 30px;
  align-items: start;
}
.contact-info-layout2 {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr; /* الفورم أكبر */
  gap: 30px;
  align-items: start;
}

/* ================= Contact Info ================= */
.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* يمين */
  gap: 12px;
  text-align: right;
}

.contact-info i {
  color: var(--gold);
}

.social i {
  font-size: 2rem;
}

/* ================= Contact Form ================= */
.contact-form {
  background: #fff;
  padding: 40px; /* أكبر */
  border-radius: 16px;
  width: 100%;
  max-width: none; /* مهم جداً */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.form-group {
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-family: inherit;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 164, 77, 0.25);
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #b8923f;
  transform: translateY(-2px);
}

/* ================= Social Icons ================= */
.contact-info .social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(201, 164, 77, 0.3);
  color: var(--gold);
  transition: 0.3s ease;
  text-decoration: none;
}

.contact-info .social a:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.contact-info {
  padding-inline-start: 40px; /* مسافة مريحة */
  width: 100%;
}

/* ================= Mobile ================= */
@media (max-width: 768px) {
  .contact-info-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .contact-info p {
    justify-content: center;
  }

  .contact-form {
    padding: 28px;
  }
}
.contact-info h3 {
  font-size: 24px; /* تكبير العنوان */
  margin-bottom: 18px;
}

.contact-info p {
  font-size: 18px; /* تكبير الكلام */
}
.contact-info p {
  gap: 14px;
}
.contact-info .social span {
  font-weight: 600;
}
.display22 {
  visibility: hidden;
}

#contact {
  direction: rtl;
  text-align: right;
}
