/* Core Services Cards Section
/* ---------------------------------------------------------- */

.core-card-main {
  padding: 5rem 0;
  background: #fff;
}

.core-card-main .core-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 6rem;
  box-sizing: border-box;
}

.core-card-main .container {
  max-width: 1200px;
  margin: 0 auto;
}

.core-heading {
  text-align: center;
  font-size: 3.5rem;
  font-weight: bold;
  color: #1a1a2e;
  margin-bottom: 3rem;
  font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
}

/* Grid for the cards */
.core-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 5rem;
}

/* ---- Featured (first) card ---- */

.core-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
  border-radius: 0px 20px 0px 20px;
  overflow: visible;
  background: url("../../images/cards-bg.svg");
  border: none;
  background-position: center;
  background-size: 101%;
  /* background-size: inherit; */
  background-repeat: no-repeat;
  /* border: 1px solid rgba(0, 0, 0, 0.06); */
  border: 1px solid black;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.core-card--featured:hover {
  text-decoration: none;
  color: inherit;
}

/* Left content area */
.core-card--featured .core-card-content {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Gradient bg image: extends from ~35% of card width to the right edge */
.core-card--featured .core-card-image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  border-radius: 0 20px 0 0px;
  overflow: hidden;
  background: url("../../images/1st-card-bg.png") right center / cover no-repeat;
}

/* Frosted blur fade at the top of the bg */
.core-card--featured .core-card-image-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(244, 244, 246, 0.92) 0%,
    rgba(244, 244, 246, 0.6) 0%,
    rgba(244, 244, 246, 0.2) 0%,
    transparent 11
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
}

/* Frosted blur fade on the left edge of the bg */
.core-card--featured .core-card-image-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(
    to right,
    rgba(244, 244, 246, 1) 0%,
    rgba(244, 244, 246, 0.85) 20%,
    rgba(244, 244, 246, 0.4) 40%,
    transparent 86%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

/* Character image: hardcoded design asset, overflows above the card */
.core-card--featured::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 32%;
  height: 150%;
  background: url("../../images/our-core-section.png") bottom center / contain
    no-repeat;
  z-index: 3;
  pointer-events: none;
}

/* ---- Standard (bottom row) cards ---- */

.core-card--standard {
  display: flex;
  flex-direction: column;
  border-radius: 0px 20px 0px 20px;
  overflow: hidden;
  background: url("../../images/cards-bg.svg");
  border: none;
  background-position: center;
  /* background-size: inherit; */
  background-repeat: no-repeat;
  border: 1px solid rgba(9, 9, 9, 0.06);
  text-decoration: none;
  color: inherit;
  min-height: 240px;
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  border: 1px solid black;
}

.core-card--standard:hover {
  text-decoration: none;
  color: inherit;
}

/* ---- Shared: Title row ---- */

.core-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18rem;
  margin-bottom: 1.25rem;
}

.core-card-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.2;
}

.core-card--featured .core-card-title {
  font-size: 3rem;
}

.core-card-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
  color: #1a1a2e;
  transition: transform 0.3s ease;
}

.core-card--featured:hover .core-card-arrow,
.core-card--standard:hover .core-card-arrow {
  transform: translate(3px, -3px);
}

.core-card-description {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.core-card--featured .core-card-description {
  max-width: 480px;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .core-card-main .core-container {
    padding: 0 2rem;
  }

  .core-heading {
    font-size: 2.5rem;
  }

  .core-card--featured {
    min-height: 280px;
  }

  .core-card--featured .core-card-content {
    padding: 2rem;
  }

  .core-card--featured .core-card-title {
    font-size: 1.6rem;
  }

  .core-card--featured::after {
    height: 110%;
    right: 2%;
  }
}

@media (max-width: 768px) {
  .core-card-main {
    padding: 3rem 0;
  }

  .core-card-main .core-container {
    padding: 0 1rem;
  }

  .core-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .core-cards-grid {
    grid-template-columns: 1fr;
  }

  .core-card--featured {
    grid-template-columns: 1fr;
    min-height: auto;
    background-size: auto;
  }
  .core-card-arrow {
    position: absolute;
    right: 2rem;
  }

  .core-card--featured .core-card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 0 0 1.19rem 1.19rem;
  }

  .core-card--featured .core-card-image-wrap::before {
    height: 30%;
  }

  .core-card--featured .core-card-image-wrap::after {
    display: none;
  }

  .core-card--featured::after {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 45%;
    height: 100%;
  }

  .core-card--featured .core-card-content {
    padding: 1.5rem;
  }

  .core-card--standard {
    min-height: auto;
    padding: 1.5rem;
  }

  .core-card-title {
    font-size: 1.25rem;
  }

  .core-card--featured .core-card-title {
    font-size: 1.4rem;
  }

  .core-card-description {
    font-size: 0.9rem;
  }
}
@media (min-width: 650px) and (max-width: 900px) {
  .core-card--featured {
    background-size: 100%;
  }
  .core-card--standard {
    background-size: 100%;
  }
}

@media (max-width: 480px) {
  .core-card--featured .core-card-image-wrap {
    height: 180px;
  }

  .core-card--standard {
    padding: 1.25rem;
  }
}
