/* ==========================================================================
   FAQ PAGE STYLES (100% MATCH TO DESIGN SCREENSHOT)
   ========================================================================== */

body {
  background-color: #f8fafc;
  color: #1e293b;
  font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
/* FAQ Specific Header Overlay & Hero Styles */
body.has-subpage-header {
  padding-top: 0 !important;
}

#card-nav-root .thursina-subpage-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 90px !important;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 100 !important;
}

.faq-hero {
  position: relative;
  background-color: #104ba0;
  background-image: 
    linear-gradient(90deg, 
      rgba(24, 102, 205, 0.96) 0%, 
      rgba(20, 90, 185, 0.92) 42%, 
      rgba(16, 75, 160, 0.68) 72%, 
      rgba(10, 45, 110, 0.25) 100%
    ),
    url('assets/images/faq-hero-student.jpg');
  background-position: 72% -45px;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 95px 0 80px;
  color: #ffffff;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.faq-hero-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 12px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.faq-hero-left {
  flex: 1;
  max-width: 620px;
}

@media (max-width: 991px) {
  .faq-hero {
    background-image: 
      linear-gradient(180deg, 
        rgba(11, 31, 92, 0.94) 0%, 
        rgba(11, 31, 92, 0.85) 60%, 
        rgba(11, 31, 92, 0.7) 100%
      ),
      url('assets/images/faq-hero-student.jpg');
    background-position: center top;
    padding: 70px 0 70px;
    min-height: auto;
  }
  .faq-hero-container {
    flex-direction: column;
    padding: 0 24px;
    text-align: center;
  }
  .faq-hero-left {
    max-width: 100%;
    text-align: center;
  }
  .faq-breadcrumb {
    margin-left: auto;
    margin-right: auto;
  }
  .faq-hero-pills {
    justify-content: center;
  }
}

.faq-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}
.faq-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.faq-hero-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.faq-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}
.faq-hero-title .faq-q-orange {
  color: #f97316;
}

.faq-hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.faq-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}
.faq-pill:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.faq-pill i {
  color: #60a5fa;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   LAYOUT SECTION (2 COLUMNS)
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 60px 0 90px;
}

.faq-layout-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 992px) {
  .faq-layout-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   LEFT SIDEBAR (CATEGORIES + HELPDESK BOX)
   -------------------------------------------------------------------------- */
.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-category-nav {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
}

.faq-cat-btn-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.faq-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.faq-cat-text {
  display: flex;
  flex-direction: column;
}

.faq-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.faq-cat-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 400;
  margin-top: 2px;
}

.faq-cat-arrow {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* HOVER & ACTIVE CATEGORY STYLES */
.faq-cat-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.faq-cat-btn:hover .faq-cat-icon {
  background: #dbeafe;
  color: #2563eb;
}

.faq-cat-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.faq-cat-btn.active .faq-cat-title,
.faq-cat-btn.active .faq-cat-sub,
.faq-cat-btn.active .faq-cat-arrow {
  color: #ffffff !important;
}

.faq-cat-btn.active .faq-cat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.faq-cat-btn.active .faq-cat-arrow {
  transform: translateX(3px);
}

/* HELPDESK BOX */
.faq-help-box {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-help-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-size: 26px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.faq-help-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.faq-help-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}

.faq-help-btn {
  width: 100%;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.faq-help-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   RIGHT MAIN CONTENT (HEADER, SEARCH, ACCORDION)
   -------------------------------------------------------------------------- */
.faq-main-content {
  display: flex;
  flex-direction: column;
}

.faq-main-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.faq-header-info {
  max-width: 600px;
}

.faq-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #2563eb;
  margin-bottom: 6px;
}

.faq-content-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.25;
}
.faq-content-title .highlight-blue {
  color: #2563eb;
}

.faq-content-subtitle {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* SEARCH INPUT BAR */
.faq-search-wrap {
  position: relative;
  min-width: 260px;
}

.faq-search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  transition: all 0.25s ease;
}

.faq-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

/* ACCORDION ITEMS */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
  border-color: #93c5fd;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.faq-item-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-item-question {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.faq-item.active .faq-item-question {
  color: #1d4ed8;
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  background: #dbeafe;
  color: #1d4ed8;
  transform: rotate(180deg);
}

.faq-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 22px;
}

.faq-item.active .faq-item-body {
  max-height: 500px;
  padding: 0 22px 22px;
}

.faq-item-answer {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

/* NO RESULTS STATE */
.faq-no-results {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.faq-no-results i {
  font-size: 32px;
  color: #94a3b8;
  margin-bottom: 12px;
}
