/* ==========================================================================
 * Practice Exams — Unified Global Site Header (ALL 154 Pages — Pixel-Identical)
 * Warm Studio Paper (#FAF8F5) • Mobile-First & FB In-App Webview (360px+) Safe
 * ========================================================================== */

body.pe-has-full-header {
  padding: 0 0 80px 0 !important;
}

body.pe-has-full-header > .container {
  padding: 22px 16px 0 16px !important;
  box-sizing: border-box !important;
}

.pe-global-header {
  position: relative;
  z-index: 40;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.2;
}

.pe-global-header.pe-gh-full {
  background: rgba(250, 248, 245, 0.96);
  border-bottom: 1.5px solid #E8E2D9;
}

.pe-global-header.pe-gh-full .pe-gh-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
}

.pe-gh-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Left: Circular Shield Crest + Brand Wordmark */
.pe-gh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0F172A;
  flex-shrink: 0;
  min-width: 0;
}

.pe-gh-logo {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 1.5px solid #E2DDD5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.09);
  flex-shrink: 0;
  display: block;
}

.pe-gh-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pe-gh-name {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pe-gh-sub {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: #64748B !important;
  white-space: nowrap;
}

/* Center: Warm-Paper Segmented 3-Tab Navigation */
.pe-gh-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F3EFE9;
  border: 1px solid #E2DDD5;
  padding: 4px;
  border-radius: 999px;
  box-sizing: border-box;
}

.pe-gh-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pe-gh-tab:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.8);
}

.pe-gh-tab.active {
  background: #2563EB;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.24);
}

/* Right: Compact YouTube Video Tutorials Pill */
.pe-gh-yt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px 0 7px;
  background: #FFFFFF;
  border: 1.5px solid #E2DDD5;
  border-radius: 999px;
  text-decoration: none;
  color: #0F172A;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pe-gh-yt:hover {
  border-color: #FCA5A5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.16);
}

.pe-gh-yt-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #DC2626;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pe-gh-yt-prefix {
  display: inline;
}

@media (max-width: 900px) {
  .pe-gh-yt-prefix {
    display: none;
  }
}

/* Mobile & Tablet (<= 780px): Row 1 = Brand + Tutorials, Row 2 = Full-Width 3-Tab Segmented Bar */
@media (max-width: 780px) {
  body.pe-has-full-header > .container {
    padding: 16px 12px 0 12px !important;
  }

  .pe-global-header.pe-gh-full .pe-gh-inner {
    padding: 12px 14px;
  }

  .pe-gh-inner {
    row-gap: 11px;
  }

  .pe-gh-logo {
    width: 36px !important;
    height: 36px !important;
  }

  .pe-gh-name {
    font-size: 16.5px !important;
  }

  .pe-gh-sub {
    display: none !important;
  }

  .pe-gh-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }

  .pe-gh-tab {
    height: 40px;
    padding: 0 4px;
    font-size: 13px !important;
    border-radius: 10px;
  }

  .pe-gh-yt {
    height: 34px;
    padding: 0 11px 0 6px;
    font-size: 12.5px !important;
  }

  .pe-gh-yt-icon {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
 * Practice Exams — Unified Global Site Footer (ALL 154 Pages — Pixel-Identical)
 * ========================================================================== */

.pe-global-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 32px 0 0 0 !important;
  padding: 22px 16px 28px 16px !important;
  border-top: 1px solid #E5DFD5 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  display: block !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background: transparent !important;
  overflow: visible !important;
}

.pe-gf-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pe-gf-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.pe-gf-links a {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  padding: 2px 0 !important;
  transition: color 0.15s ease;
}

.pe-gf-links a:hover {
  color: #2563EB !important;
  text-decoration: underline !important;
}

.pe-gf-copy {
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: #64748B !important;
}

@media (max-width: 520px) {
  .pe-global-footer {
    padding: 20px 12px 26px 12px !important;
  }

  .pe-gf-links {
    gap: 8px 14px !important;
  }

  .pe-gf-links a {
    font-size: 12.5px !important;
  }
}
