/*
  Muğla Taç Okulları — public site styles.

  The design system (palette, type scale, section rhythm, card and hero treatments) comes from the
  reference interface in temps/mugla-tac-okullari-tasarim; the layered overrides in that prototype's
  globals.css are collapsed here into one set of effective values, and the components the published
  content needs (dropdown navigation, staff and club grids, listings, breadcrumb, forms, galleries)
  are added in the same language.
*/

/*
  The two typefaces are served from this site, not from Google Fonts: a request to fonts.googleapis.com hands
  every visitor's address to a third party before any consent is asked. Variable files, so one file per
  script covers every weight; latin-ext carries ğ, ş and İ.
*/
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display'; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("../fonts/playfair-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display'; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("../fonts/playfair-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #101315;
  --muted: #697074;
  --paper: #f5f3ef;
  --white: #fff;
  --line: #d8d5ce;
  --red: #c9392f;
  --red-dark: #9e2721;
  --navy: #142d35;
  --gold: #efc51a;
  --page: min(1240px, calc(100% - 64px));

  /*
    The header bar and the badge that hangs out of it. They are variables because three things have to agree
    on them — the bar's height, where the badge sits inside it, and how far the open mobile menu drops — and
    a disagreement shows up as the badge sitting a few pixels off the bar, which nobody reports but everybody
    sees.
  */
  --topbar-height: 58px;
  --mainbar-height: 52px;
  --header-height: calc(var(--topbar-height) + var(--mainbar-height));
  --brand-size: 116px;

  /* The badge's top edge, measured from the top of the bar. Never negative: it may hang below the bar, but
     above it there is only the edge of the window. */
  --brand-top: 6px;
}

/*
  Once the page scrolls the badge stops being the first thing and starts being a thing in the way, so it
  shrinks into the bar. The class is set by site.js; without script the badge simply stays large, which is
  the state the page is designed around anyway.
*/
/*
  Scrolled, both bands stay: the school's own sections live in the upper one, and taking them away halfway
  down a page would leave the visitor with no way out of it. They only get tighter, and the badge stops
  hanging — it has made its point by then and from here on it is something in the way.
*/
html.is-scrolled {
  --topbar-height: 46px;
  --mainbar-height: 50px;
  --brand-size: 44px;
  /* Centred in the lower band rather than a hand-written number, so changing either height keeps it centred. */
  --brand-top: calc(var(--topbar-height) + (var(--mainbar-height) - var(--brand-size)) / 2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
}

body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  height: var(--header-height);
  border-bottom: 1px solid rgba(20, 45, 53, .12);
  box-shadow: 0 4px 18px rgba(20, 45, 53, .06);
  position: sticky; top: 0; z-index: 30;
}

/*
  The upper band. Its height is a variable because the badge is positioned from it and the scrolled state
  collapses it; animating the height rather than hiding the element keeps the lower bar from jumping.
*/
.topbar {
  height: var(--topbar-height);
  background: var(--navy); color: #fff;
  /*
    Clipped, so collapsing the band on scroll takes its content with it rather than letting it spill over the
    bar below for the length of the animation — except while somebody is actually in the band, when a submenu
    has to be able to drop out of it. The two never coincide: a band being hovered is a band at full height.
  */
  overflow: hidden;
  transition: height .25s ease;
}
.topbar:hover, .topbar:focus-within { overflow: visible; }

.mainbar {
  height: var(--mainbar-height);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  transition: height .25s ease;
}

.bar-wrap {
  width: var(--page); height: 100%; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Both bands start to the right of the badge, which hangs over the left edge of the header. */
.topbar .bar-wrap, .mainbar .bar-wrap { padding-left: calc(var(--brand-size) + 28px); }
.mainbar .brand { margin-left: calc(-1 * (var(--brand-size) + 28px)); }

/* The lower bar reads left to right from the badge; only the actions are pushed to the far end. Spreading
   the links evenly instead would leave them floating in the middle of an otherwise empty bar. */
.mainbar .bar-wrap { justify-content: flex-start; }
.nav-actions { margin-left: auto; }

/* The number and the button are in the upper band, so the lower bar carries neither; below the breakpoint
   where that band disappears, the number returns here and the button moves into the open panel. */
.nav-actions .phone { display: none; }

.top-nav { display: flex; align-self: stretch; align-items: center; gap: 24px; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.top-nav a { color: #e4ebec; }
.top-nav a:hover { color: #fff; }
.topbar-contact { display: flex; align-items: center; gap: 18px; font-size: 12px; }
/*
  The quiet grey is for the telephone and the address, not for the button standing next to them: a button that
  inherited it ended up grey-on-red at 2.8:1, which is a label nobody can read on the one control the band
  exists to offer.
*/
.topbar-contact a:not(.button) { color: #b6c2c3; }
.topbar-contact a:not(.button):hover { color: #fff; }

/* The red block on the dark band is only 2.8:1 against it, so its edge gets a hairline to sit on. */
.topbar .button { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* A submenu in the dark band drops onto a light panel, like the one in the bar below it. */
/* Full band height, so a submenu opened with top:100% lands under the band rather than halfway up it. */
.top-nav .has-children { position: relative; align-self: stretch; display: flex; align-items: center; }
.top-nav .has-children > ul {
  position: absolute; left: -16px; top: 100%; min-width: 230px;
  list-style: none; margin: 0; padding: 10px 0;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(20, 45, 53, .18);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s ease; z-index: 5;
}
.top-nav .has-children:hover > ul,
.top-nav .has-children:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.top-nav .has-children > ul a { display: block; padding: 10px 18px; font-size: 12px; color: var(--navy); }
.top-nav .has-children > ul a:hover { background: var(--paper); color: var(--red); }

/* The narrow-screen panel is built below, in the breakpoint that needs it. */
.mobile-nav { display: none; }
.mobile-nav__cta { margin-top: 18px; align-self: flex-start; }

.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

/*
  The logo is sized by its height and keeps its own proportions. A fixed square would squash the school's
  mark, while a wide slot would leave a round one floating; object-fit keeps either shape honest.
*/
.brand-logo { display: block; width: auto; height: 62px; max-width: 260px; object-fit: contain; }
/* Same clip as the header's, for the same reason: on the dark footer the mark's own white canvas would
   otherwise read as a white square sitting behind a round badge. */
.brand-light .brand-logo {
  width: 76px; height: 76px; max-width: none;
  background: #fff; border-radius: 50%;
}

/*
  The header badge hangs out of the bar.

  The mark is a round badge, nearly square at 892x840, so its height is what makes it readable — and inside
  an 82px bar it can only ever be small. It is therefore allowed to overflow the bar downwards. Never
  upwards: above the bar there is the edge of the window, and a badge clipped by it would look broken rather
  than deliberate.

  The anchor keeps its width but no height, so the bar's own height does not follow the badge; the width
  stays in the row, so the navigation never slides underneath. The badge itself is positioned from that
  zero-height box, which sits on the bar's middle line — hence the half-height in the offset.
*/
.site-header .brand, .mainbar .brand {
  position: relative;
  flex: none;
  width: var(--brand-size);
  height: 0;
  z-index: 2;
}

.site-header .brand-logo {
  position: absolute;
  left: 0;
  /* Measured from the middle of the LOWER band, because that is where the zero-height anchor sits; the upper
     band's height is subtracted so the badge's top edge stays where --brand-top says, whatever that band does. */
  top: calc(var(--brand-top) - var(--topbar-height) - var(--mainbar-height) / 2);
  width: var(--brand-size);
  height: var(--brand-size);
  max-width: none;
  /*
    The mark is a round badge on an opaque white canvas, so hanging it over a photograph unclipped would put
    a white rectangle there. Clipped to a circle it becomes what it already is — a badge on a white disc —
    and the shadow lifts that disc off whatever it covers. The badge's own ring sits comfortably inside the
    clip, so nothing of the mark is cut.
  */
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(20, 45, 53, .2);
  transition: width .25s ease, height .25s ease, top .25s ease;
  z-index: 2;
}

/* A zero-height box makes a useless focus ring, so the badge wears it instead. */
.site-header .brand:focus-visible { outline: none; }
.site-header .brand:focus-visible .brand-logo {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .site-header .brand-logo { transition: none; }
}

.main-nav {
  display: flex; align-items: center; gap: 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .2px; color: var(--navy);
}
.main-nav > a, .main-nav .has-children > a { color: var(--navy); padding: 6px 0; display: inline-block; }
.main-nav a:hover, .text-link:hover { color: var(--red); }

.main-nav .has-children { position: relative; }
.main-nav .has-children > ul {
  position: absolute; left: -16px; top: 100%; min-width: 250px;
  list-style: none; margin: 0; padding: 10px 0;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(20, 45, 53, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s ease; z-index: 5;
}
.main-nav .has-children:hover > ul,
.main-nav .has-children:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.main-nav .has-children > ul a { display: block; padding: 10px 18px; font-size: 12px; }
.main-nav .has-children > ul a:hover { background: var(--paper); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.phone { font-size: 11px; display: flex; gap: 6px; align-items: center; color: var(--navy); font-weight: 600; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .2px;
  border: 0; cursor: pointer; transition: .25s ease;
}
.button:hover { background: var(--red-dark); transform: translateY(-2px); color: #fff; }
.button-small { min-height: 39px; padding: 0 16px; }
.button-light { background: #fff; color: var(--red); }
.button-light:hover { background: #f7dedb; color: var(--red-dark); }

.menu-button {
  display: none; border: 0; background: none; padding: 8px;
  min-width: 44px; min-height: 44px; color: var(--navy); cursor: pointer;
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; transition: .2s;
}
.text-link::after { content: '↗'; font-size: 13px; }
.text-link.light { color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 620px; position: relative;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  background-color: var(--navy);
  background-size: cover; background-position: center;
}
.hero-content { position: relative; width: var(--page); margin: auto; padding: 80px 0; }
.eyebrow, .section-kicker { font-size: 10px; letter-spacing: 2.4px; font-weight: 700; color: #9ca6a7; }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5.4vw, 74px); line-height: 1.02; font-weight: 500;
  letter-spacing: -1.5px; margin: 22px 0; max-width: 13ch;
}
.hero h1 em, h2 span { color: #db5148; font-style: italic; }
.hero-text { max-width: 430px; color: #dce1df; line-height: 1.7; font-size: 16px; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; margin-top: 35px; }
.hero-note {
  position: absolute; right: 5%; bottom: 34px;
  font-size: 11px; display: flex; align-items: center; gap: 12px; color: #dce1df;
}
.hero-note span { width: 55px; height: 1px; background: #fff; display: block; }

/* ── Sections ────────────────────────────────────────────────────────────── */

.section { padding: 110px max(32px, calc((100% - 1240px) / 2)); }
/*
  The section headings are the site's own menu labels, so they are set in capitals: the display face keeps
  the reference design's voice, but without the tight tracking that only suits mixed-case display lines.
*/
.section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1;
  font-weight: 500; letter-spacing: 0; margin: 0;
}
.section-kicker { color: var(--muted); margin-bottom: 20px; }
.section-kicker.red { color: #e16b63; }
.section-head {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end;
  margin-bottom: 56px;
}
.section-head > p { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 390px; margin: 0; }

.dark-section { background: var(--navy); color: #fff; }
.dark-section .section-kicker { color: #9da9ab; }
.dark-section .section-head > p { color: #b6c2c3; }

/* ── School cards ────────────────────────────────────────────────────────── */

.education-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; }
.edu-card {
  height: 430px; position: relative; overflow: hidden; background: #223c43; border-radius: 4px;
}
.edu-card.large { height: 520px; }
.card-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; transition: transform .5s ease;
}
.edu-card:hover .card-image { transform: scale(1.04); }
.edu-card::after {
  content: ''; position: absolute; inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(9, 19, 22, .92));
}
.edu-overlay { position: absolute; z-index: 1; inset: auto 25px 25px; color: #fff; }
.edu-icon { display: block; margin-bottom: 10px; filter: brightness(0) invert(1); }
.edu-overlay h3 { font: 500 30px 'Playfair Display', Georgia, serif; margin: 0; }
.stretched { position: absolute; inset: 0; z-index: 2; }

/* ── Staff ───────────────────────────────────────────────────────────────── */

.staff-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 24px;
}
.staff-card h3 { font: 600 14px/1.3 'DM Sans', sans-serif; margin: 16px 0 4px; letter-spacing: .2px; }
.staff-card p { margin: 0; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.staff-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center;
  background: #e5e1d9; border-radius: 4px; display: block;
}
.staff-photo-empty {
  display: grid; place-items: center;
  background: var(--navy); color: rgba(255, 255, 255, .5);
  font: 500 44px 'Playfair Display', Georgia, serif;
}

/* ── Clubs ───────────────────────────────────────────────────────────────── */

.club-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.club-card > a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; height: 100%; }
.club-card > a:hover { border-color: var(--navy); }
.club-image { display: block; height: 150px; background-size: cover; background-position: center; transition: transform .5s ease; }
.club-card > a:hover .club-image { transform: scale(1.04); }
.club-body { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.club-body img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.club-title { font-size: 12px; font-weight: 600; letter-spacing: .6px; }

/* ── News ────────────────────────────────────────────────────────────────── */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-image { height: 270px; background-size: cover; background-position: center; border-radius: 4px; margin-bottom: 18px; transition: transform .5s ease; }
.news-card:hover .news-image { transform: scale(1.03); }
.news-card { overflow: hidden; }
.news-card h3 {
  font: 500 24px/1.2 'Playfair Display', Georgia, serif; margin: 0 0 16px;
  border-top: 1px solid var(--line); padding-top: 16px;
}

/* ── CTA + forms ─────────────────────────────────────────────────────────── */

.cta { padding: 100px max(24px, calc((100% - 900px) / 2)); text-align: center; background: var(--red); color: #fff; }
.cta .eyebrow { color: #f6c1bd; }
.cta h2 {
  font: 500 clamp(30px, 3.6vw, 50px)/1.1 'Playfair Display', Georgia, serif;
  margin: 18px auto 34px; letter-spacing: 0;
}
.cta h2 em { color: #fff0ed; }

.apply-form, .contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left;
}
.apply-form { background: rgba(255, 255, 255, .1); padding: 28px; border-radius: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 14px; padding: 12px 14px; min-height: 46px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 3px;
}
.field textarea { resize: vertical; }
.field span.field-validation-error { font-size: 12px; color: #ffd9d5; }
.contact-form .field span.field-validation-error { color: var(--red); }
.apply-form .button, .contact-form .button { grid-column: 1 / -1; justify-self: start; }
.validation-summary { grid-column: 1 / -1; font-size: 13px; }
.validation-summary ul { margin: 0; padding-left: 18px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { background: var(--navy); color: #fff; }
.flash-inner { width: var(--page); margin: auto; padding: 18px 0; font-size: 14px; }
.flash-inline { background: #e8f3ea; border-left: 3px solid #2f7d4a; padding: 14px 18px; font-size: 14px; }

/* ── Inner pages ─────────────────────────────────────────────────────────── */

.page { width: var(--page); margin: auto; padding: 56px 0 110px; }
.page > h1 {
  font: 500 clamp(30px, 4.4vw, 58px)/1.08 'Playfair Display', Georgia, serif;
  letter-spacing: 0; margin: 18px 0 40px;
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 11px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--red); }

.listing-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card > a { display: block; }
.listing-image { display: block; height: 240px; background: #e5e1d9 center/cover; border-radius: 4px; transition: transform .5s ease; }
.listing-card > a:hover .listing-image { transform: scale(1.03); }
.listing-image-empty { background: var(--navy); }
.listing-title {
  display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font: 500 22px/1.2 'Playfair Display', Georgia, serif;
}

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 70px; align-items: start; }
.detail-image { height: 420px; background-size: cover; background-position: center; border-radius: 4px; margin-bottom: 50px; }
/* News thumbnails are logos and posters rather than wide photographs: show them whole. */
.detail-image-contain { height: 300px; background-size: contain; background-repeat: no-repeat; background-color: #fff; border: 1px solid var(--line); }
.article { font-size: 17px; line-height: 1.8; }
.prose p { margin: 0 0 22px; }
.prose ul { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.article h2 { font: 500 30px 'Playfair Display', Georgia, serif; margin: 44px 0 18px; }
.article-section:first-child h2 { margin-top: 0; }
.article aside, .detail aside { border-top: 1px solid var(--line); }
.detail aside { padding-top: 16px; position: sticky; top: 110px; }
.detail aside h2 { font: 700 10px/1 'DM Sans', sans-serif; letter-spacing: 2px; color: var(--muted); margin: 0 0 8px; }
.detail aside a {
  display: block; border-bottom: 1px solid var(--line); padding: 14px 0;
  font: 500 16px/1.3 'Playfair Display', Georgia, serif;
}
.detail aside a:hover, .detail aside a.current { color: var(--red); }

.gallery { list-style: none; margin: 24px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; display: block; }

.empty { color: var(--muted); font-size: 15px; }

.contact-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 60px; align-items: start; }
.contact-info h2 { font: 500 26px 'Playfair Display', Georgia, serif; margin: 0 0 18px; }
.contact-info address { font-style: normal; line-height: 1.7; margin-bottom: 14px; }
.contact-info p { margin: 0 0 8px; }
.contact-info a:hover { color: var(--red); }
.social { display: flex; gap: 14px; margin-top: 16px; font-size: 12px; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer { background: var(--ink); color: #fff; padding: 70px max(32px, calc((100% - 1240px) / 2)) 24px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
.footer-copy { font-size: 13px; line-height: 1.7; color: #9fa6a5; max-width: 260px; margin-top: 22px; }
.footer h3 { font-size: 10px; letter-spacing: 2px; color: #8e9898; margin: 5px 0 20px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
/*
  The quiet grey belongs to the footer's links, not to a button sitting among them: a red button that
  inherited it came out grey-on-red at 2.7:1. The button keeps its own white, here and in the dark band at
  the top of the page, for the same reason.
*/
.footer p, .footer a:not(.button) { font-size: 12px; line-height: 1.7; color: #b7bfbe; margin: 0; }
.footer a:not(.button):hover { color: #fff; }
.footer .social a { color: #b7bfbe; }
.footer-bottom {
  border-top: 1px solid #323839; padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 10px; color: #778080; letter-spacing: .4px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1320px) {
  .main-nav { gap: 15px; font-size: 11px; }
}

/*
  Nine top-level entries do not fit a single row below a wide desktop, so the navigation collapses into
  the menu button well before phone widths.
*/
@media (max-width: 1180px) {
  /*
    Two bars do not fit, so both fold into one panel and the upper band disappears — its contact details are
    still in the lower bar's phone link and in the footer, so nothing is only there.
  */
  :root { --topbar-height: 0px; }
  .topbar { display: none; }
  .nav-actions .phone { display: flex; }
  .menu-button { display: grid; place-items: center; }
  .top-nav, .main-nav { display: none; }
  .mobile-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px;
    box-shadow: 0 16px 28px rgba(20, 45, 53, .14);
    max-height: calc(100vh - var(--header-height)); overflow-y: auto;
    /* The open panel drops from the bar straight over the badge; it is the thing being read, so it wins. */
    z-index: 3;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav > a, .mobile-nav .has-children > a {
    display: block; padding: 14px 4px; font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .has-children > ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    list-style: none; margin: 0;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0;
  }
  .mobile-nav .has-children > ul a { display: block; padding: 12px 4px; font-size: 13px; border-bottom: 1px solid var(--line); }
  .mobile-nav .has-children > ul a:hover { background: transparent; color: var(--red); }
  .phone span { display: none; }
}

@media (max-width: 960px) {
  :root { --page: calc(100% - 40px); }
  .section { padding: 80px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .education-grid { grid-template-columns: 1fr 1fr; }
  .edu-card.large { grid-column: span 2; height: 400px; }
  .news-grid, .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; gap: 45px; }
  .detail aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
}

@media (max-width: 760px) {
  :root { --topbar-height: 0px; --mainbar-height: 74px; --brand-size: 86px; --brand-top: 5px; }
  html.is-scrolled { --brand-size: 46px; --brand-top: 14px; }
  .brand-logo { height: 46px; max-width: 190px; }

  .hero { min-height: 560px; }
  .hero-content { padding: 64px 0; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); letter-spacing: -2px; }
  .hero-buttons .button { width: 100%; }
  .hero-note { right: 20px; }

  .education-grid, .news-grid, .listing-grid { grid-template-columns: 1fr; }
  .edu-card, .edu-card.large { grid-column: auto; height: 320px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .club-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-form, .contact-form { grid-template-columns: 1fr; }
  .apply-form { padding: 20px; }
  .detail-image { height: 240px; margin-bottom: 32px; }
  .page { padding: 36px 0 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ── Widgets ─────────────────────────────────────────────────────────────── */
/*
  Modules an editor drops into a page body. They reuse the site's own section classes so a composed page is
  built from the same parts as the designed ones rather than a second visual language.
*/

.widget-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 32px;
}

/* The tinted band a widget can ask for, so a stack of modules is not one unbroken column. */
.widget-band { background: var(--navy); color: #fff; }
.widget-band .widget-heading { color: #fff; }
.widget-band .news-card h3 a,
.widget-band .club-title,
.widget-band .staff-card h3 { color: #fff; }
.widget-band .staff-card p,
.widget-band .news-summary { color: #b6c2c3; }
.widget-band .club-card > a { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); }
/* The section head a module renders is the page's own; on a tinted band it has to be readable like the rest. */
.widget-band .section-head h2 { color: #fff; }
.widget-band .section-head .section-kicker { color: #9da9ab; }
.widget-band .section-head a { color: #fff; }

.widget.section { padding-top: 70px; padding-bottom: 70px; }
.widget .news-summary { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }

.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.showcase-image { min-height: 320px; background-size: cover; background-position: center; border-radius: 4px; }
.showcase-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(24px, 3vw, 38px); font-weight: 500; margin: 0 0 16px; }
.showcase-body p { line-height: 1.8; color: var(--muted); margin: 0 0 22px; }

.widget-columns-grid { display: grid; gap: 28px; }
.widget-columns-grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.widget-columns-grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* A widget inside a column has already had its own padding; the column supplies the rhythm. */
.widget-column .widget.section { padding: 0; }

.widget-menu-list { list-style: none; margin: 0; padding: 0; columns: 2; gap: 40px; }
.widget-menu-list > li { break-inside: avoid; margin-bottom: 12px; }
.widget-menu-list a { font-weight: 600; font-size: 14px; }
.widget-menu-list ul { list-style: none; margin: 6px 0 0; padding-left: 14px; }
.widget-menu-list ul a { font-weight: 400; font-size: 13px; color: var(--muted); }

.widget-apply__intro { max-width: 620px; margin: 0 auto 28px; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 24px; }
  .showcase-image { min-height: 220px; }
  .widget-columns-grid[data-columns="2"],
  .widget-columns-grid[data-columns="3"] { grid-template-columns: 1fr; }
  .widget-menu-list { columns: 1; }
}

/* ── Hero slides ─────────────────────────────────────────────────────────── */
/*
  Several banners are several slides. Every slide is in the DOM and readable without script: rotation is an
  enhancement, so with JavaScript off the visitor still gets the first one, whole, rather than an empty band.
*/
.hero-slides { position: relative; width: 100%; display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: 620px; }
.hero-slide[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.hero-slide.is-current { visibility: visible; }
.hero-dots {
  position: absolute; left: max(32px, calc((100% - 1240px) / 2)); bottom: 34px;
  display: flex; gap: 10px; z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .7); background: transparent;
}
.hero-dot.is-current { background: #fff; }
.hero-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* The slide body is the editor's own rich text, so it is styled by tag rather than by class. */
.hero-content > :first-child { margin-top: 0; }
.hero-content p { max-width: 430px; color: #dce1df; line-height: 1.7; font-size: 16px; }
.hero-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5.4vw, 74px); line-height: 1.02; font-weight: 500;
  letter-spacing: -1.5px; margin: 22px 0; max-width: 13ch; color: #fff;
}

/* ── Forms: consent, preferred channel, notices ──────────────────────────── */

.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.radio-row label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
/* The form's text inputs are full width and padded; a tick box that inherited any of that would come out
   as a tall grey slab beside its own sentence. */
.field input[type="checkbox"],
.field input[type="radio"] {
  width: 16px; height: 16px; min-height: 0; flex: none; align-self: flex-start;
  padding: 0; border: 0; border-radius: 0; background: none; accent-color: var(--red);
}
.radio-row input[type="checkbox"],
.radio-row input[type="radio"] { align-self: center; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 0; margin-bottom: 6px;
}
.field-consent label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.6;
}
.field-consent input { margin-top: 2px; }
.consent-links { font-size: 12px; margin: 8px 0 0; }
.consent-links a { text-decoration: underline; }

.notice { border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .06); padding: 18px 22px; }
.notice h2 { margin: 0 0 8px; font-size: 20px; }
.notice p { margin: 0 0 10px; line-height: 1.7; }
.notice p:last-child { margin-bottom: 0; }
.notice-success { border-left-color: #2f7d4a; background: #e8f3ea; color: var(--ink); }
.contact-layout .notice { background: #f3f5f5; border-left-color: var(--red); color: var(--ink); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── Footer columns ──────────────────────────────────────────────────────── */
/*
  The columns are editorial: how many there are depends on the footer menu somebody built, so the grid fits
  itself to them instead of naming a fixed count that a new column would silently break.
*/
.footer-grid { grid-template-columns: 1.7fr repeat(auto-fit, minmax(160px, 1fr)); align-items: start; }
.footer-menu, .footer-contact, .footer-cta { display: flex; flex-direction: column; gap: 10px; }
.footer-menu h3, .footer-contact h3, .footer-cta h3 { margin: 5px 0 10px; }
.footer-menu h3 a { font-size: inherit; letter-spacing: inherit; color: inherit; }
.footer-text { font-size: 12px; line-height: 1.7; color: #b7bfbe; margin-top: 16px; max-width: 280px; }
.footer-text p { margin: 0 0 8px; }
.footer-cta p { margin-bottom: 6px; max-width: 260px; }
.footer-cta-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .hero-slide { min-height: 560px; }
  .hero-dots { left: 20px; bottom: 20px; }
}

/* ── Sliding lists ───────────────────────────────────────────────────────── */
/*
  A slider here is a row that scrolls sideways, not a carousel that rebuilds itself. Every card is in the DOM
  and in order, the track is focusable and scrollable, so the list works with the arrows, with a swipe, with
  the keyboard and with no script at all — the script only adds the automatic nudge.

  --slider-visible is written onto the element by the module, because how many cards read well at once is the
  editor's decision, not the stylesheet's. The stylesheet only refuses to honour a number that would make a
  card unreadably narrow on a small screen.
*/
.slider { position: relative; }
.slider-track { scroll-behavior: smooth; }

.slider.is-sliding .slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--slider-visible) - 1) * var(--slider-gap, 24px)) / var(--slider-visible));
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* The focus ring would otherwise be clipped by the scroll container's own edge. */
  padding: 4px;
  margin: -4px;
  /*
    No operating-system scrollbar. It is drawn in the platform's own colours, which on the tinted band is a
    grey slab across the bottom of the photographs, and its height moves the cards about between platforms.
    The strip below replaces it: same information — how much there is and where you are — in the site's own
    colours, and it is not the thing that makes the list scrollable, so nothing is lost by hiding it.
  */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider.is-sliding .slider-track::-webkit-scrollbar { display: none; }
.slider.is-sliding .slider-track > * { scroll-snap-align: start; }
.slider.is-sliding .staff-grid { --slider-gap: 24px; }
.slider.is-sliding .club-grid { --slider-gap: 18px; }

/* How far along the row is. A strip rather than a thumb: there is nothing to grab, because the arrows, a
   swipe and the keyboard already move the list. */
.slider-progress {
  position: relative; height: 2px; margin-top: 26px; border-radius: 2px;
  background: rgba(20, 45, 53, .12); overflow: hidden;
}
.slider-progress span {
  position: absolute; top: 0; left: 0; height: 100%; width: 100%;
  background: var(--red); border-radius: 2px;
  transform-origin: left center;
  transition: transform .2s ease;
}
.widget-band .slider-progress { background: rgba(255, 255, 255, .18); }
.widget-band .slider-progress span { background: #fff; }

.slider-controls { position: absolute; top: -56px; right: 0; display: flex; gap: 8px; }
.slider-arrow {
  width: 38px; height: 38px; border: 1px solid var(--line); background: #fff;
  color: var(--navy); font-size: 18px; line-height: 1; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center; transition: .2s ease;
}
.slider-arrow:hover { border-color: var(--navy); }
.slider-arrow[disabled] { opacity: .35; cursor: default; }
.widget-band .slider-arrow { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.widget-band .slider-arrow:hover { border-color: #fff; }

@media (max-width: 960px) {
  /* Four is as many as a tablet can show without the cards becoming stamps, whatever the module asked for. */
  .slider.is-sliding .slider-track { grid-auto-columns: calc((100% - 3 * var(--slider-gap, 24px)) / min(var(--slider-visible), 3)); }
}

@media (max-width: 620px) {
  .slider.is-sliding .slider-track { grid-auto-columns: calc((100% - var(--slider-gap, 24px)) / min(var(--slider-visible), 2)); }
  .slider-controls { position: static; justify-content: flex-end; margin-top: 18px; }
}

/* ── Person page ─────────────────────────────────────────────────────────── */
/*
  A staff card is now a link to the person. The card's own look does not change — the anchor carries it — so
  the grid and the slider are untouched; only the whole card becomes the hit area, which is what a visitor
  aims at anyway.
*/
.staff-link { display: block; color: inherit; }
.staff-link:hover h3 { color: var(--red); }
.widget-band .staff-link:hover h3 { color: var(--gold); }
.staff-photo-empty { display: grid; place-items: center; }
.staff-photo-empty span {
  font-family: 'Playfair Display', Georgia, serif; font-size: 34px; color: #8b9ba0;
}

.person { max-width: 820px; }
.person-head { display: flex; gap: 36px; align-items: flex-start; margin-bottom: 36px; }
.person-photo {
  width: 240px; aspect-ratio: 4 / 5; flex: none;
  object-fit: cover; object-position: top center;
  background: #e5e1d9; border-radius: 4px;
}
.person-identity h1 { margin: 0 0 10px; }
.person-title { font-size: 12px; letter-spacing: 1.4px; font-weight: 600; color: var(--muted); margin: 0; }

@media (max-width: 620px) {
  .person-head { flex-direction: column; gap: 22px; }
  .person-photo { width: 100%; max-width: 280px; }
}

/*
  Photo albums (Foto Galeri) and the photos attached to a page. The module writes the markup; how it looks is
  this site's. A photo is a link to the full picture, so without script it still opens; site.js turns the links
  into the viewer below.
*/
.photo-grid { list-style: none; margin: 24px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo a { display: block; overflow: hidden; border-radius: 3px; background: #e5e1d9; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.photo a:hover img, .photo a:focus-visible img { transform: scale(1.04); }
.photo-caption { display: block; padding: 8px 2px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.page > .container > h1 { margin-top: 0; }

.foto-buyutec {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
  background: rgba(10, 18, 20, .94);
}
.foto-buyutec[hidden] { display: none; }
.foto-buyutec-govde { margin: 0; text-align: center; }
.foto-buyutec-govde img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.foto-buyutec-govde figcaption { color: #dfe5e4; font-size: 14px; margin-top: 12px; }
.foto-buyutec button { border: 0; background: none; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; min-width: 44px; min-height: 44px; }
.foto-buyutec-kapat { position: absolute; top: 12px; right: 16px; font-size: 36px !important; }
.foto-buyutec button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.buyutec-acik { overflow: hidden; }

/*
  The cookie consent band (SeoEtiketler). It appears only when a measurement tag is filled in on the panel and
  the visitor has not chosen yet. The three choices are deliberately the same button: accepting must not be
  easier than declining.
*/
.cerez-bandi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--navy); color: #c7d2d3;
  box-shadow: 0 -12px 40px rgba(10, 18, 20, .3);
}
.cerez-bandi-ic {
  width: var(--page); margin: auto; padding: 16px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
}
.cerez-bandi-metin { flex: 1 1 24rem; }
.cerez-bandi-metin p { margin: 0; font-size: 13px; line-height: 1.6; }
.cerez-bandi-metin strong { color: #fff; }
.cerez-bandi-baglantilar { margin-top: 6px !important; }
.cerez-bandi-baglantilar a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.cerez-bandi-eylem { display: flex; flex-wrap: wrap; gap: 10px; }
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); min-height: 44px; }
.button-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body:has(.cerez-bandi) { padding-bottom: 7rem; }

@media (max-width: 620px) {
  .cerez-bandi-eylem { width: 100%; }
  .cerez-bandi-eylem .button { flex: 1 1 auto; }
  .foto-buyutec { grid-template-columns: 44px minmax(0, 1fr) 44px; }
}
