/* ============================================================
   SCHOOL — Școala de fotografie Avatar Studio
   Layout 2 coloane inverse față de courses:
   imagine stânga, text dreapta.
   ============================================================ */

/* ── Grid 2 coloane inverse ────────────────────────────────── */
.school__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* ── Coloana imagine ───────────────────────────────────────── */
.school__media {
  position: relative;
}

.school__img-wrap {
  position: relative;
  width: 100%;
}

.school__img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  max-height: 70vh;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(0.9);
  transition: filter var(--transition-slow);
}

.school__media:hover .school__img {
  filter: brightness(1);
}

/* Cadru decorativ — offset opus față de why (dreapta + sus) */
.school__img-frame {
  position: absolute;
  top: -20px;
  left: 20px;
  right: -20px;
  bottom: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius);
  z-index: 0;
  transition: transform var(--transition-slow);
}

.school__media:hover .school__img-frame {
  transform: translate(4px, -4px);
}

/* ── Badge-uri floating ─────────────────────────────────────── */
.school__badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* Badge autorizație — sus dreapta */
.school__badge--year {
  top: 24px;
  right: -24px;
}

/* Badge cursanți — jos stânga */
.school__badge--students {
  bottom: 32px;
  left: -24px;
}

.school__badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.school__badge-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-heading);
}

.school__badge-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Coloana text ──────────────────────────────────────────── */
.school__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.school__header h2 {
  margin-bottom: 16px;
}

.school__text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

/* ── Labels acreditare ─────────────────────────────────────── */
.school__accreditations {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.school__accreditation-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background-color: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 20px;
  padding: 6px 14px;
}

/* ── Lista highlights ──────────────────────────────────────── */
.school__highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.school__highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 12px 16px;
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    background-color var(--transition);
}

.school__highlight-item:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background-color: rgba(var(--accent-rgb), 0.04);
}

.school__highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Tipuri de cursuri ─────────────────────────────────────── */
.school__types {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.school__type {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.school__type > svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.school__type > div strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.school__type > div p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── CTA ───────────────────────────────────────────────────── */
.school__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .school__inner {
    grid-template-columns: 1fr;
  }

  .school__media {
    max-width: 480px;
    margin-inline: auto;
  }

  .school__img {
    aspect-ratio: 4 / 3;
  }

  .school__img-frame {
    display: none;
  }

  .school__badge--year {
    right: 0;
    top: 12px;
  }

  .school__badge--students {
    left: 0;
    bottom: 12px;
  }
}

@media (max-width: 560px) {
  .school__badge {
    padding: 10px 12px;
    font-size: 0.8rem;
    /* badge_year_label / badge_students_label sunt editabile din admin;
       fără asta un text mai lung poate ieși din viewport (nowrap absolute) */
    white-space: normal;
    max-width: 180px;
  }

  .school__cta {
    flex-direction: column;
  }

  .school__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .school__accreditations {
    flex-direction: column;
  }
}
