@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

.ebsrv2-services-section {
  --ebsrv2-container-width: 90rem;

  --ebsrv2-bg: #FFFAF3;
  --ebsrv2-title: #f8fafc;
  --ebsrv2-title-highlight: #06266B;
  --ebsrv2-underline-bg: #06266B;
  --ebsrv2-desc-text: #06266B;

  --ebsrv2-card-bg: #06266B;
  --ebsrv2-card-border-top: #06266B;
  --ebsrv2-card-title-hover: #ffffff;
  --ebsrv2-card-desc-hover: #dbeafe;
  --ebsrv2-card-overlay-start: #2A9658;
  --ebsrv2-card-overlay-end: #1d4ed8;

  --ebsrv2-card-special-title: #f8fafc;
  --ebsrv2-card-special-desc: #ffffff;

  --ebsrv2-img-wrapper-bg: #334155;

  --ebsrv2-btn-bg: transparent;
  --ebsrv2-btn-text: #f8fafc;
  --ebsrv2-btn-border: #475569;
  --ebsrv2-btn-shadow: transparent;

  --ebsrv2-padding-top: 2rem;
  --ebsrv2-padding-bottom: 2rem;
}

*,
.ebsrv2-services-section,
.ebsrv2-services-section *,
.ebsrv2-services-section *::before,
.ebsrv2-services-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ebsrv2-services-section a {
  text-decoration: none;
}


.ebsrv2-services-section.en {

    direction: ltr;
}

.ebsrv2-services-section {
  font-family: "El Messiri", sans-serif;
  direction: rtl;
  background-color: var(--ebsrv2-bg);
  padding-block: var(--ebsrv2-padding-top) var(--ebsrv2-padding-bottom);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
  width: 100%;
  margin-inline: auto;
}

.ebsrv2-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  max-width: var(--ebsrv2-container-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

.ebsrv2-header {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.6rem;
  border-bottom: 0.0625rem solid #1e2438;
  padding: 1.4rem;
  width: 100%;
}

.ebsrv2-header p {
  font-size: clamp(0.85rem, 2.8vw, 1rem);
  color: var(--ebsrv2-desc-text);
  line-height: 1.65;
}

.ebsrv2-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ebsrv2-title);
  text-transform: uppercase;
  text-align: start;
}

.ebsrv2-title-highlight {
  color: var(--ebsrv2-title-highlight);
}

.ebsrv2-underline {
  width: 100%;
  height: 0.2rem;
  background-color: var(--ebsrv2-underline-bg);
  border-radius: 0;

}

.ebsrv2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  width: 100%;
  border-top: 0.0625rem solid #1e2438;
  border-inline-start: 0.0625rem solid #1e2438;
}


.ebsrv2-card {
  background-color: var(--ebsrv2-card-bg);
  border: none;
  border-inline-end: 0.0625rem solid #1e2438;
  border-bottom: 0.0625rem solid #1e2438;
  border-radius: 0;
  box-shadow: none;
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  transition: 0.25s linear;
}


.ebsrv2-card::after {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ebsrv2-card-overlay-start);
  z-index: -1;
  transition: 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.ebsrv2-img-wrapper {
  width: 100%;
  background-color: var(--ebsrv2-img-wrapper-bg);
  border-radius: 0;
  border: 0.0625rem solid #263049;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  overflow: hidden;
  transition: 0.25s linear;
}

.ebsrv2-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.25);
  transition: 0.3s linear;
}

.ebsrv2-card-title {
  font-size: clamp(1rem, 2.3vw, 1.1rem);
  font-weight: 700;
  color: var(--ebsrv2-card-special-title);
  transition: 0.25s linear;
}

.ebsrv2-card-desc {
  font-size: clamp(0.78rem, 1.9vw, 0.85rem);
  color: var(--ebsrv2-card-special-desc);
  opacity: 1;
  line-height: 1.55;
  transition: 0.25s linear;
}

.ebsrv2-card:hover {
  border-inline-end-color: transparent;
}

.ebsrv2-card:hover::after {
  bottom: 0;
}

.ebsrv2-card:hover .ebsrv2-img {
  filter: grayscale(0);
}

.ebsrv2-card:hover .ebsrv2-card-title {
  color: var(--ebsrv2-card-title-hover);
}

.ebsrv2-card:hover .ebsrv2-card-desc {
  color: var(--ebsrv2-card-desc-hover);
}

.ebsrv2-card:hover .ebsrv2-serv-btn {
  background-color: var(--ebsrv2-card-title-hover);
  color: var(--ebsrv2-card-overlay-start);
  border-color: var(--ebsrv2-card-title-hover);
}

.ebsrv2-card-special {
  border: none;
  border-inline-end: 0.0625rem solid #1e2438;
  border-bottom: 0.0625rem solid #1e2438;
}


.ebsrv2-serv-btn {
  background-color: var(--ebsrv2-btn-bg);
  width: auto;
  border-radius: 0;
  box-shadow: none;
  padding-inline: 1.1rem;
  padding-block: 0.5rem;
  text-align: center;
  font-size: clamp(0.85rem, 2.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 0.0625rem solid var(--ebsrv2-btn-border);
  color: var(--ebsrv2-btn-text);
  display: inline-block;
  transition: 0.2s linear;
}

.ebsrv2-serv-btn:focus-visible {
  outline: 0.125rem solid var(--ebsrv2-underline-bg);
  outline-offset: 0.125rem;
}

/* ============================================================
   4. Breakpoints
============================================================ */
@media (min-width: 481px) {
  .ebsrv2-card {
    padding: 1.8rem 1.4rem;
  }
}

@media (min-width: 601px) {
  .ebsrv2-services-section {
    --ebsrv2-padding-top: 3.6rem;
    --ebsrv2-padding-bottom: 3.6rem;
  }
}

@media (min-width: 769px) {
  .ebsrv2-grid {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }

  .ebsrv2-card {
    padding: 2.2rem 1.6rem;
  }
}

@media (min-width: 1025px) {
  .ebsrv2-services-section {
    --ebsrv2-padding-top: 4.2rem;
    --ebsrv2-padding-bottom: 4.2rem;
  }
}

@media (min-width: 1281px) {
  .ebsrv2-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1441px) {
  .ebsrv2-services-section {
    --ebsrv2-padding-top: 5rem;
    --ebsrv2-padding-bottom: 5rem;
  }

  .ebsrv2-card {
    padding: 2.6rem 1.8rem;
  }
}

@media (min-width: 1921px) {
  .ebsrv2-header p {
    max-width: 50rem;
  }
}