/* ==========================================================================
   EduNav — bagca.html (bağça profili)
   Loads AFTER assets/css/style.css. Every class here is prefixed .bagca-
   so nothing can leak into another page. style.css is never edited.
   ========================================================================== */

/* --- spacing bands -------------------------------------------------------- */

.bagca-top { padding-top: 26px; }
.bagca-nav { padding-top: 30px; }

.bagca-block { scroll-margin-top: calc(var(--header-h) + 20px); }
.bagca-block + .bagca-block { margin-top: 46px; }

/* vertical breathing room between two stacked blocks inside one section */
.bagca-gap { margin-top: 22px; }

/* --- gallery mosaic ------------------------------------------------------- */
/* One cover and up to four beside it. The count is a class rather than an
   auto-fit grid: with two pictures a 2×2 template leaves two holes, so each
   supply gets the template that fills. */

.bagca-gal-wrap { padding: 18px 0 0; }

.bagca-gal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 2.16 / 1;
}
/* The cover always takes the left half; the rest share the right. */
.bagca-gal > :first-child { grid-column: 1 / 3; grid-row: 1 / 3; }

.bagca-gal--1 { grid-template-columns: minmax(0, 1fr); }
.bagca-gal--1 > :first-child { grid-column: 1; grid-row: 1; }

.bagca-gal--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bagca-gal--2 > :first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.bagca-gal--2 > :nth-child(2)  { grid-column: 3; grid-row: 1 / 3; }

.bagca-gal--3 > :nth-child(2) { grid-column: 3 / 5; }
.bagca-gal--3 > :nth-child(3) { grid-column: 3 / 5; }

.bagca-gal--4 > :nth-child(4) { grid-column: 3 / 5; }

.bagca-gal-t {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}
.bagca-gal-t img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.bagca-gal-t:hover img { transform: scale(1.035); }
.bagca-gal-t:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* The counter tile is dimmed so the number reads over any photograph. */
.bagca-gal-t.is-more::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 32, .46);
}
.bagca-gal-n {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  pointer-events: none;
}

/* No photographs at all — the initials block, at the mosaic's proportions. */
.bagca-gal--none {
  display: grid;
  place-items: center;
  aspect-ratio: 2.16 / 1;
}
.bagca-gal-mono {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: rgba(255, 255, 255, .9);
}

/* --- title block ---------------------------------------------------------- */
/* Under the photographs, on the page's own white — the old strip was white
   type on a gradient, which cannot sit beneath a mosaic without competing
   with it. */

.bagca-top { padding: 26px 0 0; }

/* Title on the left, the two quiet actions on its right — one row, so the
   block is exactly as tall as the text in it. */
.bagca-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 28px;
}

.bagca-hero-main { flex: 1 1 auto; min-width: 0; }

.bagca-hero-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.bagca-hero-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: pretty;
  color: var(--ink);
}

.bagca-hero-meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}
.bagca-hero-meta + .bagca-hero-meta { margin-top: 2px; }

.bagca-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

/* Favori / Paylaş — quiet text buttons on the title's baseline. */
.bagca-hero-quick {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.bagca-hero-lnk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bagca-hero-lnk:hover { background: var(--surface-2); }
.bagca-hero-lnk[aria-pressed="true"] { color: var(--danger); }
.bagca-hero-lnk[aria-pressed="true"] svg { fill: currentColor; }

@media (max-width: 900px) {
  /* Four tiles down one side of a phone are thumbnails; the cover alone is
     the picture, and the counter moves onto it. */
  .bagca-gal { grid-template-columns: minmax(0, 1fr); aspect-ratio: 1.6 / 1; }
  .bagca-gal > :first-child { grid-column: 1; grid-row: 1; }
  .bagca-gal > :not(:first-child) { display: none; }
  .bagca-gal--none { aspect-ratio: 1.6 / 1; }

}

/* --- age-group cards (kurikulum) ------------------------------------------ */

.bagca-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bagca-card {
  box-sizing: border-box;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.bagca-card-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--kg-text);
}

.bagca-card-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.019em;
  color: var(--ink);
}

.bagca-card-text {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}

.bagca-card-list { display: grid; gap: 7px; }
.bagca-card-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
}
.bagca-card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kg);
}

/* --- daily rhythm / admission timeline ------------------------------------ */

/* --- reviews -------------------------------------------------------------- */

.bagca-rev {
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

/* --- location and contact ------------------------------------------------- */

.bagca-loc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.bagca-map {
  position: relative;
  height: 232px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, var(--surface-2) 0 26px, var(--line-4) 26px 27px),
    repeating-linear-gradient(90deg, var(--surface-2) 0 26px, var(--line-4) 26px 27px);
}
.bagca-map-road {
  position: absolute;
  left: -10%;
  top: 58%;
  width: 120%;
  height: 12px;
  border-radius: var(--r-ctl);
  background: var(--line-2);
  transform: rotate(-7deg);
}
.bagca-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -40px 0 0 -20px;
  border-radius: 50% 50% 50% 4px;
  background: var(--kg);
  color: var(--kg-ink);
  box-shadow: var(--sh-1);
  transform: rotate(-45deg);
}
.bagca-map-pin svg { transform: rotate(45deg); }

.bagca-info {
  display: grid;
  gap: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.bagca-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-4);
}
.bagca-info-row:last-child { border-bottom: 0; }
.bagca-info-label {
  flex: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
.bagca-info-val {
  flex: 1 1 auto;
  text-align: right;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.bagca-info-val a { text-decoration: underline; text-underline-offset: 3px; }

/* --- sticky sidebar ------------------------------------------------------- */

.bagca-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bagca-side-card {
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--sh-2);
}

.bagca-side-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}
.bagca-side-price {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.bagca-side-per {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.bagca-side-note {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.bagca-side-actions {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}
.bagca-side-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.019em;
  line-height: 1.3;
  color: var(--ink);
}
.bagca-side-text {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.bagca-side .bagca-info { border-radius: var(--r-sm); }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1024px) {
  .bagca-side { position: static; }
  .bagca-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .bagca-loc { grid-template-columns: minmax(0, 1fr); }
  .bagca-block + .bagca-block { margin-top: 38px; }
}

@media (max-width: 560px) {
  .bagca-top { padding-top: 20px; }
  .bagca-nav { padding-top: 24px; }
  .bagca-hero { flex-wrap: wrap; }
  .bagca-hero-quick { margin-left: -12px; }
  .bagca-cards { grid-template-columns: minmax(0, 1fr); }
  .bagca-info-row { flex-direction: column; align-items: flex-start; }
  .bagca-info-val { text-align: left; }
  .bagca-map { height: 180px; }
}

/* --- admission strip ------------------------------------------------------
   Replaces the timeline. Six dated paragraphs of copy that is the same on every
   profile pushed the real facts below the fold; the sequence is what a parent
   needs, and the detail arrives with the reply to their application. */

.bagca-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.bagca-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
}
/* The step that is open right now is the only one worth an accent. */
.bagca-step.is-now { border-color: var(--kg); background: var(--kg-3); }

.bagca-step-n {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--kg-ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}

.bagca-step-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bagca-step-title {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.bagca-step-date {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-2);
}

.bagca-price-big {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.bagca-price-big span { font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
