/* =====================================================================
   Papara Invest: header, language pill, Blog pill, mobile drawer.
   Full replacement for Appearance > Customize > Additional CSS.
   ===================================================================== */

/* ---------- 1. Desktop menu, both languages ---------- */

/* Base rules the theme only applies to #menu-main, repeated for the English menu */
header#header #menu-main-en { margin: 0 0 0 38px; }
header#header #menu-main-en li { margin: 0 34px 0 0; display: inline-block; }
header#header #menu-main-en li a { line-height: 40px; font-weight: 400; }
header#header #menu-main-en li.current_page_item a { color: #000c2d; }
header#header #menu-main-en li ul { display: none; }

/* One flex row, nothing wraps, buttons pinned to the right end */
header#header #menu-main,
header#header #menu-main-en {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
header#header #menu-main > li,
header#header #menu-main-en > li {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Gaps: 20px at every width, the English labels are longer than the Turkish ones */
header#header #menu-main li,
header#header #menu-main-en li { margin: 0 20px 0 0; }
header#header #menu-main,
header#header #menu-main-en { margin: 0 0 0 24px; }

/* Below 1240px the full row no longer fits, so use the hamburger drawer (the theme's default is 1024px) */
@media (max-width: 1239px) {
  header#header .pc-menu { display: none !important; }
  header#header .navbar.ml-auto { display: block !important; }
  header#header nav#bar .pi-lang-desktop { display: none !important; }
}

/* ---------- 2. Terminal button (primary) ---------- */

header#header #menu-main li.nav-cta,
header#header #menu-main-en li.nav-cta { float: none; order: 11; margin: 0; }

header#header [id^="menu-main"] li.nav-cta > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #080B0E;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s ease;
}
header#header [id^="menu-main"] li.nav-cta > a:hover,
header#header [id^="menu-main"] li.nav-cta > a:focus { color: #fff; opacity: .85; text-decoration: none; }
header#header [id^="menu-main"] li.nav-cta > a::after {
  content: "";
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin: 0;
  background: url("https://paparainvest.com/wp-content/uploads/2025/04/bx-chevron-right.svg.png") no-repeat center;
  background-size: 15px 15px;
}

/* ---------- 3. Papara Invest Blog (secondary) ---------- */

header#header #menu-main li.nav-secondary,
header#header #menu-main-en li.nav-secondary { float: none; order: 10; margin: 0 12px 0 auto; }

header#header [id^="menu-main"] li.nav-secondary > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  background: #F4F6F8;
  color: #000c2d;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
header#header [id^="menu-main"] li.nav-secondary > a:hover,
header#header [id^="menu-main"] li.nav-secondary > a:focus { background: #E9EDF1; color: #000c2d; }
header#header [id^="menu-main"] li.nav-secondary > a::after {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000c2d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>") no-repeat center;
  background-size: 14px 14px;
}

/* ---------- 4. Language pill, desktop ---------- */

header#header nav#bar .pi-lang-desktop { margin: 8px 0 0 8px; align-self: flex-start; flex: 0 0 auto; }
.pi-lang-btn { height: 40px; padding: 0 14px 0 10px; border-radius: 8px; white-space: nowrap; }
.pi-chev { transform: rotate(45deg); margin: -3px 2px 0 0; }
.pi-lang-btn[aria-expanded="true"] .pi-chev { transform: rotate(-135deg); margin: 3px 2px 0 0; }
/* To hide the pill temporarily, uncomment the next line */
/* .pi-lang { display: none !important; } */

/* ---------- 5. Mobile drawer ---------- */

/* The drawer menu is a column with a fixed order: links, then Blog, then Terminal, whatever the menu order.
   The theme prints the drawer menu as #menu-main-1 in both languages. */
header#header .navbar div.collapse.show #menu-main-1 { display: flex; flex-direction: column; clear: both; }
header#header .navbar div.collapse.show #menu-main-1 > li { float: none; width: 100%; }
header#header .navbar div.collapse.show #menu-main-1 li.nav-secondary { order: 10; margin: 16px 0 0; }
header#header .navbar div.collapse.show #menu-main-1 li.nav-cta { order: 11; margin: 12px 0 0; }
/* No divider line on the link that follows a button in the menu order */
header#header .navbar div.collapse.show #menu-main-1 li.nav-secondary + li a,
header#header .navbar div.collapse.show #menu-main-1 li.nav-cta + li a { border-top: 0; }

/* Terminal button */
header#header .navbar div.collapse.show #menu-main-1 li.nav-cta > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 48px;
  padding: 0 20px;
  border-top: 0;
  color: #fff;
  background: #080B0E;
  border-radius: 8px;
  line-height: 1;
  font-size: 16px;
  font-weight: 600;
}

/* Blog pill */
header#header .navbar div.collapse.show #menu-main-1 li.nav-secondary > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 48px;
  padding: 0 20px;
  border-top: 0;
  color: #000c2d;
  background: #F4F6F8;
  border-radius: 8px;
  line-height: 1;
  font-size: 16px;
  font-weight: 600;
}
header#header .navbar div.collapse.show #menu-main-1 li.nav-secondary > a::after {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000c2d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>") no-repeat center;
  background-size: 14px 14px;
}

/* Language pill: undo the theme's round close-button styling that hits every button in the drawer */
header#header .navbar div.collapse .pi-lang-mobile { display: block; margin: 24px 24px 0; }
header#header .navbar div.collapse .pi-lang-btn {
  position: static;
  width: auto;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 8px;
  background: #F4F6F8;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #000c2d;
}
header#header .navbar div.collapse .pi-lang-btn::before,
header#header .navbar div.collapse .pi-lang-btn::after { display: none; content: none; }
header#header .navbar div.collapse .pi-lang-menu {
  position: static;
  margin: 8px 0 0;
  padding: 8px;
  box-shadow: none;
  min-width: 0;
  max-width: 240px;
}
header#header .navbar div.collapse.show .pi-lang-menu li { min-width: 0; float: none; display: block; margin: 0; }
header#header .navbar div.collapse.show .pi-lang-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 0;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1;
  color: #000c2d;
}

/* ---------- 6. English page IDs: the per-page rules the theme applies to the Turkish IDs ---------- */

/* Hide the h1 page title where the Turkish twin hides it (Home, Services, Contact) */
body.page-id-904509 #page-title,
body.page-id-904658 #page-title,
body.page-id-904434 #page-title { display: none !important; }

/* About: Turkish hides only the link text */
body.page-id-904661 #page-title a { display: none !important; }

/* DriveWealth Disclosures: standalone page, same styling as the Turkish one */
body.page-id-904784 #header, body.page-id-904784 #footer { display: none; }
body.page-id-904784 #content h1#page-title { margin: 32px 0; }
body.page-id-904784 #content h1#page-title a { display: none; }
body.page-id-904784 #content strong { color: #000; margin-bottom: 10px; display: block; }
body.page-id-904784 #content ul { margin: 0; padding: 0 0 0 20px; }
body.page-id-904784 #content ul a { font-size: 15px; }
body.page-id-904784 #content ul li { margin: 0 0 5px; }
@media (max-width: 768px) {
  body.page-id-904784 #content h1#page-title a { font-size: 25px; line-height: 30px; }
  body.page-id-904784 p strong { font-size: 18px !important; }
  body.page-id-904784 p { font-size: 16px !important; }
}

/* Public announcement and professional-clients notice: no header or footer, like the Turkish 5050 */
body.page-id-905050 #header, body.page-id-905050 #footer,
body.page-id-905150 #header, body.page-id-905150 #footer { display: none; }
body.page-id-905050 #page-title, body.page-id-905150 #page-title { margin: 15px 0 0 !important; }
body.page-id-905050 #page-title a, body.page-id-905150 #page-title a { font-size: 25px !important; }

/* Legal pages, for when they go English (privacy policy, privacy notice, cookie policy) */
.page-id-904653 #content * { color: #8B959E; font-size: 18px; font-style: normal; font-weight: 400; line-height: 26px; margin-bottom: 16px; }
.page-id-904653 #content li::marker { font-size: 12px; }
.page-id-904653 #content ul ul { margin-top: 16px; }
.page-id-904653 #content * a { color: #000; text-decoration: none; font-weight: 400; }
.page-id-904718 p, .page-id-904718 p a, .page-id-904731 p, .page-id-904731 p a { font-size: 18px; }
