/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

@font-face {
  font-family: Cairo;
  src: url("../fonts/Cairo-ExtraBold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(36, 100%, 50%, 1);
  --white-color: hsl(0, 0%, 100%);
  --dark-color: hsl(216, 26%, 11%);
  --dark-color-light: hsl(216, 14%, 24%);
  --body-color: hsl(216, 96%, 98%);
  --hover-color: hsl(36, 100%, 45%, 1);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: Cairo;
  /* --body-font: "Montserrat", sans-serif; */
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent; /* شفاف في البداية */
  z-index: var(--z-fixed);
  transition: background-color 0.4s ease; /* انتقال سلس للون الخلفية */
}
/* عند التمرير: خلفية داكنة */
.header.scrolled {
  background-color: #111; /* أو أي لون تريده */
  box-shadow: 0 4px 12px hsla(216, 24%, 8%, 0.15);
}

.nav {
  direction: rtl;
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white-color);
}
.nav__logo {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
  height: 95px;
  transition: all 0.5s;
}
.header.scrolled .nav__logo {
  height: 75px;
  transition: all 0.5s;
}
.nav__logo img {
  height: 95%;
}
.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.5rem;
  cursor: pointer;
}

@media screen and (max-width: 1150px) {
  .nav__logo,
  .header.scrolled .nav__logo {
    height: 55px;
  }
}
/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: -120%;
    left: 0;
    background-color: #111;
    box-shadow: 0 8px 16px hsla(216, 24%, 8%, 0.2);
    width: 100%;
    padding-block: 4rem;
    z-index: var(--z-fixed);
    transition: top 0.4s;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  top: 0;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
  .header.scrolled .nav {
    height: calc(var(--header-height) + 1rem);
    transition: all 0.5s;
  }
  .nav {
    height: calc(var(--header-height) + 2rem);
    column-gap: 4rem;
    transition: all 0.5s;
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
  .nav__menu {
    margin-right: auto;
  }
}

/*=============== Banner Slider ===============*/
.bannar-hero {
  /* width: 100vw; */
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

.bannar-hero .slider {
  width: 100%;
  height: 615px;
  position: relative;
  overflow: hidden;
}

.bannar-hero .slider .list {
  display: flex;
  transition: 1s;
  height: 100%;
  width: 100%;
  position: relative;
  left: 0;
}

.bannar-hero .slider .item {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.bannar-hero .slider .item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.bannar-hero .slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*===== text above pictures =====*/
.bannar-hero .slider .content {
  position: absolute;
  top: 50%;
  /* left: 50%; */
  transform: translate(-50%, -50%);
  text-align: right;
  color: var(--white-color);
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}
@media screen and (max-width: 992px) {
  .bannar-hero .slider .content {
    width: 85%;
  }
  .lang-switch a {
    gap: 20px !important;
    border-bottom: 1px solid #d1d1d1d1;
  }
  .bannar-hero .slider .content {
    left: 50%;
    text-align: center;
  }
}

.bannar-hero .slider .content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.bannar-hero .slider .content p {
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.bannar-hero .slider .content .btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--first-color);
  color: var(--white-color);
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.bannar-hero .slider .content .btn:hover {
  background-color: var(--hover-color);
  transform: scale(1.05);
}

/*===== arrows =====*/
.bannar-hero .slider .buttons {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 3;
}

.bannar-hero .slider .buttons button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white-color);
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*===== dots =====*/
.bannar-hero .slider .dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  z-index: 3;
}

.bannar-hero .slider .dots li {
  list-style: none;
  width: 10px;
  height: 10px;
  background-color: var(--white-color);
  opacity: 0.6;
  border-radius: 20px;
  transition: 0.5s;
  cursor: pointer;
}

.bannar-hero .slider .dots li.active {
  width: 30px;
  opacity: 1;
}

/*===== responsive mobile =====*/
@media screen and (max-width: 992px) {
  .bannar-hero .slider .content .btn {
    padding: 6px 18px;
  }
}
@media screen and (max-width: 768px) {
  .bannar-hero .slider {
    height: 400px;
  }

  .bannar-hero .slider .content h2 {
    font-size: 22px;
    line-height: 32px;
  }

  .bannar-hero .slider .content p {
    font-size: 16px;
  }
}

/*=============== category Section ===============*/
.category_section,
.about-us,
.why-us,
.cta-section,
.our-projects {
  overflow: hidden;
  padding: 25px 0;
}

.category_section .contain_main,
.about-us .contain_main,
.why-us .contain_main {
  display: flex;
  /* justify-content: space-around; */
}
.category_section .contain_main .content_right {
  width: 35%;
}
.category_section .contain_main .content_left {
  width: 100%;
}
@media (max-width: 992px) {
  .category_section .contain_main {
    flex-direction: column;
  }
  .category_section .contain_main .content_right,
  .category_section .contain_main .content_left {
    width: 100%;
    margin-bottom: 2rem;
  }
}

.category_section .contain_main .content_right h4 {
  color: var(--first-color);
}
.category_section .contain_main .content_right h2 {
  color: var(--dark-color);
  font-size: 34px;
  line-height: 40px;
  margin-bottom: 10px;
}
.category_section .contain_main .content_right p {
  color: var(--dark-color-light);
}

.category_section .contain_main .content_left {
  display: grid;
  grid-auto-flow: column; /* التوزيع الأفقي */
  grid-auto-columns: minmax(200px, 1fr); /* كل عمود على الأقل 200px ويتمدد */
  gap: 20px; /* المسافة بين العناصر */
  padding: 10px 45px 10px 0;
}
.category_section .content_left::-webkit-scrollbar {
  height: 8px;
}
.category_section .content_left::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* شكل البوكس */
.category_section .box-left {
  background: var(--white-color);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.category_section .box-left:hover {
  transform: translateY(-5px);
}

.category_section .box-left a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.category_section .box-left img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.category_section .box-left span {
  display: block;
  padding: 12px;
  font-weight: 600;
  font-size: 18px;
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .category_section .contain_main .content_left {
    grid-auto-flow: row;
    gap: 30px;
    padding: 10px 0 !important;
  }

  .category_section .box-left img {
    height: 250px;
  }

  .category_section .box-left span {
    font-size: 16px;
  }
}

/*=============== About us Section ===============*/

.about-us .contain_main,
.why-us .contain_main {
  justify-content: space-between;
}
.about-us .contain_main .content_right,
.why-us .contain_main .content_right {
  width: 70%;
}

@media (max-width: 992px) {
  .about-us .contain_main,
  .why-us .contain_main {
    flex-direction: column;
  }
  .about-us .contain_main .content_right,
  .about-us .contain_main .content_left,
  .why-us .contain_main .content_right,
  .why-us .contain_main .content_left {
    width: 100%;
    margin-bottom: 2rem;
  }
}

.about-us .contain_main .content_right h4,
.why-us .contain_main .content_right h4 {
  color: var(--first-color);
}
.about-us .contain_main .content_right h2,
.why-us .contain_main .content_right h2 {
  color: var(--dark-color);
  font-size: 34px;
  line-height: 37px;
  margin-bottom: 10px;
}
.about-us .contain_main .content_right p,
.why-us .contain_main .content_right p {
  color: var(--dark-color-light);
}
.about-us .contain_main .content_left {
  padding: 0 50px 25px 0;
}
@media (max-width: 992px) {
  .about-us {
    padding: 0;
  }
  .about-us .contain_main .content_right h2,
  .why-us .contain_main .content_right h2 {
    font-size: 28px;
  }
  .about-us .contain_main .content_left,
  .why-us .contain_main .content_left {
    padding: 0 !important;
  }
  footer .sec-1 img {
    margin: 0 auto;
  }
  .section-heading,
  .section-heading {
    font-size: 26px !important;
    padding: 1rem 0 !important;
    line-height: 37px;
  }
}
/*=============== Why us Section ===============*/
.why-us {
  background-color: var(--white-color);
}
.why-us .contain_main .content_left {
  padding: 0 0 25px 50px;
}

/*=============== Slider Product Section ===============*/
.text-center,
.text-center {
  text-align: center;
  color: var(--first-color);
}

.section-heading,
.section-heading {
  font-size: 34px;
  color: var(--dark-color);
  padding: 2rem 0;
}
.slider_product,
.our_clients,
.why_choise {
  padding: 25px;
  /* background-image: url('https://aqarrplus.com/assetNew/images/pattern-4.webp');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; */
}

.slider_product .card,
.our_clients .card {
  position: relative;
  background: var(--white-color);
  border-radius: 5px;
  margin: 20px 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.slider_product .card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 30px 0;
  position: relative;
  z-index: 100;
}
.slider_product .card .image {
  height: 100%;
  width: 100%;
}
.slider_product .card .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.slider_product .card .name-profession {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
.slider_product .name-profession .name {
  font-size: 20px;
  font-weight: 600;
}
.slider_product .card .button {
  width: 100%;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}
.slider_product .card .button a {
  background: var(--first-color);
  outline: none;
  border: none;
  color: var(--white-color);
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.slider_product .button a:hover {
  background: var(--hover-color);
}
.slider_product .swiper-pagination {
  position: absolute;
}
.slider_product .swiper-pagination-bullet {
  height: 7px;
  width: 26px;
  border-radius: 25px;
  background: var(--first-color);
}
.slider_product {
  position: relative;
}
.slider_product .swiper-button-next,
.slider_product .swiper-button-prev {
  position: relative;
  opacity: 0.7;
  color: var(--first-color);
  transition: all 0.3s ease;
}
.slider_product .swiper-button-prev {
  bottom: 250px;
  right: 67px !important;
  background: #333;
  border-radius: 50%;
  padding: 15px;
  width: 40px;
  height: 40px;
}
.slider_product .swiper-button-next {
  bottom: 230px;
  left: -1194px !important;
  background: #333;
  border-radius: 50%;
  padding: 15px;
  width: 40px;
  height: 40px;
}
.slider_product .swiper-button-next:hover,
.slider_product .swiper-button-prev:hover {
  opacity: 1;
  color: var(--first-color);
}
@media (max-width: 1280px) {
  .slider_product .swiper-button-prev {
    right: 30px !important;
  }
  .slider_product .swiper-button-next {
    left: -1161px !important;
  }
}
@media (min-width: 1440px) {
  .slider_product .swiper-button-prev {
    right: 112px !important;
  }
  .slider_product .swiper-button-next {
    left: -1238px !important;
  }
}
@media (min-width: 1650px) {
  .slider_product .swiper-button-prev {
    right: 403px !important;
  }
}
@media (min-width: 2560px) {
  .slider_product .swiper-button-prev {
    right: 670px !important;
  }
  .slider_product .swiper-button-next {
    left: -1798px !important;
  }
}

/* Responsive media query code for small screens */
/* @media (max-width: 992px) {
  .swiper-backface-hidden .swiper-slide{
    width: 47% !important;
  }
} */
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  position: relative;
  bottom: 50px !important;
}
@media (max-width: 992px) {
  .bannar-hero .slider .buttons {
    display: none;
  }
  .slider_product .swiper-button-next,
  .slider_product .swiper-button-prev {
    display: none;
  }
  .swiper-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-bullets.swiper-pagination-horizontal,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    bottom: 0 !important;
  }
}

/*=============== Slider Clients Section ===============*/
.our_clients {
  background-color: var(--white-color);
}
.our_clients .card .image img {
  margin: 0 auto;
}
.our_clients .content_clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  padding: 20px;
}
.our_clients .content_clients .clients_logo {
  text-align: center;
  padding: 1rem;
  transition: var(--transition);
  opacity: 0.6;
  margin: 0 auto;
}
.our_clients .content_clients .clients_logo img {
  height: 120px;
  width: auto;
  filter: grayscale(100%);
  transition: var(--transition);
}
.our_clients .content_clients .clients_logo h6 {
  font-size: 16px;
}
.our_clients .content_clients .clients_logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.our_clients .content_clients .clients_logo:hover img {
  filter: grayscale(0%);
}
/* متجاوب للشاشات المتوسطة (تابلت) */
@media (max-width: 992px) {
  .our_clients .section-heading {
    font-size: 22px;
  }
  .our_clients .content_clients {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* متجاوب للشاشات الصغيرة (موبايل) */
@media (max-width: 576px) {
  .our_clients .content_clients {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*=============== Why Choise Section ===============*/
.why_choise {
  position: relative;
  text-align: center;
  background: url("../img/whyimg.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  overflow: hidden;
}

.why_choise::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* 👈 شفافية 55% */
  z-index: 1;
}
.why_choise .text-center,
.why_choise .stats-grid {
  position: relative;
  z-index: 2;
}
.why_choise h1 {
  color: var(--white-color);
}
.why_choise .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  justify-items: center;
  margin-top: 1.5rem;
}
.why_choise .circle {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(#ff9900 var(--percent), #444 var(--percent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
}

.why_choise .circle::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  background: var(--body-color);
  border-radius: 50%;
  z-index: 1;
}

.why_choise .circle span {
  position: relative;
  z-index: 2;
}

.why_choise .stat {
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.why_choise .stat h4 {
  margin-top: 15px;
  font-size: 18px;
  color: var(--white-color);
}

/*=============== CTA Section ===============*/
.cta-section {
  background-color: var(--first-color);
}
.cta-section .content_cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.cta-section .right-cta {
  text-align: right;
  color: var(--white-color);
}

.cta-section .left-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta-section .left-cta .btn-cta {
  padding: 12px 24px;
  border-radius: 8px;
}
.cta-section .left-cta .btn-light {
  border: 1px solid var(--white-color);
  background-color: var(--white-color);
  color: var(--first-color);
}
.cta-section .left-cta .btn-outline {
  border: 1px solid var(--white-color);
  color: var(--white-color);
}

/* Responsive*/
@media (max-width: 768px) {
  .cta-section .content_cta {
    grid-template-columns: 1fr; /* عمود واحد */
    text-align: center;
  }

  .cta-section .left-cta {
    align-items: center;
  }

  .cta-section .right-cta {
    text-align: center;
  }
}

/*=============== Footer ===============*/
footer {
  background-color: #111;
}
footer .content-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 أعمدة متساوية */
  gap: 2rem;
  color: #fff;
  padding: 50px 50px;
}

/* الأقسام داخل الفوتر */
footer .sec-1 img {
  width: 85px;
  margin-bottom: 20px;
}

footer .sec-1 p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* أيقونات السوشيال */
footer .footer-icon {
  display: flex;
  gap: 15px;
}

footer .footer-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #222;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer .footer-icon a:hover {
  background-color: #f39c12;
  color: #fff;
}

/* الأقسام الأخرى */
footer h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #f39c12;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
footer .sec-4 li {
  display: flex;
}
footer .sec-4 i {
  font-size: 20px;
  margin: 0 8px;
}
footer ul li a:hover {
  color: #f39c12;
}

/* Responsive Footer */
@media (max-width: 768px) {
  footer .content-footer {
    grid-template-columns: 1fr;
    text-align: justify;
    padding: 50px 40px;
  }

  footer .footer-icon {
    justify-content: center;
  }
}
footer hr {
  width: 100%;
  height: 1px;
  border: 0;
  background-color: #444;
}
footer .footer-bottom {
  text-align: end;
  padding: 25px;
  background-color: #111;
  color: var(--white-color);
  display: flex;
    justify-content: space-between;
}
@media (max-width: 992px) {
    footer .footer-bottom{
        flex-direction:column;
        text-align:center;
    }
}

/*---============ Banner Category Page ===============---*/

.banner {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 36px 0;
}
.banner-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  direction: rtl;
}
.banner-content h1 {
  margin: 0;
  font-size: 28px;
  color: var(--text);
}

/* Layout: categories + cards */
.categories-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
  margin: 36px auto;
  direction: rtl;
}

/* Sidebar */
.categories-sidebar {
  background: linear-gradient(180deg, #fff, #fafafa);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.04);
  position: sticky;
  top: 20px;
  height: fit-content;
}
.sidebar-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.categories-list .cat-item {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s ease;
}
.categories-list .cat-item.active {
  background: hsl(36deg 100% 50% / 13%);
}
.categories-list .cat-item a {
  color: var(--first-color);
}
.categories-list .cat-item:hover {
  transform: translateX(-6px);
  color: var(--main-color);
}
.cat-item.active {
  background: linear-gradient(90deg, rgba(224, 59, 59, 0.06), rgba(224, 59, 59, 0.02));
  color: var(--main-color);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

/* Cards area */
.cards-area {
  min-height: 200px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* الكارت */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  transition: 0.2s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.1);
}
.card-img-wrap {
  width: 100%;
  height: 180px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* محتوى الكارت */
.service-content {
  padding: 16px 18px 22px;
  text-align: right;
}

.service-content h4 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.service-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.view-btn-product {
  display: inline-block;
  background: var(--main-color);
  color: var(--dark-color-light);
  padding: 3px 10px;
  border: 1px solid var(--first-color);
  border-radius: 6px;
  font-size: 14px;
}
.view-btn-product:hover {
  opacity: 0.95;
}

.main-layout-viewProduct .product-image {
  max-width: 450px;
}

.main-layout-viewProduct .main-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-layout-viewProduct .thumbnail-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.main-layout-viewProduct .thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  border: 2px solid transparent;
}

.main-layout-viewProduct .thumbnail:hover {
  transform: scale(1.05);
}

.main-layout-viewProduct .active-thumb {
  border: 2px solid #28a745 !important;
}

/* Responsiveness */
@media (max-width: 992px) {
  .cards-grid {
    margin-left: 21px;
    margin-right: 21px;
    grid-template-columns: repeat(2, 1fr);
  }
  .banner-inner {
    grid-template-columns: 1fr 220px;
  }
}
@media (max-width: 720px) {
  .categories-layout {
    grid-template-columns: 1fr;
    direction: rtl;
  }
  .categories-sidebar {
    margin-left: 21px;
    margin-right: 21px;
    order: 0;
    margin-bottom: 16px;
    position: relative;
    top: auto;
    text-align: right;
  }
  .cards-grid {
    margin-left: 21px;
    margin-right: 21px;
    grid-template-columns: 1fr;
  }
  .banner-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .banner-image {
    height: 140px;
  }
}
/*---=========== Products Page By Category ===============---*/

.section-card-products .cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 40px 0;
}
.section-card-products .service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.section-card-products .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.section-card-products .card-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.section-card-products .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-card-products .service-content {
  padding: 18px 15px;
  flex-grow: 1;
}

.section-card-products .service-content h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.section-card-products .service-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* أزرار أسفل الكرت */
.section-card-products .link-btns {
  display: flex;
  gap: 10px;
  padding: 15px;
}

.section-card-products .view-btn-product {
  flex: 1;
  text-align: center;
  background: #f39c12;
  color: #fff;
  padding: 4px 0;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s ease;
}

.section-card-products .view-btn-product:hover {
  background: var(--body-color);
  color: var(--first-color);
}

/* ======= Responsive ======= */

@media (max-width: 992px) {
  .section-card-products .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .section-card-products .cards-grid {
    grid-template-columns: 1fr;
  }

  .section-card-products .card-img-wrap {
    height: 150px;
  }
}
/*---============= Page View Product ===============---*/
.main-layout-viewProduct {
  padding: 50px 0;
}

.product-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

/* صورة المنتج */
.product-image {
  flex: 0 0 45%;
}

.product-image img {
  width: 100%;
  height: 400px;
  border-radius: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

/* معلومات المنتج */
.product-info {
  flex: 1;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

.product-desc {
  overflow: hidden;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

/* زر واتساب */
.whatsapp-btn {
  display: flex;
  justify-content: flex-start;
  max-width: fit-content;
  background: #25d366;
  color: #fff;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  margin-top: 2rem;
}
.whatsapp-btn i {
  margin-right: 0.5rem;
}
.whatsapp-btn:hover {
  background: #1eb858;
}

/* ======= Responsive ======= */

@media (max-width: 992px) {
  .product-wrapper {
    gap: 25px;
  }

  .product-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .product-wrapper {
    flex-direction: column;
  }

  .product-image {
    width: 100%;
  }

  .product-info {
    text-align: right;
  }
}

/*---=========== Our Projects Section =============---*/
.our-projects .contain_main .content_left {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Columns */
  gap: 20px;
  direction: rtl;
}

/* الصندوق */
.box-left a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: 0.3s ease;
  background: #f8f8f8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* الصورة */
.box-left img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* العنوان */
.box-left span {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  transition: 0.3s ease;
}

/* Hover Effects */
.box-left a:hover img {
  transform: scale(1.1);
}

.box-left a:hover span {
  background: rgba(0, 0, 0, 0.75);
}

/* ======= Responsive ======= */

/* Tablet */
@media (max-width: 992px) {
  .our-projects .contain_main .content_left {
    grid-template-columns: repeat(2, 1fr);
  }

  .box-left img {
    height: 200px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .our-projects .contain_main .content_left {
    grid-template-columns: repeat(1, 1fr);
  }

  .box-left img {
    height: 180px;
  }

  .box-left span {
    font-size: 15px;
    padding: 10px;
  }
}
/*=============== view project page ===============*/
.project-view {
  padding: 60px 0;
  background: #f9f9f9;
}

.project-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.project-image {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}

.project-image img {
  flex-wrap: wrap;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.project-info {
  width: 100%;
}

.project-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.project-desc {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

/* Responsive */
@media (max-width: 992px) {
  .project-image {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .project-title {
    font-size: 26px;
  }
  .project-desc {
    font-size: 16px;
  }
}
.img-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.img-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.img-popup span {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.img-popup span:hover {
  color: #ff4444;
}
