/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy: #0D1526;
  --navy-light: #162035;
  --red: #D41F1F;
  --red-hover: #B81919;
  --red-pale: #FEF2F2;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 96px 0;
}

section.bg-white {
  background: var(--white);
}

section.bg-light {
  background: var(--bg-alt);
}

section.bg-navy {
  background: var(--navy);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-pale);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: 72px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition), background var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-links a.active {
  color: var(--red);
  background: var(--red-pale);
}

/* Dropdown */
.nav-links .has-dropdown { position: relative; }

.nav-links .has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links .has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-links .has-dropdown:hover > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* ---- Dropdowns ---- */
/* padding-top bridges the gap so mouse never leaves the hover zone */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 210px;
  padding: 6px 0;
  padding-top: 14px;   /* transparent bridge — no hover dead zone */
  margin-top: -4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
  list-style: none;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}


/* Regular + lang dropdowns — match mega's visible box top position */
.nav-links .has-dropdown .dropdown-menu:not(.dropdown-mega),
.lang-selector .dropdown-menu {
  margin-top: 10px;
  padding-top: 6px;
}
.nav-links .has-dropdown .dropdown-menu:not(.dropdown-mega)::before,
.lang-selector .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* Mega dropdown — 3 columns, left-aligned with trigger */
.dropdown-mega {
  display: flex;
  gap: 0;
  min-width: 680px;
  left: 0;
  right: auto;
  transform: translateY(-4px);
  padding: 0;
  padding-top: 14px;
  margin-top: -4px;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Inner wrapper carries the visible box */
.dropdown-mega-inner {
  display: flex;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}

.has-dropdown:hover .dropdown-mega {
  transform: translateY(0);
}

.dropdown-col {
  flex: 1;
  padding: 6px 0;
  border-right: 1px solid var(--border);
}

.dropdown-col:last-child { border-right: none; }

.dropdown-menu li a,
.dropdown-col li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.13s, color 0.13s;
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-col li a:hover {
  background: var(--bg);
  color: var(--text);
}

.dropdown-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  padding: 10px 16px 5px;
  pointer-events: none;
}

.dropdown-section-label svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Icon in plain dropdown */
.dd-icon {
  width: 26px; height: 26px;
  background: var(--red-pale);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.dd-icon svg { width: 13px; height: 13px; }

/* Language selector */
.lang-selector { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.lang-btn svg:first-child { width: 15px; height: 15px; }
.lang-caret { width: 12px; height: 12px; transition: transform 0.2s; }
.lang-selector:hover .lang-caret { transform: rotate(180deg); }
.lang-btn:hover { color: var(--text); border-color: var(--text-secondary); background: var(--bg); }

.lang-menu {
  left: 50%;
  min-width: 140px;
  padding: 4px 0;
}

.lang-menu li { list-style: none; }

.lang-option {
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.13s, color 0.13s;
}

.lang-option:hover { background: var(--bg); color: var(--text); }
.lang-option.active { color: var(--red); font-weight: 600; }

/* Dark / Light toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover { color: var(--text); background: var(--bg); border-color: var(--text-secondary); }
.theme-toggle svg { width: 17px; height: 17px; }

.icon-moon { display: none; }

/* Talep Oluştur button */
.btn-request {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap;
  padding: 9px 16px !important;
}

.btn-request svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-request span { line-height: 1; }

/* Fixed side buttons */
.side-buttons {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 400;
}

.side-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  writing-mode: initial;
  text-orientation: initial;
  transform: translateX(0);
  padding: 11px 16px 11px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 8px 0 0 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

.side-btn svg {
  width: 15px; height: 15px;
  transform: none;
  flex-shrink: 0;
}

.side-btn:hover {
  transform: translateX(-5px);
  box-shadow: -6px 0 20px rgba(0,0,0,0.2);
}

.side-btn-primary {
  background: #16a34a;
  color: #fff;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.side-btn-primary:hover { background: #15803d; }

.side-btn-outline {
  background: var(--red);
  color: #fff;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.side-btn-outline:hover { background: var(--red-hover); }

.side-btn-startup {
  background: #5b21b6;
  color: #fff;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.side-btn-startup:hover { background: #4c1d95; }

/* Footer social links */
.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact p { display: flex; align-items: flex-start; font-size: 13px; color: rgba(255,255,255,0.55); margin: 0; line-height: 1.5; }
.footer-contact p svg { margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-cert-logos {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-bottom: 0;
  margin-top: auto;
  padding-top: 32px;
  padding-bottom: 0;
}
.footer-cert-logos img {
  height: 52px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity .2s;
}
@media (max-width: 600px) {
  .footer-cert-logos {
    justify-content: flex-start;
    gap: 16px;
  }
  .footer-cert-logos img {
    height: 40px;
    max-width: 56px;
  }
}
.footer-cert-logos img:hover { opacity: 1; }

.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-link svg { width: 16px; height: 16px; }

.social-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* ---- Dark mode ---- */
/* ============================================================
   DARK MODE
   ============================================================ */

[data-theme="dark"] {
  --bg:            #090d18;
  --bg-alt:        #0d1220;
  --white:         #111827;
  --border:        rgba(255,255,255,0.09);
  --text:          #f0f4f8;
  --text-secondary:#8fa3be;
  --text-muted:    #546478;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.5);
  --shadow:        0 4px 20px rgba(0,0,0,.6);
  --shadow-lg:     0 12px 48px rgba(0,0,0,.7);
  --red-pale:      rgba(212,31,31,0.14);
}

/* — Body & Base — */
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* — Navbar — */
[data-theme="dark"] #navbar {
  background: rgba(9,13,24,0.97);
  border-bottom-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
}
[data-theme="dark"] .nav-link { color: var(--text-secondary); }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: var(--text); }

/* — Dropdowns — */
[data-theme="dark"] .dropdown-menu {
  background: #111827;
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
}
[data-theme="dark"] .dropdown-item { color: var(--text-secondary); }
[data-theme="dark"] .dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
[data-theme="dark"] .mega-col-title { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .mega-divider { background: rgba(255,255,255,0.07); }

/* — Hero — */
[data-theme="dark"] .hero { background: var(--bg); border-bottom-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .hero::before { opacity: 0.15; }

/* — Sections — */
[data-theme="dark"] section.bg-white { background: var(--white); }
[data-theme="dark"] section.bg-light { background: var(--bg-alt); }

/* — Cards — */
[data-theme="dark"] .service-card,
[data-theme="dark"] .ref-card,
[data-theme="dark"] .training-card,
[data-theme="dark"] .cert-card,
[data-theme="dark"] .process-card,
[data-theme="dark"] .pf-radio-card,
[data-theme="dark"] .sf-section,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .service-item-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .sector-card,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .tab-content-panel {
  background: var(--white);
  border-color: rgba(255,255,255,0.09);
}

/* — Forms — */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg-alt);
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: var(--text-muted); }
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--red);
  background: var(--bg-alt);
}
[data-theme="dark"] select option { background: #111827; color: var(--text); }
[data-theme="dark"] .form-submit { color: #fff; }
[data-theme="dark"] .form-success-icon { background: #15803d; }

/* — Buttons (white text on colored backgrounds) — */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-outline-red:hover { color: #fff; }

[data-theme="dark"] .btn-outline {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}
[data-theme="dark"] .btn-outline:hover { background: rgba(255,255,255,0.07); }

/* — White text on always-dark (navy/red) backgrounds — */
[data-theme="dark"] .stat-card-num,
[data-theme="dark"] .service-card-cta h3,
[data-theme="dark"] .cta-banner h2,
[data-theme="dark"] .ref-item.highlight,
[data-theme="dark"] .cert-badge:hover,
[data-theme="dark"] .social-link:hover,
[data-theme="dark"] .footer-col ul li a:hover,
[data-theme="dark"] .footer-col .contact-val a:hover { color: #fff; }

/* — SVG icons on hover (colored background) — */
[data-theme="dark"] .service-card:hover .service-icon svg,
[data-theme="dark"] .feature-item:hover .feature-icon-box svg,
[data-theme="dark"] .service-item-card:hover .service-item-icon svg,
[data-theme="dark"] .value-card:hover .value-icon svg,
[data-theme="dark"] .cert-card:hover .cert-icon-wrap svg,
[data-theme="dark"] .sector-card:hover .sector-icon svg { color: #fff; }

/* — Page header — */
[data-theme="dark"] .page-header { background: var(--bg-alt); border-bottom-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .page-header h1 { color: var(--text); }
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb a { color: var(--text-muted); }
[data-theme="dark"] .page-header-label { background: rgba(212,31,31,0.18); }

/* — Legal pages — */
[data-theme="dark"] .legal-updated { background: var(--bg-alt); color: var(--text-muted); }
[data-theme="dark"] .legal-content h2 { color: var(--text); border-bottom-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li { color: var(--text-secondary); }
[data-theme="dark"] .legal-links { border-top-color: rgba(255,255,255,0.09); }

/* — Footer — */
[data-theme="dark"] footer { background: var(--navy); }
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .footer-bottom a { color: rgba(255,255,255,0.45); }
[data-theme="dark"] .footer-bottom a:hover { color: rgba(255,255,255,0.85); }

/* — Mobile menu — */
[data-theme="dark"] #mobileMenu { background: #111827; border-bottom-color: rgba(255,255,255,0.09); }

/* — Theme & lang toggles — */
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-btn { color: var(--text-secondary); border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
[data-theme="dark"] .lang-selector .dropdown-menu { background: #111827; }
[data-theme="dark"] .lang-option:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* — Side buttons — */
[data-theme="dark"] .side-btn-outline { background: var(--red); color: #fff; }
[data-theme="dark"] .side-btn-outline:hover { background: var(--red-hover); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--bg-alt);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobileMenu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 5%;
  gap: 4px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#mobileMenu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#mobileMenu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

#mobileMenu a:hover,
#mobileMenu a.active {
  color: var(--red);
  background: var(--red-pale);
}

.mobile-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px 4px;
  pointer-events: none;
}

#mobileMenu a.mobile-sub {
  padding-left: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

#mobileMenu .mobile-cta {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

#mobileMenu .mobile-cta .mobile-cta-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  font-size: 15px;
  color: #fff !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,31,31,.3);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--text-secondary);
  color: var(--text);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}

.btn-lg {
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius);
}

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  background: var(--white);
  padding: 100px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(212,31,31,.04) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .sep {
  color: var(--border);
}

.breadcrumb .current {
  color: var(--text-secondary);
  font-weight: 600;
}

.page-header-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-pale);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 100%;
  line-height: 1.7;
}

/* ============================================================
   HERO (index only)
   ============================================================ */
.hero {
  min-height: calc(100vh - 80px);
  background: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(212,31,31,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 580px;
  transform: translateY(40px);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,31,31,.15);
  border: 1px solid rgba(212,31,31,.3);
  color: #FF6B6B;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #FF6B6B;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-subtext {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.hero-stat {
  padding: 0 28px 0 0;
  border-right: 1px solid var(--border);
  margin-right: 28px;
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
}

.hero-stat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ---- Terminal Panel ---- */
.hero-terminal {
  width: 100%;
  max-width: 560px;
  background: #0a1120;
  border-radius: 14px;
  border: 1px solid rgba(212,31,31,0.22);
  box-shadow:
    0 0 0 1px rgba(212,31,31,0.06),
    0 8px 24px rgba(0,0,0,0.18),
    0 32px 64px rgba(0,0,0,0.12);
  overflow: hidden;
  font-family: 'Menlo','Consolas','Fira Code',monospace;
  position: relative;
}

.hero-terminal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  border-radius: 14px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots .dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  font-family: inherit;
}

.terminal-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-live 1.4s ease-in-out infinite;
}

@keyframes pulse-live {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.35; transform:scale(0.65); }
}

.terminal-body { padding: 12px 14px; }

.terminal-kpis {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.t-kpi {
  text-align: center;
  padding: 7px 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.t-kpi-num {
  font-size: 16px;
  font-weight: 800;
  color: #22c55e;
  line-height: 1;
  margin-bottom: 4px;
  font-family: inherit;
  transition: color 0.25s ease;
}

.t-kpi-num.flash { color: #ef4444; }

.t-kpi-label {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: inherit;
}

.terminal-scan-bar {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.terminal-scan-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  border-radius: 2px;
  animation: scan-progress 5s ease-in-out infinite;
}

@keyframes scan-progress {
  0%   { width: 0%;   opacity: 1; }
  85%  { width: 100%; opacity: 1; }
  95%  { width: 100%; opacity: 0; }
  100% { width: 0%;   opacity: 0; }
}

.terminal-log {
  height: 253px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.log-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 2.5px 0;
  font-size: 11.5px;
  line-height: 1.5;
  animation: log-in 0.25s ease;
}

@keyframes log-in {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}

.log-ts   { color: rgba(255,255,255,0.2); font-size:10px; flex-shrink:0; }
.log-icon { flex-shrink:0; width:14px; text-align:center; }
.log-msg  { color: rgba(255,255,255,0.65); flex:1; }

.log-line.ok    .log-icon { color: #22c55e; }
.log-line.warn  .log-icon { color: #f59e0b; }
.log-line.alert .log-icon { color: #ef4444; }
.log-line.scan  .log-icon { color: #60a5fa; }
.log-line.warn  .log-msg  { color: #fde68a; }
.log-line.alert .log-msg  { color: #fca5a5; }
.log-line.scan  .log-msg  { color: rgba(255,255,255,0.4); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11.5px;
  font-family: inherit;
}

.t-prompt { color: var(--red); font-weight: 700; }
.t-cmd    { color: rgba(255,255,255,0.75); }
.t-cursor {
  color: #22c55e;
  animation: t-blink 1s step-end infinite;
  font-size: 13px;
  line-height: 1;
}

@keyframes t-blink {
  0%,100% { opacity:1; }
  50%     { opacity:0; }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--white);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 12px 40px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item-icon {
  width: 52px; height: 52px;
  background: var(--red-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--red);
}

.stat-item-icon svg { width: 26px; height: 26px; }

.stat-item-num {
  font-size: 52px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-item-num span {
  color: var(--red);
}

.stat-item-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   CARDS (General)
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  border-top: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--red);
}

/* ============================================================
   SERVICE CARDS (Homepage)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  border-top: 3px solid transparent;
  transition: all var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--red);
}

.service-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.service-head h3 { margin-bottom: 0; }

.service-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--red);
}

.service-card:hover .service-icon svg {
  color: var(--white);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--red);
  transition: color var(--transition);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-head + p, .service-head ~ p { margin-top: 0; }

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-card:hover .card-link {
  gap: 10px;
}

/* ============================================================
   WHY TUGAY
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.feature-item:hover .feature-icon-box {
  background: var(--red);
}

.feature-item:hover .feature-icon-box svg {
  color: var(--white);
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  transition: color var(--transition);
}

.feature-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stats-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--red);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(212,31,31,0.06);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.stat-card-icon {
  width: 40px; height: 40px;
  background: rgba(212,31,31,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--red);
  transition: background var(--transition);
}

.stat-card:hover .stat-card-icon { background: rgba(212,31,31,0.2); }

.stat-card-icon svg { width: 20px; height: 20px; }

.stat-card-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-card-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Service card CTA (dark last card) */
.service-card-cta {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.service-cta-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.service-card-cta h3 { color: var(--white) !important; margin-bottom: 20px !important; }

.service-card-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* ============================================================
   CERTIFICATES STRIP
   ============================================================ */
.certs-strip {
  padding: 72px 0;
}

.certs-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.cert-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.cert-badge:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================================
   REFERENCES
   ============================================================ */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.ref-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
  transition: all var(--transition);
  cursor: default;
}

.ref-item:hover {
  background: var(--red-pale);
  border-color: rgba(212,31,31,.2);
  color: var(--text);
  transform: translateY(-2px);
}

.ref-item.highlight {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(212,31,31,.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(212,31,31,.05) 0%, transparent 70%);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,.62);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 0;
  padding-bottom: 40px;
  align-items: end;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bb { margin-top: 20px; }
.footer-bb-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 10px 0 0;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
  text-align: left;
}
.footer-bb-toggle svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.footer-bb-toggle:hover { color: rgba(255,255,255,0.85); }
.footer-bb.open .footer-bb-toggle { color: var(--white); }
.footer-bb.open .footer-bb-toggle svg { transform: rotate(180deg); }
.footer-bb-list {
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  list-style: none;
}
.footer-bb.open .footer-bb-list { display: flex; }
.footer-bb-list li a {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 5px 0;
  line-height: 1.4;
  transition: color var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-bb-list li:last-child a { border-bottom: none; }
.footer-bb-list li a:hover { color: var(--white); }

.footer-col .contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col .contact-label {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.footer-col .contact-val {
  font-size: 14px;
  color: rgba(255,255,255,.65);
}

.footer-col .contact-val a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.footer-col .contact-val a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a,
.footer-bottom a {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}

.footer-bottom-links a:hover,
.footer-bottom a:hover {
  color: rgba(255,255,255,.85);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-page {
  background: var(--white);
}

.service-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-section:last-child {
  border-bottom: none;
}

.service-section-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: flex-start;
}

.service-sidebar {
  position: sticky;
  top: 100px;
}

.service-sidebar-num {
  font-size: 64px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.service-sidebar h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.service-tag {
  background: var(--red-pale);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.service-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-item-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid transparent;
  transition: all var(--transition);
}

.service-item-card:hover {
  background: var(--white);
  border-top-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-item-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.service-item-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-item-icon {
  width: 36px;
  height: 36px;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background var(--transition);
}

.service-item-card:hover .service-item-icon {
  background: var(--red);
}

.service-item-card:hover .service-item-icon svg {
  color: var(--white);
}

.service-item-icon svg {
  width: 18px;
  height: 18px;
  color: var(--red);
  transition: color var(--transition);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p:last-of-type {
  margin-bottom: 28px;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  border-top: 4px solid var(--red);
}

.mv-card .mv-icon {
  width: 52px;
  height: 52px;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mv-card .mv-icon svg {
  width: 26px;
  height: 26px;
  color: var(--red);
}

.mv-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.mv-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 3px solid transparent;
  transition: all var(--transition);
}

.value-card:hover {
  border-top-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--transition);
}

.value-card:hover .value-icon {
  background: var(--red);
}

.value-card:hover .value-icon svg {
  color: var(--white);
}

.value-icon svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  transition: color var(--transition);
}

.value-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CERTIFICATES PAGE
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border-top: 3px solid transparent;
  transition: all var(--transition);
}

.cert-card:hover {
  border-top-color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cert-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--red-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background var(--transition);
}

.cert-card:hover .cert-icon-wrap {
  background: var(--red);
}

.cert-card:hover .cert-icon-wrap svg {
  color: var(--white);
}

.cert-icon-wrap svg {
  width: 32px;
  height: 32px;
  color: var(--red);
  transition: color var(--transition);
}

.cert-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cert-card .cert-issuer {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cert-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.standard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}

.standard-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(212,31,31,.2);
}

.standard-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-pale);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.standard-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.standard-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   REFERENCES PAGE
   ============================================================ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 3px solid transparent;
  transition: all var(--transition);
}

.sector-card:hover {
  border-top-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.sector-icon {
  width: 44px;
  height: 44px;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--transition);
}

.sector-card:hover .sector-icon {
  background: var(--red);
}

.sector-card:hover .sector-icon svg {
  color: var(--white);
}

.sector-icon svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  transition: color var(--transition);
}

.sector-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.sector-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-row-icon {
  width: 42px;
  height: 42px;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row-icon svg {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.contact-row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-row-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.contact-row-val a {
  color: var(--text);
  transition: color var(--transition);
}

.contact-row-val a:hover {
  color: var(--red);
}

/* Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,31,31,.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.char-counter {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}
.char-counter.near-limit { color: #f59e0b; }
.char-counter.at-limit   { color: var(--red); }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.form-submit:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,31,31,.3);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: flex;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(196, 30, 30, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.form-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  white-space: nowrap;
}

.form-success p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   TEKNOPARK SECTION
   ============================================================ */
.teknopark-section {
  background: var(--bg-alt);
  padding: 72px 0;
}

.teknopark-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.teknopark-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.teknopark-badge svg {
  width: 14px;
  height: 14px;
  color: var(--red);
}

.teknopark-inner h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.teknopark-inner p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.teknopark-countries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.country-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.country-item svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  flex-shrink: 0;
  transition: color var(--transition);
}

.country-item:hover {
  background: var(--red-pale);
  border-color: rgba(212,31,31,.2);
  color: var(--red);
}
.country-item:hover svg { color: var(--red); }

/* ============================================================
   TRUST / LOGO ŞERİDİ
   ============================================================ */
.trust-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.trust-strip-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
  transition: opacity var(--transition), transform var(--transition);
}
.trust-logo-item:hover { opacity: 1; transform: translateY(-2px); }
.trust-logo-item img {
  height: 72px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
[data-theme="dark"] .trust-strip { background: #fff; border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .trust-logo-item img { filter: brightness(1.15); }
@media (max-width: 768px) {
  .trust-strip-logos { justify-content: center; gap: 20px; }
  .trust-logo-item img { height: 52px; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .btn-request {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
  }

  .hero-visual {
    display: flex;
    order: 2;
  }

  .hero-terminal {
    max-width: 100%;
    font-size: 12px;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-section-inner {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }

  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .refs-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .teknopark-inner {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .hero-stat {
    padding: 0 16px 0 0;
    margin-right: 16px;
  }

  .hero-stat-num {
    font-size: 26px;
  }

  .stats-strip .container {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .refs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-items-grid {
    grid-template-columns: 1fr;
  }

  .stats-cards {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .teknopark-countries {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header {
    padding: 100px 0 56px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .refs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 24px;
  }

  .hero-stats {
    gap: 0;
  }
}

/* ===== REF STRIP ===== */
.ref-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}
.ref-strip-inner {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.ref-strip-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: ref-scroll 32s linear infinite;
}
.ref-strip-track:hover { animation-play-state: paused; }
.ref-strip-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.ref-strip-logo img {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity .2s;
}
.ref-strip-logo img:hover { opacity: 1; }
[data-theme="dark"] .ref-strip { background: var(--bg-alt); }
[data-theme="dark"] .ref-strip-logo img { opacity: 0.75; filter: grayscale(1) brightness(2.2); }
[data-theme="dark"] .ref-strip-logo img:hover { opacity: 1; filter: grayscale(0) brightness(1.4); }
@keyframes ref-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   BİLGİ BANKASI — TABLE (INDEX)
   ============================================================ */
.bb-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bb-table-head {
  display: grid;
  grid-template-columns: 48px 140px 1fr 40px;
  padding: 12px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bb-row {
  display: grid;
  grid-template-columns: 48px 140px 1fr 40px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  background: var(--white);
  transition: background var(--transition);
  gap: 0;
}
.bb-row:last-child { border-bottom: none; }
.bb-row:hover { background: var(--bg); }
.bb-col-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.bb-col-cat em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: rgba(212,31,31,.08);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.bb-col-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  transition: color var(--transition);
  padding-right: 16px;
}
.bb-row:hover .bb-col-title { color: var(--red); }
.bb-col-action svg {
  width: 16px; height: 16px;
  color: var(--text-muted);
  transition: transform .2s, color var(--transition);
}
.bb-row:hover .bb-col-action svg { transform: translateX(3px); color: var(--red); }
[data-theme="dark"] .bb-row { background: var(--bg-alt); }
[data-theme="dark"] .bb-row:hover { background: rgba(255,255,255,.05); }
[data-theme="dark"] .bb-table-head { background: rgba(255,255,255,.03); }
@media (max-width: 640px) {
  .bb-table-head { display: none; }
  .bb-row { grid-template-columns: 1fr 40px; }
  .bb-col-num, .bb-col-cat { display: none; }
}

/* ============================================================
   BİLGİ BANKASI — INDEX HEADER / FILTERS
   ============================================================ */
.bb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.bb-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.bb-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bb-filter-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.bb-filter-btn:hover,
.bb-filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.bb-row[data-cat] { transition: opacity .2s, background var(--transition); }
.bb-row.hidden { display: none; }
.bb-col-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  padding-right: 16px;
  display: none;
}
@media (min-width: 900px) {
  .bb-table-head { grid-template-columns: 48px 140px 1fr 220px 40px; }
  .bb-row       { grid-template-columns: 48px 140px 1fr 220px 40px; }
  .bb-col-desc  { display: block; }
}

/* ============================================================
   BİLGİ BANKASI — ARTICLE LAYOUT
   ============================================================ */
.bb-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding: 16px 0 80px;
  align-items: start;
}
.bb-article-body h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin: 52px 0 14px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.bb-article-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.bb-article-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.bb-article-body p {
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.bb-article-body ul.bb-check {
  list-style: none;
  margin: 14px 0 24px;
}
.bb-article-body ul.bb-check li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.65;
}
.bb-article-body ul.bb-check li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 1px;
  background-color: var(--red-pale);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D41F1F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.bb-callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.bb-callout strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 8px;
}
.bb-callout p {
  margin: 0 !important;
  font-size: 14.5px !important;
}
.bb-steps {
  counter-reset: step;
  list-style: none;
  margin: 20px 0 32px;
  padding: 0;
}
.bb-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 52px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.bb-steps li:last-child {
  padding-bottom: 0;
}
/* Connecting line between steps */
.bb-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
/* Number badge */
.bb-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
/* Step title */
.bb-steps li strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  margin-top: 5px;
  line-height: 1.4;
}
[data-theme="dark"] .bb-steps li:not(:last-child)::after {
  background: rgba(255,255,255,.1);
}
/* Sidebar */
.bb-article-sidebar {
  position: sticky;
  top: 100px;
}
.bb-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.bb-sidebar-card h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.bb-sidebar-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.bb-sidebar-toc a:last-child { border-bottom: none; }
.bb-sidebar-toc a::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
}
.bb-sidebar-toc a:hover { color: var(--red); }
.bb-sidebar-toc a:hover::before { background: var(--red); }
.bb-sidebar-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  gap: 8px;
}
.bb-sidebar-meta li:last-child { border-bottom: none; }
.bb-sidebar-meta li span:first-child {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.bb-sidebar-meta li span:last-child {
  font-weight: 600;
  font-size: 12.5px;
  text-align: right;
}
.bb-sidebar-cta {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  text-align: center;
}
.bb-sidebar-cta p {
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
  margin-bottom: 14px !important;
  line-height: 1.6;
}
.bb-sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 10px 18px;
}
.bb-related-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.bb-related-links a:last-child { border-bottom: none; }
.bb-related-links a svg { flex-shrink: 0; color: var(--text-muted); transition: color var(--transition), transform .2s; }
.bb-related-links a:hover { color: var(--red); }
.bb-related-links a:hover svg { color: var(--red); transform: translateX(2px); }

[data-theme="dark"] .bb-sidebar-card { background: var(--bg-alt); }
[data-theme="dark"] .bb-callout { background: rgba(255,255,255,.04); }
[data-theme="dark"] .bb-filter-btn { background: var(--bg-alt); }

@media (max-width: 900px) {
  .bb-article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 56px;
  }
  .bb-article-sidebar {
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }
  .bb-sidebar-card { margin-bottom: 0; }
  .bb-sidebar-cta  { margin-bottom: 0; }
  /* TOC spans full width on its own row */
  .bb-sidebar-card--toc {
    grid-column: 1 / -1;
  }
  .bb-sidebar-toc { display: block; }
}
@media (max-width: 600px) {
  .bb-article-sidebar { grid-template-columns: 1fr; }
  .bb-article-layout { padding: 28px 0 44px; }
  .bb-article-body h2 { font-size: 19px; }
}
