/*========================================
  FAQ PAGE STYLES
========================================*/

/*========================================
  FAQ MAIN SECTION
========================================*/
.faq-main-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/*========================================
  DESKTOP/TABLET LAYOUT
========================================*/
.faq-wrapper {
    display: flex;
    gap: 70px;
    align-items: flex-start;
}

.desktop-faq-view {
    display: flex;
}

.mobile-faq-view {
    display: none;
}

/* Ensure mobile is hidden on desktop */
@media only screen and (min-width: 768px) {
    .mobile-faq-view {
        display: none !important;
    }
    
    .desktop-faq-view {
        display: flex !important;
    }
}

/*========================================
  STICKY SIDEBAR NAVIGATION
========================================*/
.faq-sidebar-nav {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border-radius: 5px;
    background: var(--White, #FFF);
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.20);
    padding: 20px;
}

.faq-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Main Section Items (H2 equivalent) */
.faq-sidebar-section {
    margin-bottom: 20px;
    cursor: pointer;
    color: #6E6E6E; /* Default gray */
    transition: color 0.3s ease;
    padding-left: 0;
}

.faq-sidebar-section > * {
    display: block;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
    transition: color 0.3s ease;
    line-height: 1.4;
}
.faq-sidebar-section> h2 {
    font-family: "Subway Sans LCG-WebF Cond Med", sans-serif;
    font-size: 18px;
    line-height: 133.33%;
}

/* Active state for main section */
.faq-sidebar-section.active-section {
    color: #000000; /* Black when active */
}

.faq-sidebar-section.active-section > * {
    color: #000000; /* Black when active */
}


/* Subsections List */
.faq-sidebar-subsections {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; /* Hide by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Show subsections when parent section is active */
.faq-sidebar-section.active-section .faq-sidebar-subsections {
    display: block;
    max-height: 500px;
}

.faq-sidebar-subsection {
    padding: 0;
    font-size: 14px;
    color: #6E6E6E;
    cursor: pointer;
    transition: color 0.3s ease;
    /* border-left: 2px solid transparent; */
    line-height: 18px;
    text-transform: initial;
    margin-bottom: 16px;
}

.faq-sidebar-subsection:hover {
    color: #333333;
    /* border-left-color: #cccccc; */
}

.faq-sidebar-subsection.active-subsection {
    color: #000000;
    /* border-left-color: #000000; */
    font-family: "Subway Sans LCG-WebF Med", sans-serif;
}
.faq-sidebar-subsection:first-child {
    margin-top: 16px;
}

/*========================================
  MAIN CONTENT AREA
========================================*/
.faq-main-content {
    flex: 1;
    min-width: 0;
}

.faq-content-section {
    display: none; /* Hide all sections by default */
    margin-bottom: 0;
}

.faq-content-section.faq-section-active {
    display: block; /* Only show active section */
}

.faq-subsection-block {
    margin-bottom: 60px; /* 60px gap between subsections */
}

.faq-subsection-block:last-child {
    margin-bottom: 0;
}

/* Subsection Heading (H3) */
.faq-subsection-heading {
    font-size: 36px;
    line-height: 130.556%;
    color: #000000;
    margin: 0 0 24px 0;
    font-family: "Subway Sans LCG-WebF Bold", sans-serif;
}

/*========================================
  Q&A ACCORDION (DESKTOP)
========================================*/
.faq-qa-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 20px gap between Q&A items */
}

.faq-qa-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.faq-qa-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-qa-question {
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background-color 0.3s ease;
}

.faq-qa-question:hover {
    background-color: #f8f9fa;
}

.faq-qa-item.faq-qa-open .faq-qa-question {
    /* background-color: #f8f9fa; */
    border-bottom: 1px solid #e0e0e0;
}

.faq-question-text {
    flex: 1;
    font-size: 16px;
    line-height: 137.5%;
    color: #000000;
    font-family: "Subway Sans LCG-WebF Med", sans-serif;
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon-chevron {
    transition: transform 0.3s ease;
}

.faq-qa-item.faq-qa-open .faq-icon-chevron {
    transform: rotate(180deg);
}

.faq-qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-qa-item.faq-qa-open .faq-qa-answer {
    max-height: 3000px;
}

.faq-answer-inner {
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

/* Answer content typography */
.faq-answer-inner p {
    margin: 0 0 16px 0;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.faq-answer-inner ul {
    list-style-type: disc; /* Default disc bullets */
}

.faq-answer-inner ol {
    list-style-type: decimal; /* Numbers for ordered lists */
}

.faq-answer-inner li {
    margin-bottom: 8px;
}

.faq-answer-inner a.cta-button {
    color: #fff;
    padding: 13px 20px;
    min-width: auto;
}

.faq-answer-inner a:hover {
    color: #fff;
}

.faq-answer-inner strong {
    font-weight: 600;
}

.faq-answer-inner .button,
.faq-answer-inner a.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #009543;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-top: 12px;
}

.faq-answer-inner .button:hover,
.faq-answer-inner a.button:hover {
    background-color: #007a37;
}

/*========================================
  MOBILE VIEW
========================================*/
.mobile-faq-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mobile Outer Accordion (Main Sections) */
.faq-mobile-section {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff;
}

.faq-mobile-section-header {
    width: 100%;
    padding: 18px 20px;
    background-color: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background-color 0.3s ease;
}

.faq-mobile-section-header:hover {
    background-color: #e9ecef;
}

.faq-mobile-section.mobile-section-open .faq-mobile-section-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.faq-mobile-section-title {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.faq-mobile-section-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-mobile-section-icon svg {
    transition: transform 0.3s ease;
}

.faq-mobile-section.mobile-section-open .faq-mobile-section-icon svg {
    transform: rotate(180deg);
}

.faq-mobile-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-mobile-section.mobile-section-open .faq-mobile-section-content {
    max-height: 10000px;
}

.faq-mobile-section-inner {
    padding: 24px 20px;
}

/* Mobile Subsections */
.faq-mobile-subsection {
    margin-bottom: 40px;
}

.faq-mobile-subsection:last-child {
    margin-bottom: 0;
}

.faq-mobile-subsection-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 20px 0;
}

/* Mobile Q&A List */
.faq-mobile-qa-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-mobile-qa {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff;
}

.faq-mobile-question {
    width: 100%;
    padding: 16px;
    background-color: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-mobile-question:active {
    background-color: #f8f9fa;
}

.faq-mobile-qa.faq-mobile-qa-open .faq-mobile-question {
    background-color: #f8f9fa;
}

.faq-mobile-question-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #000000;
}

.faq-mobile-toggle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-mobile-toggle svg {
    transition: transform 0.3s ease;
}

.faq-mobile-qa.faq-mobile-qa-open .faq-mobile-toggle svg {
    transform: rotate(180deg);
}

.faq-mobile-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-mobile-qa.faq-mobile-qa-open .faq-mobile-answer {
    max-height: 3000px;
}

.faq-mobile-answer-inner {
    padding: 0 16px 16px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

.faq-mobile-answer-inner p {
    margin: 0 0 14px 0;
}

.faq-mobile-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-mobile-answer-inner ul,
.faq-mobile-answer-inner ol {
    margin: 0 0 14px 0;
    padding-left: 20px;
}

.faq-mobile-answer-inner ul {
    list-style-type: disc; /* Default disc bullets */
}

.faq-mobile-answer-inner ol {
    list-style-type: decimal; /* Numbers for ordered lists */
}

.faq-mobile-answer-inner li {
    margin-bottom: 6px;
}

.faq-mobile-answer-inner a {
    color: #0066cc;
    text-decoration: underline;
}

.faq-mobile-answer-inner .button,
.faq-mobile-answer-inner a.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #009543;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    margin-top: 10px;
}

/*========================================
  CUSTOM SCROLLBAR
========================================*/
.faq-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.faq-sidebar-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.faq-sidebar-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.faq-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/*========================================
  RESPONSIVE DESIGN
========================================*/

/* Large Desktop */
@media only screen and (max-width: 1366px) {
    .faq-sidebar-nav {
        top: 100px;
        max-height: calc(100vh - 120px);
    }
    
    .faq-wrapper {
        gap: 60px;
    }
}

/* Desktop */
@media only screen and (max-width: 1200px) {
    .faq-sidebar-nav {
        width: 220px;
    }
    
    .faq-wrapper {
        gap: 50px;
    }
    
    .faq.pgHeader .innerpgTitle {
        font-size: 36px;
    }
}

/* Tablet */
@media only screen and (max-width: 1024px) {
    .faq-sidebar-nav {
        width: 200px;
        top: 80px;
        max-height: calc(100vh - 100px);
    }
    
    .faq-sidebar-section > span,
    .faq-sidebar-section::before {
        font-size: 13px;
    }
    
    .faq-sidebar-subsection {
        font-size: 12px;
    }
    
    .faq-wrapper {
        gap: 40px;
    }
    
    .faq-subsection-heading {
        font-size: 24px;
    }
    
    .faq.pgHeader .innerpgTitle {
        font-size: 32px;
    }
}

/* Small Tablet */
@media only screen and (max-width: 768px) {
    .faq.pgHeader {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .faq.pgHeader .innerpgTitle {
        font-size: 28px;
    }
    
    .faq-main-section {
        padding: 0 0 60px;
    }
}

/* Mobile Breakpoint */
@media only screen and (max-width: 767px) {
    .desktop-faq-view {
        display: none !important;
    }
    
    .mobile-faq-view {
        display: flex !important;
    }
    
    .faq.pgHeader {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .faq.pgHeader .innerpgTitle {
        font-size: 24px;
    }
    
    .faq.pgHeader .default-editor-content {
        font-size: 16px;
    }
    
    .faq-main-section {
        padding: 0 0 40px;
    }
}

/* Small Mobile */
@media only screen and (max-width: 480px) {
    .faq.pgHeader .innerpgTitle {
        font-size: 22px;
    }
    
    .faq-mobile-section-title {
        font-size: 13px;
    }
    
    .faq-mobile-subsection-title {
        font-size: 20px;
    }
    
    .faq-mobile-question-text {
        font-size: 14px;
    }
    
    .faq-mobile-answer-inner {
        font-size: 14px;
    }
}

/*========================================
  ACCESSIBILITY
========================================*/
.faq-qa-question:focus,
.faq-mobile-section-header:focus,
.faq-mobile-question:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.faq-qa-question:focus:not(:focus-visible),
.faq-mobile-section-header:focus:not(:focus-visible),
.faq-mobile-question:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-qa-item,
    .faq-mobile-section,
    .faq-mobile-qa {
        border-width: 2px;
    }
}

/*========================================
  PRINT STYLES
========================================*/
@media print {
    .faq-sidebar-nav,
    .faq-mobile-section-header,
    .faq-mobile-section-icon,
    .faq-toggle-icon,
    .faq-mobile-toggle {
        display: none;
    }
    
    .faq-qa-answer,
    .faq-mobile-answer,
    .faq-mobile-section-content {
        max-height: none !important;
    }
    
    .faq-qa-item,
    .faq-mobile-qa,
    .faq-mobile-section {
        border: 1px solid #cccccc;
        page-break-inside: avoid;
    }
    
    .faq-main-content {
        width: 100%;
    }
}