/* Q&A (CPT) – Page-specific styles refining existing templates */

/* Float header over hero on QA page */
body.page-template-page-qa-php #header-section { position: absolute; left: 0; right: 0; top: 0; background: transparent !important; }
body.page-template-page-qa-php #header-section .site-header { background: transparent !important; box-shadow: none !important; position: relative; z-index: 1000; }
body.page-template-page-qa-php .followWrap { height: 0 !important; }
/* Keep header links/toggle white only on desktop overlay; do not force white in mobile menu */
@media (min-width: 1141px) {
  body.page-template-page-qa-php #header-section .onepress-menu > li > a { color: #fff; }
  body.page-template-page-qa-php #header-section #nav-toggle,
  body.page-template-page-qa-php #header-section .nav-toggle-subarrow i { color: #fff; }
}

/* QA hero same design as technology */
body.page-template-page-qa-php .page-header.page--cover { position: relative; min-height: 600px; padding: 0; display: flex; align-items: flex-end; }
body.page-template-page-qa-php .page-header.page--cover:before { background: none !important; }
body.page-template-page-qa-php .page-header .container { position: relative; }
body.page-template-page-qa-php .evntry-title { bottom: 100px; }

/* Category filter and header alignment */
.qa-category-filter { padding: 30px 0; background: transparent; border-bottom: 1px solid #e1e6ee; }
.qa-filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.qa-filter-btn { background: #fff; border: 2px solid #011936; color: #011936; padding: 10px 22px; border-radius: 4px; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.qa-filter-btn:hover, .qa-filter-btn.active { background: #011936; color: #fff; }

/* Accordion styling */
.qa-accordion { background: #fff; border: 1px solid #e6e9ef; border-radius: 6px; overflow: hidden; }
.qa-item { border-bottom: 1px solid #e9e9e9; }
.qa-item:last-child { border-bottom: none; }
.qa-question { display: flex; align-items: center; padding: 18px; background: #fff; transition: background .2s ease; cursor: pointer; }
.qa-question:hover { background: #f3f6fa; }
.qa-question.active { background: #eef2f7; }
.qa-question-icon, .qa-answer-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.qa-question-icon { background: #011936; color: #fff; margin-right: 12px; }
.qa-toggle-icon { margin-left: 12px; color: #666; transition: transform .2s ease; }
.qa-question.active .qa-toggle-icon { transform: rotate(45deg); }
.qa-question-text { flex: 1; font-weight: 600; color: #222; }

.qa-answer { display: none; }
.qa-answer.active { display: block; }
.qa-answer-content { margin: 0 18px 18px 38px; padding: 16px; background: #fff; border: none; border-radius: 4px; }
/* Category title spacing */
body.page-template-page-qa-php .qa-category-title { margin-top: 20px; }
.qa-answer-text { color: #333; line-height: 1.7; }

/* Single */
.qa-single-question { background: #f8f9fa; border-radius: 6px; padding: 18px; }

/* Taxonomy page */
.qa-category-nav .btn { border: 2px solid #03c4eb; color: #03c4eb; padding: 8px 12px; border-radius: 4px; text-decoration: none; }
.qa-category-nav .btn:hover { background: #03c4eb; color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .qa-answer-content { margin: 0 12px 12px 34px; padding: 14px; }
}

/* Break out ssgbgbx in QA intro to full-bleed */
body.page-template-page-qa-php .qa-intro .ssgbgbx {
  position: relative;
  box-sizing: content-box;
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* ssgbgbx background alignment on QA page: left center (override global 8%) */
body.page-template-page-qa-php .ssgbgbx { background-position: left center !important; }
