.brand-mark,
.brand-logo {
  height: 4.75rem;
  width: auto;
  max-width: 12.5rem;
  object-fit: contain;
}

/* Sabit üst menü, #bölüm bağlantılarındaki başlıkları kapatmasın. */
html {
  scroll-padding-top: 5.25rem;
}

[id] {
  scroll-margin-top: 5.25rem;
}

@media (min-width: 640px) {
  .brand-mark,
  .brand-logo {
    height: 5.75rem;
    max-width: 16rem;
  }
}

@media (min-width: 768px) {
  .brand-mark,
  .brand-logo {
    height: 7rem;
    max-width: 20rem;
  }
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: 8rem;
  }

  [id] {
    scroll-margin-top: 8rem;
  }

  .brand-mark,
  .brand-logo {
    height: 7.25rem;
    max-width: 20rem;
  }
}

@media (min-width: 1280px) {
  .brand-mark,
  .brand-logo {
    height: 8rem;
    max-width: 24rem;
  }
}

.footer-logo {
  height: 7.5rem;
  width: auto;
  max-width: 22rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer-logo {
    height: 8.5rem;
    max-width: 26rem;
  }
}

@media (min-width: 1024px) {
  .footer-logo {
    height: 9rem;
    max-width: 28rem;
  }
}

.brand-wordmark-main {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.brand-wordmark-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .brand-wordmark-main {
    font-size: 1.125rem;
  }

  .brand-wordmark-sub {
    font-size: 0.6875rem;
  }
}

.bg-photo-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before,
.footer-section::before,
.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  background-image: url("../images/hero-bg.jpg");
  background-image: image-set(
    url("../images/hero-bg.webp") type("image/webp"),
    url("../images/hero-bg.jpg") type("image/jpeg")
  );
  opacity: 0.45;
}

.footer-section::before {
  background-image: url("../images/footer-bg.jpg");
  background-image: image-set(
    url("../images/footer-bg.webp") type("image/webp"),
    url("../images/footer-bg.jpg") type("image/jpeg")
  );
  opacity: 0.28;
}

.section-photo--training::before {
  background-image: url("../images/training-unarmed.jpg");
  background-image: image-set(
    url("../images/training-unarmed.webp") type("image/webp"),
    url("../images/training-unarmed.jpg") type("image/jpeg")
  );
  opacity: 0.14;
}

.hero-overlay,
.footer-overlay,
.section-photo-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(31, 66, 93, 0.9) 0%, rgba(13, 43, 77, 0.88) 100%);
}

.footer-overlay {
  background: linear-gradient(180deg, rgba(13, 43, 77, 0.94) 0%, rgba(31, 66, 93, 0.97) 100%);
}

.section-photo--armed::before {
  background-image: url("../images/training-armed.jpg");
  background-image: image-set(
    url("../images/training-armed.webp") type("image/webp"),
    url("../images/training-armed.jpg") type("image/jpeg")
  );
  opacity: 0.18;
}

.process-section::before {
  background-image: url("../images/training-armed.jpg");
  background-image: image-set(
    url("../images/training-armed.webp") type("image/webp"),
    url("../images/training-armed.jpg") type("image/jpeg")
  );
  opacity: 0.32;
}

.process-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 66, 93, 0.94) 0%, rgba(13, 43, 77, 0.9) 100%);
}

.section-photo-overlay {
  background: rgba(248, 250, 252, 0.92);
}

.stat-card {
  background: #f8fafc;
  border: 1px solid rgba(176, 183, 184, 0.35);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.stat-card__value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #4ab9cf;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .stat-card__value {
    font-size: 2.75rem;
  }
}

.stat-card__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f425d;
  line-height: 1.4;
  margin-bottom: 0.375rem;
}

.stat-card__note {
  font-size: 0.8125rem;
  color: rgba(31, 66, 93, 0.55);
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(176, 183, 184, 0.35);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-left-color: #4ab9cf;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #1f425d;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(31, 66, 93, 0.75);
  line-height: 1.6;
}

.faq-item a {
  color: #2d6a9f;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.course-table th,
.course-table td {
  border: 1px solid rgba(176, 183, 184, 0.25);
  padding: 0.625rem 0.75rem;
  text-align: left;
}

.course-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #1f425d;
}

.course-table tr:nth-child(even) td {
  background: #fafcfd;
}

.exam-calendar-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.exam-calendar-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.exam-calendar-table th,
.exam-calendar-table td {
  border: 1px solid rgba(176, 183, 184, 0.35);
  padding: 0.75rem 1rem;
  text-align: left;
}

.exam-calendar-table th {
  background: #1f425d;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.exam-calendar-table td.text-center {
  text-align: center;
}

.exam-calendar-row--highlight td {
  background: rgba(232, 117, 26, 0.12);
}

.exam-calendar-row--highlight td:first-child {
  border-left: 4px solid #e8751a;
}

.exam-calendar-row--past td {
  color: rgba(31, 66, 93, 0.45);
  background: #fbfcfd;
}

.exam-calendar-row--past td:first-child {
  border-left: 4px solid rgba(176, 183, 184, 0.5);
}

.exam-calendar-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  white-space: nowrap;
}

.exam-calendar-badge--next {
  background: #e8751a;
  color: #fff;
}

.exam-calendar-badge--past {
  background: rgba(176, 183, 184, 0.3);
  color: rgba(31, 66, 93, 0.6);
}

.exam-calendar-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(74, 185, 207, 0.1);
  border: 1px solid rgba(74, 185, 207, 0.3);
  color: #1f425d;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.exam-calendar-notice .material-symbols-outlined {
  color: #4ab9cf;
  flex-shrink: 0;
}

.exam-question-block {
  scroll-margin-top: 8rem;
}

.exam-feedback {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exam-feedback--correct {
  background: #4ab9cf;
  color: #fff;
}

.exam-feedback--wrong {
  background: #dc2626;
  color: #fff;
}

.exam-option--locked {
  pointer-events: none;
  opacity: 0.85;
}

.whatsapp-fab {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  z-index: 90;
  width: 3.75rem;
  height: 3.75rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg {
  width: 2rem;
  height: 2rem;
  fill: #fff;
}

.footer-instagram-icon {
  color: #2dd4bf;
  flex-shrink: 0;
}

/* Header CTA: kelimeler üst üste binmesin */
.header-cta {
  white-space: nowrap;
  display: inline-block;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header-nav > a,
  .site-header-nav > .nav-dropdown > button {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.8125rem;
  }

  .header-cta {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    letter-spacing: 0.04em;
  }
}

/* Mobil: içerik WhatsApp butonu altında kalmasın */
body {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Hero / CTA butonları mobilde tam genişlik, rahat dokunma */
@media (max-width: 639px) {
  .hero-section .flex.flex-wrap > a,
  section .flex.flex-wrap.justify-center > a {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 3rem;
  }
}

/* Uzun e-posta / adres satırları taşmasın */
[data-cms-link="email"],
a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .whatsapp-fab {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
    width: 3.25rem;
    height: 3.25rem;
  }

  .whatsapp-fab svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Nav dropdown — Sınav İşlemleri */
.nav-dropdown .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  background: #fff;
  border: 1px solid rgba(31, 66, 93, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(13, 43, 77, 0.1);
  padding: 0.5rem 0;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.nav-dropdown-open {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(31, 66, 93, 0.75);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(74, 185, 207, 0.1);
  color: #1f425d;
}

.nav-dropdown-menu a.active {
  font-weight: 700;
}

.filter-btn.active {
  border-color: transparent;
}

.filter-btn.active.bg-brand-teal,
.filter-btn.active:not(.bg-red-500) {
  background-color: #1f425d;
  color: #fff;
}
