/* ===========================
   1) GLOBAL BASE
=========================== */

body {
  margin: 0;
  background-color: #faf7ef !important;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: #1e2330;
}

.homeWrapper {
  background-color: #faf7ef;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #294c8e !important;
  margin-right: 1rem !important;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  border-radius: 15px;
  padding: 0.25rem 1rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  transition: ease-in-out;

}


.homeWrapper:hover {
  transform: scale(1.1);
}

.logoSplashWrapper {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.logoSplashImage {
  height: 250px;
  width: auto;
}

.customBg {
  background-image: var(--faq-bg);
  background-repeat: repeat;
  background-size: contain;
  background-blend-mode: hard-light;
}

.primaryContainer {
  width: 100%;
  background-color: #faf7ef;
  padding: 1rem;
}

/* Typography helpers */
.gloock-regular {
  font-family: "Gloock", serif;
  font-weight: 400;
  font-style: normal;
}

.inter-light {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.inter-regular {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.inter-semibold {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Utilities */
.shadowSm {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

/* ===========================
   2) NAVBAR (shared)
=========================== */

.navbar {
  color: #4f4f4f;
}

.nav-link {
  color: #4f4f4f !important;
}

.navbarLogo {
  height: auto;
  width: 3.5rem;
}

.navbar-toggler {
  background-color: #163571 !important;
}

.navbar-toggler-icon {
  color: #ffffff !important;
}

/* ===========================
   3) PAGE LAYOUT WRAPPERS
=========================== */

.faqPageWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem 3rem 1.5rem;
}

.faqPageWrapper .faqSplashContainer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  background-repeat: repeat;
  background-size: contain;
  padding: 2rem 1rem;
  width: 100%;
}

.faqPageWrapper .faqSplashContainer .faqMainHeader {
  color: #1b4297;
  font-size: 4rem;
  line-height: 1.1;
  font-family: "Gloock", serif;
}

/* Shared container for content sections */
.faqContentContainer {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 2rem;
  align-items: center;
  justify-content: center;
}

/* ===========================
   4) HERO / TAGLINE (index usage)
=========================== */

.tagLineWrapper {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.tagLineContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.tagLineTitle {
  font-size: 2rem;
  font-weight: 400;
  color: #1e2330;
}

.tagLineSub {
  font-size: 1rem;
  font-weight: 400;
  color: #555b6b;
}

.mainCTA {
  background-color: #1b4297;
  color: #ffffff;
  font-size: 1rem;
  padding: 1rem 3rem;
  border-radius: 50px;
  border: none;
  width: 70%;
}

/* ===========================
   5) SEARCH BAR & CONTROLS
=========================== */

/* Search box wrapper under hero */
.faqSearchBox {
  width: 30rem;
}

.searchContainer {
  display: flex;
  flex-direction: row;
  border: 2px solid #1b4297;
  justify-content: space-between;
  padding: 0.5rem;
  width: 100%;
  border-radius: 50px;
  background-color: #faf7ef;
}

.searchContainer .searchInput {
  border: none;
  background-color: transparent;
  width: 100%;
  padding: 0rem 1rem;
  color: #1b4297;
}

.searchContainer .searchInput:focus-visible {
  border: none;
  background-color: transparent;
  outline: none;
}

.searchContainer .buttonContainer {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.searchContainer .searchButton {
  color: #1b4297;
  background-color: transparent;
  border: none;
  font-size: 1rem;
  border-radius: 50%;
}

.searchContainer .searchButton:focus-visible {
  border: none;
  outline: none;
}

/* Optional: only keep if you actually use a clear button somewhere */
.clearButton {
  color: #93afea;
  background-color: transparent;
  border: none;
  font-size: 1rem;
  border-radius: 50%;
}

.searchHintWrapper {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  padding: auto 0.5rem;
}

.searchHintWrapper .searchPlaceHolder {
  color: #828282;
}

.iconSearch {
  color: #1b4297;
}

/* ===========================
   6) VIEW TABS (LIST / GRID)
=========================== */

.tabWrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  border: 2px solid #1b4297;
  border-radius: 10px;
  overflow: hidden;
}

.tabWrapper .tabContainer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  width: 10rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #1b4297;
  background-color: transparent;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.tabWrapper .tabContainer .faSize {
  width: 1rem;
  height: auto;
}

.tabWrapper .selectedTabContainer,
.tabWrapper .tabContainer.selectedTabContainer {
  background-color: #1b4297;
  color: #ffffff;
}

/* ===========================
   7) FAQ CONTENT LIST (RESULT CARDS)
=========================== */

.faqContentListWrapper.grid-view.faqContentListWrapper
  .faqContentListContainer
  .faqContentHeaderWrapper
  .faqContentHeaderContainer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: start;
  justify-content: space-between;
}

.contentHeaderContainer {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  gap: 1rem;
  align-items: flex-start;
}

.faqContentListWrapper {
  width: 100%;
  padding: 1.5rem 0rem;
  margin-top: 1.25rem;
  display: grid;
  gap: 1.5rem;
  grid-auto-rows: auto;
  transition: grid-template-columns 0.35s ease;
}

/* ✅ keep list view 1 col */
.faqContentListWrapper.list-view {
  grid-template-columns: 1fr;
}

/* ✅ align grid items full height */
.faqContentListWrapper.grid-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0rem;
  width: 100%;
  align-items: stretch;
  /* ✅ NEW: makes cards stretch same row height */
}

/* Base card container */
.faqContentListWrapper .faqContentListContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  column-gap: 1rem;
  padding: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.faqContentListWrapper .faqContentListContainer:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.faqContentListWrapper.grid-view .faqContentListContainer {
  align-items: start;
}

/* Wrapper */
.faqContentListWrapper .faqContentListContainer .faqContentHeaderWrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.customCategoryBadgeContainer {
  min-height: 34px;
  display: flex;
  align-items: start;
  justify-content: start;
}

.customCategoryBadge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: #2b2b2b;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

/* Header row */
.faqContentListWrapper
  .faqContentListContainer
  .faqContentHeaderWrapper
  .faqContentHeaderContainer {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

/* Company row */
.faqCompanyWrapper {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.companyLogoWrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  /* ✅ NEW: placeholder frame so missing logos keep layout */
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 66, 151, 0.12);
}

.companyLogo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

/* ✅ NEW: if logo is empty/broken, hide image but keep space */
.companyLogo[src="https://cdn1.npcdn.net/images/"],
.companyLogo:not([src]) {
  opacity: 0;
}

.companyDetailWrapper {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.625rem;
  min-width: 0;
  overflow-wrap: break-word;
}

.companyTitle {
  font-size: 0.625rem;
}

/* Body area */
.faqContentBodyContainer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0rem 0.5rem 0rem 0rem;
}

.faqHeader {
  text-align: justify;
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.25rem * 1.4 * 2);
}

.faqContentListContainer.is-expanded .faqHeader,
.customFaqContentListContainer.is-expanded .faqHeader {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: unset;
  overflow: visible;
  min-height: calc(1.25rem * 1.4 * 2);
}

.faqSub {
  color: #4f4f4f;
  margin: 0;
  padding: 0.5rem 0rem;
  line-height: 1.4;
  transition: max-height 0.25s ease;
  text-align: justify;
  /* ✅ NEW: keep snippets aligned */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Collapsed / expanded behaviour */
.faqContentListContainer.is-collapsed .faqSub {
  max-height: 3.6em;
  padding: 0.5rem;
  overflow: hidden;
}

/* ✅ NEW: allow full text when expanded */
.faqContentListContainer.is-expanded .faqSub,
.customFaqContentListContainer.is-expanded .faqSub {
  max-height: unset;
  -webkit-line-clamp: unset;
  display: block;
  max-width: 100%;
}

.faqContentListContainer.is-collapsed .faqSub,
.customFaqContentListContainer.is-collapsed .faqSub {
  max-height: 5em;
  padding: 0.5rem 0rem;
  max-width: 100%;
  overflow: hidden;
}

.faqContentListWrapper.grid-view .faqContentListContainer.is-expanded,
.faqContentListWrapper.grid-view .customFaqContentListContainer.is-expanded {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.faqContentListWrapper.grid-view .faqContentListContainer.is-expanded .faqSub {
  max-height: none;
}

.faqContentListWrapper.list-view {
  grid-template-columns: 1fr;
}

/* Expanded spans full width in grid */
.faqContentListWrapper.grid-view .faqContentListContainer.is-expanded,
.faqContentListWrapper.grid-view .customFaqContentListContainer.is-expanded {
  grid-column: 1 / -1;
}

.faqContentListWrapper.grid-view .faqContentListContainer.is-expanded .faqSub,
.faqContentListWrapper.grid-view
  .customFaqContentListContainer.is-expanded
  .faqSub {
  max-height: none;
}

@media screen and (max-width: 992px) {
  .faqContentListWrapper.grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .faqContentListWrapper.grid-view {
    grid-template-columns: 1fr;
    padding: 0rem !important;
  }
}

/* Icons section */
.faqContentIcon {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.iconContainer {
  background-color: transparent;
  border: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.faqContentIcon .bi-dash-lg {
  display: none;
}

.faqContentListContainer.is-expanded .bi-dash-lg,
.customFaqContentListContainer.is-expanded .bi-dash-lg {
  display: inline-flex;
}

.faqContentListContainer.is-expanded .bi-plus-lg,
.customFaqContentListContainer.is-expanded .bi-plus-lg {
  display: none;
}

/* Tags */
.companyTagsWrapper {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: start;
  justify-content: start;

  /* ✅ NEW: reserve height so tags align even when missing */
  min-height: 34px;
}

.tagContainer {
  padding: 0.2rem 0.5rem;
  border: 2px solid #163571;
  color: #163571;
  font-size: 0.8rem;
  border-radius: 25px;
}

/* Card button */
.viewBtn {
  border: none;
  background-color: #1b4297;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  flex-direction: row;
  gap: 0.5rem;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.viewBtn:hover {
  background-color: #163571;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.viewBtnText {
  white-space: nowrap;
}

/* Optional button used in some pages */
.viewMoreBtn {
  border: none;
  background-color: transparent;
  padding: 0.35rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #1b4297;
  align-items: center;
  justify-content: end;
  border-radius: 10px;
  font-size: 1rem;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.mobileViewToggle {
  display: none;
  flex-direction: row;
  justify-content: end;
  width: 100%;
}

.mblViewWrapper {
  border: none;
  background-color: transparent;
  padding: 0rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #1b4297;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1rem;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* ===========================
   ✅ NEW: CARD ALIGNMENT HELPERS
   (only ADD, doesn't remove existing items)
=========================== */

/* Use this class on both normal & special card containers */
.resultCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 250px;
  /* tweak if needed */
}

.list-view .resultCard {
  min-height: auto;
}

.resultCard.is-expanded {
  min-height: auto;
}

/* Make wrapper fill height so bottom can be pushed */
.resultCard .faqContentHeaderWrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.faqContentListWrapper.list-view .resultCard .faqContentHeaderContainer {
  min-height: unset;
}

.faqContentListWrapper.list-view .faqHeader {
  min-height: unset !important;
}

.faqContentListWrapper.list-view .customCategoryBadgeContainer {
  min-height: unset !important;
}

/* Keep header consistent even if company data missing */
.resultCard .faqContentHeaderContainer {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  align-items: flex-start;
  min-height: 74px;
}

/* A “content row” that stretches */
.resultCard .cardContentRow {
  display: flex;
  gap: 1rem;
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* Content area grows */
.resultCard .faqContentBodyContainer {
  flex: 1;
  min-width: 0;
}

/* Action area sticks to bottom */
.resultCard .cardActionsRow {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

/* In grid-view: actions align bottom-right in the card */
.faqContentListWrapper.grid-view .resultCard .faqContentIcon {
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: start;
}

/* In list-view: keep your vertical icons */
.faqContentListWrapper.list-view .resultCard .faqContentIcon {
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
}

/* ===========================
   8) PAGINATION
=========================== */

.paginationWrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 450px) {
  .paginationWrapper {
    gap: 1rem !important;
  }
  .pageWrapper {
    gap: 0.5rem !important;
  }
}
.prevButton,
.nextButton {
  background-color: transparent;
  border: 2px solid #d5d7da;
  height: fit-content;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.pageWrapper {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 0rem;
  margin: 0;
  list-style: none;
}

.pageNum {
  padding: 0.5rem;
  cursor: pointer;
}

.currentPage {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

/* ===========================
   9) FOOTER
=========================== */

.footerWrapper {
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 2rem 1rem;
  background-repeat: repeat;
  background-size: contain;
  gap: 1rem;
}

.footerContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 1rem;
  align-items: start;
  font-weight: 500;
  padding: 2rem 1rem;
  color: #4f4f4f;
}

.logoWrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logoContainer {
  font-size: 2rem;
  color: #1b4297;
}

.joinNowBtn {
  background-color: #1b4297;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.5rem 2rem;
  border-radius: 50px;
}

.footerLegalRow {
  font-weight: 500;
  padding: 2rem 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100%;
  font-size: 0.85rem;
  color: #4f4f4f;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: column;
}

.footerLegalLeft,
.footerLegalCenter,
.footerLegalRight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footerLegalCenter a {
  color: #4f4f4f;
  text-decoration: none;
}

.footerLegalCenter a:hover {
  text-decoration: underline;
}

.footerLink {
  color: #4f4f4f;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .footerWrapper {
    flex-direction: column;
  }

  .footerLegalRow {
    align-items: start !important;
  }

  .footerContainer {
    align-items: start !important;
  }
}

@media screen and (max-width: 450px) {
  .mobileViewToggle {
    display: flex !important;
  }

  .footerLegalLeft {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .faqContentListWrapper
    .faqContentListContainer
    .faqContentHeaderWrapper
    .faqContentHeaderContainer {
    flex-direction: column !important;
    align-items: start !important;
  }

  .resultCard .cardContentRow {
    flex-direction: column-reverse;
  }

  .faqContentIcon {
    flex-direction: row-reverse !important;
  }

  .faqContentListWrapper .faqContentListContainer {
    padding: 1rem !important;
  }
}

/* ===========================
   10) RESPONSIVE (ALL AT END)
=========================== */
@media screen and (max-width: 768px) {
  .faqContentListWrapper {
    padding: 0rem !important;
  }

  .faqPageWrapper .faqSplashContainer .faqMainHeader {
    font-size: 2rem !important;
  }

  .searchContainer {
    padding: 0.5rem !important;
  }

  .faqSearchBox {
    width: 100% !important;
  }

  .footerContainer {
    font-size: 0.825rem !important;
    font-weight: 400 !important;
    color: #4f4f4f;
    padding: 0rem;
  }

  .searchHintWrapper {
    flex-direction: column;
    gap: 0.25rem;
  }

  .faqContentListContainer {
    align-items: flex-start !important;
  }

  .companyTagsWrapper {
    align-items: center !important;
    justify-content: start !important;
  }
}

@media screen and (max-width: 450px) {
  .viewMoreBtn {
    display: none !important;
  }

  .nextButton {
    flex-direction: column-reverse;
  }

  .prevButton {
    flex-direction: column;
  }

  .footerContainer {
    gap: 1rem;
  }

  .tagLineTitle,
  .tagLineSub {
    text-align: center;
  }

  .companyTagsWrapper {
    align-items: center !important;
    justify-content: start !important;
  }
}

/* ===========================
   11) Scroll to Top
=========================== */
#scrollToTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1b4297;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 999;
}

#scrollToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollToTopBtn:hover {
  background-color: #16367a;
}

@media (max-width: 768px) {
  .customFaqContentListContainer {
    padding-top: 3rem;
  }
}

/* ===========================
   FAQ SIDEBAR
=========================== */

.faqSidebar {
  background: transparent;
  border-radius: 20px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebarTitle {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #8a94ad;
  margin-bottom: 0.75rem;
}

.sidebarItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  color: #4f4f4f;
  font-size: 0.95rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.sidebarItem i {
  font-size: 1rem;
  color: #9aa4bf;
}

.sidebarItem:hover {
  background-color: #eef4ff;
  color: #163571;
}

.sidebarItem:hover i {
  color: #163571;
}

.sidebarItem.active {
  background-color: #1b4297;
  color: #ffffff;
}

.sidebarItem.active i {
  color: #ffffff;
}

/* ===========================
      MOBILE CATEGORY DROPDOWN
    =========================== */

.categoryDropdownBtn {
  background-color: #faf7ef;
  border: 1px solid rgba(22, 53, 113, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: left;
  color: #163571;
  font-weight: 600;
}

.categoryDropdownBtn:focus,
.categoryDropdownBtn:active {
  box-shadow: none !important;
}

.categoryDropdownMenu {
  border-radius: 14px;
  border: 1px solid rgba(22, 53, 113, 0.12);
  padding: 0.35rem;
  background-color: #faf7ef;
}

.categoryDDItem {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: #4f4f4f;
  font-weight: 500;
}

.categoryDDItem i {
  color: #9aa4bf;
}

.categoryDDItem:hover {
  background: #eef4ff;
  color: #163571;
}

.categoryDDItem:hover i {
  color: #163571;
}

.categoryDDItem.active {
  background: #1b4297;
  color: #ffffff;
}

.categoryDDItem.active i {
  color: #ffffff;
}

/* Mobile: hide sidebar */
@media (max-width: 991px) {
  .faqSidebar {
    display: none;
  }
}

/* 404 Error */

.title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  text-align: center;
}

.sub {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 3rem;
}


/* ===== Button ===== */
.btn.primary {
  background: #163571;
  color: #fff;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  width: max-content;
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 12px 24px rgba(0,0,0,0.3);
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.35);
}

/* ===== Row alignment ===== */
.row {
  justify-content: center;
}
