:root {
  color-scheme: light;
  --ink: #102027;
  --muted: #5d6b74;
  --line: #dce5e8;
  --paper: #ffffff;
  --soft: #eef6f4;
  --brand: #007f73;
  --brand-dark: #07524c;
  --accent: #c83f2f;
  --gold: #d49b2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fbfa;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.site-nav,
.header-actions,
.footer-links,
.meta-row,
.row-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
}

.site-nav {
  flex: 1;
  gap: 18px;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.header-actions {
  gap: 10px;
}

.language-form select,
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.ghost {
  color: var(--brand-dark);
  background: #fff;
}

.link-button {
  padding: 0;
  min-height: auto;
  color: inherit;
  background: transparent;
  border: 0;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: end;
  padding: 8vw 5vw 5vw;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 41, 45, 0.88), rgba(7, 41, 45, 0.28)),
    url("/media/universities/banners/aydin.webp") center/cover;
}

.hero-overlay {
  max-width: 760px;
}

.hero h1,
.page-head h1 {
  margin: 0 0 16px;
  max-width: 900px;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.04;
}

.hero p,
.page-head p {
  max-width: 760px;
  font-size: 1.1rem;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.search-bar,
.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  max-width: 780px;
  margin-top: 28px;
}

.filter-bar {
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  max-width: none;
  margin: 0 0 28px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats-band div {
  padding: 28px 5vw;
  background: #fff;
}

.stats-band strong {
  display: block;
  font-size: 2rem;
}

.section,
.page-head {
  padding: 64px 5vw;
}

.page-head {
  background: var(--soft);
}

.tinted {
  background: #edf4f1;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card,
.panel,
.side-panel,
.auth-card,
.program-row,
.faq-category {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  padding: 18px;
}

.university-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.meta-row {
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.meta-row span,
.status {
  padding: 4px 9px;
  color: var(--brand-dark);
  background: var(--soft);
  border-radius: 999px;
  font-size: 0.9rem;
}

.program-list {
  display: grid;
  gap: 12px;
}

.program-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.program-row h2,
.program-row h3,
.card h2,
.card h3 {
  margin: 0 0 6px;
}

.program-row p,
.card p {
  margin: 0;
  color: var(--muted);
}

.row-actions {
  gap: 14px;
  flex-shrink: 0;
}

.price {
  font-weight: 800;
  color: var(--brand-dark);
}

.detail-hero {
  min-height: 420px;
  display: flex;
  align-items: end;
  padding: 5vw;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.detail-logo {
  width: 92px;
  height: 92px;
  padding: 10px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.side-panel,
.panel,
.auth-card {
  padding: 24px;
}

.auth-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 56px 5vw;
}

.auth-card {
  width: min(100%, 460px);
}

.auth-card.wide {
  width: min(100%, 720px);
}

.stack-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.field small,
.field-error,
.form-errors {
  font-weight: 400;
}

.field-error,
.form-errors {
  color: var(--accent);
}

.social-auth {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.social-auth a {
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-category {
  padding: 20px;
}

details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.empty-state {
  padding: 32px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.messages {
  position: fixed;
  top: 86px;
  inset-inline: 5vw auto;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.message {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(16, 32, 39, 0.12);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 5vw;
  color: #dce5e8;
  background: #102027;
}

.footer-links {
  gap: 16px;
  flex-wrap: wrap;
}

.check-list {
  padding-inline-start: 20px;
}

@media (max-width: 900px) {
  .site-header,
  .site-nav,
  .header-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
    padding-block: 16px;
  }

  .site-nav,
  .header-actions {
    gap: 10px;
  }

  .search-bar,
  .filter-bar,
  .stats-band,
  .two-column {
    grid-template-columns: 1fr;
  }

  .program-row {
    align-items: stretch;
    flex-direction: column;
  }

  .row-actions {
    justify-content: space-between;
  }
}
