/*
 * ZİYARETÇİ KABUĞU
 * Header, masaüstü/mobil navigasyon, hero karuseli, footer ve sayfa üstü eylemler.
 * Davranış varliklar/js/main.js ile; bu katman hiçbir vendor sınıfı gerektirmez.
 */

/* Header ve masaüstü navigasyon */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 997;
  height: var(--site-header-height);
  padding: 15px 0;
  background: var(--brand-primary);
  transition: box-shadow 0.2s ease;
}

#header.header-scrolled {
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.16);
}

#header > .container-fluid {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  padding-right: clamp(24px, 5vw, 72px);
  padding-left: clamp(24px, 5vw, 72px);
}

#header #logo,
#header #logo .site-logo {
  flex: 0 0 auto;
  line-height: 0;
}

#header #logo a {
  display: block;
}

#header #logo img {
  display: block;
  width: auto;
  max-height: var(--site-logo-height);
  margin: 0;
}

#nav-menu-container {
  margin-left: auto;
}

.nav-menu,
.nav-menu * {
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 11px 11px 12px;
  color: var(--brand-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-menu > li > a::before {
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  background: var(--brand-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-menu > li:hover > a::before,
.nav-menu > .menu-active > a::before,
.nav-menu > li:focus-within > a::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav-menu > .menu-has-children > a::after {
  width: 7px;
  height: 7px;
  margin: -4px 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.nav-menu > li > a[href="/burslar"] {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu > li > a[href="/burslar"]::before {
  display: none;
}

.nav-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99;
  display: block;
  min-width: 240px;
  padding: 8px;
  border: 1px solid rgba(0, 12, 137, 0.08);
  border-radius: var(--site-radius-sm);
  background: var(--brand-white);
  box-shadow: var(--site-shadow-md);
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  transition:
    opacity 0.16s ease 0.22s,
    transform 0.16s ease 0.22s,
    visibility 0s linear 0.38s;
}

.nav-menu li:hover > ul,
.nav-menu li:focus-within > ul,
.nav-menu li.sfHover > ul {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.nav-menu ul a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--brand-secondary-text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  white-space: normal;
}

.nav-menu ul a:hover,
.nav-menu ul a:focus-visible {
  background: rgba(0, 87, 167, 0.07);
  color: var(--brand-action);
}

/* Mobil drawer */
#mobile-nav-toggle {
  position: fixed;
  top: calc(var(--site-header-height) / 2);
  right: 14px;
  z-index: 1000;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-white);
  cursor: pointer;
  transform: translateY(-50%);
}

#mobile-nav-toggle .mobile-nav-toggle-icon,
#mobile-nav-toggle .mobile-nav-toggle-icon::before,
#mobile-nav-toggle .mobile-nav-toggle-icon::after {
  display: block;
  width: 25px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#mobile-nav-toggle .mobile-nav-toggle-icon {
  position: relative;
}

#mobile-nav-toggle .mobile-nav-toggle-icon::before {
  position: absolute;
  top: -8px;
}

#mobile-nav-toggle .mobile-nav-toggle-icon::after {
  position: absolute;
  top: 8px;
}

.mobile-nav-active #mobile-nav-toggle .mobile-nav-toggle-icon {
  background: transparent;
}

.mobile-nav-active #mobile-nav-toggle .mobile-nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav-active #mobile-nav-toggle .mobile-nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

#mobile-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 999;
  width: min(84vw, 360px);
  padding: calc(var(--site-header-height) + 12px) 12px 28px;
  overflow-y: auto;
  background: rgba(0, 12, 137, 0.985);
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.3);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

#mobile-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#mobile-nav li {
  position: relative;
}

#mobile-nav a {
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 12px 46px 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--brand-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-transform: uppercase;
}

#mobile-nav li li a {
  padding-left: 32px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

#mobile-nav a[href="/burslar"] {
  margin: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

#mobile-nav .mobile-submenu-toggle {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 2;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-white);
  cursor: pointer;
}

#mobile-nav .mobile-submenu-toggle span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

#mobile-nav .mobile-submenu-toggle[aria-expanded="true"] span {
  transform: rotate(225deg) translate(-1px, -1px);
}

body.mobile-nav-active #mobile-nav {
  transform: translateX(0);
}

body.mobile-nav-active #mobile-nav-toggle {
  right: auto;
  left: calc(min(84vw, 360px) - 60px);
}

#mobile-body-overly {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 7, 78, 0.7);
}

#mobile-body-overly[hidden] {
  display: none;
}

/* Hero / karusel */
#intro {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--brand-deep);
}

.sayfa-anasayfa #intro {
  height: clamp(560px, calc(100svh - var(--site-header-height) - 96px), 680px);
  margin-top: var(--site-header-height);
}

#intro .intro-container,
#intro .carousel,
#intro .carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

#intro .carousel-item {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

#intro .carousel-item.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

#intro .carousel-item::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 78, 0.46);
  content: "";
}

#intro .carousel-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--hero-edge-space) clamp(68px, 10vh, 104px);
}

#intro .carousel-content {
  z-index: 2;
  display: flex;
  width: min(var(--hero-content-width), calc(100vw - (2 * var(--hero-edge-space))));
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--brand-white);
  text-align: center;
}

#intro h1,
#intro h2 {
  margin: 0;
  color: var(--brand-white);
  font-size: clamp(42px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

#intro p,
#intro .hero-alt-yazi {
  width: auto;
  margin: 0;
  color: var(--brand-white);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.35;
  text-wrap: balance;
}

#intro .btn-get-started {
  z-index: 5;
  display: inline-flex;
  width: fit-content;
  max-width: min(520px, calc(100% - (2 * var(--hero-edge-space))));
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 40px;
  border-radius: 999px;
  background: var(--brand-action);
  color: var(--brand-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#intro .btn-get-started:hover,
#intro .btn-get-started:focus-visible {
  background: var(--brand-white);
  color: var(--brand-action);
  transform: translateY(-1px);
}

#intro .carousel-content--yalniz-cta {
  margin-bottom: 0;
}

#intro .carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#intro .carousel-indicators li {
  width: 34px;
  height: 16px;
}

#intro .carousel-indicators button {
  display: block;
  width: 100%;
  height: 16px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#intro .carousel-indicators button::before {
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  content: "";
}

#intro .carousel-indicators button.active::before {
  background: var(--brand-white);
}

#intro .carousel-control-prev,
#intro .carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 12;
  display: flex;
  width: clamp(48px, 5vw, 72px);
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-white);
  cursor: pointer;
}

#intro .carousel-control-prev {
  left: 0;
}

#intro .carousel-control-next {
  right: 0;
}

#intro .carousel-control-prev-icon,
#intro .carousel-control-next-icon {
  display: block;
  width: 18px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

#intro .carousel-control-prev-icon {
  transform: rotate(-135deg);
}

#intro .carousel-control-next-icon {
  transform: rotate(45deg);
}

#intro .carousel-pause {
  position: absolute;
  right: 20px;
  bottom: 15px;
  z-index: 16;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(0, 7, 78, 0.62);
  color: var(--brand-white);
  font-size: 14px;
  cursor: pointer;
}

/* Footer ve yukarı çık */
#footer {
  padding: 0 0 30px;
  background: var(--brand-deep);
  color: #eee;
  font-size: 14px;
}

#footer .footer-top {
  padding: 44px 0 18px;
  background: var(--brand-primary);
}

#footer .footer-top .row > [class*="col-"] {
  margin-bottom: 20px;
}

#footer h4 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
  color: var(--brand-white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

#footer h4::before,
#footer h4::after {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
}

#footer h4::before {
  right: 0;
  background: rgba(255, 255, 255, 0.24);
}

#footer h4::after {
  width: 60px;
  background: var(--brand-accent);
}

#footer p {
  margin: 0;
  color: #eee;
  font-size: 14px;
  line-height: 1.65;
}

#footer a {
  color: var(--brand-white);
}

#footer a:hover,
#footer a:focus-visible {
  color: #8de8ed;
}

#footer .copyright {
  padding-top: 22px;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 20;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-action);
  color: var(--brand-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top:hover {
  background: var(--brand-accent);
  color: var(--brand-white);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top .back-to-top-icon {
  display: inline-flex;
  line-height: 0;
}

@media (min-width: 992px) {
  #mobile-nav {
    display: none;
  }
}

@media (max-width: 991px) {
  #header {
    padding: 13px 0;
  }

  #header > .container-fluid {
    padding-right: 16px;
    padding-left: 16px;
  }

  #nav-menu-container {
    display: none;
  }

  #mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .sayfa-anasayfa #intro {
    height: clamp(540px, calc(100svh - var(--site-header-height) - 56px), 620px);
  }

  #intro .carousel-container {
    padding: 0 var(--hero-edge-space) 76px;
  }

  #intro .carousel-content {
    width: 100%;
  }

  #intro h1,
  #intro h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  #intro p,
  #intro .hero-alt-yazi {
    font-size: clamp(18px, 5vw, 22px);
  }

  #intro .btn-get-started {
    max-width: calc(100% - (2 * var(--hero-edge-space)));
    min-height: 50px;
    padding: 12px 30px;
  }

  #footer .footer-top {
    padding: 36px 0 12px;
  }
}
