/* ============ NVWA Check Certificate — kopya ============ */
:root {
  --primary: #00679d;
  --primary-dark: #00537f;
  --secondary: #e5f0f8;
  --form-bg: #f5f5f5;
  --logo-blue: #154273;
  --text: #212529;
  --border: #cfd4d8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Verdana, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--primary); }

/* Başlık/sekme/footer için geniş container (1140px, ortalı) */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* İçerik (intro + form) için dar, sayfada ORTALI blok */
.content {
  width: 100%;
  max-width: 872px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header (logo — sayfada ortalı) ---------- */
.site-header {
  background: #fff;
  padding: 9px 0;
  text-align: center;
}
.site-header img {
  height: 107px;
  width: auto;
  max-width: 90%;
}

/* ---------- Mavi başlık barı (tam genişlik, metin container'da) ---------- */
.title-bar {
  background: var(--primary);
  color: #fff;
}
.title-bar h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  padding: 22px 0;
}

/* ---------- Dil sekmeleri ---------- */
.lang-tabs {
  background: var(--secondary);
}
.lang-tabs .container {
  display: flex;
  gap: 0;
}
.lang-tabs a {
  display: inline-block;
  padding: 15px 22px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}
.lang-tabs a.active {
  background: #fff;
  color: var(--text);
}
.lang-tabs a:not(.active):hover {
  text-decoration: underline;
}

/* ---------- İçerik ---------- */
.main {
  flex: 1 0 auto;
  padding: 34px 0 50px;
}
.intro p {
  margin: 0 0 6px;
}
.intro {
  margin-bottom: 26px;
}

/* ---------- Form (içerik bloğunu doldurur) ---------- */
.check-form {
  background: var(--form-bg);
  padding: 24px 28px;
  width: 100%;
}
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.form-row label {
  flex: 0 0 191px;
  padding-right: 16px;
  font-size: 16px;
}
.form-row .field {
  flex: 1 1 auto;
}
.field-input {
  width: 100%;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--primary);
  background: #fff;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}
.field-input:focus {
  border-color: var(--primary);
  box-shadow: inset 0 -1px 0 var(--primary);
}

/* Captcha satırı — input sütununa hizalı */
.captcha-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.captcha-field img {
  height: 46px;
  width: 150px;
  background: #fff;
  border: 1px solid var(--border);
  object-fit: contain;
}
.btn {
  display: inline-block;
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 12px 26px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  line-height: 1.2;
}
.btn:hover { background: var(--primary-dark); }
.btn-reload { padding: 10px 22px; }

.btn:disabled,
.btn.disabled {
  background: #e6e6e6;
  color: #9a9a9a;
  cursor: not-allowed;
}

.form-actions { margin-top: 4px; }

.form-error {
  background: #fbe3e4;
  border-left: 4px solid #dc3545;
  color: #7a1620;
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 15px;
}

/* ---------- Footer (2 sütun, alt çizgili başlıklar) ---------- */
.site-footer {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  margin-top: 40px;
  padding: 40px 0 60px;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.footer-col {
  flex: 0 1 410px;
}
.footer-col h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fff;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.footer-col a:hover { text-decoration: underline; }

/* ---------- Sonuç sayfası: görsel grid ---------- */
.result-head {
  margin-bottom: 22px;
}
.result-meta {
  color: #555;
  font-size: 15px;
  margin: 4px 0 0;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  align-items: start; /* satırlar en yüksek öğeye göre gerilmesin */
}
.image-grid .thumb {
  display: block;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
  text-decoration: none;
}
.image-grid .thumb:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  transform: translateY(-2px);
}
.image-grid .thumb img {
  width: 100%;
  height: auto;          /* görsel tam görünsün, kırpma yok */
  object-fit: contain;
  display: block;
}
.back-link {
  display: inline-block;
  margin-top: 30px;
}

/* Mobilde tek sütun (alt alta) */
@media (max-width: 640px) {
  .container, .content { padding: 0 16px; }
  .image-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row label { flex: none; padding: 0 0 6px; }
  .captcha-row label { display: none; }
  .site-header img { height: 72px; }
  .title-bar h1 { font-size: 22px; }
  .check-form { padding: 18px 16px 22px; }
  .footer-col { flex: 1 1 100%; }
}

/* ---------- Lightbox ---------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  font-size: 30px;
  width: 54px;
  height: 54px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  color: #fff;
  margin-top: 16px;
  font-size: 15px;
  opacity: .85;
}
@media (max-width: 640px) {
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 24px; }
}
