/* FAQ Page Styles - Matching Reference Design */

/* ===== Container and Layout ===== */
.container-md {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumb {
    background-color: #f7f7f7;
    margin-top: 10px;
    padding: 10px 18.5%;
    font-size: 14px;
    max-width: 100%;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    color: #555;
}

/* ===== Page Title ===== */
.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* ===== Tags/Filter Buttons ===== */
.tags {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
    border: none;
    text-transform: uppercase;
}

.badge-primary {
    background-color: #564869 !important;
    color: white !important;
}

.badge-light {
    background-color: #e5e7eb !important;
    color: #564869 !important;
}

.badge-pill {
    border-radius: 50px;
}

.tags:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== FAQ Item Container ===== */
.w-100 {
    width: 100%;
}

/* ===== FAQ Question (Expandable Header) ===== */
.faqExpand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    gap: 1rem;
    width: 100%;
}

.faqExpand:hover {
    color: inherit;
}

/* Question text when collapsed */
.faqExpand .expandMore {
    flex: 1;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    text-align: left;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Question text when expanded */
.faqExpand .expandLess {
    flex: 1;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    text-align: left;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Chevron icon container */
.faqExpand > div:last-child {
    flex-shrink: 0;
    width: 24px;              /* fixed width */
    height: 24px;             /* fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chevron icons */
.faqExpand .fa-chevron-down,
.faqExpand .fa-chevron-up {
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.faqExpand:hover .fa-chevron-down,
.faqExpand:hover .fa-chevron-up {
    color: #000;
}

/* ===== FAQ Answer Content ===== */
.faqContent {
    padding: 0;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faqContent.show {
    max-height: 3000px;
    padding: 0 0 1.25rem 0;
    opacity: 1;
}

.faqContent p {
    font-size: 0.95rem;
    color: #564869;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.faqContent p:last-child {
    margin-bottom: 0;
}

/* ===== Link Icon Tooltip ===== */
.tooltipv2 {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.tooltipv2 .fa-link {
    font-size: 0.875rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.tooltipv2 span:hover .fa-link {
    color: var(--primary-color);
}

/* ===== Divider between questions ===== */
.border-bottom {
    border-bottom: 1px solid #e5e7eb !important;
    margin: 0 !important;
    height: 1px;
}

/* ===== Utility Classes ===== */
.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

/* Content sections visibility */
.contents {
    display: block;
}

.contents.d-none {
    display: none;
}

/* ===== Text Styles ===== */
.text-small {
    font-size: 0.875rem;
}

.text-dark {
    color: #564869 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: #6b7280 !important;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-decoration-none {
    text-decoration: none !important;
}

/* ===== Background utilities ===== */
.bg-transparent {
    background-color: transparent !important;
}

/* ===== Spacing utilities ===== */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.pr-2 {
    padding-right: 0.5rem !important;
}

.pl-2 {
    padding-left: 0.5rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}




/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contents {
    animation: fadeIn 0.3s ease-in;
}

/* ===== Responsive Styles ===== */

/* Tablet */
@media screen and (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }

    .tags {
        font-size: 0.7rem;
        padding: 0.35rem 0.85rem;
    }

    .faqExpand .expandMore,
    .faqExpand .expandLess {
        font-size: 0.95rem;
    }

    .faqContent p {
        font-size: 0.9rem;
    }
}

/* Mobile */
@media screen and (max-width: 573px) {
    p, a, b, span, button, td, div {
        font-size: 1rem;
    }

    .text-small {
        font-size: 0.9rem;
    }

    .notificationText {
        font-size: 1rem;
        font-weight: 500;
    }

    .xl\+notification {
        display: none;
    }

    .xl-notification {
        display: block;
    }

    .remindMe {
        display: flex;
        justify-content: center;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .footer-text {
        font-size: 1rem;
    }

    .footer-text-small {
        font-size: 0.9rem;
    }

    .remindText {
        text-align: center;
        width: 100%;
    }

    .page-title {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .tags {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }

    .faqExpand {
        padding: 1rem 0;
    }

    .faqExpand .expandMore,
    .faqExpand .expandLess {
        font-size: 1rem;
    }

    .faqExpand .expandMore,
    .faqExpand .expandLess {
        white-space: nowrap !important;        /* single line */
        overflow: hidden !important;           /* hide overflow */
        text-overflow: ellipsis  !important;    /* ... */
    }


    .faqContent.show {
        padding: 0 0 1rem 0;
    }
 
    .faqContent p {
        font-size: 0.95rem;
    }

    .footer-hidden {
        display: block;
    }
}

/* Extra small devices */
@media screen and (max-width: 375px) {
    .page-title {
        font-size: 1.35rem;
    }

    .tags {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
        margin-right: 0.35rem !important;
    }
}