/* ================================================
   Teminat — Sigorta Rehberi — stylesheet
   Kimlik: kalkan / teminat / güvence estetiği
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #EFF3F1;
  --paper-raised: #F8FAF9;
  --ink: #16242A;
  --ink-soft: #3F5158;
  --slate: #5C7076;
  --teal: #1F5C52;
  --teal-dark: #163F38;
  --amber: #B4791F;
  --line: #D3DEDA;
  --line-strong: #AFC1BB;
  --max: 760px;
  --wide: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  color: var(--ink);
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 28px;
}

.col {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- masthead ---------- */
header.masthead {
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-raised);
}

.masthead-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.shield-mark {
  width: 36px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.15;
}

.brand-text .name {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  display: block;
}

.brand-text .tagline {
  font-size: .78rem;
  color: var(--slate);
  display: block;
  margin-top: 1px;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 0;
  font-size: .88rem;
  scrollbar-width: none;
  flex-shrink: 1;
}

nav.primary::-webkit-scrollbar {
  display: none;
}

nav.primary a {
  color: var(--ink-soft);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

nav.primary a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
  text-decoration: none;
}

nav.primary a.current {
  color: var(--teal);
  font-weight: 600;
  border-bottom-color: var(--teal);
}


/* ---------- hero ---------- */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px 28px 40px;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  max-width: 15ch;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 18px 0 0;
}

.hero-shield {
  justify-self: end;
}

.hero-shield svg {
  width: 200px;
  height: 230px;
}

/* ---------- notice / coverage box ---------- */
.notice {
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  padding: 22px 24px;
  margin: 28px 0;
  position: relative;
}

.notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--teal);
}

.notice .label {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal-dark);
  margin: 0 0 8px;
}

.notice p {
  margin: 0;
  color: var(--ink-soft);
}

.notice.warn::before {
  background: var(--amber);
}

.notice.warn .label {
  color: var(--amber);
}

/* ---------- rate table ---------- */
table.rates {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: .96rem;
}

table.rates caption {
  text-align: left;
  font-family: 'Spectral', serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--ink);
}

table.rates th,
table.rates td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

table.rates thead th {
  border-bottom: 2px solid var(--ink);
  color: var(--slate);
  font-weight: 600;
  font-size: .82rem;
}

table.rates tbody tr:hover {
  background: rgba(31, 92, 82, .05);
}

/* ---------- guide index list (home) ---------- */
.guide-list {
  max-width: var(--wide);
  margin: 8px auto 72px;
  padding: 0 28px;
  border-top: 1px solid var(--line-strong);
}

.guide-row {
  display: grid;
  grid-template-columns: 1.4fr 2fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.guide-row .cat {
  font-size: .82rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

.guide-row h3 {
  font-size: 1.3rem;
  margin: 0;
}

.guide-row p {
  color: var(--ink-soft);
  margin: 6px 0 0;
  font-size: .96rem;
}

.guide-row .go {
  white-space: nowrap;
  font-size: .92rem;
  align-self: center;
}

/* ---------- section headers ---------- */
.section-head {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px 28px 0;
}

.section-head h2 {
  font-size: 1.5rem;
}

.section-head p {
  color: var(--slate);
  max-width: 60ch;
}

/* ---------- article ---------- */
article.doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 40px;
}

.doc .kicker {
  font-size: .85rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  margin-bottom: 10px;
}

.doc h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

.doc .meta {
  color: var(--slate);
  font-size: .9rem;
  margin: 10px 0 34px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 24px;
}

.doc h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}

.doc h3 {
  font-size: 1.1rem;
  margin-top: 1.8em;
  font-family: 'Inter';
  font-weight: 600;
}

.doc p {
  margin: 1em 0;
  color: var(--ink);
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
  color: var(--ink);
}

.doc li {
  margin: .5em 0;
}

.doc strong {
  color: var(--ink);
}

.template-block {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  padding: 26px 28px;
  margin: 26px 0;
  font-size: .96rem;
}

.template-block h4 {
  font-family: 'Inter';
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--slate);
  margin-bottom: 14px;
}

.template-block ol,
.template-block ul {
  margin: 0;
  padding-left: 1.2em;
}

.template-block li {
  margin: .7em 0;
}

.sources {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--slate);
}

.sources h4 {
  font-family: 'Inter';
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  color: var(--slate);
}

.next-guide {
  max-width: var(--max);
  margin: 0 auto 64px;
  padding: 0 28px;
}

.next-guide a {
  display: block;
  border: 1px solid var(--line-strong);
  padding: 22px 24px;
  color: var(--ink);
}

.next-guide a:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.next-guide .eyebrow {
  font-size: .78rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.next-guide h3 {
  margin: 6px 0 0;
  font-size: 1.15rem;
}

/* ---------- simple page ---------- */
.simple {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 72px;
}

.simple h1 {
  font-size: 2rem;
}

.simple p {
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line-strong);
  background: var(--paper-raised);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 36px 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--slate);
}

.footer-inner nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--slate);
}

.footer-inner a:hover {
  color: var(--teal);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-shield {
    justify-self: start;
    order: -1;
  }

  .hero-shield svg {
    width: 120px;
    height: 140px;
  }

  .guide-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .guide-row .go {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- ad slots ---------- */
.ad-slot {
  max-width: var(--wide);
  margin: 8px auto;
  padding: 0 28px;
}

.ad-slot .ad-inner {
  border: 1px dashed var(--line-strong);
  background: var(--paper-raised);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ad-slot .ad-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate);
  margin: 0 auto 6px;
  max-width: var(--wide);
  padding: 0 28px;
}

.ad-slot.in-article {
  max-width: var(--max);
}

.ad-slot .ad-placeholder-text {
  color: var(--line-strong);
  font-size: .85rem;
  font-family: 'Inter';
}

/* ---------- search bar & navigation enhancements ---------- */
.search-box-container {
  position: relative;
  width: 200px;
  flex-shrink: 0;
}

.search-input-wrap {
  display: flex !important;
  align-items: center !important;
  background: var(--paper) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 18px !important;
  padding: 0 12px !important;
  height: 34px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.search-input-wrap:hover {
  border-color: var(--teal) !important;
  background: #ffffff !important;
}

.search-input-wrap:focus-within {
  background: #ffffff !important;
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(31, 92, 82, 0.12) !important;
}

.search-icon {
  width: 14px !important;
  height: 14px !important;
  stroke: var(--teal) !important;
  fill: none !important;
  flex-shrink: 0 !important;
  margin-right: 6px !important;
}

.search-icon circle,
.search-icon line {
  fill: none !important;
  stroke: var(--teal) !important;
}

input[type="text"].search-input,
.search-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.82rem !important;
  color: var(--ink) !important;
}

input[type="text"].search-input::placeholder,
.search-input::placeholder {
  color: var(--slate) !important;
  font-size: 0.81rem !important;
  opacity: 0.85 !important;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(22, 36, 42, 0.12);
  z-index: 1000;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.search-results-dropdown.active {
  display: block;
  animation: searchFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(31, 92, 82, 0.05);
}

.search-result-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 2px;
}

.search-result-title {
  font-size: 0.88rem;
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

.search-result-desc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-no-result {
  padding: 16px;
  font-size: 0.84rem;
  color: var(--slate);
  text-align: center;
}

@media (max-width: 960px) {
  .masthead-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 20px;
  }

  nav.primary {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .search-box-container {
    width: 160px;
  }

  .search-results-dropdown {
    width: 280px;
  }
}

@media (max-width: 580px) {
  .brand-text .tagline {
    display: none;
  }

  .search-box-container {
    width: 130px;
  }
}

/* Çerez Onay Bannerı (Cookie Consent) */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--navy-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-text {
  max-width: 900px;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-consent-text a {
  color: var(--brand-accent);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  white-space: nowrap;
}

.btn-cookie-accept {
  background-color: var(--brand-accent);
  color: var(--navy-dark);
  border: none;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-cookie-accept:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: flex-end;
  }
}