/*
 * LGK After Care — style.css
 * Zigzag: odd = info-left/img-right | even = img-left/info-right
 */

.lgk-ac {
  padding: var(--lgk-space-12) 0;
}

.lgk-ac__heading {
  margin-bottom: var(--lgk-space-4);
}

.lgk-ac__description {
  font-family: var(--lgk-font);
  font-size: var(--lgk-size-md);
  font-weight: var(--lgk-weight-semi);
  color: var(--lgk-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--lgk-space-10);
  line-height: var(--lgk-leading-loose);
}

/* ── Row ─────────────────────────────────────────────────────────────────── */
.lgk-ac__list {
  display: flex;
  flex-direction: column;
  gap: var(--lgk-space-8);
}

.lgk-ac__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lgk-space-12);
  align-items: start;
}

/* Even row: flip order visually */
.lgk-ac__row--reverse {
  direction: rtl;
}

.lgk-ac__row--reverse > * {
  direction: ltr;
}

/* Separator between rows */
.lgk-ac__row + .lgk-ac__row {
  padding-top: var(--lgk-space-8);
  border-top: 2px solid var(--lgk-blue-100);
}

/* ── Info col ────────────────────────────────────────────────────────────── */
.lgk-ac__info-inner {
  display: flex;
  flex-direction: column;
  gap: var(--lgk-space-4);
  justify-content: flex-start;
  align-self: flex-start;
}

.lgk-ac__subject {
  display: inline-block;
  font-family: var(--lgk-font);
  font-weight: var(--lgk-weight-black);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--lgk-blue-900);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.lgk-ac__teacher {
  display: flex;
  align-items: center;
  gap: var(--lgk-space-2);
  font-family: var(--lgk-font);
  font-size: var(--lgk-size-base);
  font-weight: var(--lgk-weight-bold);
  color: var(--lgk-blue-500);
  margin: 0;
}

.lgk-ac__content {
  font-size: var(--lgk-size-base);
  line-height: var(--lgk-leading-loose);
  color: var(--lgk-text-muted);
}

.lgk-ac__content p { margin: 0 0 0.8em; }
.lgk-ac__content p:last-child { margin-bottom: 0; }

/* ── Image col ───────────────────────────────────────────────────────────── */
.lgk-ac__img-wrap {
  border-radius: var(--lgk-radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lgk-blue-100);
  box-shadow: var(--lgk-shadow-md);
}

.lgk-ac__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.lgk-ac__img-wrap:hover .lgk-ac__img {
  transform: scale(1.04);
}

.lgk-ac__img-placeholder {
  border-radius: var(--lgk-radius-xl);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #EBF6FF 0%, #BBECFD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lgk-ac__empty {
  text-align: center;
  color: var(--lgk-text-muted);
  font-family: var(--lgk-font);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lgk-ac__row,
  .lgk-ac__row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--lgk-space-5);
  }

  /* On mobile: image always on top */
  .lgk-ac__img-col { order: -1; }
}
