/* KLS header / global overrides — vanilla CSS, prefixed to avoid collisions */

.kls-header-logo-link {
  overflow: hidden;
}

.kls-header-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 1280px) {
  .kls-header-logo {
    height: 64px;
  }
}

.kls-footer-logo-link {
  overflow: hidden;
}

.kls-footer-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 768px) {
  .kls-header-logo {
    height: 48px;
  }

  .kls-footer-logo {
    height: 46px;
  }
}

@media (max-width: 480px) {
  .kls-header-logo {
    height: 40px;
  }

  .kls-footer-logo {
    height: 40px;
  }
}

.kls-main-nav > .page-item > .page a .text {
  white-space: nowrap;
}

@media (min-width: 1281px) {
  .kls-main-nav {
    gap: 24px;
  }
}

@media (min-width: 1281px) and (max-width: 1680px) {
  .kls-main-nav {
    gap: 18px;
    padding-right: 24px;
  }

  .kls-main-nav > .page-item > .page a .text {
    font-size: 16px;
  }
}

@media (min-width: 1281px) and (max-width: 1480px) {
  .kls-main-nav {
    gap: 12px;
  }

  .kls-main-nav > .page-item > .page a .text {
    font-size: 15px;
  }
}

@media (min-width: 1281px) {
  .kls-mega-menu.kls-mega-is-end {
    left: auto;
    right: 0;
  }

  /* Kurumsal mega menu: sağ görsel menü listesi yüksekliğine uyum sağlar */
  .header-field .kls-mega-menu.h-\[450px\] {
    height: auto;
  }

  .header-field .kls-mega-menu.h-\[450px\] > .flex {
    align-items: stretch;
  }

  .header-field .kls-mega-menu.h-\[450px\] .mega-menu-images {
    position: relative;
    width: 300px;
    max-width: 300px;
    flex-shrink: 0;
  }

  .header-field .kls-mega-menu.h-\[450px\] .megaMenuImageCarousel {
    position: absolute;
    inset: 0;
    height: auto !important;
  }

  .header-field .kls-mega-menu.h-\[450px\] .megaMenuImageCarousel .swiper-wrapper,
  .header-field .kls-mega-menu.h-\[450px\] .megaMenuImageCarousel .swiper-slide {
    height: 100% !important;
  }

  .header-field .kls-mega-menu.h-\[450px\] .megaMenuImageCarousel .swiper-slide .wrapper {
    height: 100% !important;
  }
}

@media (max-width: 1280px) {
  .kls-mega-menu.kls-mega-is-end {
    left: 0;
    right: auto;
  }

  .kls-main-nav {
    max-height: calc(100dvh - 160px);
  }
}

/* Hero slider: left-to-right dark veil for white text readability */
.mainCarousel .swiper-slide .background-image::before {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.55) 28%,
      rgba(0, 0, 0, 0.28) 52%,
      rgba(0, 0, 0, 0.08) 72%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0) 58%,
      rgba(0, 0, 0, 0.4) 100%
    );
  opacity: 1;
}

.mainCarousel .swiper-slide .content .editor h1,
.mainCarousel .swiper-slide .content .editor h2,
.mainCarousel .swiper-slide .content .editor p {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* Hero slider — side navigation */
.mainCarousel {
  position: relative;
}

.kls-hero-nav {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.kls-hero-nav__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.28s ease;
}

.kls-hero-nav__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.kls-hero-nav__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.kls-hero-nav__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.kls-hero-nav__btn.swiper-button-disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.kls-hero-nav--prev {
  left: 28px;
}

.kls-hero-nav--next {
  right: 28px;
}

.kls-hero-nav__icon {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* Swiper navigation sınıfları eklenince varsayılan ok stilini bastır */
.kls-hero-nav__btn.swiper-button-prev,
.kls-hero-nav__btn.swiper-button-next {
  width: 60px;
  height: 60px;
  margin-top: 0;
}

.kls-hero-nav__btn::after {
  display: none !important;
  content: none !important;
}

.kls-hero-nav__btn.swiper-button-prev {
  left: 28px;
  right: auto;
}

.kls-hero-nav__btn.swiper-button-next {
  right: 28px;
  left: auto;
}

@media (max-width: 1280px) {
  .kls-hero-nav--prev {
    left: 18px;
  }

  .kls-hero-nav--next {
    right: 18px;
  }

  .kls-hero-nav__btn {
    width: 54px;
    height: 54px;
  }

  .kls-hero-nav__btn.swiper-button-prev,
  .kls-hero-nav__btn.swiper-button-next {
    width: 54px;
    height: 54px;
  }

  .kls-hero-nav__icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 768px) {
  .kls-hero-nav {
    inset: auto;
    top: auto;
    left: 0;
    right: 0;
    bottom: 20px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .kls-hero-nav__btn,
  .kls-hero-nav__btn.swiper-button-prev,
  .kls-hero-nav__btn.swiper-button-next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 48px;
    height: 48px;
    background: rgba(12, 12, 12, 0.42);
  }

  .kls-hero-nav__btn:active {
    transform: scale(0.96);
  }

  .kls-hero-nav__icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 1280px) {
  .mainCarousel .swiper-slide .background-image::before {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.42) 40%,
        rgba(0, 0, 0, 0.12) 70%,
        rgba(0, 0, 0, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.12) 36%,
        rgba(0, 0, 0, 0.55) 100%
      );
  }
}

/* Project carousel card titles */
.project-carousel .image-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.project-carousel {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.project-carousel:active {
  cursor: grabbing;
}

.project-carousel .swiper-slide {
  pointer-events: auto !important;
  cursor: grab;
}

.project-carousel .swiper-slide:active {
  cursor: grabbing;
}

.project-carousel .swiper-slide:not(.swiper-slide-active) {
  cursor: pointer;
}

.project-carousel .hover-text-logo {
  top: auto !important;
  bottom: 28px !important;
  transform: none !important;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

.project-carousel .hover-text-logo .kls-project-title,
.project-carousel .hover-text-logo .text {
  text-align: center;
  width: 100%;
}

.project-carousel .kls-project-title {
  font-size: 28px !important;
  line-height: 1.15 !important;
  white-space: normal;
  letter-spacing: 0.01em;
}

.project-carousel .kls-project-desc {
  display: block;
  margin: 8px 0 0;
  text-align: center;
  color: rgba(237, 237, 237, 0.88);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

@media (max-width: 1366px) {
  .project-carousel .hover-text-logo {
    bottom: 22px !important;
  }

  .project-carousel .kls-project-title {
    font-size: 24px !important;
  }

  .project-carousel .kls-project-desc {
    font-size: 14px;
    margin-top: 6px;
  }
}

@media (max-width: 1024px) {
  .project-carousel .hover-text-logo {
    bottom: 18px !important;
  }

  .project-carousel .kls-project-title {
    font-size: 22px !important;
  }

  .project-carousel .kls-project-desc {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .project-carousel .hover-text-logo {
    bottom: 16px !important;
  }

  .project-carousel .kls-project-title {
    font-size: 18px !important;
  }

  .project-carousel .kls-project-desc {
    font-size: 12px;
  }
}

/* Prevent hidden contact modals / overlays from blocking clicks */
.bg-overlay-general:not(.active) {
  pointer-events: none !important;
}

#first-contact-form:not(.active),
#contact-select-form1:not(.active),
#contact-select-form2:not(.active),
#contact-select-form3:not(.active),
.thans-form:not(.active) {
  pointer-events: none !important;
}

/* Contact popup — vertically center form column */
#first-contact-form .right-field {
  display: flex;
  align-items: center;
  min-height: 594px;
}

#first-contact-form .right-field > .form {
  width: 100%;
}

@media (max-width: 768px) {
  #first-contact-form .right-field {
    min-height: 0;
    align-items: stretch;
  }
}

/* İletişim page — form section clears fixed header */
.contact-form-section {
  box-sizing: border-box;
  padding-top: calc(146px + 60px);
  padding-bottom: 80px;
}

.contact-form-section .wrapper > div {
  gap: 80px;
}

.contact-form-section .form-image {
  height: min(70vh, 620px);
  max-height: 620px;
}

@media (max-width: 1280px) {
  .contact-form-section {
    padding-top: calc(100px + 50px);
    padding-bottom: 60px;
  }

  .contact-form-section .wrapper > div {
    gap: 50px;
  }
}

@media (max-width: 1024px) {
  .contact-form-section {
    padding-top: calc(117px + 40px);
    padding-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .contact-form-section {
    padding-top: calc(90px + 30px);
    padding-bottom: 40px;
  }

  .contact-form-section .wrapper > div {
    gap: 40px;
  }

  .contact-form-section .form-image {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

/* Blog card titles */
.other-news-carousel .kls-news-title {
  display: block;
  line-height: 1.35 !important;
  margin-top: 20px;
}

/* Footer AORA credit */
.kls-aora-credit {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.kls-aora-credit img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .kls-aora-credit img {
    height: 18px;
    max-width: 120px;
  }
}

/* Footer side decor — keep within footer height */
.footer-field.kls-footer,
.footer-field {
  overflow: hidden;
}

.footer-field .footer-image,
.kls-footer-decor {
  top: 0;
  bottom: 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.footer-field .footer-image .left-image,
.footer-field .footer-image .right-image,
.kls-footer-decor-side {
  height: 100% !important;
  max-height: 100%;
  align-self: stretch;
}

.footer-field .footer-image img,
.kls-footer-decor-side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

.footer-field > :not(.footer-image) {
  position: relative;
  z-index: 1;
}

/* Sayfa dekor çizgileri — tıklamayı engellemesin */
.about-white-content .page-line-3,
.about-white-content .page-line-4,
.about-content .page-line-3,
.about-content .page-line-4 {
  pointer-events: none;
  z-index: 0;
}

.about-white-content > div:not([class*="page-line"]),
.about-content > div:not([class*="page-line"]) {
  position: relative;
  z-index: 1;
}

/* Hakkımızda — Neden KLS slide headings (dark bg) */
.about-content .careerTextCarousel .editor h3 {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 12px;
}

/* Sürdürülebilirlik — carousel slide headings */
.about-white-content .sustainabilityTextCarousel .editor h3 {
  color: #201d1d !important;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 10px;
}

/* Şirketlerimiz — spacing overrides (scoped, no Tailwind dependency) */
.kls-sirketler-list .kls-sirket-block {
  margin-bottom: 80px;
}

.kls-sirketler-list .kls-sirket-block:last-child {
  margin-bottom: 0;
}

.kls-sirketler-list .kls-sirket-block--first {
  padding-top: 80px !important;
  margin-bottom: 36px;
}

@media (max-width: 1280px) {
  .kls-sirketler-list .kls-sirket-block--first {
    padding-top: 60px !important;
    margin-bottom: 32px;
  }

  .kls-sirketler-list .kls-sirket-block {
    margin-bottom: 64px;
  }
}

@media (max-width: 768px) {
  .kls-sirketler-list .kls-sirket-block--first {
    padding-top: 40px !important;
    margin-bottom: 28px;
  }

  .kls-sirketler-list .kls-sirket-block {
    margin-bottom: 48px;
    row-gap: 40px;
  }
}

@media (max-width: 480px) {
  .kls-sirketler-list .kls-sirket-block--first {
    padding-top: 30px !important;
    margin-bottom: 24px;
  }

  .kls-sirketler-list .kls-sirket-block {
    margin-bottom: 40px;
    row-gap: 36px;
  }
}

/* Şirketlerimiz — Marmone title / text / button spacing */
.kls-sirket-marmone {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.kls-sirket-marmone-btn {
  margin-top: 8px;
  padding-top: 0;
}

@media (max-width: 1280px) {
  .kls-sirket-marmone {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .kls-sirket-marmone {
    gap: 24px;
    align-items: center;
  }

  .kls-sirket-marmone-btn {
    margin-top: 4px;
  }
}

/* Ana sayfa hero — mobil/tablet yükseklik (h-screen override) */
@media (max-width: 1024px) {
  .page-home .main-content {
    height: 78vh !important;
    max-height: 680px;
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .page-home .main-content {
    height: 72vh !important;
    max-height: 560px;
    min-height: 380px;
  }

  .page-home .main-content .content {
    top: 47% !important;
  }
}

@media (max-width: 480px) {
  .page-home .main-content {
    height: 65vh !important;
    max-height: 480px;
    min-height: 340px;
  }
}

/* Ana sayfa hero slider — açıklama yazısı */
.mainCarousel .editor :is(p) {
  font-size: 22px !important;
  line-height: 32px !important;
  max-width: 560px !important;
}

@media (max-width: 1280px) {
  .mainCarousel .editor :is(p) {
    font-size: 20px !important;
    line-height: 30px !important;
    max-width: 520px !important;
  }
}

@media (max-width: 768px) {
  .mainCarousel .editor :is(p) {
    font-size: 16px !important;
    line-height: 24px !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .mainCarousel .editor :is(p) {
    font-size: 14px !important;
    line-height: 22px !important;
  }
}

/* Şirketlerimiz — KLS İnşaat Referanslarımız */
.kls-refs {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding-top: 0;
  isolation: isolate;
}

.kls-refs-page-wrap {
  padding-top: 100px;
}

.kls-refs--page {
  margin-top: 0;
}

@media (max-width: 1280px) {
  .kls-refs-page-wrap {
    padding-top: 70px;
  }
}

@media (max-width: 768px) {
  .kls-refs-page-wrap {
    padding-top: 40px;
  }
}

.kls-refs-head {
  margin-bottom: 22px;
}

.kls-refs-title {
  margin: 0;
  color: #201d1d;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
}

.kls-refs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(32, 29, 29, 0.12);
  padding-bottom: 18px;
}

.kls-refs-tab {
  appearance: none;
  border: 1px solid rgba(32, 29, 29, 0.18);
  background: transparent;
  color: #201d1d;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 12px 22px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.kls-refs-tab:hover {
  border-color: rgba(32, 29, 29, 0.45);
}

.kls-refs-tab.is-active {
  background: #201d1de5;
  border-color: #201d1de5;
  color: #fff;
}

.kls-refs-panel[hidden] {
  display: none !important;
}

.kls-refs-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(32, 29, 29, 0.12);
}

.kls-refs-item {
  border-bottom: 1px solid rgba(32, 29, 29, 0.12);
}

.kls-refs-collapse {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.kls-refs-collapse[hidden] {
  display: none !important;
}

.kls-refs-item.is-open .kls-refs-collapse {
  grid-template-rows: 1fr;
}

.kls-refs-item:not(.is-open) .kls-refs-collapse,
.kls-refs-item:not(.is-open) .kls-refs-collapse * {
  pointer-events: none !important;
}

.kls-refs-collapse > .kls-refs-body {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.kls-refs-item.is-open .kls-refs-collapse > .kls-refs-body {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.32s ease 0.05s;
}

.kls-refs-summary {
  appearance: none;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  cursor: pointer;
  padding: 16px 4px;
  user-select: none;
  position: relative;
  z-index: 2;
}

.kls-refs-summary-title {
  color: #201d1d;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.kls-refs-summary-meta {
  color: #201d1d;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  opacity: 0.55;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.kls-refs-summary-meta::before {
  content: "/ ";
}

.kls-refs-summary-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
}

.kls-refs-summary-icon::before,
.kls-refs-summary-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #201d1d;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.kls-refs-summary-icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.kls-refs-summary-icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.kls-refs-item.is-open .kls-refs-summary-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .kls-refs-collapse,
  .kls-refs-collapse > .kls-refs-body,
  .kls-refs-summary-icon::before,
  .kls-refs-summary-icon::after {
    transition: none !important;
  }

  .kls-refs-item.is-open .kls-refs-collapse > .kls-refs-body {
    opacity: 1;
  }
}

.kls-refs-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 4px;
}

.kls-refs-item.is-open .kls-refs-body {
  padding-bottom: 28px;
}

.kls-refs-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kls-refs-label {
  margin: 0 0 10px;
  color: #201d1d;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  opacity: 0.5;
  text-transform: uppercase;
}

.kls-refs-text {
  margin: 0;
  color: #201d1d;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 820px;
}

.kls-refs-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.kls-refs-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ececec;
  cursor: zoom-in;
}

.kls-refs-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 29, 29, 0);
  transition: background-color 0.25s ease;
  pointer-events: none;
}

.kls-refs-gallery-item:hover::after {
  background: rgba(32, 29, 29, 0.12);
}

.kls-refs-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.kls-refs-gallery-item:hover img {
  transform: scale(1.04);
}

.kls-refs-empty {
  padding: 36px 4px;
  color: #201d1d;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.65;
}

@media (max-width: 1024px) {
  .kls-refs-title {
    font-size: 26px;
  }

  .kls-refs-body {
    gap: 20px;
  }

  .kls-refs-text {
    max-width: none;
    font-size: 16px;
  }

  .kls-refs-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .kls-refs-head {
    margin-bottom: 18px;
    text-align: center;
  }

  .kls-refs-tabs {
    justify-content: center;
    gap: 8px;
  }

  .kls-refs-tab {
    padding: 10px 16px;
    font-size: 14px;
  }

  .kls-refs-summary {
    gap: 6px 8px;
    padding: 14px 0;
  }

  .kls-refs-summary-meta {
    white-space: normal;
  }

  .kls-refs-summary-title {
    font-size: 18px;
  }

  .kls-refs-item.is-open .kls-refs-body {
    padding-bottom: 22px;
  }
}

/* =========================================================
   Homepage project detail modal
   ========================================================= */
html.kls-project-modal-open,
body.kls-project-modal-open {
  overflow: hidden;
}

.kls-project-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.kls-project-modal[hidden] {
  display: none !important;
}

.kls-project-modal.is-open {
  display: flex !important;
  pointer-events: auto;
  visibility: visible;
}

.kls-project-modal.is-visible {
  opacity: 1;
}

.kls-project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.kls-project-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(88dvh, 820px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(94deg, #1b1b1b 8.96%, #121212 100%);
  border: 1px solid rgba(237, 237, 237, 0.12);
  outline: none;
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.35s ease;
}

.kls-project-modal.is-visible .kls-project-modal__dialog {
  transform: translateY(0) scale(1);
}

.kls-project-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(237, 237, 237, 0.22);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.kls-project-modal__close:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(237, 237, 237, 0.4);
}

.kls-project-modal__close span::before,
.kls-project-modal__close span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  margin-top: -0.75px;
  background: #ededed;
}

.kls-project-modal__close span::before {
  transform: rotate(45deg);
}

.kls-project-modal__close span::after {
  transform: rotate(-45deg);
}

.kls-project-modal__layout {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}

.kls-project-modal__hero {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 220px;
  max-height: 52%;
  overflow: hidden;
  background: #0a0a0a;
}

.kls-project-modal__hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(18, 18, 18, 0.9) 100%);
}

.kls-project-modal__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.kls-project-modal__hero-img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.kls-project-modal__hero-img.is-leaving {
  opacity: 0;
  transform: scale(1.02);
  z-index: 0;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .kls-project-modal__hero-img,
  .kls-project-modal__hero-img.is-leaving {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

.kls-project-modal__body {
  flex: 0 0 auto;
  padding: 22px 28px 26px;
}

.kls-project-modal__category {
  margin: 0 0 8px;
  color: rgba(237, 237, 237, 0.7);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.kls-project-modal__title {
  margin: 0 0 10px;
  color: #ededed;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.kls-project-modal__summary {
  margin: 0 0 16px;
  max-width: 70ch;
  color: rgba(237, 237, 237, 0.86);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kls-project-modal__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kls-project-modal__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0a0a;
  border: 1px solid rgba(237, 237, 237, 0.14);
  cursor: pointer;
  opacity: 0.62;
  transition: border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.kls-project-modal__thumb:hover {
  opacity: 0.88;
  border-color: rgba(237, 237, 237, 0.35);
}

.kls-project-modal__thumb.is-active {
  opacity: 1;
  border-color: rgba(237, 237, 237, 0.85);
  box-shadow: inset 0 0 0 1px rgba(237, 237, 237, 0.35);
}

.kls-project-modal__thumb.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ededed;
}

.kls-project-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (min-width: 1025px) {
  .kls-project-modal__dialog {
    height: min(88dvh, 820px);
  }

  .kls-project-modal__layout {
    height: 100%;
  }

  .kls-project-modal__hero {
    flex: 1 1 0;
    max-height: none;
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  .kls-project-modal {
    padding: 12px;
    align-items: stretch;
  }

  .kls-project-modal__dialog {
    width: 100%;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto 0;
    display: flex;
    flex-direction: column;
  }

  .kls-project-modal__layout {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .kls-project-modal__hero {
    flex: 1 1 0;
    aspect-ratio: auto;
    max-height: none;
    min-height: 180px;
  }

  .kls-project-modal__hero::after {
    height: 42%;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(18, 18, 18, 0.55) 55%,
      rgba(18, 18, 18, 0.98) 100%
    );
  }

  .kls-project-modal__body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 8px 18px 22px;
    margin-top: -24px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0) 0%, #121212 18px);
  }

  .kls-project-modal__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kls-project-modal__thumb {
    aspect-ratio: 16 / 10;
  }

  .kls-project-modal__summary {
    -webkit-line-clamp: 4;
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .kls-project-modal {
    padding: 0;
  }

  .kls-project-modal__dialog {
    height: 100dvh;
    max-height: 100dvh;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .kls-project-modal__close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .kls-project-modal__hero {
    min-height: 160px;
  }

  .kls-project-modal__body {
    padding: 4px 16px max(18px, calc(12px + env(safe-area-inset-bottom)));
    margin-top: -28px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0) 0%, #121212 22px);
  }

  .kls-project-modal__category {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .kls-project-modal__title {
    font-size: clamp(20px, 5.6vw, 24px);
    margin-bottom: 8px;
  }

  .kls-project-modal__summary {
    font-size: 14px;
    margin-bottom: 12px;
    -webkit-line-clamp: 3;
    line-height: 1.45;
  }

  .kls-project-modal__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kls-project-modal__thumb {
    aspect-ratio: 16 / 10;
  }
}

.project-carousel .swiper-slide-active {
  cursor: pointer;
}

/*
  Anasayfa büyük ekran boşluk düzeltmesi — yalnızca vanilla CSS.
  Yeni Tailwind class eklenmez; style.css’teki mevcut class’lar korunur.
*/
@media (min-width: 1441px) {
  .page-home .why-we-content {
    min-height: fit-content !important;
  }

  .page-home .project-content .project-carousel {
    height: 900px !important;
  }

  .page-home .project-content .swiper-controller {
    bottom: 24px !important;
  }

  .page-home .comments-content {
    padding-top: 100px !important;
  }

  .page-home .contact-content {
    padding-top: 120px !important;
  }

  .page-home .other-news {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
  }
}

@media (min-width: 1681px) {
  .page-home .project-content .project-carousel {
    height: 860px !important;
  }

  .page-home .project-content .project-carousel .swiper-slide-active .item {
    height: 680px !important;
  }
}

.grecaptcha-badge {
  display: none !important;
}

/* Go to top — sağ alt */
.kls-gototop {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 180;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(237, 237, 237, 0.22);
  background: rgba(18, 18, 18, 0.92);
  color: #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.kls-gototop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.kls-gototop:hover {
  background: #e73646;
  border-color: #e73646;
  color: #ffffff;
}

.kls-gototop:focus-visible {
  outline: 2px solid #e73646;
  outline-offset: 3px;
}

.kls-gototop__icon {
  display: flex;
  line-height: 0;
}

.kls-gototop__icon svg {
  display: block;
}

@media (max-width: 768px) {
  .kls-gototop {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kls-gototop {
    transition: none;
  }
}

