/* Reset */
:root {
  --bs-primary: #C0392B;
  --bs-dark: #222126;
  --secondary-color: #5A5A5A;
  --bs-light: #FAFBFB;
  --bs-background: #F3F3F3;
  --bs-secondary: #222126;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: var(--bs-light);
  color: var(--bs-secondary);
  font-weight: 500;
  line-height: 1.8;
}

a {
  transition: all 0.3s ease-in-out;
}

.btn-outline-primary {
  color: var(--bs-light) !important;
  border-color: var(--bs-light) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--bs-light) !important;
  color: var(--bs-primary) !important;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

.head-section {
  margin-block-end: 40px;
  position: relative;
  color: var(--bs-dark);
  font-weight: 600;
  font-size: 32px;
  padding-block-end: 8px;
}

.head-section::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 2px;
  background-color: var(--bs-primary);
  bottom: -5px;
  inset-inline: 0;
  margin-inline: auto;
}

.head-section:not(.text-center)::after {
  margin-inline: 0;
}

.btn {
  padding: 11px 55px;
  border-radius: 0 !important;
}

.swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  border-radius: 50px;
  background-color: #E0E6EB;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

/* عند تحديد الصفحة النشطة */
.swiper-pagination-bullet-active {
  background-color: var(--bs-primary);
  opacity: 1;
  transform: scale(1.2);
}

.swiper-pagination {
  bottom: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  color: var(--bs-primary);
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

/* تغيير لون الأزرار */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  border-radius: 0;
}

.btn-primary:hover {
  background-color: #365254 !important;
  border-color: #2e4648 !important;
}

/* تغيير لون حقول الإدخال */
.form-control:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25) !important;
}

/* Header */
#masthead {
  position: absolute;
  top: 0;
  z-index: 9999;
  inset-inline: 0;
}

button.menu-toggle {
  display: none;
}

#masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 19px;
  padding-inline: 30px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}

#primary-menu {
  margin: 0;
  display: flex;
  gap: 2rem;
  font-weight: 600;
  align-items: center;
}

a.custom-logo-link img {
  max-width: 260px;
  height: auto;
}

#primary-menu a[aria-current="page"],
#primary-menu a:hover {
  color: var(--bs-light) !important;
}

#primary-menu a {
  position: relative;
  transition: all 0.3s ease-in-out;
  color: var(--bs-light);
}

#primary-menu a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--bs-primary);
  bottom: -5px;
  inset-inline: 0;
  margin-inline: auto;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

#primary-menu li:last-child a::after {
  display: none;
}

#primary-menu a[aria-current="page"]::after,
#primary-menu a:hover::after {
  transform: scaleX(1);
}

#site-navigation {
  display: flex;
  gap: 16px;
  align-items: center;
}

#site-navigation button {
  background: transparent;
  border: none;
}

#masthead.container .information {
  background-color: var(--bs-primary);
  color: #FFF;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 20px;
  padding-inline: 20px;
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  padding-block: 10px;
}

#masthead.container .information ul {
  display: flex;
  gap: 14px;
  margin: 0;
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  background-color: var(--bs-primary);
  padding: 10px;
  border-radius: 5px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  min-width: 200px;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.wpml-ls-native {
  background-color: var(--bs-primary);
  display: block;
  padding: 10px;
  color: var(--bs-light);
  transition: all 0.3s ease-in-out;
}

.wpml-ls-native:hover {
  background-color: var(--bs-light);
  color: var(--bs-primary);
}

/* Slider */

#slider {
  position: relative;
}

#slider .item {
  min-height: 720px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: grid;
  place-content: center;
  color: var(--bs-light);
}

#slider .item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

#slider .item .swiper-caption h2 {
  position: relative;
  font-size: 60px;
  margin-block-end: 25px;
  font-weight: 600;
}

#slider .item .swiper-caption p {
  margin-block-end: 25px;
  font-size: 20px;
  line-height: 1.8;
}

/* News */

#news {
  background-color: var(--bs-background);
}

#news .image {
  position: relative;
  padding-inline: 60px 130px;
  padding-block: 50px;
}

#news .image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 5px solid var(--bs-primary);
  width: 60%;
  inset-inline-start: 0;
}

#news .image figure {
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin: 0;
  position: relative;
  z-index: 9
}

#news .image figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About */
.about-us {
  background: var(--bs-light) !important;
}

.about-us .image {
  padding-inline: 130px 60px !important;
}

.about-us .image::after {
  inset-inline-start: unset !important;
  inset-inline-end: 0;
}

.about-us .items {
  display: grid;
  gap: 30px;
  margin-block-start: 30px;
}

.about-us .items .item h2 {
  font-size: 30px;
  color: var(--bs-primary);
  font-weight: 600;
}

/* Our Goals */
#our-goals {
  background: var(--bs-secondary);
  color: var(--bs-light);
  position: relative;
  height: max(590px, 100px);
}

#our-goals .head-section {
  color: var(--bs-light);
}

#our-goals .image {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 45%;
  z-index: 9;
}

#our-goals .image::after {
  content: '';
  position: absolute;
  bottom: -32px;
  inset-inline-start: -32px;
  z-index: -1;
  width: 320px;
  aspect-ratio: 1/1;
  background-color: var(--bs-primary);
}

#our-goals .image figure {
  height: max(590px, 100px);
  overflow: hidden;
}

#our-goals .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-our-goals ul {
  display: grid;
  gap: 30px;
  margin-block-start: 30px;
  padding: 0;
  list-style: none;
}

.content-our-goals ul li {
  position: relative;
  padding-inline-start: 30px;
  counter-increment: number;
  display: flex;
  gap: 20px;
}

.content-our-goals ul li::before {
  content: '0' counter(number);
  font-weight: 600;
  background-color: var(--bs-primary);
  color: var(--bs-light);
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  line-height: 30px;
  text-align: center;
  margin-top: 8px;
}


/* Service */
#services {
  background: var(--bs-background);
}

.box-service {
  text-align: center;
  background: var(--bs-light);
  box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
  position: relative;
  padding: 3.5rem 1rem;
}

.box-service figure {
  height: 75px;
}

.box-service figure img {
  height: 100%;
  width: 100%;
  object-fit: scale-down;
}

.box-service h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.swiper-pagination {
  bottom: -30px !important;
}

.line-bottom-after::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  background-color: var(--bs-primary);
  bottom: 0px;
  inset-inline: 0;
  margin-inline: auto;
  transition: all 0.3s ease-in-out;
}

.line-bottom-after:hover::after {
  width: 100%;
}

/* Project */
#projects figure {
  position: relative;
  height: 300px;
  margin: 0;
}

#projects figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: all 0.3s ease-in-out;
}

#projects figure img:hover {
  filter: grayscale(0);
}

#projects .box-service {
  padding: 0;
}

#projects .box-service h4 {
  font-size: 20px;
  font-weight: bold;
  padding: 30px 0;
  margin: 0;
}

#projects .box-service h4 a {
  color: var(--bs-dark);
}

#projects .box-service h4 a:hover {
  color: var(--bs-primary);
}

/* partners */

.box-partner figure {
  overflow: hidden;
  height: 160px;
  margin-inline: auto;
  background-color: #FFF;
  box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
}

.box-partner figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.box-partner h3 {
  font-size: 18px;
  font-weight: 500;
}

/* Contact us */

#contact-us {
  background-image: url(../images/bg-01.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#contact-us::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

#contact-us .head-section {
  color: #FFF;
}

/* Map */

#map {
  height: 300px;
  filter: grayscale(1);
}

#map iframe {
  width: 100%;
  height: 100%;
}

.site-box {
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
  margin-block-end: 30px;
}

.site-box figure {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-block-end: 0px;
}

.site-box figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}

.site-box figure img:hover {
  transform: scale(1.1);
}

.site-box .inner-content {
  padding: 30px;
  text-align: center;
  color: var(--bs-dark);
}

.site-box .inner-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-block-end: 10px;
}

.site-box .inner-content h3 a:hover {
  color: var(--bs-primary);
}

.site-box .inner-content p {
  margin: 0;
}

/* Footer */

footer {
  color: #FFF;
  background: var(--bs-primary);
  padding-block: 80px 20px;
}

footer figure {
  height: 120px;
  width: 187px;
  margin-block-end: 20px;
}

footer figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

footer .top h3 {
  font-size: 18px;
  font-weight: 600;
  margin-block-end: 24px;
}

footer .top a {
  transition: all 0.3s ease-in-out;
}

footer .top a:hover {
  color: var(--bs-background);
}

footer .top ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
}

footer .top ul li {
  display: block;
  margin-block-end: 8px;
}

footer .copyright .container {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-block-start: 16px;
}

footer .copyright p {
  margin: 0;
}

#logo-close-container {
  display: none;
}

.form-control {
  border-radius: 0 !important;
  min-height: 42px;
  direction: rtl !important;
}

textarea.form-control {
  border-radius: 25px;
  height: 190px;
}

.entry-header-image {
  min-height: 390px;
  background-position: center;
  background-size: cover;
  background-color: #0000007d;
  background-blend-mode: multiply;
  color: #FFF;
  display: grid;
  place-content: center;
}

h1.entry-title {
  font-size: 28px;
  margin: 0;
  padding-block-start: 110px;
}

.post-thumbnail {
  text-align: center;
  margin-block-end: 40px;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-type-archive-partners .site-box .inner-content {
  display: none;
}

.post-type-archive-partners .site-box figure {
  height: 150px;
}

.post-type-archive-partners .site-box figure img {
  object-fit: scale-down;
}

@media (max-width:992px) {
  #primary-menu {
    position: fixed;
    background: var(--bs-primary);
    height: 100vh;
    inset-inline-start: 0;
    width: 250px;
    flex-direction: column;
    top: 0;
    padding-block-start: 40px;
    padding-inline: 25px;
    z-index: 9999;
    transform: translateX(250px);
    transition: 300ms;
  }

  #primary-menu a {
    color: #FFF;
  }

  #primary-menu a[aria-current="page"] {
    color: #FFF !important;
  }

  #primary-menu a:hover {
    color: #FFF !important;
  }

  #primary-menu.active {
    transform: translateX(0);
  }

  #logo-close-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  #logo {
    background-image: url(../images/Logo.png);
    width: 120px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0)invert(1);
  }

  #site-navigation button#btn-search {
    display: none;
  }

  #site-navigation button~a.btn.btn-primary {
    font-size: 12px;
    padding: 10px 20px;
  }

  a.custom-logo-link img {
    max-width: 230px;
  }

  #site-navigation {
    margin-block-start: 0;
  }

  #masthead.container .information {
    font-size: 12px;
    width: 100%;
    border-radius: 0;
  }

  #masthead.container {
    padding-block-start: 54px;
    padding-inline: 16px;
  }


  #masthead.container .information ul {
    padding: 0;
    gap: 11px;
  }

  #masthead.container .information>.d-flex.gap-4.align-items-center.justify-content-between>.d-flex.align-items-center.gap-3 {
    display: none !important;
  }

  #about-us .row {
    flex-direction: column-reverse;
  }

  #about-us .row+.row {
    margin-top: 40px;
  }

  footer figure {
    margin-inline: auto;
  }

  footer .copyright .container {
    justify-content: center;
    gap: 16px;
    flex-direction: column;
  }

  #slider .item .swiper-caption h2 {
    font-size: 30px;
    font-weight: 500;
    background: transparent;
    width: 100%;
    text-align: center;
    padding: 0;
    margin-block-end: 11px;
  }

  #slider .item .swiper-caption {
    text-align: center;
  }

  #closeButton {
    border: 0;
    background: transparent;
    font-size: 20px;
    color: #FFF;
  }

  button.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #FFF;
  }

  #slider .item {
    min-height: 410px;
  }

  #slider .item h2 {
    text-align: center;
  }

  #about-us .inner-content {
    padding-inline-end: 0;
    margin-block-end: 30px;
  }

  footer .top {
    text-align: center;
    font-size: 14px;
  }

  footer .top .social-icons {
    justify-content: center;
    margin-block-end: 30px;
  }

  footer .copyright p {
    font-size: 11px;
  }

  #slider .item .swiper-caption p {
    font-size: 12px;
    margin-block-end: 9px;
  }

  #news .image,
  .about-us .image {
    padding-inline: 0 !important;
    padding-block: 26px;
  }

  #news .image::after,
  .about-us .image::after {
    display: none;
  }

  #services .btn-primary {
    margin-block-start: 30px;
  }

  #our-goals .image {
    width: 100%;
    opacity: .1;
  }

  #our-goals .image::after {
    display: none;
  }

  #our-goals {
    height: 100%;
  }

  .btn {
    padding: 10px 30px;
  }

  #slider .item .swiper-caption .d-flex{ justify-content: center; }

}