* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  margin: 0;
}

body {
  background-color: #f4f6fb;
}

.help-wrapper {
  max-width: 1450px;
  margin: 0 auto;
  padding: 40px 4vw;
}

.hero {
  text-align: center;
  background-color: #103254;
  padding: 40px 4vw;
  border-radius: 20px;
  color: white;
}

.hero h1 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* ---------- Custom Title Header ---------- */
/* ---------- for detail page only ----------------- ---------- */

.faq-detail-wrap {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0px 4vw 30px;
  background-color: #182249;
  color: white;
  text-align: center;
}

.faq-folder-wrap {
    display: flex;
    justify-content: center;
    padding: 50px 4vw;
    background-color: #f5f6f9;
    margin: 0 auto;
    max-width: 1450px;
}

.faq-folder-box-detail {
  background: white;
  padding: 40px;
   padding-top: 10px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 10px;
}

.faq-title-detail {
  font-size: 40px;
  font-weight: 700;
  margin: 10px 0 10px;
  text-align: left;
  padding: 0 3vw;
}

.faq-title-detail a {
  font-size: 20px;
  font-weight: normal;
  margin: 10px 0 10px;
  text-align: left;
}



.title-kc-detail {
  width: 100vw; /* force full viewport width */
  margin-left: calc(-50vw + 50%); /* cancel parent container centering */
  background-color: #182249;
  color: white;
  padding: 0px 8% 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top bar (breadcrumb left, search right) */
.top-bar-detail {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb-detail {
  font-size: 14px;
  color: #b0c4d8;
  padding: 0px 0 40px;
}

.breadcrumb-detail a {
  color: #b0c4d8;
  text-decoration: none;
}

.breadcrumb-detail span {
  color: #ffffff;
  font-weight: 500;
}

/* Search bar */
.search-bar-detail {
  display: flex;
  justify-content: flex-end;
}

.search-form-detail {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.search-form-detail input[type="text"] {
  border: none;
  outline: none;
  font-size: 14px;
  width: 600px; /* ⬅️ increase as needed */
  max-width: 100%; /* optional for responsiveness */
  background: transparent;
  color: #333;
  padding: 18px;
  border-radius: 10px;
}

.search-form-detail button {
    background: #e0e0e0;
    border: none;
    padding: 18px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 12px 12px 0;
}


.search-form-detail img {
  width: 18px;
  height: 18px;
  object-fit: contain;

  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.search-form-detail button:hover img {
  filter: grayscale(0%);
}




/* Title (centered below top bar) */
.page-title-detail {
  margin-top: 30px;
  font-size: 32px;
  font-weight: bold;
  text-transform: lowercase;
  text-align: center;

  /* Add these for animation */
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.8s ease-out forwards;
}



/* ------------------------- Search Bar Shared ---------------------------- */
/* kcenter */
.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 60%;
margin: 0 auto;
}

/* for folder and details*/
.search-form-aligned {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 60%;
}

.search-bar form,
.search-form-aligned form {
  display: flex;
  width: 100%;
  align-items: center;
}

.search-bar input,
.search-form-aligned input {
  flex: 1;
  border: none;
  padding: 16px 16px;
  font-size: 14px;
  outline: none;
}

.search-bar button,
.search-form-aligned button {
  background: #e0e0e0;
  border: none;
  padding: 16px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button img,
.search-form-aligned button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.search-bar button:hover img,
.search-form-aligned button:hover img {
  filter: grayscale(0%);
}

/* Wrapper for center alignment */
.search-bar-wrapper {
width: 400px;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.search-bar-folderwrap {
width: 400px;
  display: flex;
  justify-content: flex-end;
  width: 75%;
  max-width: 100%;

}

.search-section-aligned {
  background-color: #182249;
  padding: 20px 4vw;
  margin: 40px auto 20px; /* space from navbar */
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.breadcrumb {
  flex: 1;
  font-size: 0.95rem;
}


/* ------------------------- Help Box ---------------------------- */
.help-box {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.box-title {
  font-size: 35px;
  margin-bottom: 25px;
  color: #103254;
}

/* ------------------------- Grid Layout ---------------------------- */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: white;
}

.grid-item {
  padding: 20px;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.grid-item:nth-child(2n) {
  border-right: none;
}

.grid-item:nth-last-child(1),
.grid-item:nth-last-child(2) {
  border-bottom: none;
}

.grid-item h3 {
  margin-bottom: 15px;
  color: #103254;
  font-size: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.grid-item a {
  text-decoration: none;

}

.grid-item ul {
  list-style: none;
  padding-left: 35px;
  margin: 0;
}

.grid-item ul li {
  margin-bottom: 10px;
}

.grid-item ul li a {
  text-decoration: none;
  color: #2167b2;
  font-size: 16px;
}



.grid-item ul li a:hover {
  text-decoration: underline;
}

.grid-item img {
  margin-bottom: -5px;
}

/* Responsive grid fix */
@media (max-width: 767px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .search-bar,
  .search-form-aligned {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
  }
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 1150px) {
  .grid-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------- FAQ Detail & Folder Page --------------------- */
.faq-page-container{
  max-width: 1450px;
  margin: 10px auto 40px;
  padding: 1px 4vw;
}

.faq-detail-wrapper {
  max-width: 1450px;
  margin: 10px auto 40px;
}

.faq-main-content {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}

.faq-left-column {
  flex: 3;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.faq-left-column img,
.faq-left-column iframe,
.faq-left-column video,
.faq-left-column .fr-view,
.faq-left-column p,
.faq-left-column h1,
.faq-left-column h2,
.faq-left-column h3,
.faq-left-column ul,
.faq-left-column ol {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.breadcrumb a {
text-decoration: none;
}

.faq-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 40px 0 10px;
  text-align: center;
}

.faq-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 20px;
}

.youtube-embed {
  width: 80%;
  margin: 50px auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.faq-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.faq-right-column {
  flex: 1;
  background: #f9fbff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.09);
  min-width: 280px;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section img{
  width: 20px;
  height: 20px;
  margin-right: 6px;
    margin-top: -3px;

}


.sidebar-section h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

.sidebar-section ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-section ul li {
  margin-bottom: 15px;
}

.sidebar-section ul li a {
  text-decoration: none;
  color: #1a73e8;
  font-size: 0.95rem;

  display: flex;           /* add this */
  align-items: center;     /* add this */
  gap: 6px;
}

.sidebar-section ul li a:hover {
  color: #1252a4;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .faq-main-content {
    flex-direction: column;
  }
  .faq-left-column,
  .faq-right-column {
    width: 100%;
  }
  .faq-right-column {
    margin-top: 30px;
  }
}

/* --------------------- FAQ Folder --------------------- */
.faq-folder-wrapper {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  background-color: #f5f6f9;
}

.faq-folder-box {
  background: white;
  padding: 40px;
   padding-top: 10px;
  max-width: 1000px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 10px;
}

.faq-folder-box h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.faq-folder-box a {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: normal;
  color: gray;
}

.faq-folder-box p {
  color: #888;
  margin-bottom: 25px;
}

.faq-list {
  list-style: none;
  padding-left: 0;
  margin-top: 40px;
}

.faq-list li {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.faq-list a {
  text-decoration: none;
  color: #0077cc;
  font-weight: 500;
  transition: color 0.3s;
}

.faq-list a:hover {
  color: #005fa3;
}

.folder-title-label {
  background-color: #faab1c;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 4px;
  display: inline-block;
}


/* ------------------------- Search Results Page ---------------------------- */
.search-results-container {
  padding: 30px;
  border-radius: 10px;
  max-width: 1000px;
  margin: 0 auto;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d355e;
  color: white;
  padding: 20px;
  border-radius: 10px;
}

.search-title h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.results-list {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.results-list h3 {
  margin-bottom: 40px;
  font-size: 30px;
}

.result-item {
  margin-bottom: 15px;
  font-size: 1rem;
}

.result-item a {
  color: #0d3c91;
  text-decoration: none;
  font-weight: normal;
}

.result-item mark {
  background-color: #ffff99;
  padding: 0 2px;
}

.faq-tag,
.faq-category {
  display: inline-block;
  background: #e1ecf4;
  color: #0366d6;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.pagination-wrapper {
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

.pagination {
  display: inline-flex;
  padding-left: 0;
  list-style: none;
  border-radius: 6px;
}

.pagination li {
  margin: 0 4px;
}

.pagination li a,
.pagination li span {
  color: #0e2d47;
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.pagination li a:hover {
  background-color: #f0f4f8;
  color: #0e2d47;
}

.pagination .active span {
  background-color: #0e2d47;
  color: white;
  border-color: #0e2d47;
}

.pagination .disabled span {
  color: #aaa;
  background-color: #f9f9f9;
  border-color: #eee;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .pagination li a,
  .pagination li span {
    padding: 6px 10px;
    font-size: 12px;
  }

  .pagination-wrapper {
    margin-top: 30px;
  }
}


