/* ============================
   BUTOANE PROGRAMĂRI – LISTĂ CUSTOM
   ============================ */

.butoane-programari-custom {
  list-style: none;
  margin: 2.4rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

/* fiecare LI ocupă o coloană din grid */
.butoane-programari-custom li {
  margin: 0;
  padding: 0;
}
.general-content .butoane-programari-custom li {
    padding-left: 0;
}
.general-content .butoane-programari-custom li::before {
display:none
}
/* link = buton */
.butoane-programari-custom li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.3rem 1.6rem;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--titluri-albastre);
  box-shadow: 0 18px 40px rgba(0, 119, 255, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* bulina cu iconița din stânga */
.butoane-programari-custom li a::before {
  content: "";
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 24;
  font-size: 26px;
  flex: 0 0 50px;
}

/* icon + culori pe tipuri */
.butoane-programari-custom li a.ambulatoriu::before {
  content: "favorite";
  background: var(--color-secondary);
}
.butoane-programari-custom li a.laborator::before {
  content: "science";
  background: var(--color-primary);
}
.butoane-programari-custom li a.radiologie::before {
  content: "radiology";
  background: var(--color-third);
}

/* săgeată la final, ca la butoanele mari */
.butoane-programari-custom li a::after {
  content: "keyboard_arrow_right";
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 1.8rem;
  margin-left: auto;
  transition: transform 0.2s ease;
}

/* hover = să se simtă buton */
.butoane-programari-custom li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(0, 119, 255, 0.18);
  color: var(--color-secondary);
}
.butoane-programari-custom li a:hover::after {
  transform: translateX(4px);
}

/* ============================
   RESPONSIVE
   ============================ */

/* la ecrane mai mici – 1 coloană */
@media (max-width: 991px) {
  .butoane-programari-custom {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .butoane-programari-custom li a {
    font-size: 1.5rem;
    padding: 1.1rem 1.4rem;
  }

  .butoane-programari-custom li a::before {
    width: 42px;
    height: 42px;
    font-size: 22px;
    flex: 0 0 42px;
  }
}


@media (max-width: 380px) {
     .butoane-programari-custom li a {
        font-size: 1.3rem;
    }
        .butoane-programari-custom li a::before {
        width: 35px;
        height: 35px;
        flex: 0 0 35px;
    }
     
}

@media (max-width: 340px) {
       .butoane-programari-custom li a {
        font-size: 1.2rem;
    padding: 1.1rem 1.2rem;
  }
}