.an-scolar-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 40px 30px;
}

.festivitate-img,
.premii-img {
  border-radius: 16px;
  border: 4px solid #e3f0fc;
  box-shadow: 0 4px 16px rgba(0,86,179,0.10);
  margin-bottom: 10px;
  max-height: 340px;
  object-fit: cover;
  background: #f8fbff;
}

.premii-box {
  background: linear-gradient(120deg, #f8fbff 80%, #e3f0fc 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,86,179,0.07);
  border: 1px solid #e3f0fc;
}

.extra-img-box {
  background: #f8fbff;
  border-radius: 16px;
  border: 1px solid #e3f0fc;
  box-shadow: 0 2px 12px rgba(0,86,179,0.07);
}

.list-group-item {
  border: none;
  padding-left: 0;
  padding-right: 0;
  font-size: 1.08rem;
  background: transparent;
}

blockquote {
  border-left: 4px solid #0056b3;
  padding-left: 16px;
  font-style: italic;
  background: #f8fbff;
  border-radius: 8px;
  position: relative;
}

.modern-text {
  font-size: 1.18rem;
  color: #222;
  line-height: 1.7;
  font-weight: 500;
}

.modern-quote {
  background: #f8fbff;
  border-left: 5px solid #0056b3;
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 1.08rem;
  position: relative;
  margin-bottom: 0.7rem;
}

.modern-quote .quote-mark {
  font-size: 2.5rem;
  color: #0056b3;
  position: absolute;
  left: -18px;
  top: -10px;
  font-family: 'Georgia', serif;
}

.modern-list li {
  border-radius: 8px;
  margin-bottom: 6px;
  background: #f4faff;
  border-left: 4px solid #00bfff;
}

.gallery-image-box {
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid #e3f0fc;
  background: #f8fbff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,86,179,0.07);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-image-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,86,179,0.13);
  border-color: #0056b3;
}
.blue-frame {
  border: 4px solid #0056b3 !important;
  box-shadow: 0 4px 24px rgba(0,86,179,0.10);
  background: #f8fbff;
}

@media (max-width: 991px) {
  .an-scolar-section {
    padding: 20px 5px;
  }
  .festivitate-img,
  .premii-img {
    max-height: 220px;
  }
  .gallery-image-box {
    height: 140px;
  }
}

@media (max-width: 600px) {
  .an-scolar-section {
    padding: 10px 2px;
  }
  .gallery-image-box {
    height: 180px; /* mărește imaginile din galerie pe mobil */
  }
  .gallery-image-box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  /* Stiluri pentru lista de premii pe mobil */
  .modern-list {
    padding-left: 0;
  }
  .modern-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.13rem;
    padding: 14px 12px;
    margin-bottom: 12px;
    background: #f8fbff;
    border-left: 4px solid #00bfff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,86,179,0.07);
    width: 100%;
    word-break: break-word;
  }
  .modern-list strong {
    font-size: 1.13rem;
    color: #0056b3;
    margin-bottom: 2px;
  }
  /* Imaginea mare de jos să nu depășească ecranul */
  .img-fluid.blue-frame.shadow-lg.mb-4 {
    max-width: 100vw !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Stiluri generale pentru lista de premii pe desktop */
.modern-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 1.08rem;
  padding: 10px 18px;
  margin-bottom: 6px;
  background: #f4faff;
  border-left: 4px solid #00bfff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,86,179,0.04);
  word-break: break-word;
}
.modern-list strong {
  min-width: 110px;
  color: #0056b3;
}

/* Elimină sublinierea de la titlu festivitate */
.an-scolar-section h1 span {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}