/*
Theme Name: NGP Classic Starter
Author: Tarik
Version: 0.1
Description: Minimal classic theme to replace FSE and bring back Appearance → Menus.
Text Domain: ngp-classic
*/

/* =========================================================
   BASE
   ========================================================= */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

p, li {
  font-weight: 500;
}

/* ── İçerik alanı: paragraf + liste font boyutu ── */
.ngp-single-content p,
.ngp-single-content li {
  font-size: 20px;
  line-height: 1.8;
}

/* ── OL/UL: orijinal list-style korunuyor (start="N" çalışsın) ──
   ::marker font sorunu için li içine gizli bir ::before ekliyoruz.
   ::before görünmez ama li'nin font-weight'ini tarayıcıya ispat eder,
   böylece ::marker inherit zincirinden doğru weight'i alır.
   Asıl çözüm: li üzerindeki font-weight'i !important ile force etmek. ── */
.ngp-single-content ol li,
.ngp-single-content ul li {
  color: var(--li-color, inherit);
}

/* JS --li-font-weight: 700 set ettiğinde bu kural devreye girer */
.ngp-single-content ol li[style*="--li-font-weight: 700"],
.ngp-single-content ul li[style*="--li-font-weight: 700"] {
  font-weight: 700 !important;
}

.ngp-single-content ol li[style*="--li-font-weight: 700"]::marker,
.ngp-single-content ul li[style*="--li-font-weight: 700"]::marker {
  font-weight: 700 !important;
}

h1 {
  font-size: 55px;
  font-weight: 500;
  color: #005169;
  line-height: 1.2;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ngp-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 18px;
}

/* Post / page content width */
.entry-content,
main.site-main,
#primary {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --ngp-header-h:    0px;
  --ngp-bottomnav-h: 170px;
  --ngp-hero-pad:    16px;
  --bmwkH:  190px;
  --liH:     52px;
  --liGap:   14px;
}

/* =========================================================
   HERO (video + logo + language + nav)
   ========================================================= */
header.ngp-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.ngp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ngp-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Language top-right (desktop) */
.ngp-hero__lang {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 10;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ngp-hero__lang a.ngp-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

/* Logo */
.ngp-hero__center {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}

.ngp-hero__logoLink { display: inline-block; text-decoration: none; }

.ngp-hero__logo {
  width: min(570px, 80vw);
  height: auto;
  max-height: calc(100vh - var(--ngp-header-h) - var(--ngp-bottomnav-h) - (var(--ngp-hero-pad) * 2));
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* =========================================================
   NAV (DESKTOP)
   ========================================================= */
.ngp-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  padding: 0;
}

.ngp-bottom-nav__menu {
  list-style: none;
  margin: 0;
  width: 100%;
  height: 170px;
  min-height: 170px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  max-width: 100vw;
  padding-left:  clamp(24px, 4vw, 160px);
  padding-right: clamp(24px, 4vw, 160px);
  gap: clamp(14px, 1.6vw, 44px);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #005169;
}

.ngp-bottom-nav__menu > li { margin: 0; flex: 0 0 auto; }

.ngp-bottom-nav__menu > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.1vw + 6px, 30px);
  line-height: 1;
  color: inherit;
  white-space: nowrap;
}

.ngp-bottom-nav__menu > li.current-menu-item > a,
.ngp-bottom-nav__menu > li.current-menu-ancestor > a {
  background: rgba(255, 255, 255, 0.35);
}

/* Nav icons */
.ngp-bottom-nav__menu > li > a::before {
  content: "";
  display: block;
  width:  clamp(56px, 3.2vw, 80px);
  height: clamp(56px, 3.2vw, 80px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: none !important;
  box-shadow: none !important;
  opacity: 1;
}

.ngp-bottom-nav__menu .nav-home       > a::before { background-image: url("assets/icons/home.svg"); }
.ngp-bottom-nav__menu .nav-vision     > a::before { background-image: url("assets/icons/vision.svg"); }
.ngp-bottom-nav__menu .nav-products   > a::before { background-image: url("assets/icons/products.svg"); }
.ngp-bottom-nav__menu .nav-expertise  > a::before { background-image: url("assets/icons/expertise.svg"); }
.ngp-bottom-nav__menu .nav-news       > a::before { background-image: url("assets/icons/news.svg"); }
.ngp-bottom-nav__menu .nav-contact    > a::before { background-image: url("assets/icons/contact.svg"); }

@media (min-width: 901px) {
  .ngp-bottom-nav__menu > li:last-child {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  .ngp-bottom-nav__menu > li:last-child::before {
    content: "";
    flex: 0 0 clamp(12px, 2.5vw, 90px);
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .ngp-bottom-nav__menu {
    padding-left:  clamp(40px, 5vw, 140px);
    padding-right: clamp(40px, 5vw, 140px);
    gap: clamp(18px, 1.6vw, 34px);
  }
  .ngp-bottom-nav__menu > li > a {
    font-size: clamp(16px, 0.9vw + 4px, 22px);
    gap: 10px;
  }
  .ngp-bottom-nav__menu > li > a::before {
    width:  clamp(48px, 2.8vw, 66px);
    height: clamp(48px, 2.8vw, 66px);
  }
  .ngp-bottom-nav__menu > li:last-child::before {
    flex-basis: clamp(18px, 2.5vw, 80px);
  }
}

/* =========================================================
   MOBILE DRAWER MENU
   ========================================================= */

/* Hide mobile UI on desktop */
@media (min-width: 901px) {
  .ngp-mobilebar,
  .ngp-navToggle,
  .ngp-navClose,
  .ngp-navBackdrop { display: none !important; }
}

/* Mobile defaults (hidden) */
.ngp-mobilebar,
.ngp-navToggle,
.ngp-navClose,
.ngp-navBackdrop { display: none; }

@media (max-width: 900px) {
  header.ngp-hero { min-height: 600px; }

  .ngp-hero__lang { display: none !important; }

  .ngp-hero__logo {
    width: 300px;
    max-width: 80vw;
  }

  /* Mobile bar */
  .ngp-mobilebar {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: 84px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
  }

  /* Burger */
  .ngp-navToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 34px;
    font-weight: 700;
    color: #005169;
  }

  /* Language (mobile bar) */
  .ngp-mobilebar__lang {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    min-width: max-content;
  }
  .ngp-mobilebar__lang a.ngp-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 10px 16px;
    border-radius: 999px;
    color: #005169 !important;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    text-decoration: none;
    white-space: nowrap;
  }

  /* Backdrop */
  .ngp-navBackdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  /* Drawer */
  header.ngp-hero .ngp-bottom-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 380px);
    z-index: 2200;
    transform: translateX(-110%);
    transition: transform 240ms ease;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    padding: 18px;
    overflow: auto;
  }

  body.ngp-nav-open header.ngp-hero .ngp-bottom-nav { transform: translateX(0); }
  body.ngp-nav-open .ngp-navBackdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Close button */
  .ngp-navClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-left: auto;
    margin-bottom: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #005169;
    font-size: 40px;
    font-weight: 300;
  }

  /* Drawer list */
  .ngp-bottom-nav__menu {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 6px !important;
    margin: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .ngp-bottom-nav__menu > li > a {
    flex-direction: row !important;
    justify-content: flex-start !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    gap: 16px !important;
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }

  .ngp-bottom-nav__menu > li > a::before {
    width:  46px !important;
    height: 46px !important;
    flex:   0 0 46px !important;
    filter: none !important;
    box-shadow: none !important;
  }

  .ngp-bottom-nav__menu > li > a:hover,
  .ngp-bottom-nav__menu > li.current-menu-item > a {
    background: rgba(0, 81, 105, 0.10) !important;
  }

  body.ngp-nav-open { overflow: hidden; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.ngp-footer {
  background: #15556a;
  color: #fff;
}

.ngp-footer__inner {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 360px;
  padding: 40px 28px;
  display: grid;
  gap: 0;
  align-items: center;
  /* Default (mobile-first): single column */
  grid-template-columns: 1fr;
}

.ngp-footer__logo {
  background: none !important;
  width: 260px;
  max-width: 100%;
  height: auto;
  opacity: 0.65;
  display: block;
}

.ngp-footer__logo::before,
.ngp-footer__logo::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.ngp-footer__logo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.ngp-footer__title {
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.ngp-footer__line {
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.95;
}

.ngp-footer__names { white-space: normal; word-break: break-word; }

/* Her zaman iki satır versiyonu göster */
.ngp-footer__names--desktop { display: none; }
.ngp-footer__names--mobile  { display: block; }

.ngp-footer__mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}
.ngp-footer__mail:hover { text-decoration: underline; }

.ngp-footer__links {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ngp-footer__links a {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}
.ngp-footer__links a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER BADGES
   ========================================================= */
.ngp-footer__badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  flex-wrap: nowrap;
}

.ngp-footer__tuev-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--liGap);
}

.ngp-footer__linkedin img {
  height: var(--liH);
  width: auto;
  display: block;
}

.ngp-footer__badge--tuev {
  height: calc(var(--bmwkH) - var(--liH) - var(--liGap));
  width: auto;
  display: block;
}

.ngp-footer__badge--bmwk,
.ngp-footer__badge--eu {
  height: var(--bmwkH);
  width: auto;
  display: block;
}

.ngp-footer__badge { width: auto; display: block; }

/* =========================================================
   FOOTER RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .ngp-footer__inner {
    min-height: unset;
    padding: 28px 18px;
    grid-template-columns: 1fr;
    gap: 28px;
    overflow: hidden;
  }
  .ngp-footer__logoWrap {
    display: flex;
    justify-content: center;
  }
  .ngp-footer__text {
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .ngp-footer__title {
    font-size: 24px;
    word-break: break-word;
  }
  .ngp-footer__line {
    font-size: 17px;
    white-space: normal;
    word-break: break-word;
  }
  .ngp-footer__mail {
    font-size: 17px;
    word-break: break-all;
  }
  .ngp-footer__badges {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
  }
  .ngp-footer__logo { width: 200px; }
  :root { --bmwkH: 130px; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .ngp-footer__inner {
    grid-template-columns: 220px 1fr 520px;
    gap: 8px;
  }
  .ngp-footer__badges { padding-left: 10px; }
  :root { --bmwkH: 165px; }
}

@media (min-width: 1201px) {
  .ngp-footer__inner {
    grid-template-columns: 300px 1fr 740px;
  }
  .ngp-footer__badges { padding-left: 10px; }
}

/* =========================================================
   BULLET POINTS – renk düzeltmesi
   Sorun: Gutenberg'den kopyalanan içerikte renk has-xxx-color
   class'ı üzerinden <span>'a uygulanır, <li>'nin kendi color'ı
   siyah kalır. ::marker da <li>'den miras aldığı için siyah görünür.
   Çözüm: wp-elements-xxxx class'ının rengini <li>'ye taşıyıp
   ::marker'a inherit ettirmek.
   ========================================================= */

/* <li> icindeki <span>'in rengini <li>'ye tasiyoruz */
.wp-block-list li.has-text-color {
  color: var(--wp--style--color--link, inherit);
}

/* wp-elements-xxxx inline CSS'i <li>'yi kapsamiyor,
   bu yuzden her Gutenberg renk class'ini <li>'ye de uyguluyoruz */
[class*="wp-elements-"] li,
.wp-block-list li[class*="has-"][class*="-color"] {
  color: inherit;
}

/* <li> icindeki ilk span'in rengini <li>'ye yansit */
.wp-block-list li.has-text-color > span:first-child {
  display: inline;
}

/* Asil cozum: <li> rengini span'dan al, marker'a ver */
ul li::marker,
ol li::marker,
.wp-block-list li::marker {
  color: inherit !important;
}

/* Gutenberg has-xxx-color class'larini <li> seviyesine tasima */
.has-black-color.has-text-color        { color: var(--wp--preset--color--black) !important; }
.has-white-color.has-text-color        { color: var(--wp--preset--color--white) !important; }
.has-darkblue-color.has-text-color     { color: var(--wp--preset--color--darkblue, #163B66) !important; }
.has-vivid-red-color.has-text-color    { color: var(--wp--preset--color--vivid-red) !important; }
.has-luminous-vivid-orange-color.has-text-color { color: var(--wp--preset--color--luminous-vivid-orange) !important; }
.has-luminous-vivid-amber-color.has-text-color  { color: var(--wp--preset--color--luminous-vivid-amber) !important; }
.has-light-green-cyan-color.has-text-color      { color: var(--wp--preset--color--light-green-cyan) !important; }
.has-vivid-green-cyan-color.has-text-color      { color: var(--wp--preset--color--vivid-green-cyan) !important; }
.has-pale-cyan-blue-color.has-text-color        { color: var(--wp--preset--color--pale-cyan-blue) !important; }
.has-vivid-cyan-blue-color.has-text-color       { color: var(--wp--preset--color--vivid-cyan-blue) !important; }
.has-vivid-purple-color.has-text-color          { color: var(--wp--preset--color--vivid-purple) !important; }
.has-cyan-bluish-gray-color.has-text-color      { color: var(--wp--preset--color--cyan-bluish-gray) !important; }
.has-pale-pink-color.has-text-color             { color: var(--wp--preset--color--pale-pink) !important; }

/* =========================================================
   IMAGE FRAMES
   ========================================================= */
.entry-content img.ngp-img-frame,
main img.ngp-img-frame {
  border-width: 4px;
  border-style: solid;
  border-radius: 28px;
  box-sizing: border-box;
}

.entry-content img.ngp-frame-petrol,
main img.ngp-frame-petrol   { border-color: #23657E; }

.entry-content img.ngp-frame-hellblau,
main img.ngp-frame-hellblau { border-color: #2A72B8; }

.entry-content img.ngp-frame-dunkelblau,
main img.ngp-frame-dunkelblau { border-color: #163B66; }

/* =========================================================
   NEWS PAGE TYPOGRAPHY
   ========================================================= */
.ngp-news-page-title {
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 55px;
  line-height: 1.1;
  margin: 0 0 60px;
  color: #005169;
}

.ngp-news-post-title {
  margin: 0 0 10px;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
}

.ngp-news-post-title a {
  color: #005169;
  text-decoration: none;
}
.ngp-news-post-title a:hover { text-decoration: underline; }

.ngp-news-date {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 400;
  color: #009289;
}

.ngp-news-excerpt {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  color: #005169;
}

@media (max-width: 900px) {
  .ngp-news-page-title { font-size: 42px; margin-bottom: 34px; }
  .ngp-news-post-title { font-size: 28px; }
  .ngp-news-date       { font-size: 18px; }
  .ngp-news-excerpt    { font-size: 20px; }
}

/* =========================================================
   NEWS LIST LAYOUT
   ========================================================= */
.ngp-news-item {
  display: flex;
  gap: 60px;
  margin-bottom: 80px;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 60px;
}

.ngp-news-content {
  flex: 1;
  min-width: 0;
}

.ngp-news-thumb {
  width: 520px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
}

.ngp-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ngp-news-readmore {
  color: #17A29A;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}
.ngp-news-readmore:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .ngp-news-item {
    flex-direction: column;
    gap: 18px;
  }
  .ngp-news-thumb { width: 100%; }
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post main.ngp-wrap {
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
  padding-left: 18px;
  padding-right: 18px;
}

.ngp-single-post {
  max-width: 1000px;
  margin: 0 auto;
}

.ngp-single-content {
  max-width: 1000px;
}

/* Main post title */
.single-post > main.ngp-wrap > article > h1,
.single-post > main.ngp-wrap > article > h2,
.ngp-single-post article > h1,
.ngp-single-post article > h2 {
  font-size: 84px;
  font-weight: 600;
  color: #005169;
  text-align: center;
  line-height: 1.15;
  margin: 10px 0 28px;
  hyphens: none !important;
}

/* Body text */
.single-post main.ngp-wrap article {
  font-size: 20px !important;
  line-height: 1.85 !important;
  color: #23657E;
}

.single-post main.ngp-wrap article p,
.single-post main.ngp-wrap article span,
.single-post main.ngp-wrap article li {
  font-size: 20px !important;
  line-height: 1.85 !important;
  font-weight: 500 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: none !important;
}

.single-post main.ngp-wrap ol li,
.single-post main.ngp-wrap ul li,
.page main.ngp-wrap ol li,
.page main.ngp-wrap ul li {
  font-size: 20px !important;
  line-height: 1.85 !important;
  font-weight: 500 !important;
}

.single-post main.ngp-wrap article p { margin: 0 0 22px; }

.single-post main.ngp-wrap article ol li::marker,
.single-post main.ngp-wrap article ul li::marker {
  color: inherit;
  font-size: inherit;
}

.single-post main.ngp-wrap article ol li,
.single-post main.ngp-wrap article ul li {
  color: inherit;
}

ol li::marker,
ul li::marker {
  color: inherit;
}

/* Links */
.single-post main.ngp-wrap article a {
  color: #17A29A;
  font-weight: 700;
  text-decoration: none;
}
.single-post main.ngp-wrap article a:hover { text-decoration: underline; }

/* Images */
.single-post main.ngp-wrap article img {
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 28px;
}
.single-post main.ngp-wrap article .aligncenter {
  display: block;
  margin: 28px auto;
}

/* Headings inside content */
.single-post main.ngp-wrap article h1,
.single-post main.ngp-wrap article h1 span { font-size: 44px !important; }

.single-post main.ngp-wrap article h2,
.single-post main.ngp-wrap article h2 span { font-size: 36px !important; }

.single-post main.ngp-wrap article h3,
.single-post main.ngp-wrap article h3 span { font-size: 30px !important; }

.single-post main.ngp-wrap article h4,
.single-post main.ngp-wrap article h4 span { font-size: 24px !important; }

.single-post main.ngp-wrap article h5,
.single-post main.ngp-wrap article h5 span { font-size: 20px !important; }

.single-post main.ngp-wrap article h6,
.single-post main.ngp-wrap article h6 span { font-size: 18px !important; }

.single-post :is(article, .wp-block-post-content) :is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.25;
  font-weight: 600;
  margin: 40px 0 18px;
  hyphens: none !important;
}

@media (max-width: 900px) {
  .single-post > main.ngp-wrap > article > h1,
  .single-post > main.ngp-wrap > article > h2 {
    font-size: 42px;
  }
  .single-post main.ngp-wrap article,
  .single-post main.ngp-wrap article p,
  .single-post main.ngp-wrap article span,
  .single-post main.ngp-wrap article li {
    font-size: 20px !important;
    line-height: 1.8 !important;
  }
}

/* =========================================================
   HOMEPAGE – FIXED TEMPLATE
   ========================================================= */
.ngp-homepage-fixed {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Main page title */
html body.home main.ngp-homepage-fixed > h1.ngp-homepage-title {
  display: block !important;
  margin: 10px 0 55px !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: center !important;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-size: 42px !important;
  line-height: 67.2px !important;
  font-weight: 700 !important;
  color: #005169 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  float: none !important;
  clear: both !important;
}

@media (max-width: 900px) {
  html body.home main.ngp-homepage-fixed > h1.ngp-homepage-title {
    font-size: 32px !important;
    line-height: 44px !important;
    margin: 0 0 32px !important;
  }
}

/* Row */
.ngp-homepage-fixed .ngp-home-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 90px !important;
  margin: 0 0 120px !important;
  width: 100% !important;
}

.ngp-homepage-fixed .ngp-home-row--reverse {
  flex-direction: row-reverse !important;
}

.ngp-homepage-fixed .ngp-home-col {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.ngp-homepage-fixed .ngp-home-col--image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Default image */
.ngp-homepage-fixed .ngp-home-img {
  display: block !important;
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  border-radius: 40px !important;
  border: 5px solid #009289 !important;
  box-shadow: 6px 6px 9px 0 rgba(0, 0, 0, 0.2) !important;
  box-sizing: border-box !important;
}

/* Products image */
.ngp-homepage-fixed .ngp-home-img--products {
  display: block !important;
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  border-radius: 40px !important;
  border: 5px solid #005FAB !important;
  box-shadow: 6px 6px 9px 0 rgba(0, 0, 0, 0.2) !important;
  box-sizing: border-box !important;
}

/* Team image */
.ngp-homepage-fixed .ngp-home-img--team {
  width: 100% !important;
  max-width: 634.516px !important;
  aspect-ratio: 5091 / 3171 !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 40px !important;
  border: 5px solid #692E85 !important;
  box-shadow: 6px 6px 9px 0 rgba(0, 0, 0, 0.2) !important;
  box-sizing: border-box !important;
}

/* Headings */
.ngp-homepage-fixed .ngp-home-col--text h2 {
  margin: 0 0 24px !important;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-size: 36px !important;
  line-height: 54px !important;
  font-weight: 900 !important;
  color: #009289 !important;
  text-align: left !important;
}

.ngp-homepage-fixed .ngp-home-col--text h2.ngp-products-title { color: #005FAB !important; }
.ngp-homepage-fixed .ngp-home-col--text h2.ngp-team-title     { color: #692E85 !important; }

/* Paragraph base */
.ngp-homepage-fixed .ngp-home-col--text p {
  margin: 0 0 18px !important;
  display: block !important;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-size: 20px !important;
  line-height: 32px !important;
  font-weight: 500 !important;
  color: #009289 !important;
  text-align: left !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  -webkit-font-smoothing: antialiased;
}

/* Paragraph variants */
.ngp-homepage-fixed .ngp-home-col--text p.ngp-home-lead    { color: #009289 !important; }
.ngp-homepage-fixed .ngp-home-col--text p.ngp-home-body    { color: #005169 !important; }
.ngp-homepage-fixed .ngp-home-col--text p.ngp-products-lead { color: #005FAB !important; }
.ngp-homepage-fixed .ngp-home-col--text p.ngp-products-body { color: #005169 !important; font-weight: 450 !important; }
.ngp-homepage-fixed .ngp-home-col--text p.ngp-team-lead    { color: #692E85 !important; }
.ngp-homepage-fixed .ngp-home-col--text p.ngp-team-body    { color: #005169 !important; }

/* Links */
.ngp-homepage-fixed .ngp-home-col--text a {
  color: #17A29A !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.ngp-homepage-fixed .ngp-home-col--text a:hover { text-decoration: underline !important; }

.ngp-homepage-fixed .ngp-home-col--text a.ngp-products-link {
  margin-left: 6px !important;
  color: #005FAB !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
.ngp-homepage-fixed .ngp-home-col--text a.ngp-products-link:hover { text-decoration: underline !important; }

.ngp-homepage-fixed .ngp-home-col--text a.ngp-team-link {
  margin-left: 6px !important;
  color: #692E85 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
.ngp-homepage-fixed .ngp-home-col--text a.ngp-team-link:hover { text-decoration: underline !important; }

/* Dots */
.ngp-homepage-fixed .ngp-home-dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 50px !important;
  margin: 20px 0 110px !important;
  width: 100% !important;
}

.ngp-homepage-fixed .ngp-home-dots img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* =========================================================
   HOMEPAGE SPONSORS
   ========================================================= */
.ngp-homepage-fixed .ngp-home-sponsors {
  width: 100%;
  margin: 80px 0 40px !important;
}

.ngp-homepage-fixed .ngp-home-sponsors__inner {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 50px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.ngp-homepage-fixed .ngp-home-sponsor {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 200px !important;
  box-sizing: border-box !important;
}

.ngp-homepage-fixed .ngp-home-sponsor img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
}

.ngp-homepage-fixed .ngp-home-sponsor--logo1 { width: 192.13px !important; }
.ngp-homepage-fixed .ngp-home-sponsor--logo1 img { width: 192.13px !important; height: 200px !important; }

.ngp-homepage-fixed .ngp-home-sponsor--logo2 { width: 197.39px !important; }
.ngp-homepage-fixed .ngp-home-sponsor--logo2 img { width: 197.39px !important; height: 200px !important; }

.ngp-homepage-fixed .ngp-home-sponsor--logo3 { width: 175px !important; }
.ngp-homepage-fixed .ngp-home-sponsor--logo3 img { width: 175px !important; height: 100px !important; }

.ngp-homepage-fixed .ngp-home-sponsor--logo4 { width: 443.98px !important; }
.ngp-homepage-fixed .ngp-home-sponsor--logo4 img { width: 443.98px !important; height: 100px !important; }

/* Responsive */
@media (max-width: 1100px) {
  .ngp-homepage-fixed .ngp-home-row {
    gap: 44px !important;
    margin-bottom: 90px !important;
  }
  .ngp-homepage-fixed .ngp-home-col--text h2 {
    font-size: 32px !important;
    line-height: 46px !important;
  }
  .ngp-homepage-fixed .ngp-home-col--text p {
    font-size: 19px !important;
    line-height: 30px !important;
  }
}

@media (max-width: 900px) {
  .ngp-homepage-fixed .ngp-home-row,
  .ngp-homepage-fixed .ngp-home-row--reverse {
    flex-direction: column !important;
    gap: 28px !important;
    margin-bottom: 60px !important;
  }
  .ngp-homepage-fixed .ngp-home-col { width: 100% !important; }
  .ngp-homepage-fixed .ngp-home-col--text h2 {
    font-size: 28px !important;
    line-height: 40px !important;
    margin-bottom: 16px !important;
  }
  .ngp-homepage-fixed .ngp-home-col--text p {
    font-size: 18px !important;
    line-height: 28px !important;
  }
}
/* h1 responsive */
@media (max-width: 900px) {
  h1 {
    font-size: 36px;
  }
}

/* =========================================================
   DATENSCHUTZERKLÄRUNG (DE: 696, EN: 3)
   ========================================================= */
.page-id-696 main.ngp-wrap,
.page-id-3 main.ngp-wrap {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   EXPERTISE (DE: 1654, EN: 1764)
   ========================================================= */
.page-id-1654 main.ngp-wrap,
.page-id-1764 main.ngp-wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* =========================================================
   MOBİL FOOTER – Düzenlemeler (≤ 430px)
   ========================================================= */
@media (max-width: 430px) {

  /* Metin bloğu: sağa yasla */
  .ngp-footer__text {
    padding-left: 64px !important;
  }

  /* Impressum + Datenschutz: yan yana ve ortalı */
  .ngp-footer__links {
    justify-content: center !important;
    flex-wrap: nowrap !important;
    padding-left: 0 !important;
    margin-left: -64px !important;
    width: calc(100% + 64px) !important;
  }

}

/* =========================================================
   404 SAYFASI
   ========================================================= */
.ngp-404-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  text-align: center;
  padding: 40px 24px;
}

.ngp-404 {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ngp-404__code {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(100px, 22vw, 180px);
  font-weight: 800;
  line-height: 1;
  color: #005169;
  letter-spacing: -6px;
  margin-bottom: 8px;
}

.ngp-404__title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  color: #2A72B8;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.ngp-404__subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  line-height: 1.7;
  margin: 0 0 40px;
  max-width: 420px;
}

.ngp-404__btn {
  display: inline-block;
  background: #005169;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s ease;
}

.ngp-404__btn:hover {
  background: #009289;
  color: #fff;
}

@media (max-width: 600px) {
  .ngp-404__code {
    letter-spacing: -3px;
  }
  .ngp-404__title {
    font-size: clamp(22px, 6vw, 30px);
  }
}
