﻿/* FAQ Layout Structure */
.faq-wrapper {
    position: relative;
}

.faq-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar Styles */
.faq-sidebar-wrapper {
    width: 280px;
    flex-shrink: 0;
}

.faq-sidebar {
    width: 280px;
    height: auto;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: top 0.1s ease-out;
}

.faq-sidebar.is-fixed {
    position: fixed;
    top: 60px;
}

.faq-sidebar.is-absolute-bottom {
    position: absolute;
    bottom: 0;
    top: auto;
}

.faq-sidebar::-webkit-scrollbar {
    width: 6px;
}

.faq-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.faq-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

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

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

.faq-sidebar li {
    margin-bottom: 0.5rem;
}

.faq-sidebar a {
    display: block;
    padding: 0.5rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.faq-sidebar a:hover,
.faq-sidebar a.active {
    background: var(--green);
    color: #000;
    font-weight: 600;
    border-radius:50rem;
}

.faq-sidebar .sub-section {
    padding-left: 0;
    margin-top: 0.25rem;
}

.faq-sidebar .sub-section li {
    margin-bottom: 0.25rem;
}

.faq-sidebar .sub-section a {
    padding: 0.4rem 1rem 0.4rem 2rem;
    font-size: 0.85rem;
    position: relative;
}

            .faq-sidebar .sub-section a:before {
                content: "→";
                position: absolute;
                left: 1rem;
                opacity: 0.5;
            }

/* Main Content Area */
.faq-content {
    flex: 1;
    min-width: 0;
}

/* FAQ Sections - Main Categories with Borders */
.faq-section {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
    padding: 40px 35px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
}

/* Optional: Add a subtle hover effect */
.faq-section:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* Optional: Add a decorative accent at the top of each section */
.faq-section:before {
    content: '';
    position: absolute;
    top: -2px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    border-radius: 3px 3px 0 0;
}

.faq-section:first-child {
    padding-top: 40px;
}

.faq-section h2 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    color: #000;
    margin-top: -15px; /* Adjust for the section padding */
}

.faq-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #000;
    opacity: 0.2;
}

/* Sub-section Headers (Affiliates, IB, PAMM) */
.faq-section h3 {
    margin: 2.5rem 0 1.5rem;
    font-size: 1.8rem;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.faq-section h3:first-child {
    margin-top: 0;
}

.faq-section h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #000;
    opacity: 0.3;
}

/* Special styling for the first section - Accounts */
#accounts.faq-section {
    border-color: rgba(0, 86, 179, 0.15);
}

#accounts.faq-section:hover {
    border-color: rgba(0, 86, 179, 0.3);
}

/* Special styling for Partners section */
#partners.faq-section {
    border-color: rgba(40, 167, 69, 0.15);
}

#partners.faq-section:hover {
    border-color: rgba(40, 167, 69, 0.3);
}

/* Special styling for Account Funding section */
#account-funding.faq-section {
    border-color: rgba(255, 193, 7, 0.15);
}

#account-funding.faq-section:hover {
    border-color: rgba(255, 193, 7, 0.3);
}

/* Special styling for Forex section */
#forex.faq-section {
    border-color: rgba(23, 162, 184, 0.15);
}

#forex.faq-section:hover {
    border-color: rgba(23, 162, 184, 0.3);
}

/* Special styling for Commodities section */
#commodities.faq-section {
    border-color: rgba(220, 53, 69, 0.15);
}

#commodities.faq-section:hover {
    border-color: rgba(220, 53, 69, 0.3);
}

/* Special styling for Indices section */
#indices.faq-section {
    border-color: rgba(111, 66, 193, 0.15);
}

#indices.faq-section:hover {
    border-color: rgba(111, 66, 193, 0.3);
}

/* Special styling for Stocks section */
#stocks.faq-section {
    border-color: rgba(32, 201, 151, 0.15);
}

#stocks.faq-section:hover {
    border-color: rgba(32, 201, 151, 0.3);
}

/* Special styling for ETFs section */
#etfs.faq-section {
    border-color: rgba(253, 126, 20, 0.15);
}

#etfs.faq-section:hover {
    border-color: rgba(253, 126, 20, 0.3);
}

/* Special styling for Crypto section */
#crypto.faq-section {
    border-color: rgba(108, 117, 125, 0.15);
}

#crypto.faq-section:hover {
    border-color: rgba(108, 117, 125, 0.3);
}

/* Special styling for MetaTrader 5 section */
#meta-trader-5.faq-section {
    border-color: rgba(0, 158, 224, 0.15);
}

#meta-trader-5.faq-section:hover {
    border-color: rgba(0, 158, 224, 0.3);
}

/* Special styling for Execution, Pricing & Trade Quality section */
#eptq.faq-section {
    border-color: rgba(194, 24, 91, 0.15);
}

#eptq.faq-section:hover {
    border-color: rgba(194, 24, 91, 0.3);
}

/* Special styling for Orders & Risk Controls section */
#orc.faq-section {
    border-color: rgba(92, 104, 115, 0.15);
}

#orc.faq-section:hover {
    border-color: rgba(92, 104, 115, 0.3);
}

/* Special styling for Leverage & Margin section */
#lnm.faq-section {
    border-color: rgba(245, 124, 0, 0.15);
}

#lnm.faq-section:hover {
    border-color: rgba(245, 124, 0, 0.3);
}

/* Special styling for MT5 & Platform Features section */
#mt5-pf.faq-section {
    border-color: rgba(0, 150, 136, 0.15);
}

#mt5-pf.faq-section:hover {
    border-color: rgba(0, 150, 136, 0.3);
}

/* Special styling for Markets section */
#markets.faq-section {
    border-color: rgba(63, 81, 181, 0.15);
}

#markets.faq-section:hover {
    border-color: rgba(63, 81, 181, 0.3);
}

/* Special styling for Market Structure & Price Behavior section */
#mspb.faq-section {
    border-color: rgba(233, 30, 99, 0.15);
}

#mspb.faq-section:hover {
    border-color: rgba(233, 30, 99, 0.3);
}

/* Special styling for Trading Sessions & Timing section */
#trading.faq-section {
    border-color: rgba(156, 39, 176, 0.15);
}

#trading.faq-section:hover {
    border-color: rgba(156, 39, 176, 0.3);
}

/* Special styling for Strategy, Analysis & Decision-Making section */
#sadm.faq-section {
    border-color: rgba(76, 175, 80, 0.15);
}

#sadm.faq-section:hover {
    border-color: rgba(76, 175, 80, 0.3);
}

/* Special styling for Psychology & Behavior section */
#psychology.faq-section {
    border-color: rgba(255, 87, 34, 0.15);
}

#psychology.faq-section:hover {
    border-color: rgba(255, 87, 34, 0.3);
}

/* Special styling for Risk Awareness & Responsibility section */
#risk.faq-section {
    border-color: rgba(121, 85, 72, 0.15);
}

#risk.faq-section:hover {
    border-color: rgba(121, 85, 72, 0.3);
}

/* Accordion Container inside bordered sections */
.faq-section .accordion_scn {
    margin: 30px auto 0;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Section Highlight on Navigation */
.faq-section:target {
    animation: highlight 1.5s ease;
    border-color: rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03), 0 8px 25px rgba(0, 0, 0, 0.1);
}

@keyframes highlight {
    0% {
        background: rgba(0, 0, 0, 0.02);
        border-color: rgba(0, 0, 0, 0.2);
    }
    50% {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.4);
    }
    100% {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.15);
    }
}

/* Mobile Responsive adjustments */
@media (max-width: 991px) {
    .faq-section {
        padding: 30px 25px;
    }
    
    .faq-section h2 {
        font-size: 2rem;
        margin-top: -10px;
    }
    
    .faq-section h3 {
        font-size: 1.5rem;
    }
    
    .faq-section:before {
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 25px 20px;
        border-width: 1.5px;
        border-radius: 20px;
    }
    
    .faq-section h2 {
        font-size: 1.8rem;
        margin-top: -8px;
    }
    
    .faq-section h3 {
        font-size: 1.4rem;
        padding-left: 12px;
    }
}

@media (max-width: 576px) {
    .faq-section {
        padding: 20px 15px;
        border-width: 1px;
        border-radius: 16px;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
        margin-top: -5px;
    }
    
    .faq-section h3 {
        font-size: 1.2rem;
        margin: 2rem 0 1rem;
    }
    
    .faq-section:before {
        left: 15px;
        right: 15px;
        height: 2px;
    }
}



/* Accordion Container */
.accordion_scn {
    padding: 36px 24px;
    width: 100%;
    margin: 30px auto 0;
    border-radius: 32px;
    border-width: 2px;
    padding: 44px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Remove max-width constraint to allow full width */
.mw-unset {
    max-width: unset !important;
}

/* Category Container */
.category_acc {
    display: block;
}

/* Individual Accordion Items */
.accordion_bx {
    margin: 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

    .accordion_bx:first-child .accordion_Cl {
        margin-top: 0;
    }

    .accordion_bx:last-child {
        margin: 0;
        border: none;
        padding: 0;
    }

/* Accordion Question */
.accordion_Cl {
    font-size: 20px;
    line-height: 32px;
    padding: 10px 50px 10px 0;
    font-weight: 500;
    color: #000;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: 0.5s all ease;
    position: relative;
    margin-top: 16px;
}

.accordion_bx:first-child .accordion_Cl {
    margin-top: 0;
}

.accordion_Cl:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(../images/accordion_dn_arrow.svg) no-repeat center center;
    z-index: 9;
    width: 44px;
    height: 44px;
    background-size: 43px;
    transition: transform 0.3s ease;
}

.accordion_bx_Add .accordion_Cl:before {
    background: url(../images/accordion_up_arrow.svg) no-repeat center center;
    width: 25px;
    height: 25px;
    background-size: 24px;
    transform: translateY(-50%) rotate(180deg);
}

/* Active State */
.accordion_bx.active .accordion_Cl:before {
    transform: translateY(-50%) rotate(180deg);
}

.accordion_bx.active .accordion_Cl {
    color: #000;
    font-weight: 600;
}

/* Accordion Answer */
.accordion_Show {
    padding: 0;
    text-align: left;
    display: none;
}

    .accordion_Show.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion_Show1 {
    display: block;
}

.accordion_Show p {
    color: #000;
    padding: 15px 0 5px;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Content Lists */
.acc_content ul {
    margin: 10px 0 15px;
}

    .acc_content ul li {
        font-size: 18px;
        line-height: 24px;
        padding: 0 0 13px 30px;
        position: relative;
        color: #000;
        font-weight: 300;
        list-style-type: none;
    }

        .acc_content ul li:before {
            content: "";
            position: absolute;
            width: 14px;
            height: 10px;
            top: 9px;
            left: 0px;
            background: currentColor;
            opacity: 0.5;
        }

.acc_content strong {
    font-weight: 600;
}

/* Partners Section Specific */
#partners .category_acc > h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

    #partners .category_acc > h3:first-of-type {
        margin-top: 0;
    }

/* Section Highlight on Navigation */
.faq-section:target {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% {
        background: rgba(0, 0, 0, 0.02);
    }

    100% {
        background: transparent;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .faq-container {
        flex-direction: column;
    }

    .faq-sidebar-wrapper,
    .faq-sidebar {
        width: 100%;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        height: auto;
        max-height: 400px;
        margin-bottom: 2rem;
    }

    .faq-section {
        scroll-margin-top: 80px;
    }

        .faq-section h2 {
            font-size: 2rem;
        }

        .faq-section h3 {
            font-size: 1.5rem;
        }

    .accordion_scn {
        padding: 25px 20px;
    }

    .accordion_Cl {
        font-size: 18px;
        line-height: 28px;
        padding-right: 45px;
    }

        .accordion_Cl:before {
            width: 35px;
            height: 35px;
            background-size: 30px;
        }
}

@media (max-width: 576px) {
    .faq-section h2 {
        font-size: 1.8rem;
    }

    .faq-section h3 {
        font-size: 1.3rem;
        padding-left: 12px;
    }

    .accordion_scn {
        padding: 20px 15px;
    }

    .accordion_Cl {
        font-size: 16px;
        line-height: 24px;
        padding: 8px 40px 8px 0;
    }

        .accordion_Cl:before {
            width: 30px;
            height: 30px;
            background-size: 25px;
        }

    .accordion_Show p {
        font-size: 15px;
        line-height: 1.5;
    }

    .acc_content ul li {
        font-size: 15px;
        line-height: 22px;
        padding: 0 0 10px 25px;
    }
}

/* Print Styles */
@media print {
    .faq-sidebar-wrapper {
        display: none;
    }

    .faq-container {
        display: block;
    }

    .accordion_Show {
        display: block !important;
    }

    .accordion_Cl:before {
        display: none;
    }
}
