/* TDTesisat — Anasayfa UI bileşenleri */

:root {
  --td-blue: #0f4382;
  --td-blue-dark: #0a2f5c;
  --td-orange: #ee7a03;
  --td-wa: #25d366;
  --td-wa-dark: #1da851;
  --td-phone: #1565c0;
  --td-radius: 16px;
  --td-shadow: 0 8px 32px rgba(15, 67, 130, 0.12);
  --td-shadow-hover: 0 16px 48px rgba(15, 67, 130, 0.22);
}

/* ── Section headers ── */
.td-section {
  padding: 4rem 0;
}
.td-section--alt {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.td-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}
.td-section-head .td-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-orange);
  margin-bottom: 0.5rem;
}
.td-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--td-blue);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.td-section-head p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Hizmet kartları ── */
.td-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991.98px) {
  .td-services-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 767.98px) {
  .td-services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

.td-service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--td-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--td-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  height: 100%;
}
.td-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--td-shadow-hover);
}
.td-service-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}
.td-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.td-service-card:hover .td-service-card__media img {
  transform: scale(1.06);
}
.td-service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 67, 130, 0.88) 0%, rgba(15, 67, 130, 0.15) 55%, transparent 100%);
  pointer-events: none;
}
.td-service-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--td-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.td-service-card__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem 1.1rem;
  margin: 0;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-align: center;
  z-index: 1;
}
.td-service-card__footer {
  padding: 0.75rem 1rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--td-blue);
  border-top: 1px solid #f1f5f9;
}
.td-service-card__footer svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Bize Ulaşın CTA ── */
.td-cta {
  position: relative;
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--td-blue-dark) 0%, var(--td-blue) 50%, #1a5a9e 100%);
  overflow: hidden;
}
.td-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.td-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.td-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}
.td-cta__label::before,
.td-cta__label::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.td-cta__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.td-cta__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}
.td-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.td-cta-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 280px;
  max-width: 340px;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.td-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.td-cta-btn--phone {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: #fff !important;
}
.td-cta-btn--wa {
  background: linear-gradient(135deg, var(--td-wa), var(--td-wa-dark));
  color: #fff !important;
}
.td-cta-btn__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.td-cta-btn__icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.td-cta-btn__text {
  text-align: left;
  line-height: 1.3;
}
.td-cta-btn__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.td-cta-btn__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

/* ── Son Yazılar ── */
.td-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 991.98px) {
  .td-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .td-posts-grid { grid-template-columns: 1fr; }
}

.td-post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--td-radius);
  overflow: hidden;
  box-shadow: var(--td-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  height: 100%;
}
.td-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--td-shadow-hover);
}
.td-post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
  text-decoration: none;
}
.td-post-card__title a {
  color: inherit;
  text-decoration: none;
}
.td-post-card__title a:hover {
  color: var(--td-orange);
}
.td-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.td-post-card:hover .td-post-card__media img {
  transform: scale(1.05);
}
.td-post-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.td-post-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-orange);
  margin-bottom: 0.5rem;
}
.td-post-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--td-blue);
  line-height: 1.35;
  margin: 0 0 0.65rem;
}
.td-post-card__desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--td-blue);
  margin-top: auto;
}
.td-post-card:hover .td-post-card__link {
  color: var(--td-orange);
}
.td-post-card__link svg {
  transition: transform 0.2s ease;
}
.td-post-card:hover .td-post-card__link svg {
  transform: translateX(4px);
}

/* ── Anasayfa SEO Hero Slider ── */
.td-hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--td-blue-dark);
}
.td-hero-swiper {
  width: 100%;
  height: 580px;
}
.td-hero-swiper .swiper-wrapper,
.td-hero-swiper .swiper-slide {
  height: 100%;
}
.td-hero {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--td-blue-dark);
}
.td-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}
.td-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 47, 92, 0.93) 0%, rgba(10, 47, 92, 0.82) 38%, rgba(10, 47, 92, 0.45) 62%, rgba(10, 47, 92, 0.2) 100%);
}
.td-hero__container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.td-hero__inner {
  width: 100%;
  max-width: 720px;
  padding: 2.5rem 0 3.25rem;
  color: #fff;
  text-align: left;
}
.td-hero-swiper__pagination {
  bottom: 20px !important;
  z-index: 5;
}
.td-hero-swiper__pagination .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.45;
  width: 10px;
  height: 10px;
  margin: 0 5px !important;
}
.td-hero-swiper__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--td-orange);
}
.td-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}
.td-hero__title {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 0.85rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.44em;
}
.td-hero__lead {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}
.td-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  min-height: 2rem;
}
.td-hero__tags li {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.td-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.td-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.td-hero__btn:hover {
  transform: translateY(-2px);
}
.td-hero__btn--phone {
  background: #fff;
  color: var(--td-blue) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.td-hero__btn--wa {
  background: var(--td-wa);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.td-hero__btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.td-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 520px;
}
.td-hero__stats li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.75rem 0.65rem;
  text-align: center;
}
.td-hero__stats strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.td-hero__stats span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.15rem;
}
@media (max-width: 767.98px) {
  .td-hero-swiper {
    height: 540px;
  }
  .td-hero__inner {
    padding: 2rem 0 2.75rem;
    max-width: 100%;
  }
  .td-hero__title {
    font-size: 1.45rem;
    min-height: 2.2em;
  }
  .td-hero__lead {
    font-size: 0.9rem;
    min-height: 4.2em;
    -webkit-line-clamp: 4;
  }
  .td-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
}

/* ── Hizmet sayfası görselleri (taşma önleme) ── */
.page-content {
  overflow-x: hidden;
  min-width: 0;
  word-wrap: break-word;
}
.page-content img,
.page-content .wp-block-image img,
.td-article-hero img {
  max-width: 100% !important;
  width: 100%;
  height: auto !important;
  display: block;
}
.td-article-hero {
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--td-shadow);
  line-height: 0;
}
.page-content .page-title h1 {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ── Sidebar ilçe / mahalle seçici ── */
.td-region-picker {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.td-region-picker__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--td-blue);
  margin: 0 0 0.75rem;
}
.td-region-picker__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.td-region-picker__select {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.td-region-picker__select:last-of-type {
  margin-bottom: 0;
}
.td-region-picker__go {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--td-blue);
  background: #fff;
  color: var(--td-blue);
  text-decoration: none !important;
}
.td-region-picker__go:hover {
  background: var(--td-blue);
  color: #fff !important;
}

/* ── Alt sabit Hemen Ara / WhatsApp çubuğu ── */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}
.footer {
  padding-bottom: 82px;
}
.td-sticky-bar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  width: min(520px, calc(100vw - 24px));
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
}
.td-sticky-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 58px;
  padding: 0.55rem 0.85rem;
  text-decoration: none !important;
  color: #fff !important;
  transition: filter 0.2s ease;
}
.td-sticky-bar__btn:hover {
  filter: brightness(1.06);
  color: #fff !important;
}
.td-sticky-bar__btn--call {
  background: #1c2024;
}
.td-sticky-bar__btn--wa {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}
.td-sticky-bar__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.td-sticky-bar__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.td-sticky-bar__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.td-sticky-bar__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.td-sticky-bar__value {
  font-size: 0.95rem;
  font-weight: 800;
}
#toTop {
  bottom: 82px !important;
  z-index: 9997;
}
@media (max-width: 575.98px) {
  .footer {
    padding-bottom: 76px;
  }
  .td-sticky-bar {
    width: calc(100vw - 16px);
    bottom: 8px;
  }
  .td-sticky-bar__btn {
    min-height: 54px;
    padding: 0.5rem 0.65rem;
    gap: 0.45rem;
  }
  .td-sticky-bar__value {
    font-size: 0.82rem;
  }
  #toTop {
    bottom: 76px !important;
    left: 12px;
    right: auto;
  }
}

/* ── Breadcrumb ── */
.td-detail-section {
  padding: 1.75rem 0 2.5rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 120px);
}
.td-breadcrumb-wrap {
  margin-bottom: 1.75rem;
}
.td-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 67, 130, 0.07);
}
.td-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 100%;
}
.td-breadcrumb__item:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 0.45rem;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 1 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.85;
}
.td-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  color: var(--td-blue);
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.td-breadcrumb__link:hover {
  background: #eff6ff;
  color: var(--td-orange);
}
.td-breadcrumb__home {
  flex-shrink: 0;
  opacity: 0.9;
}
.td-breadcrumb__current {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--td-blue) 0%, var(--td-blue-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 575.98px) {
  .td-breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.65rem 0.85rem;
  }
  .td-breadcrumb::-webkit-scrollbar {
    display: none;
  }
  .td-breadcrumb__item {
    flex-shrink: 0;
  }
  .td-breadcrumb__current {
    max-width: 160px;
  }
}

/* ── Gizli hizmetler sidebar + modal ── */
.td-hidden-services {
  margin-top: 0.75rem;
}
.td-hidden-services__head {
  color: var(--td-blue);
  font-weight: 800;
}
.td-hidden-services--detail {
  padding: 0.75rem 1rem 1rem;
}
.td-hidden-services__toggle {
  display: block;
  width: 100%;
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--td-blue);
  border-radius: 10px;
  background: #fff;
  color: var(--td-blue);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.td-hidden-services__toggle:hover {
  background: var(--td-blue);
  color: #fff;
}
.td-hidden-services--mobile .td-hidden-services__toggle {
  margin: 0.5rem 0.75rem 0.75rem;
  width: calc(100% - 1.5rem);
}
.td-gizli-modal {
  max-width: 560px;
}
.td-gizli-modal__list {
  max-height: min(62vh, 520px);
  overflow-y: auto;
  border: 1px solid rgba(15, 67, 130, 0.12);
  border-radius: 12px;
  background: #f8fbff;
}
.td-gizli-modal__link {
  display: block;
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid rgba(15, 67, 130, 0.08);
  color: var(--td-blue-dark, #0a3d7a);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}
.td-gizli-modal__link:hover {
  background: #fff;
  color: var(--td-blue);
}

