.card__container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  width: 100%;
  max-width: 70%;
  margin: auto;
  padding: 60px 0;
}

.card__bx {
  --dark-color: #1c1c22;
  --dark-alt-color: #a9a9b3;
  --white-color: #ffffff;
  --transition: 0.4s ease-out;

  font-family: inherit;
  height: 350px;
  width: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--dark-color); /* A solid, slightly lighter dark color */
  border-radius: 15px;
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.clr-89ec5b {
  --clr: #89ec5b;
}
.clr-5b98eb {
  --clr: #5b98eb;
}

.card__bx:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--clr);
}

.card__bx::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
}

.card__bx .card__data {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 25px;
  text-align: center;
  padding: 0 20px;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.card__bx .card__data .card__icon {
  height: 80px;
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: var(--clr);
  background-color: transparent;
  transition: var(--transition);
  border: 2px solid var(--clr);
  border-radius: 50%;
}

.card__bx:hover .card__data .card__icon {
  color: var(--white-color);
  background-color: var(--clr);
  box-shadow: 0 0 20px var(--clr);
  transform: scale(1.1);
}

.card__bx .card__data .card__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}

.card__bx .card__data h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white-color);
  transition: var(--transition);
}

.card__bx:hover .card__data h3 {
  color: var(--clr);
}

.card__bx .card__data p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dark-alt-color);
  transition: var(--transition);
}

.card__bx:hover .card__data p {
  color: var(--white-color);
}

.card__bx .card__data a {
  display: none; /* Hiding for a cleaner UI, as it's not used everywhere */
}

/* Service Detail Page Styles */
.service-detail {
    padding: 40px 30px;
    max-width: 900px;
    margin: 60px auto;
    color: var(--text-color);
    background: radial-gradient(ellipse at top, #2c2c3e 0%, #1a1a1a 60%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.service-detail h1,
.service-detail h2 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, var(--brand-500), #89ec5b);
    border-image-slice: 1;
}

.service-detail h1 {
    font-size: 2.5rem;
}

.service-detail h2 {
    font-size: 1.8rem;
    margin-top: 50px;
}

.service-detail p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #c5c5c5;
}

.service-detail ul {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
}

.service-detail ul li {
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.service-detail ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #89ec5b; /* Green from card styles */
    font-weight: bold;
}

.service-detail strong {
    color: var(--white);
    font-weight: 600;
}

@media (max-width: 768px) {
    .service-detail h1 {
        font-size: 2.2rem;
    }

    .service-detail h2 {
        font-size: 1.6rem;
    }

    .service-detail {
        margin: 40px 20px;
        padding: 30px 20px;
    }

    .related-services {
        padding: 40px 0;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .service-detail {
        margin: 30px 15px;
        padding: 25px 15px;
    }
    .service-detail h1 {
        font-size: 1.9rem;
    }
    .service-detail h2 {
        font-size: 1.5rem;
        margin-top: 40px;
    }
    .service-detail p,
    .service-detail ul li {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .cards-grid {
        padding: 0 15px;
    }
}

/* Related Services Section (temp.html style adapted for dark mode) */
.related-services {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 700;
}

.cards-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   grid-gap: 2rem;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.card {
   border-radius: 8px;
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
   border: solid 1px rgba(255, 255, 255, 0.1);
   background-color: #1c1c22;
   padding: 2.5em;
   text-align: center;
   position: relative;
   overflow: hidden;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 6px;
}

.card--blue::before { background-color: #5b98eb; }
.card--green::before { background-color: #89ec5b; }
.card--yellow::before { background-color: #ffd25f; }

.card__head {
   font-size: 1.5rem;
   margin-bottom: 1em;
   color: var(--white);
   font-weight: 600;
}

.card__content {
   font-size: 0.9rem;
   color: #a9a9b3;
   line-height: 1.6;
}
