/* =========================================================
   Akademi Global — daxili səhifələr (minimalist)
   Yalnız yeni komponentlər; tokenlər style.css-dədir.
   ========================================================= */

/* ---------- yuxarı rəngli zolaq (cover fonu) ----------
   Ayrıca sarğı elementi olmadan çörək qırıntıları + başlıq
   hissəsinin arxasına tam enli isti fon çəkir.                */
body.inner { position: relative; }
body.inner::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 660px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(820px 360px at 86% -8%, rgba(255, 79, 15, .18), transparent 62%),
    radial-gradient(720px 380px at 2% 6%, rgba(135, 48, 78, .16), transparent 66%),
    linear-gradient(180deg, #FCEFE8 0%, #FFF6F1 46%, #FFFDFC 78%, #FFFFFF 100%);
}
body.inner::after {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 660px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(135, 48, 78, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 48, 78, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 78% 70% at 50% 22%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 22%, #000 20%, transparent 100%);
}

/* ---------- daxili səhifədə başlıq həmişə ağdır ---------- */
body.inner .site-header {
  background: rgba(255, 250, 247, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
body.inner .site-header.scrolled { border-bottom-color: transparent; }
body.inner .brand-light { display: none; }
body.inner .brand-dark { display: block; }
body.inner .nav-link { color: var(--maroon-800); }
body.inner .nav-link:hover { background: rgba(135, 48, 78, .08); color: var(--maroon); }
body.inner .burger span { background: var(--maroon-800); }

/* ---------- çörək qırıntıları ---------- */
/* diqqət: .crumbs və .page-hero eyni zamanda .wrap-dır —
   yan boşluğu sıfırlamamaq üçün yalnız üst/alt padding verilir */
.crumbs {
  padding-top: 104px;
  font-size: .86rem;
  color: var(--muted);
}
.crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before {
  content: "/"; color: rgba(135, 48, 78, .3); font-weight: 600;
}
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: var(--maroon-900); font-weight: 600; }

/* ---------- səhifə başlığı ---------- */
.page-hero { padding-top: 26px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.page-hero .flag-lg { margin-bottom: 18px; }
.page-hero h1 { max-width: 17ch; }
.page-hero.wide h1 { max-width: 22ch; }
.page-hero .lead {
  margin-top: 16px; max-width: 62ch;
  font-size: 1.08rem; color: var(--muted); line-height: 1.7;
}
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* açıq fonda «şəffaf» düymə ağ mətnlə görünmür — bordo variant */
body.inner .page-hero .btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--maroon-800);
  border-color: rgba(135, 48, 78, .26);
}
body.inner .page-hero .btn-ghost:hover {
  background: #fff;
  border-color: rgba(255, 79, 15, .45);
  color: var(--maroon-900);
}

.ph-facts {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.ph-facts li { background: var(--paper); padding: 16px 18px; }
.ph-facts b {
  display: block; font-family: var(--font); font-weight: 800;
  font-size: 1.2rem; color: var(--maroon-900); letter-spacing: -.02em;
}
.ph-facts span { display: block; margin-top: 2px; font-size: .82rem; color: var(--muted); }

/* ---------- sənəd şəbəkəsi: mündəricat + mətn ---------- */
.doc { padding: 56px 0 72px; }
.doc-grid {
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px;
  align-items: start;
}

.toc { position: sticky; top: 96px; }
.toc h2 {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block; padding: 7px 0 7px 14px; text-decoration: none;
  font-size: .9rem; color: var(--muted); line-height: 1.4;
  border-left: 2px solid var(--line);
  transition: color .16s ease, border-color .16s ease;
}
.toc a:hover { color: var(--maroon-900); }
.toc a.active { color: var(--maroon-900); font-weight: 600; border-left-color: var(--orange); }

/* ---------- mətn tipoqrafiyası ---------- */
.prose > * + * { margin-top: 18px; }
.prose section + section { margin-top: 58px; }
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  scroll-margin-top: 96px;
}
.prose h2 + p { margin-top: 14px; }
.prose h3 { font-size: 1.06rem; margin-top: 30px; color: var(--maroon-800); }
.prose p { color: #4A3540; }
.prose a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--orange); }
.prose strong { color: var(--maroon-900); font-weight: 700; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 20px; color: #4A3540; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--orange); }

/* nişan siyahısı */
.check { list-style: none; padding-left: 0; }
.check li { position: relative; padding-left: 28px; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 8px; border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}

/* ---------- cədvəl ---------- */
.tbl-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
table.tbl caption { caption-side: bottom; padding: 12px 16px; font-size: .8rem; color: var(--muted); text-align: left; }
table.tbl th, table.tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.tbl thead th {
  font-family: var(--font); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: var(--cream);
}
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td:first-child { font-weight: 600; color: var(--maroon-900); }

/* ---------- qeyd qutusu ---------- */
.callout {
  margin-top: 24px; padding: 18px 20px;
  background: var(--cream); border-left: 3px solid var(--orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .95rem;
}
.callout p { margin: 0; color: #4A3540; }
.callout b { color: var(--maroon-900); }

/* ---------- xırda addımlar ---------- */
.mini-steps { list-style: none; padding-left: 0; margin-top: 24px; counter-reset: ms; }
.mini-steps li {
  position: relative; padding: 0 0 0 46px; counter-increment: ms;
}
.mini-steps li + li { margin-top: 22px; }
.mini-steps li::before {
  content: counter(ms, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font); font-weight: 800; font-size: .8rem;
  color: var(--orange); letter-spacing: .04em;
  width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
}
.mini-steps h3 { margin: 4px 0 0; font-size: 1rem; }
.mini-steps p { margin-top: 6px; font-size: .95rem; }

/* ---------- universitet çipləri ---------- */
.chips { list-style: none; padding-left: 0; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  margin: 0; padding: 7px 14px; font-size: .87rem; font-weight: 600;
  color: var(--maroon-800); background: var(--cream);
  border: 1px solid var(--line); border-radius: 999px;
}
.chips li + li { margin-top: 0; }

/* ---------- FAQ (daxili səhifə) ---------- */
.faq-inline { margin-top: 22px; border-top: 1px solid var(--line); }
.faq-inline details { border-bottom: 1px solid var(--line); }
.faq-inline summary {
  list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative;
  font-family: var(--font); font-weight: 700; font-size: 1rem; color: var(--maroon-900);
}
.faq-inline summary::-webkit-details-marker { display: none; }
.faq-inline summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-inline details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-inline details > p { margin: 0 0 20px; padding-right: 34px; font-size: .96rem; color: #4A3540; }

/* ---------- əlaqəli səhifələr ---------- */
.related { padding: 60px 0; border-top: 1px solid var(--line); background: var(--cream); }
.related h2 { font-size: 1.35rem; }
.rel-grid {
  margin-top: 24px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px;
}
.rel-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 16px 18px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(255,79,15,.35); }
.rel-card b { font-family: var(--font); font-size: .96rem; color: var(--maroon-900); line-height: 1.35; }
.rel-card b span { display: block; margin-top: 2px; font-size: .82rem; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.rel-card .flag { flex: none; }

/* ---------- son çağırış zolağı ---------- */
.cta-band { background: var(--maroon-900); color: #fff; padding: 62px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 20ch; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.72); max-width: 52ch; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* ---------- əlaqə səhifəsi ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list h3 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0; }
.contact-list a, .contact-list .val { display: block; margin-top: 8px; font-family: var(--font); font-size: 1.12rem; font-weight: 700; color: var(--maroon-900); text-decoration: none; }
.contact-list a:hover { color: var(--orange); }
.contact-list small { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; }

/* ---------- haqqımızda ---------- */
.values { list-style: none; padding-left: 0; margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.values li { background: var(--paper); padding: 24px 22px; margin: 0; }
.values li + li { margin-top: 0; }
.values h3 { margin: 0 0 8px; font-size: 1rem; }
.values p { margin: 0; font-size: .93rem; }

.timeline { list-style: none; padding-left: 0; margin-top: 26px; }
.timeline li { position: relative; padding: 0 0 26px 30px; border-left: 1px solid var(--line); margin: 0; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.timeline b { display: block; font-family: var(--font); color: var(--maroon-900); }
.timeline p { margin-top: 4px; font-size: .95rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 140px 0 90px; }
.notfound .code { font-family: var(--font); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); color: var(--orange); line-height: 1; letter-spacing: -.04em; }
.notfound p { margin-top: 16px; color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.notfound .hero-actions { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- adaptiv ---------- */
@media (max-width: 1000px) {
  .doc-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc {
    position: static; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 18px 20px; background: var(--cream);
  }
  .toc ol { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .crumbs { padding-top: 86px; }
  .ph-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { padding: 40px 0 56px; }
  .prose section + section { margin-top: 44px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   PHP versiyası üçün əlavələr
   ========================================================= */

/* ---------- SEO etiket zolağı (hər səhifənin altında) ---------- */
.tag-band { padding: 46px 0; border-top: 1px solid var(--line); background: var(--paper); }
.tag-title {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 0 16px;
}
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { margin: 0; }
.tag-list a {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  color: var(--maroon-800); background: var(--cream);
  border: 1px solid var(--line);
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.tag-list a:hover {
  background: #fff; color: var(--maroon-900);
  border-color: rgba(255, 79, 15, .45); transform: translateY(-1px);
}
.related + .tag-band { border-top: 0; }

/* ---------- mündəricatsız sənəd ---------- */
.doc-single { max-width: 820px; }

/* ---------- forma ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors {
  margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-sm);
  background: #FDECEC; border: 1px solid #F3C2C2; color: #8A2330; font-size: .9rem;
}
.form-errors p { margin: 0; }
.form-errors p + p { margin-top: 4px; }

/* əlaqə səhifəsində forma tünd zolaqsız görünür */
.consult-bare .consult-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-md);
}
.consult-bare .consult-form label { color: var(--maroon-900); }
.consult-bare .consult-form input,
.consult-bare .consult-form select,
.consult-bare .consult-form textarea {
  background: #fff; border-color: var(--line); color: var(--ink);
}
.consult-bare .form-note { color: var(--muted); }

/* ---------- altlıqdakı hazırlayan krediti ---------- */
.made-by a {
  color: inherit; text-decoration: none; font-weight: 700; letter-spacing: .04em;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  transition: color .18s ease, border-color .18s ease;
}
.made-by a:hover { color: var(--orange-2); border-bottom-color: var(--orange-2); }

/* ---------- mətn içindəki şəkillər ---------- */
.prose img {
  border-radius: var(--r-md);
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  margin-top: 22px;
}
.prose figure { margin: 22px 0 0; }
.prose figure img { margin-top: 0; }
.prose figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }

/* =========================================================
   ⛔ MOBİL BAŞLIQ TƏLƏSİ
   `backdrop-filter` elementi `position: fixed` uşaqları üçün
   «containing block»-a çevirir. Bu üzdən mobil menyu paneli
   başlığın hündürlüyündə (≈65px) kəsilirdi.
   Bu blok page.css-in SONUNDA olmalıdır — style.css-dəki
   eyni seçici daha əvvəl gəldiyi üçün orada yazsaq işləməz.
   ========================================================= */
@media (max-width: 900px) {
  .site-header,
  .site-header.scrolled,
  body.inner .site-header,
  body.inner .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.inner .site-header { background: #FFFAF7; }
  .site-header.scrolled { background: #fff; }
}

/* =========================================================
   Partnyor universitet loqoları — sürüşən zolaq
   Köhnə saytda loqolar ardıcıl <img> kimi düzülmüşdü və
   tam enli şəkil kimi çıxırdı. Burada bərabər ölçülü,
   fasiləsiz sürüşən zolağa yığılır.
   ========================================================= */
.logos { padding-bottom: 70px; }
.logo-marquee {
  margin-top: 34px;
  overflow: hidden;
  position: relative;
  /* Kənarlarda yumşaq itmə */
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: logo-scroll 46s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: 60px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  flex: none;
  margin: 0;
  padding: 16px 22px;
  box-sizing: content-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  opacity: 1;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.logo-track img:hover { box-shadow: var(--shadow-md); border-color: rgba(255,79,15,.35); transform: translateY(-3px); }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; gap: 34px 44px; }
  .logo-marquee { mask-image: none; -webkit-mask-image: none; }
}
@media (max-width: 760px) {
  .logo-track { gap: 36px; animation-duration: 34s; }
  .logo-track img { height: 56px; max-width: 116px; }
}

/* =========================================================
   Üzən WhatsApp düyməsi
   ========================================================= */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.wa-fab .wa-icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease;
}
.wa-fab .wa-icon svg { width: 32px; height: 32px; display: block; }
.wa-fab:hover .wa-icon { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); }
.wa-fab:active .wa-icon { transform: scale(.96); }

/* Diqqət çəkən dalğa */
.wa-fab .wa-ring {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  opacity: .55;
  animation: wa-pulse 2.4s cubic-bezier(.25, .8, .35, 1) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Yazı qabarcığı */
.wa-fab .wa-bubble {
  order: -1;
  position: relative;
  max-width: 220px;
  padding: 11px 16px;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: var(--maroon-900);
  font-family: var(--font);
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.35;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: wa-bob 3.6s ease-in-out infinite;
}
@keyframes wa-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab .wa-ring { animation: none; opacity: 0; }
  .wa-fab .wa-bubble { animation: none; }
}

/* Mobildə yalnız ikon — mətn yer tutur */
@media (max-width: 760px) {
  .wa-fab { right: 16px; bottom: 16px; }
  .wa-fab .wa-bubble { display: none; }
  .wa-fab .wa-icon { width: 54px; height: 54px; }
  .wa-fab .wa-ring { width: 54px; height: 54px; }
}
