:root {
  --ink: #102a43;
  --ink-soft: #486581;
  --navy: #0b2545;
  --navy-2: #133c55;
  --teal: #0f766e;
  --teal-soft: #e6fffa;
  --gold: #d6a84b;
  --paper: #ffffff;
  --cloud: #f3f7fa;
  --line: #d9e2ec;
  --shadow: 0 18px 50px rgba(16, 42, 67, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0 !important;
  min-width: 0;
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 8% 0, rgba(15, 118, 110, .11), transparent 30rem),
    linear-gradient(180deg, #f8fbfd 0, #edf3f7 100%) !important;
  font: 16px/1.65 Inter, "Segoe UI", Arial, sans-serif !important;
}
a { color: var(--teal) !important; text-decoration: none !important; transition: .2s ease; }
a:hover { color: var(--navy) !important; }
img, object, embed, iframe { max-width: 100%; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: #fff;
  background: rgba(11, 37, 69, .96);
  box-shadow: 0 8px 28px rgba(11, 37, 69, .16);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 96px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 52px;
  padding-left: 19px;
  color: #fff !important;
  white-space: nowrap;
}
.brand::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6d88e, var(--gold));
  box-shadow: 0 0 18px rgba(214, 168, 75, .32);
}
.brand__wordmark { display: block; }
.brand__name {
  display: block;
  color: #fff;
  font: 700 23px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.015em;
}
.brand__name em {
  color: #f0c767;
  font-style: normal;
  font-weight: 700;
}
.brand__role {
  display: block;
  margin-top: 5px;
  color: #bcccdc;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 14px;
  color: var(--navy);
  background: linear-gradient(145deg, #f6d88e, var(--gold));
  box-shadow: 0 8px 25px rgba(214, 168, 75, .24);
  font: 800 17px/1 Georgia, serif;
}
.resource-hub { padding: 8px 20px 58px; }
.resource-hub__inner {
  width: min(1180px, 100%);
  margin: auto;
  padding: 34px;
  border: 1px solid rgba(11, 37, 69, .09);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.resource-hub__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: end;
  gap: 38px;
  margin-bottom: 24px;
}
.resource-hub__heading h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font: 700 clamp(27px, 3vw, 40px)/1.12 Georgia, "Times New Roman", serif;
}
.resource-hub__heading > p { margin: 0; color: var(--ink-soft); }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.resource-card {
  min-height: 158px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.resource-card:hover {
  color: var(--ink) !important;
  border-color: rgba(15, 118, 110, .4);
  box-shadow: 0 14px 34px rgba(16, 42, 67, .1);
  transform: translateY(-2px);
}
.resource-card--featured {
  color: #fff !important;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}
.resource-card--featured:hover { color: #fff !important; }
.resource-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--navy);
  background: #edf5f7;
  font-weight: 850;
}
.resource-card--featured .resource-card__icon { color: var(--navy); background: var(--gold); }
.resource-card small,
.resource-card strong,
.resource-card em { display: block; }
.resource-card small {
  margin-bottom: 2px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.resource-card--featured small { color: #f6d88e; }
.resource-card strong {
  color: inherit;
  font: 700 23px/1.2 Georgia, "Times New Roman", serif;
}
.resource-card em {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}
.resource-card--featured em { color: #d9e2ec; }
.resource-card b { color: var(--teal); font-size: 20px; }
.resource-card--featured b { color: var(--gold); }
.quick-strip {
  margin-top: 16px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border-radius: 16px;
  background: var(--cloud);
}
.quick-strip a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.site-nav a { padding: 10px 11px; border-radius: 10px; color: #d9e2ec !important; font-size: 14px; font-weight: 650; }
.site-nav a:hover, .site-nav a.is-active { color: #fff !important; background: rgba(255, 255, 255, .10); }
.site-nav a.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  color: #fff;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 29, 52, .98) 0%, rgba(7, 29, 52, .91) 42%, rgba(7, 29, 52, .34) 72%, rgba(7, 29, 52, .12) 100%),
    url("assets/images/mali-musavirlik-hero.webp") center/cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .04), 0 0 0 110px rgba(255, 255, 255, .025);
}
.page-hero__inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: auto; padding: 72px 0 68px; }
.page-hero__eyebrow { margin: 0 0 12px; color: #f2cf7e; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.page-hero h1 { max-width: 760px; margin: 0; color: #fff; font: 700 clamp(34px, 5vw, 60px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.page-hero p { max-width: 680px; margin: 18px 0 0; color: #d9e2ec; font-size: 18px; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  color: #fff !important;
  background: rgba(255, 255, 255, .08);
  font-weight: 700;
}
.hero-action--primary { border-color: var(--gold); color: var(--navy) !important; background: var(--gold); }

.visual-showcase {
  padding: 68px 0 8px;
}
.visual-showcase__inner {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.visual-showcase__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  column-gap: 70px;
  align-items: end;
  margin-bottom: 28px;
}
.section-kicker {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.visual-showcase__heading h2 {
  margin: 0;
  color: var(--navy);
  font: 700 clamp(30px, 4vw, 46px)/1.13 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}
.visual-showcase__heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}
.visual-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.visual-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 42, 67, .10);
}
.visual-card > img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .55s ease;
}
.visual-card:hover > img { transform: scale(1.025); }
.visual-card__body {
  position: relative;
  padding: 26px 28px 28px;
}
.visual-card__body > span {
  position: absolute;
  top: 27px;
  right: 28px;
  color: #9fb3c8;
  font: 700 13px Georgia, serif;
}
.visual-card h3 {
  max-width: calc(100% - 52px);
  margin: 0 0 9px;
  color: var(--navy);
  font: 700 25px/1.2 Georgia, "Times New Roman", serif;
}
.visual-card p {
  margin: 0 0 17px;
  color: var(--ink-soft);
}
.visual-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.visual-card a::after { content: "→"; }

.legacy-shell {
  width: min(1180px, calc(100% - 40px)) !important;
  height: auto !important;
  margin: 36px auto 72px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.legacy-shell > tbody > tr:nth-child(1),
.legacy-shell > tbody > tr:nth-child(2) { display: none !important; }
.legacy-shell > tbody > tr > td {
  width: auto !important;
  height: auto !important;
  padding: 24px !important;
  vertical-align: top !important;
  background: var(--paper) !important;
}
.legacy-shell table { max-width: 100% !important; height: auto !important; border-color: var(--line) !important; }
.legacy-shell td { height: auto !important; color: var(--ink) !important; border-color: var(--line) !important; font-family: inherit !important; }
.legacy-shell td[background*="menu"],
.legacy-shell td[bgcolor="#171717"],
.legacy-shell td[bgcolor="#141414"],
.legacy-shell td[bgcolor="#333333"],
.legacy-shell td[bgcolor="#666666"] {
  padding: 10px 14px !important;
  color: #fff !important;
  background: var(--navy-2) !important;
}
.legacy-shell td[background*="menu"] *,
.legacy-shell td[bgcolor="#171717"] *,
.legacy-shell td[bgcolor="#141414"] *,
.legacy-shell td[bgcolor="#333333"] *,
.legacy-shell td[bgcolor="#666666"] * { color: #fff !important; }
.legacy-shell .date, .legacy-shell strong, .legacy-shell b { color: var(--ink) !important; }
.legacy-shell .footer { display: none !important; }
.legacy-shell font { font-family: inherit !important; }
.legacy-shell a:not([href^="mailto:"]) { overflow-wrap: anywhere; font-weight: 600; }
.legacy-shell a[href$=".pdf" i],
.legacy-shell a[href$=".doc" i],
.legacy-shell a[href$=".xls" i] {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #b8d8d4;
  border-radius: 8px;
  background: var(--teal-soft);
}

.site-footer { color: #bcccdc; background: #071d34; }
.site-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer strong { display: block; margin-bottom: 5px; color: #fff; font: 700 18px Georgia, serif; }
.site-footer p { margin: 0; }
.site-footer a { color: #f2cf7e !important; }
.site-footer__right { text-align: right; }
.design-credit {
  margin-top: 9px !important;
  color: #829ab1;
  font-size: 12px;
  letter-spacing: .04em;
}
.design-credit strong {
  display: inline;
  margin: 0;
  color: #f2cf7e;
  font: 750 12px/1 inherit;
}

.contact-page {
  width: min(920px, calc(100% - 40px));
  margin: 42px auto 72px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-grid .is-wide { grid-column: 1 / -1; }
.contact-page label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 750; }
.contact-page input, .contact-page textarea {
  width: 100%;
  border: 1px solid #bcccdc;
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.contact-page input:focus, .contact-page textarea:focus { outline: 3px solid rgba(15, 118, 110, .14); border-color: var(--teal); }
.contact-page textarea { min-height: 150px; resize: vertical; }
.submit-button {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  padding: 0 22px;
  color: #fff;
  background: var(--teal);
  font: 750 15px inherit;
  cursor: pointer;
}
.form-status { margin: 0 0 24px; padding: 14px 16px; border-radius: 11px; background: #e9f8f4; color: #08665f; }
.form-status.is-error { color: #9b2c2c; background: #fff1f1; }
.hp-field { position: absolute !important; left: -9999px !important; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 96px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: #0b2545;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 14px; }
  .legacy-shell, .legacy-shell > tbody, .legacy-shell > tbody > tr, .legacy-shell > tbody > tr > td {
    display: block !important;
    width: 100% !important;
  }
  .legacy-shell > tbody > tr:nth-child(1),
  .legacy-shell > tbody > tr:nth-child(2) { display: none !important; }
  .legacy-shell table { width: 100% !important; }
  .legacy-shell > tbody > tr > td { padding: 18px !important; }
  .visual-showcase__heading { display: block; }
  .visual-showcase__heading h2 { margin-bottom: 14px; }
}

@media (max-width: 620px) {
  .site-header__inner, .page-hero__inner, .site-footer__inner, .legacy-shell, .contact-page { width: min(100% - 24px, 1180px) !important; }
  .resource-hub { padding-inline: 12px; }
  .resource-hub__inner { padding: 24px 18px; }
  .resource-hub__heading { grid-template-columns: 1fr; gap: 10px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; grid-template-columns: 50px minmax(0, 1fr) auto; padding: 18px; gap: 14px; }
  .resource-card__icon { width: 50px; height: 50px; border-radius: 14px; }
  .brand__role { display: block; max-width: 210px; white-space: normal; line-height: 1.25; }
  .page-hero__inner { padding: 52px 0 48px; }
  .page-hero p { font-size: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .is-wide { grid-column: auto; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .site-footer__right { text-align: left; }
  .legacy-shell td { min-width: 0 !important; white-space: normal !important; }
  .visual-showcase { padding-top: 48px; }
  .visual-showcase__inner { width: min(100% - 24px, 1180px); }
  .visual-showcase__grid { grid-template-columns: 1fr; }
  .visual-card > img { height: 230px; }
}

@media (max-width: 420px) {
  .site-header__inner { gap: 10px; }
  .nav-toggle { flex: 0 0 44px; }
  .brand { min-height: 46px; padding-left: 14px; }
  .brand__name { font-size: 19px; }
  .brand__role { display: none; }
}
