/* Global Styles */
:root {
  --background-color: #f4f4f4;
  --primary-text-hero: rgba(67, 147, 112, 1);
  --primary-text: rgba(54, 119, 91, 1);
  --primary-color: rgba(80, 175, 133, 1);
  --primary-light: rgb(221, 238, 235);
  --primary-100: rgba(192, 226, 211, 1);
  --primary-dark: rgba(173, 213, 205, 0.62);
  --secondary-color: rgba(121, 121, 121, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Almarai', serif;
}

body {
  direction: rtl;
  background-color: var(--background-color);
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(20px);
  }
}

/* Container */
.container {
  margin-inline: auto;
  padding-inline: 0.5rem;
}

h1,
h2 {
  font-size: 28px;
  line-height: 40px;
  font-weight: 800;
}

h3 {
  font-size: 24px;
  line-height: 32px;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  transition: background-color 0.2s linear;
  white-space: nowrap;
}

button img {
  width: 16px;
  height: 16px;
}

.hero-parent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

.hero-parent #hero-arrow {
  cursor: pointer;
  width: 40px;
  object-fit: contain;
  animation: bounce 2s infinite;
}

.hero {
  background-color: var(--primary-light);
  padding-block: 30px; /* 30px */
  padding-block-end: 50px; /* 50px */
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .hero-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 40px;
}

.hero-content .hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding-inline-start: 30px;
}

.hero-text h1 {
  position: relative;
}
.hero-text h1 span {
  color: var(--primary-text-hero);
}

.hero-text h1::before {
  content: url(../../assets/mrp/shapes/fireworks-1.svg);
  transform: scale(0.4);
  position: absolute;
  inset-inline-start: -60px;
  inset-block-start: -60px;
}

.hero-text h1::after {
  content: url(../../assets/mrp/shapes/fireworks-2.svg);
  transform: scale(0.4);
  position: absolute;
  inset-inline-end: -30px;
  inset-block-start: -40px;
}

.hero-text p {
  margin-block-end: 14px;
  color: var(--secondary-color);
  font-size: 14px;
  line-height: 20px;
}

.hero-content .hero-img {
  width: 100%;
  max-inline-size: 400px;
  object-fit: contain;
}

.hero button,
.contact-us button {
  background-color: var(--primary-color);
}

.hero button:hover,
.contact-us button:hover {
  background-color: var(--primary-text-hero);
}

.partners {
  margin-block: 70px;
}

.partners-main h2 {
  color: var(--primary-text);
  text-align: center;
  margin-block-end: 50px;
}

.partners-main h2 span {
  position: relative;
  display: inline-block;
}

.partners-main h2 span::before {
  content: url(../../assets/mrp/shapes/wide-title-circle-orange.svg);
  position: absolute;
  transform: scale(0.6);
  inset-block-start: -0.5rem;
  inset-inline-start: 0;
  transform-origin: top right;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.partners-main .partners-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* justify-content: space-between; */
  gap: 40px;
  border-start-end-radius: 100px;
  border-end-start-radius: 100px;
  overflow: hidden;
}

.partners-content .ps-logo-container,
.partners-content .ministery-logo-container {
  padding-block: 20px;
  padding-inline: 30px;
  display: flex;
  align-items: center;
  width: 60%;
}

.partners-content .ps-logo-container {
  background-color: #ffffff;
  justify-content: flex-end;
  align-self: flex-end;
  border-start-start-radius: 100px;
  border-end-end-radius: 100px;
  max-height: 100%;
}

.partners-content .ministery-logo-container {
  background-color: rgba(222, 238, 235, 1);
  border-start-end-radius: 100px;
  border-end-start-radius: 100px;
  max-height: 100%;
  justify-content: flex-start;
  padding-block: 30px;
}

.partners-content .partner-logo {
  width: 100%;
  max-inline-size: 300px;
  max-block-size: 100px;
  object-fit: contain;
}

.services {
  margin-block: 70px;
}

.services-main img {
  width: 100%;
  object-fit: contain;
}

.services-main .services-title {
  text-align: center;
  margin-block-end: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.services-title h2,
.features-title h2 {
  color: var(--primary-text);
}

.services-title h2 span,
.features-title h2 span {
  position: relative;
}

.services-title h2 span::before,
.features-title h2 span::before {
  content: url(../../assets/mrp/shapes/title-circle-orange.svg);
  position: absolute;
  transform: scale(0.7);
  inset-inline-start: -2rem;
  inset-block-start: -2.2rem;
  z-index: -1;
  pointer-events: none;
}

.services-title p {
  color: var(--secondary-color);
  font-size: 16px;
  line-height: 24px;
}

.services-solutions h3 {
  color: var(--primary-text);
  margin-block-end: 24px;
  font-weight: 800;
  text-align: center;
  margin-block-end: 24px;
}

.services-solutions .services-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  text-align: center;
}

.services-list .service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background-color: #fff;
  padding: 24px;
  border-radius: 24px;
  transition: box-shadow 0.3s linear;
  cursor: pointer;
  border: 1px solid var(--primary-100);
  box-shadow: 0px 0px 0px 0px var(--primary-100);
  transition: box-shadow 0.3s linear;
}

.services-list .service:hover {
  box-shadow: 0px 0px 0px 4px var(--primary-100);
}

.service .service-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.service .service-title {
  font-weight: 700;
  color: #000;
  font-size: 24px;
  line-height: 32px;
}

.service .service-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary-color);
}

.why-us {
  margin-block: 70px;
}

.why-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  background-color: var(--primary-light);
  padding: 24px;
  position: relative;
  border-radius: 24px;
  border-start-start-radius: 200px;
  border-start-end-radius: 200px;
  padding-inline-start: 24px;
  max-inline-size: 400px;
  margin-block: 40px;
  margin-inline: auto;
}

.why-content img {
  display: inline-block;
  width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.why-content .smile-shape {
  display: none;
}

.why-content .why-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-inline: 12px;
}

.why-text li {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: var(--secondary-color);
  margin-block-end: 4px;
}

.why-text li span {
  font-weight: 700;
  color: #000;
}

.why-text li::marker {
  color: #000;
  font-weight: 700;
}

.why-text button {
  border: 1px solid var(--primary-text);
  color: var(--primary-text);
  background-color: transparent;
  margin-block-start: 10px;
}

.why-text button img {
  display: inline-block;
  color: white !important;
}

.why-text button:hover {
  background-color: var(--background-color);
}

.features {
  margin-block: 70px;
}

.features .features-title {
  text-align: center;
  margin-block-end: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.features-title h2 span::before {
  transform: scale(0.8);
}

.features-title p {
  font-size: 20px;
  line-height: 28px;
  color: var(--secondary-color);
}

.features-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

.features-content .feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background-color: #fff;
  padding: 24px;
  border-radius: 24px;
  border: 4px solid #fff;
  transition: border 0.3s linear;
  cursor: pointer;
}

.features-content .feature:hover {
  border: 4px solid var(--primary-100);
}

.feature .feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--primary-light);
  width: 120px;
  height: 120px;
}

.feature .feature-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.feature .feature-title {
  font-weight: 700;
  color: #000;
  font-size: 24px;
  line-height: 32px;
}

.features .features-details {
  margin-block-start: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 50px;
}

.features-details .feature-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.feature-detail .feature-detail-title {
  position: relative;
}

.feature-detail .feature-detail-title::after {
  content: url('../../assets/mrp/shapes/underline.svg');
  position: absolute;
  bottom: 0;
  top: 15px;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
}

.feature-detail .feature-detail-desc {
  font-size: 20px;
  line-height: 28px;
  color: var(--secondary-color);
  margin-block-end: 16px;
}

.feature-detail .feature-detail-img {
  width: 100%;
  object-fit: contain;
  max-width: 500px;
}

.feature-detail .feature-detail-img.float-left {
  margin-inline-start: auto;
}

.cta {
  margin-block: 70px;
}

.cta .cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  justify-content: space-between;
  background-color: rgba(22, 188, 136, 1);
  padding-inline: 32px;
  padding-block: 64px;
  border-radius: 24px;
}

.cta-content .cta-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: white;
  padding-inline-end: 32px;
}

.cta-text p {
  font-size: 20px;
  line-height: 28px;
  margin-block-start: 8px;
}

.cta-text button {
  background-color: white;
  color: rgba(80, 175, 133, 1);
  margin-block-start: 24px;
}

.cta-content .cta-img {
  width: 100%;
  max-width: 328px;
}

@media (min-width: 700px) {
  .container {
    max-inline-size: 700px;
    padding-inline: 1rem;
  }

  h1 {
    font-size: 36px;
    line-height: 48px;
  }

  button {
    font-size: 14px;
    line-height: 20px;
  }

  button img {
    width: 18px;
    height: 18px;
  }

  .hero-text h1::before {
    transform: scale(0.6);
  }

  .hero-text h1::after {
    transform: scale(0.6);
  }

  .partners-main .partners-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;

    background-color: #fff;
    border-start-end-radius: 100px;
    border-end-start-radius: 100px;
    overflow: hidden;
  }

  .partners-content .ps-logo-container,
  .partners-content .ministery-logo-container {
    padding-block: 20px;
    padding-inline: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .partners-content .ministery-logo-container {
    background-color: rgba(222, 238, 235, 1);
    border-start-end-radius: 100px;
    border-end-start-radius: 100px;
    max-height: 100%;
  }

  .partners-content .partner-logo {
    width: 100%;
    max-inline-size: 300px;
    max-block-size: unset;
    object-fit: contain;
  }

  .services-solutions .services-list,
  .features .features-content {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 20px;
  }

  .cta-content .cta-text {
    align-items: flex-start;
  }
}

@media (min-width: 900px) {
  .container {
    max-inline-size: 900px;
    padding-inline: 1.5rem;
  }

  h1 {
    font-size: 40px;
    line-height: 52px;
  }

  h3 {
    font-size: 26px;
    line-height: 34px;
  }

  button img {
    width: 20px;
    height: 20px;
  }

  .hero .hero-content {
    flex-direction: row;
  }

  .hero-content .hero-text {
    align-items: flex-start;
    text-align: start;
  }

  .hero-text p {
    font-size: 20px;
    line-height: 28px;
  }

  .hero-content .hero-img {
    width: 40%;
  }

  .services-solutions h3 {
    margin-block-end: 48px;
  }

  .features .features-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-content {
    border-radius: 24px;
    padding-block: 12px;
    max-inline-size: 100%;
    flex-direction: row;
    padding-inline-start: 24px;
    width: 1220px;
    border-end-start-radius: 220px;
    border-start-start-radius: 220px;
  }

  .why-content img {
    width: 40%;
    max-inline-size: 250px;
  }

  .why-content .why-text {
    margin-block: 12px;
    gap: 0px;
    padding-inline: 0;
    padding-inline-start: 32px;
    position: relative;
    /* border-right: 4px solid rgba(108, 188, 153, 1); */
  }

  .why-content .why-text::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: rgba(108, 188, 153, 1);
  }

  .why-text h3 {
    margin-block-end: 16px;
  }

  .why-text button {
    margin-block-start: 12px;
  }

  .cta .cta-content {
    flex-direction: row;
  }
}

@media (min-width: 1200px) {
  .container {
    max-inline-size: 1200px;
  }

  h1 {
    font-size: 48px;
    line-height: 72px;
  }

  h2 {
    font-size: 40px;
    line-height: 48px;
  }

  h3 {
    font-size: 32px;
    line-height: 48px;
  }

  button {
    font-size: 16px;
    line-height: 24px;
    gap: 12px;
    padding: 12px 32px;
  }

  button img {
    width: 24px;
    height: 24px;
  }

  .hero-text h1::after {
    inset-inline-end: 0;
  }

  .hero-content .hero-img {
    max-inline-size: 600px;
  }
  .partners-main h2 span::before {
    transform: scale(0.85);
    inset-block-start: -1.4rem;
  }

  .services-title h2 span::before,
  .features-title h2 span::before {
    transform: scale(1);
    inset-inline-start: 0rem;
    inset-block-start: -1.8rem;
  }

  .services-title p,
  .why-text p {
    font-size: 20px;
    line-height: 28px;
  }

  .why-text li,
  .feature-detail .feature-detail-desc {
    font-size: 24px;
    line-height: 32px;
  }

  .feature-detail .feature-detail-img {
    max-width: 900px;
  }

  .cta .cta-content {
    padding: 64px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-inline-size: 1400px;
  }

  .why-content img {
    width: unset;
  }

  .why-content .why-us {
    margin-block: unset;
  }

  .why-text li:first-child {
    width: 85%;
  }

  .why-content .smile-shape {
    display: inline-block;
    width: 120px;
    position: absolute;
    top: 20px;
    left: 20px;
  }
}
