/*
Theme Name: Hizmete Dair
Theme URI: https://hizmetedair.local
Author: Hizmete Dair
Author URI: https://hizmetedair.local
Description: Hizmete Dair icin ozel WordPress tema altyapisi.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hizmetedair
*/

:root {
  --primary-color: #3b519a;
  --secondary-color: #b84b89;
  --text-color: #1c2435;
  --muted-text: #5b657e;
  --bg-soft: #f4f6fb;
  --container: 1180px;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  font-family: "Roboto", "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 10%, rgba(59, 81, 154, 0.08), transparent 38%),
    radial-gradient(circle at 90% 15%, rgba(184, 75, 137, 0.09), transparent 32%),
    #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-slide__title,
.site-nav a {
  font-family: "Roboto Slab", "Segoe UI", serif;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(22, 30, 50, 0.1);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: var(--primary-color);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 108px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-left: auto;
}

.site-social {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.site-social a {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 81, 154, 0.24);
  border-radius: 999px;
  color: #fff;
  background: var(--primary-color);
  transition: all 180ms ease;
}

.site-social a:hover,
.site-social a:focus-visible {
  background: #fff;
  color: var(--primary-color);
  text-decoration: none;
}

.site-social svg {
  width: 16px;
  height: 16px;
}

.site-social svg path {
  fill: currentColor;
}

.site-social svg rect,
.site-social svg circle,
.site-social svg line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.site-brand img {
  max-height: 76px;
  width: auto;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 76px;
  width: auto;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(59, 81, 154, 0.2);
  background: #fff;
  border-radius: 12px;
  width: 46px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle__line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-color);
  transition: transform 220ms ease, opacity 220ms ease, background 220ms ease;
}

.site-header.is-menu-open .menu-toggle {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.site-header.is-menu-open .menu-toggle__line {
  background: #fff;
}

.site-header.is-menu-open .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-main-menu-container > ul,
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav__panel-head,
.site-nav .submenu-toggle {
  display: none;
}

.site-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  color: #2d3752;
}

.site-nav > ul > li > a {
  font-size: 1.12rem;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  background: var(--bg-soft);
  color: var(--primary-color);
}

@media (min-width: 761px) {
  .site-nav li {
    position: relative;
  }

  .site-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    min-width: 300px;
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(20, 29, 52, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    z-index: 80;
  }

  .site-nav .sub-menu li {
    display: block;
  }

  .site-nav .sub-menu a {
    display: block;
    width: 100%;
    padding: 0.55rem 0.62rem;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
  }

  .site-nav .sub-menu a:hover,
  .site-nav .sub-menu a:focus-visible,
  .site-nav .sub-menu .current-menu-item > a {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  .site-nav li:hover > .sub-menu,
  .site-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav .sub-menu .sub-menu {
    top: 0;
    left: calc(100% + 8px);
  }

  .site-nav > ul > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 0.42rem;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.65;
    vertical-align: middle;
  }
}

.hero-slider {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-slider__viewport {
  position: relative;
  overflow: hidden;
  background: #17171b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease;
  background-position: center;
  background-size: cover;
  min-height: 620px;
}

.hero-slide:first-child {
  position: relative;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.25) 0%, rgba(11, 11, 12, 0.5) 100%),
    linear-gradient(95deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 72%);
}

.hero-slide__content {
  position: absolute;
  z-index: 2;
  left: clamp(1.2rem, 3.2vw, 2.5rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: 11.8rem;
}

.hero-slide__title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.1rem, 5.2vw, 4.7rem);
  line-height: 1.03;
  color: #fff;
}

.hero-slide__title a {
  color: inherit;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.72);
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.42),
    1px -1px 0 rgba(0, 0, 0, 0.42),
    -1px 1px 0 rgba(0, 0, 0, 0.42),
    1px 1px 0 rgba(0, 0, 0, 0.42),
    0 4px 18px rgba(0, 0, 0, 0.46);
}

.hero-slide__title a:hover,
.hero-slide__title a:focus-visible {
  text-decoration: none;
}

.hero-slider__nav {
  position: absolute;
  z-index: 4;
  right: 2.4rem;
  bottom: 12.8rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.hero-slider__nav:hover,
.hero-slider__nav:focus-visible {
  background: rgba(0, 0, 0, 0.48);
}

.hero-slider__nav--prev {
  right: 4.8rem;
}

.hero-slider__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.hero-slider__search {
  background: var(--primary-color);
  padding: 1.45rem 3.5rem 1.35rem 3.9rem;
}

.hero-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  padding-bottom: 0.58rem;
}

.hero-search-form input {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  line-height: 1.1;
}

.hero-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.hero-search-form input:focus {
  outline: none;
}

.hero-search-form button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-search-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-slider__hours {
  position: relative;
  overflow: hidden;
  background: var(--secondary-color);
  color: #fff;
  padding: 2rem 2.2rem 1.7rem;
}

.hero-slider__hours::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 64%;
  height: 100%;
  opacity: 0.15;
  background:
    linear-gradient(137deg, transparent 20%, rgba(255, 255, 255, 0.5) 20% 24%, transparent 24% 51%, rgba(255, 255, 255, 0.5) 51% 55%, transparent 55%);
}

.hero-slider__hours-label {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.hero-slider__hours-value {
  margin: 0.45rem 0 0;
  font-size: clamp(1.25rem, 1.65vw, 1.85rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero-slider__hours-value a {
  color: #fff;
  text-decoration: none;
}

.hero-slider__hours-value a:hover,
.hero-slider__hours-value a:focus-visible {
  text-decoration: underline;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 3rem;
}

.card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 81, 154, 0.14);
  background: #fff;
}

.card h3 {
  margin-top: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.site-main {
  padding-bottom: 2.5rem;
}

.page-template-template-elementor-full-width .site-main {
  padding-bottom: 0;
}

.entry {
  margin: 1.2rem 0;
  padding: 1.1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 81, 154, 0.14);
  background: #fff;
}

.single .entry,
.page .entry {
  margin: 0 0 2rem;
  padding: 1.8rem 1.9rem;
  font-size: calc(1.18rem * var(--detail-font-scale, 1));
  line-height: 1.78;
  color: #4a5674;
}

.detail-font-tools {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  padding: 0;
}

.detail-font-tools__label {
  color: var(--muted-text);
  font-size: 0.88rem;
  font-weight: 700;
  margin-right: 0.2rem;
}

.detail-font-tools__btn {
  min-width: 38px;
  height: 34px;
  border: 1px solid rgba(59, 81, 154, 0.24);
  border-radius: 10px;
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
}

.detail-font-tools__btn:hover,
.detail-font-tools__btn:focus-visible {
  background: var(--primary-color);
  color: #fff;
}

.entry-title {
  margin: 0 0 0.6rem;
  line-height: 1.3;
  color: var(--primary-color);
}

.entry-meta {
  color: var(--muted-text);
  font-size: 0.92rem;
}

.entry-content {
  margin-top: 1rem;
}

.entry-content p {
  margin-top: 0;
  margin-bottom: 1.08em;
}

.single .entry-content > p:first-of-type::first-letter,
.page .entry-content > p:first-of-type::first-letter {
  float: left;
  font-family: "Roboto Slab", "Segoe UI", serif;
  font-size: 3.4em;
  line-height: 0.82;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 0.1em;
  margin-top: 0.06em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--primary-color);
  line-height: 1.35;
  margin-top: 1.2em;
  margin-bottom: 0.48em;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.soru-endeksi {
  margin-top: 0.4rem;
}

.soru-endeksi__search-card {
  background: var(--primary-color);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.soru-endeksi__search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.soru-endeksi__search-form input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.02rem;
  padding: 0 0.9rem;
}

.soru-endeksi__search-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.soru-endeksi__search-form input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 1px;
}

.soru-endeksi__search-form button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 1rem;
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
}

.soru-endeksi__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(59, 81, 154, 0.16);
  border-radius: 14px;
  background: #fff;
}

.soru-endeksi__item + .soru-endeksi__item {
  border-top: 1px solid rgba(59, 81, 154, 0.1);
}

.soru-endeksi__link {
  display: block;
  padding: 0.96rem 1rem;
  text-decoration: none;
}

.soru-endeksi__title {
  color: #33415f;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 600;
}

.soru-endeksi__link:hover,
.soru-endeksi__link:focus-visible {
  background: rgba(59, 81, 154, 0.06);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.soru-endeksi__link:hover .soru-endeksi__title,
.soru-endeksi__link:focus-visible .soru-endeksi__title {
  color: var(--primary-color);
}

.entry-content .soru-endeksi__link {
  text-decoration: none;
}

.soru-endeksi__more-wrap {
  margin-top: 0.95rem;
  display: flex;
  justify-content: center;
}

.soru-endeksi__more-btn {
  height: 42px;
  border: 1px solid rgba(59, 81, 154, 0.28);
  border-radius: 999px;
  padding: 0 1.15rem;
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
}

.soru-endeksi__more-btn:hover,
.soru-endeksi__more-btn:focus-visible {
  background: var(--primary-color);
  color: #fff;
}

.soru-endeksi__more-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.soru-endeksi__empty {
  margin: 0.5rem 0 0;
  color: var(--muted-text);
}

.home-featured {
  padding: 0.9rem 0 3rem;
  background:
    linear-gradient(180deg, #fff 0%, #f8f9fd 100%);
}

.home-featured__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  align-items: start;
  gap: clamp(1.4rem, 2.4vw, 2.4rem);
}

.home-featured__main {
  display: grid;
  gap: 1.35rem;
}

.home-featured-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  min-height: 315px;
  overflow: hidden;
  background: #f1f0ef;
  border: 1px solid rgba(59, 81, 154, 0.1);
  box-shadow: 0 16px 34px rgba(24, 32, 54, 0.08);
}

.home-featured-card--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
}

.home-featured-card--reverse .home-featured-card__media {
  grid-column: 2;
}

.home-featured-card--reverse .home-featured-card__body {
  grid-column: 1;
  grid-row: 1;
}

.home-featured-card__media {
  display: block;
  min-height: 315px;
  color: inherit;
  background: color-mix(in srgb, var(--primary-color) 9%, white);
  padding: 1rem;
}

.home-featured-card__media:hover,
.home-featured-card__media:focus-visible {
  text-decoration: none;
}

.home-featured-card__media img {
  width: 100%;
  height: 100%;
  min-height: 315px;
  display: block;
  object-fit: contain;
}

.home-featured-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: clamp(1.45rem, 2.7vw, 2.65rem);
}

.home-featured-card__body::before {
  content: "";
  position: absolute;
  top: clamp(1.65rem, 3vw, 3rem);
  left: clamp(0.9rem, 1.5vw, 1.35rem);
  width: 5px;
  height: 74px;
  background: var(--secondary-color);
}

.home-featured-card__eyebrow {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
}

.home-featured-card__title {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(1.55rem, 2.45vw, 2.35rem);
  line-height: 1.13;
  color: var(--text-color);
}

.home-featured-card__title a {
  color: inherit;
  text-decoration: none;
}

.home-featured-card__title a:hover,
.home-featured-card__title a:focus-visible {
  color: var(--primary-color);
  text-decoration: none;
}

.home-featured-card__text {
  margin: 0;
  color: #4f5668;
  font-size: 1.02rem;
  line-height: 1.72;
}

.home-featured-card__link {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 28%, white);
  border-radius: 999px;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.home-featured-card__link:hover,
.home-featured-card__link:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

.home-featured-sidebar {
  position: sticky;
  top: 128px;
}

.home-featured-sidebar__inner {
  overflow: hidden;
  padding: clamp(1.35rem, 2.3vw, 2rem);
  background:
    linear-gradient(145deg, rgba(184, 75, 137, 0.18), transparent 38%),
    #1c2435;
  color: #fff;
  box-shadow: 0 18px 36px rgba(24, 32, 54, 0.16);
}

.home-featured-sidebar__title {
  position: relative;
  margin: 0 0 1.2rem;
  padding-top: 0.95rem;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  line-height: 1.1;
}

.home-featured-sidebar__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 5px;
  background: var(--secondary-color);
}

.home-featured-sidebar__list {
  display: grid;
  gap: 0.2rem;
}

.home-featured-sidebar__item {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-featured-sidebar__item a {
  display: grid;
  gap: 0.45rem;
  min-height: 76px;
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
}

.home-featured-sidebar__item a:hover,
.home-featured-sidebar__item a:focus-visible {
  color: #fff;
  text-decoration: none;
}

.home-featured-sidebar__item-title {
  font-family: "Roboto Slab", "Segoe UI", serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
}

.home-featured-sidebar__item a:hover .home-featured-sidebar__item-title,
.home-featured-sidebar__item a:focus-visible .home-featured-sidebar__item-title {
  color: color-mix(in srgb, var(--secondary-color) 42%, white);
}

.home-featured-sidebar__item-meta,
.home-featured-sidebar__empty {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.home-featured-sidebar__empty {
  margin: 0;
}

.home-resources {
  padding: 2.2rem 0 3rem;
  background: #fdfbf7;
}

.home-resources--archive {
  padding: 0;
  background: transparent;
}

.home-resources__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(59, 81, 154, 0.16);
  border-bottom-color: color-mix(in srgb, var(--primary-color) 18%, white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.8rem;
}

.home-resources__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  color: var(--primary-color);
  position: relative;
}

.home-resources__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.86rem;
  width: 36px;
  height: 4px;
  background: var(--primary-color);
}

.home-resources__all-link {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.home-resources__all-link:hover,
.home-resources__all-link:focus-visible {
  text-decoration: underline;
}

.home-resources__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.home-resources__scroller::-webkit-scrollbar {
  height: 7px;
}

.home-resources__scroller::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary-color) 35%, white);
  border-radius: 999px;
}

.home-resources__grid {
  --resources-gap: 0.9rem;
  display: grid;
  gap: var(--resources-gap);
}

.home-resources__grid--carousel {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 0.6rem;
}

.home-resources__grid--carousel .home-resources__item {
  flex: 0 0 calc((100% - (var(--resources-gap) * 4)) / 5);
}

.home-resources__grid--archive {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-resources__item {
  margin: 0;
  scroll-snap-align: start;
}

.home-resources__card {
  display: grid;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
  height: 100%;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, white);
  border-radius: 12px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-resources__card:hover,
.home-resources__card:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary-color) 34%, white);
  box-shadow: 0 10px 22px rgba(22, 33, 63, 0.12);
}

.home-resources__cover-wrap {
  background: transparent;
  border: 0;
  padding: 0.75rem;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-resources__cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.home-resources:not(.home-resources--archive) .home-resources__cover-wrap {
  width: min(100%, 220px);
  margin-inline: auto;
}

.home-resources__meta {
  min-width: 0;
}

.home-resources__cover-fallback {
  color: #5f636c;
  font-weight: 600;
}

.home-resources__name {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--primary-color);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-resources__author {
  margin: 0.26rem 0 0;
  color: #4a4f5a;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 8px solid var(--secondary-color);
  padding: 3rem 0 2.6rem;
  background: var(--primary-color);
  color: #fff;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.site-footer__brand {
  display: grid;
  gap: 0.55rem;
  max-width: 420px;
  justify-items: start;
}

.site-footer__name {
  margin: 0;
  font-family: "Roboto Slab", "Segoe UI", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
}

.site-footer__copy {
  margin: 0;
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

.site-footer__heading {
  margin: 0 0 0.2rem;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.25;
  position: relative;
}

.site-footer__heading::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 0.35rem;
  background: var(--secondary-color);
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.site-footer-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  text-decoration: none;
}

.site-footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer-social a:nth-child(3) svg,
.site-social a:nth-child(3) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-footer-primary,
.site-footer-legal {
  min-width: 0;
}

.site-footer-primary {
  width: fit-content;
  max-width: 100%;
  justify-self: end;
}

.site-footer-primary ul,
.site-footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.site-footer-primary ul {
  justify-content: flex-start;
  gap: 0.2rem 1.2rem;
}

.site-footer-primary .sub-menu {
  display: none;
}

.site-footer-primary a,
.site-footer-legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-decoration: none;
}

.site-footer-primary a:hover,
.site-footer-primary a:focus-visible,
.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.site-footer-legal ul {
  justify-content: center;
  gap: 0.45rem 1rem;
}

.site-footer-legal li:not(:last-child)::after {
  content: "|";
  margin-left: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.site-footer-legal a {
  min-height: 32px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  clip: auto !important;
  clip-path: none;
  color: #000;
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 0.5rem;
  line-height: normal;
  padding: 0.7rem 1rem;
  top: 0.5rem;
  width: auto;
  z-index: 100000;
}

@media (max-width: 960px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-featured__layout {
    grid-template-columns: 1fr;
  }

  .home-featured-sidebar {
    position: static;
  }

  .home-featured-sidebar__inner {
    display: grid;
    grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
  }

  .home-featured-sidebar__title {
    margin-bottom: 0;
  }

  .home-resources__grid--carousel .home-resources__item {
    flex-basis: calc((100% - var(--resources-gap)) / 2);
  }

  .home-resources__grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-slide {
    min-height: 530px;
  }

  .hero-slide__content {
    bottom: 11.2rem;
  }

  .hero-slider__search {
    padding: 1rem 1.5rem 1rem 1.5rem;
  }

  .hero-search-form input {
    font-size: 1.45rem;
  }

  .hero-slider__hours {
    padding: 1.3rem 1.1rem;
  }

  .hero-slider__hours-label {
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .site-header,
  .container,
  .hero-slider {
    width: min(94vw, 1640px);
    max-width: min(94vw, 1640px);
    margin-left: auto;
    margin-right: auto;
  }

  .site-header .container {
    width: 100%;
    max-width: 100%;
  }

  .site-branding {
    margin-left: 18px;
  }

  .site-header__actions {
    margin-right: 18px;
  }

  .site-social {
    display: inline-flex;
  }

  .single .entry,
  .page:not(.home) .entry {
    padding: 2rem 2.6rem;
  }

  .hero-slide {
    min-height: 700px;
  }

  .hero-slide__content {
    bottom: 12.6rem;
  }
}

@media (max-width: 760px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
    box-shadow:
      0 14px 30px rgba(18, 27, 46, 0.2),
      0 5px 10px rgba(18, 27, 46, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .site-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 8px;
    background: linear-gradient(to bottom, rgba(16, 24, 41, 0.18), rgba(16, 24, 41, 0));
    pointer-events: none;
    z-index: 0;
  }

  .site-header::after {
    bottom: 0;
    height: 9px;
    background: var(--primary-color);
    opacity: 1;
    z-index: 1;
  }

  .site-header__inner {
    min-height: 86px;
    flex-wrap: nowrap;
    row-gap: 0;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .site-branding {
    width: auto;
    flex: 0 1 auto;
  }

  .site-brand img,
  .custom-logo {
    max-height: 66px;
  }

  .site-header__actions {
    position: relative;
    width: auto;
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
  }

  .site-social {
    display: flex;
    position: fixed;
    right: 0.9rem;
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    z-index: 56;
    gap: 0.45rem;
    padding: 0.5rem 0.55rem;
    border: 1px solid rgba(59, 81, 154, 0.16);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(28, 36, 53, 0.16);
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 300ms ease, opacity 220ms ease;
  }

  .site-social a {
    width: 32px;
    height: 32px;
  }

  .site-header.is-menu-open .site-social {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 60;
  }

  .site-nav {
    display: block;
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    background: #fff;
    border-left: 0;
    box-shadow: -14px 0 32px rgba(28, 36, 53, 0.16);
    padding: 1rem 1rem 6rem;
    transform: translateX(100%);
    transition: transform 300ms ease;
    overflow-y: auto;
    pointer-events: none;
  }

  .site-header.is-menu-open .site-nav {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav__panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0.5rem 0 0.72rem;
    padding: 0.42rem 0.1rem 1rem;
    border-bottom: 1px solid var(--primary-color);
  }

  .site-nav__panel-logo {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-family: "Roboto Slab", "Segoe UI", serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1;
  }

  .site-nav__panel-logo img {
    max-height: 56px;
    width: auto;
  }

  .site-nav .menu-item-has-children {
    position: relative;
  }

  .site-nav .menu-item-has-children > a {
    padding-right: 2.9rem;
  }

  .site-nav .submenu-toggle {
    display: inline-flex;
    position: absolute;
    top: 0.46rem;
    right: 0.3rem;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
  }

  .site-nav .submenu-toggle::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform 220ms ease;
  }

  .site-nav .menu-item-has-children.is-submenu-open > .submenu-toggle::before {
    transform: rotate(-135deg) translateY(-1px);
  }

  .site-nav .submenu-toggle:focus-visible {
    outline: 2px solid rgba(59, 81, 154, 0.42);
    outline-offset: 1px;
  }

  .site-nav .sub-menu {
    list-style: none;
    position: static;
    left: auto;
    top: auto;
    display: none;
    min-width: 0;
    margin: 0.1rem 0 0.3rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(20, 29, 52, 0.2);
    background: var(--primary-color);
  }

  .site-nav .sub-menu li {
    list-style: none;
  }

  .site-nav .menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
  }

  .site-nav .sub-menu a {
    padding: 0.5rem 0.62rem;
    font-size: 0.97rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
  }

  .site-nav .sub-menu a:hover,
  .site-nav .sub-menu a:focus-visible,
  .site-nav .sub-menu .current-menu-item > a {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  .site-nav > ul > .menu-item-has-children > a::after {
    display: none;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.7rem 0.72rem;
    font-size: 1.1rem;
  }

  .site-nav > ul > li > a {
    font-size: 1.2rem;
    line-height: 1.24;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .home-featured {
    padding: 0.45rem 0 2rem;
  }

  .home-featured__main {
    gap: 1rem;
  }

  .home-featured-card,
  .home-featured-card--reverse {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-featured-card--reverse .home-featured-card__media,
  .home-featured-card--reverse .home-featured-card__body {
    grid-column: auto;
    grid-row: auto;
  }

  .home-featured-card__media,
  .home-featured-card__media img {
    min-height: 240px;
  }

  .home-featured-card__body {
    padding: 1.35rem 1.25rem 1.45rem;
  }

  .home-featured-card__body::before {
    top: 1.35rem;
    left: 0;
    height: 64px;
  }

  .home-featured-card__title {
    font-size: 1.45rem;
  }

  .home-featured-card__text {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .home-featured-sidebar__inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.25rem;
  }

  .site-footer {
    padding: 2rem 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer-primary {
    width: 100%;
    justify-self: stretch;
  }

  .site-footer-primary ul,
  .site-footer-legal ul {
    justify-content: flex-start;
  }

  .site-footer-legal ul {
    justify-content: center;
    gap: 0.55rem;
  }

  .home-resources {
    padding: 1.7rem 0 2.1rem;
  }

  .home-resources__grid {
    --resources-gap: 0.72rem;
  }

  .home-resources__name {
    font-size: 1.04rem;
  }

  .home-resources__author {
    font-size: 0.84rem;
  }

  .hero-slide {
    min-height: 480px;
  }

  .hero-slide__content {
    bottom: 13.7rem;
  }

  .hero-slider__nav {
    bottom: 12.9rem;
    right: 0.65rem;
  }

  .hero-slider__nav--prev {
    right: 3.1rem;
  }

  .hero-slider__bottom {
    grid-template-columns: 1fr;
  }

  .hero-slider__search {
    padding: 0.9rem 1rem;
  }

  .hero-search-form input {
    font-size: 1.1rem;
  }

  .hero-slider__hours {
    padding: 0.9rem 1rem;
  }

  .hero-slider__hours-value {
    font-size: 1.45rem;
  }

  .single .entry,
  .page:not(.home) .entry {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 1.2rem 1.2rem;
    font-size: calc(1.18rem * var(--detail-font-scale, 1.06));
    line-height: 1.78;
  }

  .soru-endeksi__search-form {
    grid-template-columns: 1fr;
  }

  .soru-endeksi__search-form button {
    width: 100%;
  }

  .detail-font-tools {
    margin: 0.25rem 0 0.55rem;
  }

  .entry-title {
    font-size: 1.72rem;
    line-height: 1.24;
  }

  .single .entry-content > p:first-of-type::first-letter,
  .page .entry-content > p:first-of-type::first-letter {
    font-size: 2.95em;
  }

  .single .container,
  .page:not(.home) .container {
    width: 100%;
    max-width: 100%;
  }
}
