/*
Theme Name: AAPTP
Author: Your Name
Description: A clean, minimalist starter theme named AAPTP.
Version: 1.4.60
Text Domain: aaptp
*/

@font-face {
  /* Correct font family name: Aptos */
  font-family: "Aptos";
  /* point to the actual filename in assets/fonts */
  src: url("./assets/fonts/Aptos.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --np-primary-color: #1a2956;
  --np-secondary-color: #178db9;
  --np-header-gradient: linear-gradient(
    180deg,
    var(--np-primary-color) 0%,
    var(--np-secondary-color) 100%
  );

  /* Text & UI */
  --np-text-color: #000000;
  --np-muted: #5c5c5c;
  --np-gray-666: #666666;
  --np-seprator: #8c95a6;
  --np-border-color: #8c95a6;
  --np-light-border: #cccccc;
  --np-light-2: #dee2e6;
  --np-disabled-bg: #f5f5f5;
  --np-active-indexer-bg: #926e2b;

  /* Controls */
  --np-btn-hover-color: #fff;
  --np-btn-hover-bg: #273b7b;
  --np-btn-hover-border-color: var(--np-primary-color);

  /* Typography */
  --np-font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  --np-link-color: #b18634;
  --np-color-white: #ffffff;
  --np-paragraph-fs: 16px;
  --np-border-radius: 8px;
  --np-h1-fs: 30px;
  --np-h2-fs: 24px;
  --np-h3-fs: 20px;
  --np-h4-fs: 18px;
  --np-h1-lg-fs: 32px;
  --np-h2-lg-fs: 26px;
  --np-h3-lg-fs: 22px;
  --np-h4-lg-fs: 20px;
  --np-peragraph-lg-fs: 18px;
  --np-h1-sm-fs: 28px;
  --np-h2-sm-fs: 22px;
  --np-h3-sm-fs: 18px;
  --np-h4-sm-fs: 16px;
  --np-peragraph-sm-fs: 14px;

  /****** Mobile Responsive ******/
  
  --np-mbl-h1-fs:28px;
  --np-mbl-h1-lg-fs:30px;
  --np-mbl-h1-sm-fs:26px;
}

/* Base typography */
body {
  font-family:
    var(--np-font-family),
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--np-text-color);
}

.container-fluid {
  max-width: 1440px;
}

a {
  font-family: var(--np-font-family);
  line-height: 25.6px;
}

/* ==============================
   FIXED PIXEL SPACING UTILITIES
   ============================== */

/* ------------------------------
   PADDING CLASSES
   ------------------------------ */
.color-light {
  color: var(--np-color-white);
}

/* All sides */
.p-12 {
  padding: 12px;
}

.p-20 {
  padding: 20px;
}

.p-32 {
  padding: 32px;
}

.ps-47 {
  padding-left: 47px;
}

.pe-20 {
  padding-right: 20px;
}

/* Left & Right only */
.px-12 {
  padding-left: 12px;
  padding-right: 12px;
}

.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.px-32 {
  padding-left: 32px;
  padding-right: 32px;
}

/* Top & Bottom only */
.py-12 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.py-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.py-32 {
  padding-top: 32px;
  padding-bottom: 32px;
}

.py-30 {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* ------------------------------
   MARGIN CLASSES
   ------------------------------ */

/* All sides */
.m-10 {
  margin: 10px;
}

.m-18 {
  margin: 18px;
}

/* Left & Right only */
.mx-10 {
  margin-left: 10px;
  margin-right: 10px;
}

.ms-10 {
  margin-left: 10px;
}

.me-10 {
  margin-right: 10px;
}

.mx-18 {
  margin-left: 18px;
  margin-right: 18px;
}

/* Top & Bottom only */
.my-10 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.my-18 {
  margin-top: 18px;
  margin-bottom: 18px;
}

.my-10 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.my-18 {
  margin-top: 18px;
  margin-bottom: 18px;
}

.my-30 {
  margin-top: 30px;
}

/* ------------------------------
   OPTIONAL: BOX-SIZING FOR SAFETY
   ------------------------------ */
.p-12,
.p-20,
.p-32,
.px-12,
.px-20,
.px-32,
.py-12,
.py-20,
.py-32,
.m-10,
.m-18,
.mx-10,
.mx-18,
.my-10,
.my-18 {
  box-sizing: border-box;
}

.mt-20 {
  margin-top: 20px;
}

.pb-20 {
  padding-bottom: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Navbar background (Bootstrap override) */
.bg-light.nav-bg {
  background: linear-gradient(
    to right,
    var(--np-primary-color),
    var(--np-secondary-color)
  );
}

.primary-nav #menu-menu-1 .menu-item:nth-child(1) a {
  padding-left: 0 !important;
}

/* Optional gradient navbar */
.nav-bg.gradient {
  background: linear-gradient(
    90deg,
    var(--np-primary-color),
    var(--np-secondary-color)
  ) !important;
}

/* Navbar toggler icon color */
.navbar-toggler-icon {
  background-image: url("/wp-content/themes/AAPTP/assets/icons/mobile-menu-icon.svg");
}

.site-logo {
  max-width: 384px;
  height: auto;
}

/* Search bar */
.search-bar {
  width: 300px;
}

.custom-card:hover {
  box-shadow: 0px 0px 5px 0.3rem #ddddddc4;
}

.seprator {
  background-color: var(--np-seprator);
  width: 1px;
  height: auto;
}

a.nav-link.link-dark.px-3 {
  font-size: 18px;
}

/* Utility background classes */
.primary-bg {
  background-color: var(--np-primary-color);
}

.primary-border {
  border-color: var(--np-primary-color);
}

.secondary-bg {
  background-color: var(--np-secondary-color);
}

/* Text utilities */
.text-primary-custom {
  color: var(--np-primary-color);
}

.text-secondary-custom {
  color: var(--np-secondary-color);
}

/* Rounded utility */
.rounded-custom {
  border-radius: var(--np-border-radius);
}

.primary-nav .link-light.active {
  font-weight: 700;
}

.primary-nav .menu-item {
  padding: 3px 0;
}

.primary-nav .menu-item a {
  color: #fff;
  font-family: var(--np-font-family);
  font-size: 16px !important;
  font-weight: 400;
  padding: 10px 15px;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav #menu-menu-1 .menu-item .sub-menu a:nth-child(1) {
  padding: inherit;
  padding-left: 20px !important;
}

.primary-nav .navbar-nav .menu-item:first-child {
  padding-left: 0;
}

.nav.menu-right li {
  position: relative;
}

.nav.menu-right li::after {
  content: "";
  position: absolute;
  right: 0;
  width: 0.5px;
  top: 52%;
  transform: translateY(-50%);
  background-color: var(--np-seprator);
  height: calc(100% - 3px);
}

.nav.menu-right li:last-child::after {
  display: none;
}

.btn:hover,
.btn:focus,
.btn:active {
  color: var(--np-btn-hover-color);
  background-color: var(--np-btn-hover-bg);
  border-color: var(--np-border-color);
}

h1 {
  font-family: var(--np-font-family);
  font-weight: 700;
  font-style: normal;
  font-size: var(--np-h1-fs);
  line-height: normal;
  color: var(--np-primary-color);
  text-transform: capitalize;
}

h2 {
  font-family: var(--np-font-family);
  font-weight: 700;
  font-style: normal;
  font-size: var(--np-h2-fs) !important;
  line-height: normal;
  color: var(--np-primary-color);
}

h3 {
  font-family: var(--np-font-family);
  font-weight: 700;
  font-style: normal;
  font-size: var(--np-h3-fs);
  line-height: 32px;
  color: var(--np-primary-color);
}

h4 {
  font-family: var(--np-font-family);
  font-weight: 700;
  font-style: italic;
  font-size: var(--np-h4-fs);
  line-height: 28.8px;
  color: var(--np-primary-color);
}

.next,
.previous {
  font-family: var(--np-font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 25.8px;
}
.previous a,
.previous-figure a,
.previous-table a {
  float: left;
}
.next a,
.next-figure a,
.next-table a {
  float: right;
}
p,
li {
  font-family: var(--np-font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
}

/* Gold Social Buttons */
.btn-napa-gold {
  background-color: #b38e44;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-napa-gold:hover {
  background-color: #8c6d31;
  color: white;
}

/* Sidebar Styling */
aside .widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 4px;
}

aside {
  background-color: #f5f7f9;
}

.bg-wheat {
  background-color: #f2e9d9;
}

.border-gold::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  left: -5px;
  background-color: #b38e44 !important;
  border-radius: 10px;
}

.btn-primary-light {
  color: var(--np-primary-color);
  background-color: var(--np-color-white);
  border: none;
}

.btn-primary-dark {
  background-color: var(--np-primary-color);
  color: var(--np-color-white);
}

.btn-primary-dark .btn-arrow {
  filter: brightness(0) invert(1);
}

.btn-primary-dark:hover .btn-arrow {
  filter: none;
}

.btn-primary {
  padding: 10.5px 35px;
}

.btn-primary-dark:hover {
  background-color: var(--np-color-white) !important;
  color: var(--np-primary-color) !important;
}

.btn {
  font-weight: 600;
  line-height: 25.6px;
  letter-spacing: 0;
  font-family: var(--np-font-family);
}

.slider-content a img.btn-arrow {
  margin-left: 6px;
}

.loader {
  position: sticky;
  margin: -25px auto;
  top: 60%;
  width: 50px;
  aspect-ratio: 1;
  display: none;
  -webkit-mask: conic-gradient(from 15deg, #0000, #000);
  mask: conic-gradient(from 15deg, #0000, #000);
  animation: l26 1s infinite steps(12);
  z-index: 5;
}

.loader,
.loader:before,
.loader:after {
  background:
    radial-gradient(closest-side at 50% 12.5%, #000000 96%, #0000) 50% 0/20% 80%
      repeat-y,
    radial-gradient(closest-side at 12.5% 50%, #000000 96%, #0000) 0 50%/80% 20%
      repeat-x;
}

.loader:before,
.loader:after {
  content: "";
  grid-area: 1/1;
  transform: rotate(30deg);
}

.loader:after {
  transform: rotate(60deg);
}

@keyframes l26 {
  100% {
    transform: rotate(1turn);
  }
}

/********************
*** SIDEBAR STYLES ***
*************/
.chapter-group h6,
.chapter-group h6 > a {
  font-family: var(--np-font-family) !important;
  color: var(--np-primary-color) !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 25.6px;
}

h6.figures_chapter.fw-bold.text-dark.d-flex.not-allowed,
h6.videos_chapter.fw-bold.text-dark.d-flex.not-allowed {
  color: #717171 !important;
  opacity: 1 !important;
}

/* Chapter collapse/expand styling and indicator */
#chapter-nav .chapter-group ul {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease;
  opacity: 0;
}

#chapter-nav .chapter-group ul li {
  font-family: var(--np-font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  padding-left: 15px;
  border-radius: 4px;
  margin-left: 5.5px;
}

#chapter-nav .chapter-group.open ul {
  display: block !important;
  max-height: 1000px;
  opacity: 1;
  overflow: visible;
}

.chapter-group h6[role="button"] {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.chapter-group h6::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #eaecf0;
  background-image: url(assets/icons/icon-chapter.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  margin-top: 2px;
}

.chapter-group ul.bordered-line::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 100%;
  background-color: #d0d5dd;
  height: calc(100% - 32px);
  top: 22px;
  left: 10px;
}

.col-lg-9 #print_area .has-text-align-center {
  text-align: left;
}

.chapter-group a {
  font-family: var(--np-font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--np-primary-color);
}

.search-input-chapters {
  height: 40px;
  border: 1px solid #8c95a6;
  border-radius: 4px;
  padding: 7px 16px;
  font-family: var(--np-font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.8px;
}

#handbook_wrapper .handbook-sidebar::-webkit-scrollbar {
  width: 1px;
}

#handbook_wrapper .handbook-sidebar::-webkit-scrollbar-track {
  background: #f5f7f9;
  /* scrollbar background */
}

#handbook_wrapper .handbook-sidebar::-webkit-scrollbar-thumb {
  background-color: #eee;
  /* scroller handle */
  border-radius: 4px;
}

#handbook_wrapper .handbook-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #333;
}

.table-alt-text {
  font-size: 16px;
}

.wp-block-image.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

/*.handbook-sidebar div.mb-4.search-sidebar {*/
/*  position: fixed;*/
/*  width: 352px;*/
/*  z-index: 2;*/
/*  background: #f5f7f9;*/
/*  padding: 30px 20px 20px 20px;*/
/*  margin-top: -30px;*/
/*  margin-left: -17px;*/
/*  top: 157px;*/
/*}*/
/*#chapter-nav {*/
/*  margin-top: 60px;*/
/*}*/
button.close.sidebar-close {
  top: -5px;
  right: 2px;
  background: transparent;
  margin: 0;
  color: #1a2956;
}

button.close.sidebar-close span {
  padding: 0;
  font-size: 47px;
  line-height: 100%;
}
.video-title.py-2 {
    padding-bottom: 0 !important;
    padding-top: 8px !important;
}
.figure-caption, .figure-alt-text, figcaption strong,h6 strong{
    font-size: 16px;
    color: #333333;
    font-weight: 400;
}
div#ch04_sec11 p strong,#ch08_sec06_sub08 strong {
    font-style: normal;
    font-weight: 700;
}
/*****  FONT SIZE UTILITIES ******/
.large-fs h1 {
  font-size: var(--np-h1-lg-fs);
}

.large-fs h2 {
  font-size: var(--np-h2-lg-fs) !important;
}

.large-fs h3 {
  font-size: var(--np-h3-lg-fs);
}

.large-fs h4 {
  font-size: var(--np-h4-lg-fs);
}

.large-fs h5 {
  font-size: var(--np-h4-lg-fs);
}

.large-fs h6 {
  font-size: var(--np-h4-lg-fs);
}

.large-fs p,
.large-fs a .large-fs li,
.large-fs label,
.large-fs h6,
.large-fs span {
  font-size: var(--np-peragraph-lg-fs);
}
.large-fs .figure-caption,.large-fs .figure-alt-text, .large-fs figcaption strong{
  font-size: 18px;
}
.small-fs .figure-caption,.small-fs .figure-alt-text, .small-fs figcaption strong{
  font-size: 14px;
}

.small-fs h1 {
  font-size: var(--np-h1-sm-fs);
}

.small-fs h2 {
  font-size: var(--np-h2-sm-fs) !important;
}

.small-fs h3 {
  font-size: var(--np-h3-sm-fs);
}

.small-fs h4 {
  font-size: var(--np-h4-sm-fs);
}

.small-fs h5 {
  font-size: var(--np-h3-sm-fs);
}

.small-fs p,
.small-fs a,
.small-fs li,
.small-fs label,
.small-fs h6,
.small-fs span {
  font-size: var(--np-peragraph-sm-fs);
}

.large-fs .chapter-group h6 {
  font-size: 18px;
}

.large-fs .chapter-group ul li {
  font-size: 18px;
}

.large-fs .chapter-group a {
  font-size: 18px;
}

.small-fs .chapter-group h6 {
  font-size: 14px;
}

.small-fs .chapter-group ul li {
  font-size: 14px;
}

.small-fs .chapter-group a {
  font-size: 14px;
}

div.list-group a.list-group-item {
  font-size: 16px;
}

.large-fs .next a,
.large-fs .previous a,
.large-fs .next-figure a,
.large-fs .previous-figure a,
.large-fs .next-table a,
.large-fs .previous-table a,
.large-fs a.list-group-item,
.large-fs .video-card div.video-title h3 {
  font-size: 18px !important;
}

.small-fs .next a,
.small-fs .previous a,
.small-fs .next-figure a,
.small-fs .previous-figure a,
.small-fs .next-table a,
.small-fs .previous-table a,
.small-fs div.list-group a.list-group-item,
.small-fs .video-card div.video-title h3 {
  font-size: 14px !important;
}

/******** Font Adjust List Not Included in FS Increase and Decrease********/

#font_toggle_list .dropdown-item {
  font-size: 16px !important;
}

#font_toggle_list .dropdown-item.active,
#font_toggle_list .dropdown-item.active:hover,
#font_toggle_list .dropdown-item.active:focus,
#font_toggle_list .dropdown-item.active:active,
#font_toggle_list .dropdown-item.active a,
#font_toggle_list .dropdown-item.active a:hover,
#font_toggle_list .dropdown-item.active a:focus,
#font_toggle_list .dropdown-item.active a:active {
  font-weight: 700 !important;
  color: var(--np-primary-color);
  background-color: transparent !important;
  font-size: 16px !important;
}

#font_toggle_list .dropdown-item:hover,
#font_toggle_list .dropdown-item:focus,
#font_toggle_list .dropdown-item:active {
  color: var(--np-primary-color);
  background-color: transparent !important;
  font-size: 16px !important;
}

#font_toggle.dropdown-toggle::after {
  vertical-align: 1px !important;
}

#font_toggle::after {
  border-top-color: var(--np-primary-color);
  background-image: url("/wp-content/themes/AAPTP/assets/icons/dropdown-arrow.svg");
  /* border-top-color: #fff; */
  background-position: 0px 1px;
  /* background-color: aqua; */
  width: 12px;
  height: 8px;
  border: none;
  margin-left: 2px;
  background-repeat: no-repeat;
  position: relative;
  top: 3px;
}
button#font_toggle img {
  width: 24px;
}
#font_toggle:hover::after {
  border-top-color: var(--np-primary-color);
}

/********************
*** SIDEBAR STYLES END ***
*************/
.wp-block-group h2 {
  text-transform: uppercase;
}

.quote-section {
  background-color: #e6e6e6;
  padding: 16px;
  margin-top: 16px;
  position: relative;
}

.quote-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #1a2956 0%, #178db9 100%);
  border-radius: 12px 0 0 12px;
}

.quote-section p {
  margin-bottom: 0;
}

.btn-sizer {
  border: 1px solid var(--np-border-color);
  border-radius: 8px;
  padding: 5px 7px;
  color: var(--np-border-color) !important;
}

.btn-sizer:hover,
.btn-sizer:focus,
.btn-sizer:active,
.btn-sizer:focus-visible {
  background: #ffffff !important;
  color: var(--np-primary-color) !important;
}

.btn-napa {
  border-radius: 8px;
  padding: 4px 16px;
  font-family: var(--np-font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  background-color: var(--np-primary-color);
  color: #fff;
}

.btn-napa:hover {
  background-color: #273b7b;
  color: #fff;
}

.footer-home-widgets .h3 {
  font-family: var(--np-font-family);
  font-weight: 700;
  font-size: 22px;
  line-height: 35.2px;
  letter-spacing: 0px;
}

.footer-home-widgets {
    background-color: #E6F8F5;
    width: 910px;
    text-align: center;
    padding: 0 70px;
    border-radius: 10px;
    position: absolute;
    top: -78px;
    max-width: 910px;
    z-index: 999;
    right: calc(50% - 455px);
}
.footer-bg {
  background: #2b2b2d;
}
.footer-home-widgets .row.py-4 {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

.footer-bg .widget.widget_block,
.footer-bg p {
  margin-bottom: 0 !important;
}

section.footer-home-widgets .widget_block.mb-3:nth-child(1) {
  margin-bottom: 12px !important;
}

section.footer-home-widgets .col-lg-2 .widget_block.mb-3:nth-child(1) {
  margin-bottom: 16px !important;
}
.home .footer-bg {
  padding-top: 38px;
}
.footer-home-widget-left .widget_text p,
.footer-home-widget-right .widget_text:nth-last-child(1) p,
.footer-home-widget-right .widget_text:nth-last-child(1),
.footer-home-widget-right p {
  margin-bottom: 0 !important;
  color: var(--np-primary-color);
}
div#block-8 {
    margin-bottom: 0 !important;
}
#font_toggle::after{
	top: 2.2px;
}
.d-flex-video-sec figure {
    margin-top: 0 !important;
}
.custom-card .card-title {
    margin-bottom: 0;
}
.handbook-content figure img, .handbook-content .figure-item img {
    max-width: 650px !important;
    width: auto !important;
}
.figure-template-default h1#ch_main {
    text-transform: none;
}
/* Mobile styles for figure images */
@media (max-width: 768px) {
    .handbook-content figure img, .handbook-content .figure-item img {
        max-width: 100% !important;
        width: 100% !important;
    }
}
.w-img-100 img{
	width:100% !important;
}
.figure-caption, .figure-alt-text, figcaption strong {
    font-size: 16px;
    color: #333333;
    font-weight: 400;
}
h6.wp-block-heading {
    font-style: normal;
}
figure#fig_04 {
    width: 306px;
}
figure {
    margin-bottom: 1rem !important;
}
.d-flex-video-sec figure {
    margin-bottom: 0 !important;
}
#chapter-nav .chapter-group.open ul .mb-1.border-gold {
    margin-bottom: 6px !important;
}
.next a,
.previous a,
.next-figure a,
.previous-figure a,
.next-table a,
.previous-table a {
  text-decoration: none;
  color: var(--np-primary-color);
  font-family: var(--np-font-family);
  font-weight: 600;
  font-size: var(--np-peragraph-fs);
  line-height: 25.8px;
}

/* ==============================
   SUBMENU HOVER STYLES
   ============================== */
.primary-nav .menu-item {
  position: relative;
}

.primary-nav .menu-item > a {
  display: block;
}

.primary-nav .sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 200px;
  background-color: #fff !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
  z-index: 1000;
  display: block !important;
}

.form-control:focus,
.form-control {
  box-shadow: none;
  border-color: var(--np-border-color);
}

.primary-nav .menu-item:hover > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
}

.primary-nav .sub-menu {
  border: 0 !important;
  border-left: 4px solid !important;
  border-image: linear-gradient(180deg, #1a2956 0%, #178db9 100%) !important;
  border-image-slice: 1 !important;
}
.primary-nav .sub-menu .menu-item {
  padding: 0 !important;
  display: block !important;
}

.primary-nav .sub-menu .menu-item a {
  display: block !important;
  padding: 10px 20px !important;
  color: var(--np-primary-color) !important;
  text-decoration: none !important;
  font-size: 18px;
  border-bottom: 1px solid var(--np-border-color);
}

.primary-nav .sub-menu .menu-item:last-child a {
  border-bottom: none;
}

.footer-home-widget-center .widget_media_image {
  display: inline-block;
  padding-right: 32px;
  padding-left: 32px;
}

.footer-home-widget-center figure.wp-block-image.size-full {
  margin-bottom: 0;
}

.footer-home-widget-right {
  padding-left: 0px !important;
}

button.btn.search-btn {
  border-top-right-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
}

button.btn.search-btn:hover {
  background-color: var(--np-btn-hover-bg);
}

.search-bar .input-group input.form-control {
  border: 0.8px solid var(--np-border-color) !important;
  border-radius: 8px 0px 0px 8px !important;
  border-right: 0 !important;
  height: 40px;
}

.search-bar .input-group button.btn.search-btn {
  border: 0 !important;
  border-radius: 0px 8px 8px 0px !important;
  border-left: 0 !important;
  display: flex;
  align-items: center;
  border: 0.8px solid var(--np-border-color) !important;
  border-left: 0 !important;
}

#videoModal .btn-close {
  font-size: 12px;
  top: -8px !important;
  right: -7px !important;
  font-weight: 700;
  background-color: #ffffff;
  opacity: 1;
  padding: 6px;
  border-radius: 50px;
  border: 0px solid #000;
  z-index: 2;
}

.video-popup a {
  position: relative;
  display: inline-block;
}

.footer_logo .widget.widget_block.widget_media_image:nth-child(1) {
  border-right: 1px solid var(--np-border-color);
  padding-left: 0;
}

.footer_logo .widget_block:nth-child(2) {
  padding-right: 0px !important;
  padding-left: 30px !important;
}
.footer_logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer_logo .widget_media_image {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 30px;
}

.footer_logo .widget_media_image:first-child {
  border-right: 1px solid var(--np-border-color);
}

.footer_logo figure.wp-block-image {
  margin: 0;
}

.footer_logo img {
  max-width: 100%;
  height: auto;
}

.global-footer-left a {
  color: #fff !important;
  text-decoration: auto;
}

button.btn.primary-bg.search-btn:active {
  background: rgba(27, 41, 86, 1);
}

.primary-nav .current-menu-item a:not(.sub-menu a),
.current_page_item.menu-item-has-children a:not(.sub-menu a),
.sub-menu .current_page_item a,
.current-menu-parent a:not(.sub-menu a) {
  font-weight: 600 !important;
}
.single-section .menu-item-28 a:not(.sub-menu a),.single-section .menu-item-1466 a,.taxonomy-video .menu-item-1660 a,
.tax-chapter .menu-item-28 a:not(.sub-menu a),.taxonomy-figure .menu-item-1659 a,.taxonomy-table .menu-item-1658 a,
.taxonomy-figure .menu-item-1664 a:not(.sub-menu a),.taxonomy-table .menu-item-1664 a:not(.sub-menu a),.taxonomy-video .menu-item-1664 a:not(.sub-menu a),
.page-template-template-figures .menu-item-28 a:not(.sub-menu a),
.page-template-template-tables .menu-item-28 a:not(.sub-menu a),
.single-figure .menu-item-1664 a:not(.sub-menu a),.single-figure .menu-item-1659 a,
.single-table .menu-item-1664 a:not(.sub-menu a),.single-table .menu-item-1658 a,
.tax-checklist_category .menu-item-29 a, .single-checklists .menu-item-29 a{
  font-weight: 600 !important;
}

button.play-btn {
  display: none;
}

.handbook-content figure img,
.handbook-content .figure-item img {
  max-width: 650px !important;
  width: 100%;
}

.text-ellipses {
  max-width: 35ch;
  /* ~22 characters */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.min-height-page {
  min-height: calc(100vh - 184px);
}
li[section-id="602"] {
  visibility: hidden;
  height: 0;
}
.handbook-search input[type="search" i]::-webkit-search-cancel-button {
  appearance: none;
  width: 15px;
  height: 15px;
  background-color: rgb(51, 51, 51);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.3 5.71a1 1 0 0 0-1.42 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z'/%3E%3C/svg%3E")
    center center / contain no-repeat;
  margin-right: -18px;
}
#sidebarToggle {
  height: 36px;
  width: 36px;
  border-radius: 5px;
  padding: 0px 8px;
  border:1px solid rgba(140, 149, 166, 1);
}

/* .video-popup ~ p {
    margin-bottom: 0 !important;
} */
p.watch-video {
  line-height: 14px;
  font-size: 14px;
}

.video-popup.mb-0 figure {
  margin-top: 0;
  margin-bottom: 0;
}
.d-flex-video-sec .wp-block-group__inner-container {
  display: flex;
  flex-direction: inherit;
}
.video-popup .alignleft {
  margin-right: 16px;
}
.d-flex-video-sec {
  margin-bottom: 16px;
}
.wp-block-heading {
  margin-bottom: 12px;
}
.primary-nav #menu-menu-1 .menu-item .sub-menu a:nth-child(1) {
  text-transform: capitalize;
}
.figure-alt-text.fw-bold {
  font-weight: 400 !important;
}
h6.wp-block-heading {
  text-align: left !important;
  font-style: italic;
}



.figure-caption,
.figure-alt-text,
figcaption strong {
  font-size: 16px;
  color: #333333;
}
.wp-block-image .aligncenter {
  margin-left: 0 !important;
}
.global-footer-center figure {
  margin-bottom: 0;
}
#font_toggle::after {
  top: 2.2px;
}
.d-flex-video-sec figure {
  margin-top: 0 !important;
}
.custom-card .card-title {
  margin-bottom: 0;
}
.handbook-content figure img,
.handbook-content .figure-item img {
  max-width: 650px !important;
  width: auto !important;
}
.w-img-100 img {
  width: 100% !important;
}
.figure-caption,
.figure-alt-text,
figcaption strong {
  font-size: 16px;
  color: #333333;
}
figure#fig_04 {
  width: 306px;
}
figure {
  margin-bottom: 1rem !important;
}
.d-flex-video-sec figure {
  margin-bottom: 0 !important;
}
.footer-bg p,
.global-footer-center p a {
  color: #fff;
  text-decoration: none;
}
.container-footer-home-widgets {
  position: relative;
  margin-top: 94px;
}
.container-footer-home-widgets{
    position: relative;
        margin-top: 94px;
}
.wp-block-image + p strong {
    font-style: italic !important;
     font-weight: 400 !important;
     text-align: left;
}
.wp-block-image + p em,.wp-block-image + p.has-text-align-center {
    font-style: normal !important;
    text-align: left;
}
#tables_chapters p {
  text-align: left;
  font-style: italic;
  font-weight: 400;
}
.handbook-card .content {
    position: absolute;
    background: #FFFFFF;
    opacity: 0.9;
    top: 16px;
    width: 200px;
    padding: 11.5px 12px !important;
    backdrop-filter: blur(58px);
    box-shadow: 2px 4px 4px 0px #00000040;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(58px);
    box-shadow: 1px 2px 8px -3px #000000;
    border-radius: 0 6px 6px 0;
}
.handbook-card .content h2 {
    margin: 0 !important;
    color: #1A2956 !important;
}
.handbook-card {
    margin-bottom: 1.5rem !important;
    margin-top: 16px;
}

.handbook-card .content:after {
    content: url('/wp-content/uploads/2026/02/fi-br-arrow-right.svg');
    position: absolute;
    right: 12px;
    top: 15px;
}
/* Mobile Tab Responsive */
@media (max-width: 992px) {
  header .container-fluid.justify-content-center {
    padding-left: 60px;
  }

  .search-bar {
    width: 95%;
  }
  .site-header {
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.08);
  }
  .primary-nav .menu-item {
    padding: 5px 0px;
  }
  .search-bar .input-group input.form-control{
    height: 36px !important;
  }
  .search-bar .input-group button.btn.search-btn{
    padding: 4px 6px !important;
  }
  nav.navbar.bg-light.primary-nav {
    position: absolute;
    top: 59px;
    z-index: 9;
    width: 100%;
  }

  a.btn.btn-primary {
    padding: 7px 17px;
  }

  header ul.nav {
    display: none;
  }

  header .text-decoration-none img {
    height: 30px;
  }

  .seprator.seprator-nav {
    display: none;
  }

  .footer-home-widget-center .widget_block:nth-child(3) {
    padding-right: 0;
  }

  .footer-home-widget-center .widget_block:nth-child(2) {
    padding-left: 0;
  }

  .footer-home-widget-right {
    padding-left: 1rem !important;
  }

  .global-footer-center {
    margin-bottom: 0 !important;
    width: 100%;
  }

  .ps-47 {
    padding-left: 1rem !important;
  }

  /* Merged small-screen tweaks */
  .global-footer-right {
    width: 100%;
    margin-top: 12px;
  }
  .footer-home-widgets {
    padding: 0px;
    width: calc(100% - 24px);
    right: 12px;
    top: -115px;
  }
  .home .footer-bg {
    padding-top: 20px;
  }
  .home .container-footer-home-widgets {
    margin-top: 130px !important;
  }
  div#abbrev-count {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 14px;
  }

  .table-footer .d-flex.align-items-center {
    display: block !important;
    width: 100%;
  }

  .table-footer .d-flex.align-items-center #abbrev-pagination {
    float: left;
    width: 100%;
  }

  div#abbrev-pagination .pagination {
    justify-content: center;
  }

  .align-items-center.table-footer {
    display: block !important;
    width: calc(100% + 0px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 370px !important;
  }

  .post_per_page {
    text-align: center;
  }

  select#abb_per_page {
    display: inline;
    margin-top: 16px;
  }

  .alpha .indexer.me-2 {
    margin-bottom: 12px !important;
  }

  .flex-column-mobile {
    flex-direction: column;
  }

  .large-fs .next a,
  .large-fs .previous a,
  .large-fs .next-figure a,
  .large-fs .previous-figure a,
  .large-fs .next-table a,
  .large-fs .previous-table a {
    font-size: 16px;
  }
  .collapse:not(.show) {
    display: block !important;
  }
  #primaryNavbar.navbar-collapse {
    transform-origin: top;
    transform: translateY(-10px);
    opacity: 0;

    max-height: 0;
    overflow: hidden;

    transition:
      max-height 0.35s ease,
      transform 0.3s ease,
      opacity 0.25s ease;
  }

  #primaryNavbar.navbar-collapse.show {
    max-height: 600px;
    transform: translateY(0);
    opacity: 1;
  }

  /* Mobile menu container positioning */
  .navbar.primary-nav.d-block.d-lg-none {
    position: absolute;
    z-index: 1000;
  }

  /* Mobile Menu Item Styles - Disable Hover */
  #primaryNavbar .navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #primaryNavbar .navbar-nav .nav-item {
    position: relative;
    border-bottom: 1px solid #e9ecef;
  }

  /* Parent menu items */
  #primaryNavbar .navbar-nav > .nav-item > a {
    display: block;
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
    user-select: none;
  }

  /* Override Bootstrap hover on mobile */
  #primaryNavbar .navbar-nav > .nav-item > a:hover {
    background-color: transparent !important;
    text-decoration: none;
  }

  /* Submenu hidden by default */
  #primaryNavbar .sub-menu {
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: #f8f9fa;
    position: static !important;
    transform: none !important;
  }

  /* Submenu items */
  #primaryNavbar .sub-menu .nav-item {
    border-bottom: 1px solid #e0e0e0;
  }

  .primary-nav .sub-menu .menu-item a {
    border-bottom: none;
  }

  .primary-nav .menu-item a,
  .primary-nav .sub-menu .menu-item a {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    font-size: 14px;
  }

  #primaryNavbar a:not([href]):not([class]) {
    color: #fff;
  }

  #primaryNavbar .sub-menu .nav-item > a {
    padding: 0.6rem 1rem 0.6rem 1.5rem !important;
    font-size: 0.9rem;
    color: #495057;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .primary-nav .sub-menu .menu-item a {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }
 .primary-nav .sub-menu .menu-item {
      padding-top: 5px !important;
      border-bottom: 1px solid var(--np-border-color);
      padding-bottom: 5px !important;
  }
  
    .single-section .menu-item-1182 a:not(.sub-menu a),.single-section .menu-item-1472 a,.taxonomy-video .menu-item-1653 a,
.tax-chapter .menu-item-1182 a:not(.sub-menu a),.taxonomy-figure .menu-item-1655 a,.taxonomy-table .menu-item-1654 a,
.page-template-template-figures .menu-item-1182 a:not(.sub-menu a),.page-template-template-figures .menu-item-1655 a,
.page-template-template-tables .menu-item-1182 a:not(.sub-menu a),.page-template-template-tables .menu-item-1654 a,
.single-figure .menu-item-1182 a:not(.sub-menu a),.single-figure .menu-item-1655 a,
.single-table .menu-item-1182 a:not(.sub-menu a),.single-table .menu-item-1654 a,
.tax-checklist_category .menu-item-1247 a,
.single-checklists .menu-item-1247 a{
  font-weight: 600 !important;
}

  /* Override submenu hover */
  #primaryNavbar .sub-menu .nav-item > a:hover {
    background-color: transparent !important;
    text-decoration: none;
  }

  #primaryNavbar .sub-menu .nav-item > a:active {
    background-color: #e9ecef;
  }

  /* Show submenu when parent is active */
  #primaryNavbar .menu-item-has-children.open-submenu > .sub-menu {
    display: block !important;
  }
  #primaryNavbar .menu-item-has-children > a {
    position: relative;
    align-items: center;
  }
  /* Submenu parent indicator */
  #primaryNavbar .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 16a1 1 0 0 1-.71-.29l-6-6a1 1 0 0 1 1.42-1.42l5.29 5.3 5.29-5.29a1 1 0 0 1 1.41 1.41l-6 6a1 1 0 0 1-.7.29z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
  }
  #primaryNavbar .menu-item-has-children.open-submenu > a::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Nested submenu */
  #primaryNavbar .sub-menu .menu-item-has-children > a::after {
    content: "▶";
    right: 1rem;
  }

  #primaryNavbar .sub-menu .menu-item-has-children.open-submenu > a::after {
    transform: rotate(90deg);
  }

  #primaryNavbar .sub-menu .sub-menu {
    background-color: #fff;
    border-left-color: #6c757d;
  }

  .primary-nav .menu-item:hover > .sub-menu::before {
    background: none !important;
  }
}

/* ===== DESKTOP MENU STYLES (Desktop Only - Allow Hover) ===== */
@media (min-width: 992px) {
  /* Enable hover on desktop */
  .navbar.primary-nav.d-none.d-lg-block
    .navbar-nav
    .nav-item:hover
    > .sub-menu {
    display: block !important;
  }

  /* Desktop submenu positioning */
  .navbar.primary-nav.d-none.d-lg-block .sub-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    left: 15px !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  h1{
    font-size: var(--np-mbl-h1-fs) !important;
  }
  .large-fs h1{
    font-size: var(--np-mbl-h1-lg-fs) !important;
  }
  .small-fs h1{
    font-size: var(--np-mbl-h1-sm-fs) !important;
  }
  .footer_logo {
    flex-direction: row;
  }

  .footer_logo .widget_media_image:first-child {
    border-right: none;
  }

  .handbook-content figure img,
  .handbook-content .figure-item img {
    width: 100% !important;
  }
   .video-card div.video-title h3{
    line-height: normal !important;
  }
  .table-borderless td {
    font-size: 14px;
    }
}

.search-highlight {
  background-color: #ffe58a;
  color: #000;
  padding: 0;
  border-radius: 2px;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #178db9 !important;
}

.modal {
  background: rgb(0, 0, 0, 0.4) !important;
}

.custom-grid {
    display: grid;
    /* Use CSS Grid layout */
    grid-template-columns: repeat(3, 1fr);
    /* 3 equal-width columns */
    gap: 32px;
    /* Gap between rows and columns */
    margin: 0 auto;
    /* Center the grid */
    padding: 0px 0px;
    /* Add padding to prevent edge contact */
}

.grid-item {
  display: block;
  /* Ensure each item behaves properly */
  width: 100%;
  /* Takes full space within the column */
}

.video-card {
  display: block;
  width: 100%;
  /* Optional: Add some rounding */
  cursor: pointer;
}

.search-highlight {
  background: #ffeb3b;
  color: #000;
  padding: 0 2px;
}

img.img-fluid {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 440px) and (max-width: 570px) {
    .home .footer-bg {
        padding-top: 30px;
    }
}



@media (max-width: 992px) {
  .custom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #print-btn {
    display: none !important;
  }
  .footer-bg p,
  .global-footer-center p a {
    color: #fff;
    text-decoration: none;
    text-align: center;
  }
  .global-footer-right img {
    max-width: 32px;
  }
   .py-30.handbook-sidebar,.py-30.handbook-content{
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
   .py-30.handbook-content{
    padding-right: 1rem;
  }
  .visual-toc-wrap{
    margin-top: 15px !important;
  }
}

/* Mobile: 1 column below 576px */
@media (max-width: 440px) {
    .footer-home-widgets {
    padding:0px;
    width: calc(100% - 24px);
    right: 12px;
    top: -125px;
}
.home .footer-bg {
    padding-top: 36px;
}
.home .container-footer-home-widgets{
    margin-top: 145px !important
}

.card.custom-card.my-3 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}
}
@media (max-width: 575px) {
    .custom-grid {
        gap: 16px;
        /* Single column layout */
    }
    
}

#search_input_chapters {
  padding: 10px 16px !important;
  font-size: 16px !important;
  font-size: 16px !important;
  background-color: #f5f7f9;
}

.search-icon-filter {
  padding: 8px 16px !important;
  background-color: #f5f7f9;
}

.search-handbook-heading {
  margin-bottom: 20px !important;
}

.btn-check:checked + .btn,
.btn.active,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  color: var(--np-btn-hover-color);
  background-color: var(--np-primary-color);
  border-color: var(--np-primary-color);
}

.search-form .btn-primary {
  padding: 12px 26px !important;
}

.global-footer-center p a {
  color: #979797;
  text-decoration: none;
}

.global-footer-center p a:hover {
  color: #fff;
}

button.play-btn {
  display: none;
}

.video-popup a::after {
  display: none;
}

.handbook-sidebar .mb-4.px-20 {
  padding-right: 0px;
  padding-left: 0px;
}

@media (max-width: 410px) {
  .home .footer-bg {
        padding-top: 40px !important;
    }
}
@media (max-width: 375px) {
  .index-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 400px !important;
  }

  header .text-decoration-none img {
    height: 23px;
  }

  .page_header .col-10,
  .page_header .col-2 {
    width: 100%;
    flex: 0;
    margin-top: 11px;
  }
  div#location p,
  div#location a,
  .address p,
  .footer-bg p,
  .global-footer-center p a {
    font-size: 12px !important;
    line-height: 15px;
  }
  

}
.table-content > figure img {
    max-width: 100% !important;
}
.table-borderless{
    max-width:500px;
}
.table-borderless table td,.table-borderless table th{
    border:0px;
    padding:0 !important;
}
.pl-40px{
    padding-left: 40px;
}