/* start Intro */
.main {
  background: linear-gradient(to top, var(--color1) 0%, var(--color2) 91%);
}

.main .container .intro-container {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.main .container .content {
  direction: rtl;
  gap: 15px;
}

.main .container .content h1 span {
  line-height: 2;
}

.main .container .content a {
  margin: 3px;
}

.main .container .img-div {
  position: relative;
}

.main .container .img-div img {
  height: 630px;
  width: auto;
  margin-bottom: -50px;
}

@media (max-width: 1024px) {
  .main .container .intro-container {
    gap: 35px;
  }

  .main .container .img-div img {
    height: 510px;
    width: auto;
  }

  .main .container .content {
    max-width: 370px;
  }
}

@media (max-width: 767px) {
  .main .container .intro-container {
    flex-direction: column;
    justify-content: center;
  }

  .main .container div h1 {
    font-size: 23px;
  }
}

@media (max-width: 520px) {
  .main .container .content {
    max-width: 400px;
  }

  .main .container .img-div img {
    height: 450px;
  }
}

@media (max-width: 420px) {
  .main .container .content {
    max-width: 320px;
  }
}

@media (max-width: 350px) {
  .main .container .content {
    max-width: 300px;
  }
}

/* End Intro */

/* Start Product */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-items: center;
  gap: 25px;
}

.product-box {
  position: relative;
  overflow: hidden;
  /* لإخفاء أي أجزاء من شارة الخصم تخرج عن الإطار إذا كان للكارد حواف دائرية */
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fff;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
  background-color: white;
  border-radius: 10px;
  cursor: pointer;
  max-width: 380px;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.product-box:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-box img {
  max-width: 100%;
  height: calc(100% - 50px);
  transition: 0.5s;
  border-radius: 10px;
}

.product-box .info {
  padding-bottom: 20px;
}
.product-box .info h4 {
  margin: 5px;
  font-size: 18px;
  color: var(--color2);
}

.product-box:hover img {
  filter: grayscale(100%);
}

.product-box:hover h4 {
  filter: grayscale(100%);
}

/* تصميم علامة الخصم */
.discount-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #e74c3c;
  /* لون أحمر جذاب للخصومات */
  color: white;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  /* للتأكد من أنها فوق الصورة */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* تنسيق قسم الأسعار */
.price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  /* مسافة بين السعرين */
  margin-top: 10px;
  width: 100%;
}

.product-box:hover .price-box {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.old-price {
  font-size: 16px;
  color: #95a5a6;
  /* لون رمادي للسعر القديم */
  text-decoration: line-through;
  /* خط يشطب السعر القديم */
}

.new-price {
  font-size: 25px;
  font-weight: bold;
  color: #cc340e;
}
.original-price {
  font-size: 22px;
  font-weight: bold;
  color: #139239;
}
/* end product */

/* Start Features */
.features {
  padding-bottom: 100px;
  overflow: hidden;
}

/* -----tabs------ */
.features .features-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.features .features-tabs .tab-links {
  width: fit-content;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgb(204, 202, 202);
  gap: 5px;
}

.features .features-tabs .tab-links button {
  width: 210px;
  padding: 15px 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.features .features-tabs .tab-links button:hover,
.features .features-tabs .tab-links button.active {
  background-color: var(--color1);
  color: #fff;
  border-bottom: 3px solid var(--color2);
}

/*----tabs content-----*/
.tab-content > div {
  display: flex;
  align-items: center;
}

.tab-content > div:not(:first-child) {
  display: none;
}

.features .features-tabs .tab-content > div .img-frame {
  position: relative;
}

.features .features-tabs .tab-content > div .img-frame::after {
  position: absolute;
  content: "";
  bottom: -75px;
  left: -150px;
  width: 650px;
  height: 290px;
  background-color: var(--main-sections-color);
  border-radius: 0 0 150px 0;
  z-index: -1;
}

.features .features-tabs .tab-content > div .img-frame img {
  margin-right: 150px;
  width: 550px;
  height: 450px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% !important;
}

.tab-content > div .details-frame {
  margin-left: -60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  direction: rtl;
}

/*---media query---*/
@media (max-width: 1224px) {
  .features .features-tabs .tab-content > div .img-frame::after {
    bottom: -75px;
    left: -220px;
    width: 650px;
    height: 260px;
  }

  .features .features-tabs .tab-content > div .img-frame img {
    width: 450px;
    height: 350px;
  }
}

@media (max-width: 1024px) {
  .features .features-tabs .tab-content > div .img-frame::after {
    bottom: -75px;
    left: -300px;
    width: 650px;
    height: 230px;
  }

  .features .features-tabs .tab-content > div .img-frame img {
    width: 430px;
    height: 300px;
  }

  .tab-content > div .details-frame {
    margin-left: -70px;
  }
}

@media (max-width: 750px) {
  .features .features-tabs .tab-links {
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .features .features-tabs .tab-links button {
    border-bottom: 1px solid rgb(204, 202, 202);
  }

  .tab-content {
    margin-top: -20px;
  }

  .tab-content > div {
    flex-direction: column-reverse;
    gap: 45px;
  }

  .tab-content > div .details-frame {
    margin: 0;
    width: 450px;
    justify-content: center;
    align-items: center;
  }

  .tab-content > div .details-frame h2 {
    color: var(--color2);
  }

  .tab-content > div .details-frame p {
    text-align: center;
  }

  .tab-content > div .img-frame {
    margin-left: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .features .features-tabs .tab-content > div .img-frame::after {
    bottom: -45px;
    left: -280px;
    width: 650px;
    height: 230px;
  }
}

@media (max-width: 650px) {
  .tab-content > div .img-frame {
    margin-left: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 550px) {
  .features .features-header p {
    width: 400px;
    font-size: 15px;
  }

  .tab-content > div .details-frame {
    width: 410px;
  }

  .features .features-tabs .tab-content > div .img-frame::after {
    bottom: -45px;
    left: -350px;
    width: 650px;
    height: 230px;
  }

  .features .features-tabs .tab-content > div .img-frame img {
    width: 380px;
    height: 300px;
  }
}

@media (max-width: 450px) {
  .features .features-header p {
    width: 330px;
  }

  .tab-content > div .details-frame {
    width: 330px;
  }

  .tab-content > div .details-frame p {
    font-size: 15px;
  }

  .features .features-tabs .tab-content > div .img-frame::after {
    bottom: -45px;
    left: -380px;
    width: 650px;
    height: 230px;
  }

  .features .features-tabs .tab-content > div .img-frame img {
    width: 330px;
    height: 260px;
  }
}

@media (max-width: 370px) {
  .features .features-header p {
    width: 300px;
  }

  .tab-content > div .details-frame {
    width: 300px;
  }

  .tab-content > div .details-frame p {
    font-size: 15px;
  }

  .features .features-tabs .tab-content > div .img-frame::after {
    bottom: -45px;
    left: -400px;
    width: 650px;
    height: 230px;
  }

  .features .features-tabs .tab-content > div .img-frame img {
    width: 300px;
    height: 245px;
  }
}

/* End Features */

/* Start Services */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-items: center;
  gap: 25px;
}

.service-box {
  background-color: white;
  border-radius: 10px;
  cursor: pointer;
  max-width: 380px;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.service-box img {
  max-width: 100%;
  height: calc(100% - 50px);
  transition: 0.5s;
  border-radius: 10px;
}

.service-box .info h4 {
  margin: 5px;
  font-size: 18px;
  color: var(--color2);
}

.service-box:hover img {
  filter: grayscale(100%);
}

.service-box:hover h4 {
  filter: grayscale(100%);
}
/* End Services */

/* Start Videos */
.videos {
  background-color: #eee;
}

.video-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-items: center;
  gap: 25px;
}

.video-cards .box {
  position: relative;
  background-color: white;
  border-radius: 10px;
  cursor: pointer;
  max-width: 360px;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.box div h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 1.8em;
  line-height: 1.8em;
  color: var(--color2);
}

.box span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  background-color: white;
  color: var(--color2);
  font-size: 17px;
  font-weight: bold;
}

.box .image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(255 255 255 / 20%);
  width: 0;
  height: 0;
  opacity: 0;
  z-index: 2;
}

.box .image:hover::before {
  animation: flashing 1s;
}

.box img {
  max-width: 100%;
  transition: 0.3s;
}

.box .image:hover img {
  transform: rotate(0.5deg) scale(0.9);
}

@keyframes flashing {
  0%,
  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    width: 300%;
    height: 300%;
  }
}

/* End Videos */

/* Start Gallery */
.gallery .imgs-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery .imgs-container .box {
  max-width: 400px;
}

.gallery .imgs-container .box .caption {
  position: absolute;
  left: 0;
  padding: 10px;
  background-color: white;
  width: 100%;
  bottom: -100%;
}

.gallery .imgs-container .box:hover .caption {
  bottom: 0;
}

.gallery .imgs-container .box img {
  max-width: 100%;
  min-height: 100%;
  max-width: 360px;
}

.gallery .imgs-container .box:hover img {
  transform: rotate(3deg) scale(1.1);
}

/* End Gallery */

/* Start Partners */
.partners-section {
  background: rgb(37, 102, 173);
  background: linear-gradient(
    180deg,
    var(--color2) 0%,
    var(--center-gradient) 52%,
    var(--color2) 95%
  );
  padding: 50px 0;
}

.partners {
  position: relative;
  overflow: hidden;
}

.partners-imgs {
  padding: 0 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.partners .box {
  padding: 0px 0px;
  margin: 10px;
  color: #fff;
  border-radius: 10px;
  text-align: center;
}

.gallery-nav {
  position: absolute;
  color: white;
  font-size: 2em;
  border-radius: 50%;
  top: 25%;
}

.gallery-nav.prev {
  left: 2px;
}

.gallery-nav.next {
  right: 2px;
}

.gallery-nav:hover,
.gallery-nav:focus,
.gallery-nav:active {
  color: var(--color3);
}

/* End Partners */

/* Start timeline */
.timeline {
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline h1 {
  color: var(--color2);
}

.timeline .box {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--color1);
  border-radius: 10px;
  color: white;
}

.timeline .box .img-box {
  padding: 3px;
  background-color: white;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  position: absolute;
  top: -30px;
  left: 12px;
  border: 5px solid var(--color1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline .box .img-box img {
  width: 55px;
  height: 55px;
}
/* End timeline */

/* Start Testimonials */
.review {
  width: 100%;
  display: flex;
  align-items: center;
}

.review-box {
  max-width: 800px;
  height: fit-content;
  margin: 0 auto;
  padding: 35px 25px;
  display: flex;
  gap: 20px;
  cursor: pointer;
  background-color: #eee;
  border-radius: 10px;
  box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.2);
  transition: 0.5s;
}

.client-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
}

.review-star {
  text-align: center;
  color: rgb(255, 214, 0);
  font-size: 30px;
  padding-top: 10px;
}

.box-content {
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

p.client-name {
  font-size: 30px;
  color: #131212;
  display: inline-block;
}

.review-desc {
  font-size: 24px;
  line-height: 1.8;
  font-weight: 100;
  font-style: italic;
  padding: 20px 0;
  color: #131212;
}

p.job-title {
  font-size: 18px;
  color: #131212;
  display: inline-block;
}

@media (max-width: 700px) {
  .review-box {
    max-width: 500px;
    gap: 12px;
  }

  .client-pic {
    width: 170px;
    height: 170px;
  }

  .review-star {
    font-size: 23px;
  }

  p.client-name {
    font-size: 25px;
  }

  .review-desc {
    font-size: 18px;
    line-height: 1.3;
    padding: 10px 0;
  }
}

@media (max-width: 500px) {
  .review-box {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -15px;
  }

  .box-content {
    align-items: center;
  }

  .review-desc {
    text-align: center;
  }
}

/* End Testimonials */

/* Start F-Q */
.questions {
  background-color: #eee;
  padding: 50px 0 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
}

.questions .question-content {
  direction: rtl;
  width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.questions .question-content .question-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.questions .question-content .question-frame .question {
  width: 100%;
  padding: 20px 5px 15px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--color4);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.active-question > p {
  color: #f44336;
  font-size: 20px;
  font-weight: 700;
}

.questions .question-content .question-frame .answer {
  padding: 0 15px;
  max-width: 600px;
  max-height: 0;
  overflow: hidden;
  transition: 0.8s;
  text-wrap: balance;
}

.questions .question-content .question-frame .answer span {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  color: #0c0c0c;
  text-align: right;
  margin-top: 10px;
}

@media (max-width: 500px) {
  .questions .questions-header p {
    width: 400px;
  }

  .questions .question-content {
    width: 400px;
  }
}

@media (max-width: 430px) {
  .questions .questions-header p {
    width: 350px;
    font-size: 15px;
  }

  .questions .questions-header h2 {
    text-align: center;
    width: 310px;
  }

  .questions .question-content {
    width: 350px;
  }
}

@media (max-width: 380px) {
  .questions .questions-header p {
    width: 300px;
    font-size: 14px;
  }

  .questions .questions-header h2 {
    width: 280px;
    font-size: 22px;
  }

  .questions .question-content {
    width: 300px;
  }

  .questions .question-content .question-frame .question p {
    font-size: 15px;
  }
}

@media (max-width: 350px) {
  .questions .title_container p {
    width: 270px;
    line-height: 1.4;
  }

  .questions .questions-header h2 {
    width: 270px;
  }

  .questions .question-content {
    width: 270px;
  }
}
/* End F-Q */

