/* ================ Start Hero =============== */
.hero {
  background-image: url("../images/GroupProjects.png");
  background-position: center 10%;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  background-color: #42253b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* يخليه في النص بالظبط */
  z-index: 2;
  margin: 0;
  padding: 0 20px;
}


.hero .content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.hero .text {
  color: #fff;
  max-width: 600px;
}

.hero .text h2 {
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 140%;
  color: var(--primary-color);
}

.hero .text h1 {
  font-size: 60px;
  font-weight: 700;
  font-style: Bold;
  margin-bottom: 15px;
  line-height: 140%;
  color: var(--primary-color);
  text-wrap: nowrap;
}

.hero .text span {
  font-family: "Almarai", sans-serif;
  font-size: 32px;
  display: block;
  margin-bottom: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 140%;
}

.hero .text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--card-bg-color);
  line-height: 1.7;
  margin-bottom: 20px;
}
/* ================ End Hero =============== */

/* ================ start Project section =============== */
.projects-section {
  background-color: #f6f4f1;
}

/* filter */
.filter-container {
  display: flex;
  gap: 15px; /* Adjust spacing between items */
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}
.filters {
  display: flex;
  gap: 15px;
}

.search-wrapper {
  position: relative;
  background-color: #fff;
  border-radius: 50px; /* Makes the shape oval */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 50px;
}

.custom-select-wrapper {
  position: relative;
  background-color: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 50px;
  min-width: 200px;
  cursor: pointer;
}
.custom-select-trigger {
  width: 100%;
  font-size: 16px;
  color: #333;
  line-height: 50px;
  position: relative;
}
.custom-select-trigger::-ms-expand {
  display: none; /* Hides default arrow on IE/Edge */
}

/* Custom dropdown arrow using a pseudo-element */
.custom-select-trigger::after {
  content: "▼";
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #777;
  pointer-events: none;
}
.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0;
  margin-top: 5px;
  display: none; /* Initially hidden */
  z-index: 9999;
}

input[type="text"] {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  padding: 0 10px;
  width: 100%;
  height: 100%;
}

.search-wrapper {
  width: 350px; /* Adjust width as needed */
  justify-content: space-between;
}

.search-button {
  background: transparent;
  border: none;
  cursor: pointer;
}

.search-icon {
  width: 24px;
  height: 24px;
  fill: #555;
}
.custom-select-wrapper {
  position: relative;
}

.custom-options.active {
  display: block; /* Show when active */
}

.custom-options li {
  padding: 10px 20px;
  cursor: pointer;
}

.custom-options li:hover {
  background-color: #f0f0f0;
}
/* filter */
/* ================ start card section =============== */


.project-card {
  border-radius: 15px;
  overflow: hidden;
  border: none;
  background-color: var(--card-bg-color);
  color: var(--text-colo);
  padding: 24px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 32px;
  margin: 10px;
}

.card-img-top {
  border-radius: 24px 24px 0 0;
}
.project-card .card-body {
  position: relative;
  top: -20px;
  background-color: #fbf9f7;
  z-index: 999;
  border-radius: 24px;
}
.project-card .card-body p {
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.project-card .card-title {
  color: var(--text-colo);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
}
.project-card .card-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #818f91;
}

.project-card small {
  color: var(--text-color-secondary);
}

.project-card .btn {
  background-color: var(--third-color);
  color: white;
}

.badge {
  font-size: 0.8rem;
  border-radius: 0.5rem;
  padding: 8px 12px;
  background-color: var(--bg-page) !important;
}
.project-price {
  color: var(--text-colo);
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  margin-top: 10px;
}
/* Frame 2147224220 */

.container-slider-project {
  padding: 0 100px 0 100px !important;
}

/* ================ end Project card =============== */

/* ================ start contact section =============== */
.contact {
  background-image: url("../images/f8dae270d3734f9d49ead216c7bcd90bd4c4d341.png");
  background-size: cover;
  background-position: center 10%;

  height: 478px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

}
.contact .container {
  position: absolute;
  bottom: 55px;
  z-index: 2;
  margin: auto;
  padding: 0 20px;
}

.contact .content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.contact .text {
  color: #fff;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.contact .text h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 140%;
  color: var(--primary-color);
}

.contact .text span {
  font-size: 22px;
  display: block;
  margin-bottom: 15px;
  font-weight: 400;
  font-size: 32px;
  line-height: 140%;
}

.contact .text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--card-bg-color);
  line-height: 1.7;
  margin-bottom: 20px;
}
.overlay-contact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--third-color);
  opacity: 0.9;
  z-index: 1;
} 
/* ================ end contact section =============== */
/* للشاشات المتوسطة (تابلت - أقل من 992px) */
@media (max-width: 992px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .filters {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .custom-select-wrapper {
    flex: 1;
    min-width: 45%; /* كل واحدة تاخد نص العرض تقريبًا */
  }

  .search-wrapper {
    width: 100%;
  }
  /* ================ Start Hero =============== */

  .hero .content {
    flex-direction: column;
    text-align: start;
  }
  .hero .text h2 {
    font-size: 20px;
  }
  .hero .text h1 {
    font-size: 40px;
    text-wrap: wrap;
  }
  .hero .text span {
    font-size: 20px;
  }
  .hero .text p {
    font-size: 14px;
  }
}

/* للشاشات الصغيرة (موبايل - أقل من 576px) */
@media (max-width: 576px) {
  .filter-container {
    flex-direction: column;
    padding: 15px;
  }

  .filters {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .custom-select-wrapper {
    width: 100%;
    min-width: unset;
  }

  .search-wrapper {
    width: 100%;
  }
  /* ================ start contact section =============== */
  .contact {
    height: 400px;
  }
  .contact .text h2 {
    font-size: 40px;
  }
  .contact .text span {
    font-size: 20px;
  }
  .contact .text p {
    font-size: 14px;
  }
  /* ================ end contact section =============== */
}
.btn-more {
  background-color: #ead7bf !important;
  color: var(--text-colo) !important;
}