@font-face {
  font-family: Montserrat;
  src: url("../fonts_family/Montserrat-VariableFont_wght.ttf")
    format("truetype");
}

@font-face {
  font-family: Inter;
  src: url("../fonts_family/Inter-VariableFont_slnt\,wght.ttf")
    format("truetype");
}

@font-face {
  font-family: PT Sans;
  src: url("../fonts_family/PTSans-Bold.ttf");
}

:root {
  --rad: 0.5rem;
  --dur: 0.3s;
  --color-dark: #2f2f2f;
  --color-light: #fff;
  --color-brand: #d82567;
  --font-fam: "Lato", sans-serif;
  --height: 1.8rem;
  --btn-width: 4rem;
  --bez: cubic-bezier(0, 0, 0.43, 1.49);
}

.vector2 {
  position: absolute;
  right: 0;
  top: -8px;
  background: url("../img/vector2.png") no-repeat;
  width: 173px;
  height: 243px;
}

.service_Title {
  padding-top: 200px;
  text-align: center;
}

.service_Title,
h1 {
  font-size: 64px;
  line-height: 80px;
  font-weight: 400;
  font-family: "Great Vibes", cursive;
  color: #d82567;
}

.headder-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: auto;
  padding: 20px;
  margin-top: 2%;
}

.headder-section h2 {
  font-size: 44px;
  line-height: 40px;
  font-weight: 400;
  font-family: "Great Vibes", cursive;
  color: #d82567;
}

.headder-section p {
  font-size: 16px;
}

.searchBar form {
  position: relative;
  width: 100%;
  max-width: 15rem;
  background: var(--color-brand);
  border-radius: var(--rad);
  border: 1px solid #d82567;
}

input,
button {
  height: var(--height);
  font-family: var(--font-fam);
  border: 0;
  color: var(--color-dark);
  font-size: 1.8rem;
}
input[type="search"] {
  outline: 0;
  width: 100%;
  background: var(--color-light);
  padding: 0 1.6rem;
  border-radius: var(--rad);
  appearance: none;
  transition: all var(--dur) var(--bez);
  transition-property: width, border-radius;
  z-index: 1;
  position: relative;
}
button {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: var(--btn-width);
  background: var(--color-brand);
  color: #fff;
  border-radius: 0 var(--rad) var(--rad) 0;
  font-size: 18px;
}
input:not(:placeholder-shown) {
  border-radius: var(--rad) 0 0 var(--rad);
  width: calc(100% - var(--btn-width));
  font-size: 14px;
  + button {
    display: block;
  }
}

input::placeholder {
  font-size: 14px;
}

label {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.profile-layout {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  padding: 20px;
  place-items: center;
}

.card-wrapper {
  width: 300px;
  height: 400px;
  position: relative;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 259px;
  height: 305px;
  transform: translate(-50%, -50%);
  border-radius: 10%;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: 0.5s;

  .card-image {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: #000;
    transition: 0.5s;
  }

  &:hover img {
    opacity: 0.4;
    transition: 0.5s;
  }
}

.card:hover .card-image {
  transform: translateY(-100px);
  transition: all 0.9s;
}

.details {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #fff;
  width: 100%;
  height: 100px;
  z-index: 1;
  padding: 10px;
}

.details-tittle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.details-tittle-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.service_header_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 92%;
  margin: auto;
}

.service_header_child1 {
  margin-top: 30%;
}

.service_header_child2 {
  margin-top: 12%;
}

.service_header_child1 h1 {
  color: var(--brand-01, #f24464);
  font-family: PT Sans;
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.service_header_child1 h2 {
  color: #000;

  /* h3 */
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  width: 70%;
  margin-top: 3%;
}

.service_button {
  color: #f24464;
  font-size: 24px;
  line-height: 29px;
  font-weight: 600;
  padding: 22px 35px;
  border: 3px solid #f24464;
  border-radius: 100px;
  margin: 52px 0;
  background: transparent;
}

.serviceSection {
  padding-bottom: 124px;
}

.Cards_family p {
  color: #f24464;
  text-align: center;
  font-family: PT Sans;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration-line: underline;
  margin-bottom: 170px;
}

.Cards_family {
  background: var(--brand-02, #fffafb);
  padding-top: 47px;
  padding-bottom: 100px;
}

.Cards_design {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 133px;
  grid-row-gap: 74px;
  width: 84%;
  margin: auto;
  position: relative;
  z-index: 2;
  place-items: center;
}

.Cards_design img {
  width: 100%;
}

.Cards_design h3 {
  color: var(--brand-03, #2b171b);
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.Cards_design span {
  color: var(--brand-03, #2b171b);
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.Cards_design del {
  color: #abaeae;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-decoration-line: strikethrough;
}

.Cards_design .offD {
  color: var(--brand-01, #f24464);
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.pagination_parent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  padding: 10px 40px;
  border-radius: 6px;
}

.pagination ul {
  margin: 20px 30px;
}

.pagination ul li {
  display: inline-block;
  margin: 0 10px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  line-height: 45px;
  cursor: pointer;
  background-position: 0 -45px;
  transition: 0.5s;
}

.pagination ul li.active {
  color: white;
  background-image: linear-gradient(#ff4568, #ff4568);
  background-repeat: no-repeat;
  background-position: 0 0;
}

.botn1,
.botn2 {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 500;
  color: #383838;
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
}

.botn1 img {
  width: 14px;
  margin-right: 15px;
}

.botn2 img {
  width: 14px;
  margin-left: 15px;
}

.activeColor {
  color: #ff4568;
  border: 1px solid #f24464;
}

/* service_inner html css start */
.service_inner_Header {
  background: radial-gradient(
    81.3% 81.3% at 50% 50%,
    #ffe1e6 0%,
    #fef4f6 0.01%,
    #ffe3e8 100%
  );
}

.PriceD {
  margin-left: 36px;
}

.service_inner_child figure img {
  height: 39em;
}

.vector1,
.vectorr2,
.vectorr3 {
  height: 0;
}

.vector1 img {
  position: absolute;
  /* float: right; */
  right: 0;
}

.vectorr2 img {
  position: relative;
  top: -274px;
}

.vectorr3 img {
  position: relative;
  right: -91.5%;
  bottom: 554px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal container */
.modal {
  background: radial-gradient(
    81.3% 81.3% at 50% 50%,
    #ffe1e6 0%,
    #fef4f6 0.01%,
    #ffe3e8 100%
  );
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 55vh;
  overflow-y: auto;
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Modal content */
.modal-content-check {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.modal-text {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: bold;
}

.modal-content-check h2 {
  font-size: 34;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  margin: 10px;
}

.model-images-container {
  margin: 0 auto;
  text-align: center;
}

.modal-images {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: auto;
}

.modal-images img {
  max-width: 100%;
  width: 150px;
  margin: 0 10px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .modal {
    width: 90%;
  }

  .modal-images img {
    max-width: 100px;
  }

  .modal-text {
    font-size: 16px;
  }

  .close-btn {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .modal {
    width: 100%;
    max-width: 90%;
    padding: 15px;
  }

  .modal-images {
    flex-direction: column;
    align-items: center;
  }

  .modal-images img {
    max-width: 150px;
  }
  .modal-text {
    font-size: 16px;
  }

  .close-btn {
    font-size: 20px;
  }
}

@media screen and (min-width: 1080px) and (max-width: 1290px) {
  .profile-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .service_header_child1 h1 {
    font-size: 42px;
  }

  .service_header_grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .service_header_child1 h2 {
    width: 100%;
    text-align: center;
  }

  .service_header_child1 {
    display: flex;
    flex-direction: column;
  }

  .vectorr3 img,
  .vector1 img,
  .vectorr2 img {
    display: none;
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .headder-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
  }

  .searchBar form {
    width: 20rem;
    margin: 10px 0;
  }
}

@media (max-width: 475px) {
  .searchBar form {
    width: 15rem;
  }
}

@media (min-width: 1080px) and (max-width: 1290px) {
  .profile-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* for safari browser */

/* Safari-specific styles */
/* @media screen and (orientation: landscape) {
  .profile-layout {
    grid-template-columns: repeat(3, 1fr);
  }
} */

@media screen and (min-width: 1080px) and (max-width: 1290px) and (orientation: landscape) {
  .profile-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}
