:root {
  --color-primary: #903;
  --color-primary-dark: #701132;
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-border-subtle: #e5e7eb;
  --color-text: #111827;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Calibri,
    -sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 1.75rem 0 1.25rem;
  text-align: center;
}

.site-header-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo2 {
  width: 64px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.22));
  transform-origin: center;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.site-logo2:hover {
  transform: translateY(-4px) scale(1.05) rotate(-1.5deg);
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.22));
  transform-origin: center;
  animation: logoFloat 5s ease-in-out infinite;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.site-logo:hover {
  transform: translateY(-4px) scale(1.05) rotate(-1.5deg);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45))
    drop-shadow(0 16px 40px rgba(0, 0, 0, 0.35));
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.site-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 500;
  color: #4b5563;
}

.navbar {
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.28);
}

.navbar-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.1rem 0.4rem;
}

.navbar-toggle {
  display: none;
  margin-left: auto;
  padding: 0.6rem 0.75rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.navbar-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.navbar-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: currentColor;
}

.navbar-toggle-label {
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.75rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: #ffffff;
  color: var(--color-primary);
  transform: translateY(-1px);
}

.nav-item.has-submenu > .nav-link::after {
  content: "▾";
  margin-left: 0.4rem;
  font-size: 0.75rem;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0.05rem 0 0;
  padding: 0.4rem 0;
  background-color: #ffffff;
  color: var(--color-primary);
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
  display: none;
  z-index: 20;
}
.nav-item.has-submenu.is-open > .submenu {
  display: block;
}

.submenu-item {
  width: 100%;
}

.submenu-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  white-space: nowrap;
}

.submenu-link:hover,
.submenu-link:focus-visible {
  background-color: var(--color-primary);
  color: #ffffff;
}

.layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.main-content {
  flex: 1 1 auto;
  display: flex;
  background-color: var(--color-surface);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.main-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 65vh;
  border: 0;
  display: block;
}

.site-footer {
  margin-top: 2rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 0.9rem;
  padding: 0.85rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.35);
}

.site-footer strong {
  font-weight: 600;
}

.site-footer a {
  color: #f9fafb;
  font-weight: 500;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .page-shell {
    padding-inline: 0.75rem;
  }

  .layout {
    flex-direction: column;
  }

  .nav-link {
    padding-inline: 0.85rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 0.75rem;
  }
}

/* İç sayfalarda kullanılan ortak yardımcı sınıflar */
.page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.25rem;
}

.page-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--color-primary);
  margin: 0 0 1rem;
  font-weight: 700;
}

.page-lead {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #4b5563;
}

.home-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.25);
  max-width: 520px;
  margin: 0 auto 1.6rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.info-table th,
.info-table td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border-subtle);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 32%;
  background-color: #f3f4f6;
  font-weight: 600;
}

@media (max-width: 640px) {
  .page-inner {
    padding-inline: 1rem;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table tr + tr {
    border-top: 1px solid var(--color-border-subtle);
  }

  .home-hero-image {
    max-width: 100%;
    max-height: 70vh;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    display: flex;
  }

  .site-header-inner > a:first-child {
    order: 1;
  }

  .site-header-inner > a:last-child {
    order: 2;
  }

  .site-title-group {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }

  .navbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.15rem 0.35rem 0.35rem;
  }

  .navbar-toggle {
    display: flex;
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.25rem;
  }

  .navbar.is-open .nav-menu {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border-radius: 0.5rem;
    margin: 0.1rem 0 0.35rem;
    padding: 0.15rem 0.25rem 0.3rem;
    background-color: rgba(255, 255, 255, 0.06);
  }

  .submenu-link {
    padding-left: 1.25rem;
  }

  .main-frame {
    min-height: calc(100vh - 220px);
  }
  .layout {
    align-items: center;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .navbar .submenu-link {
    color: #fff !important;
  }
}

.form-button {
  display: inline-block;
  background-color: #903;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.form-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
