/* Shared Styles for All Layouts */
.faq-title {
    color: #0c5e37 !important;
}
.faq-wrapper {
    width: 75%;
    max-width: 100%;
    margin: 0 auto;
}
.faq-answer h2{
	font-size: 28px !important; 
}

@media (max-width: 991px) {
    .faq-wrapper {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}
.faq-heading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-bottom: 20px;
}

/* Top search + expand all bar */
.faq-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

/* Search field with icon inside */
.faq-search-wrapper {
    position: relative;
    flex: 1;
}

.faq-search-wrapper input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    font-size: 16px;
    height: 44px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.faq-search-wrapper input[type="text"]:focus {
    border-color: #0c5e37;
    outline: none;
}

.faq-search-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.faq-search-icon img {
    height: 20px;
    width: 20px;
}

/* Buttons */
.faq-toggle-button {
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

@media (max-width: 600px) {
    .faq-top-bar .faq-toggle-button {
        display: none;
    }
}

/* Accordion Item (Shared Structure) */
.faq-item {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.faq-question {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px 20px;
    font-weight: 600;
    position: relative;
    transition: background 0.3s ease;
}

.faq-icon-container {
    display: flex;
    align-items: center;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.faq-item.active .faq-icon {
    transform: rotate(225deg);
}

.faq-answer {
    display: none;
    padding: 15px 20px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Read More Button (Default for Layout 4 & 5) */
.faq-read-more {
    display: inline-block;
    background-color: #0c5e37;
    padding: 8px 30px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    width: fit-content;  
    margin-left: auto;  
	margin-top: 10px;
    transition: background 0.3s ease;
}
.faq-read-more:hover {
    background-color: #084025;
    text-decoration: none;
    color: #fff;
}

/* Bottom expand all */
.faq-bottom-bar {
    margin-top: 2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .faq-top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-search-wrapper,
    .faq-top-bar .faq-toggle-button {
        width: 100%;
    }
}

/* Layout 1 */
.layout-1-question {
    background-color: #0c5e30 !important;
    color: #fff !important;
}

.layout-1-toggle-button {
    background-color: #93764E !important;
    color: #fff !important;
}

.layout-1-toggle-button:hover {
    background-color: #0c5e30 !important;
}

/* Layout 2 */
.faq-item .layout-2-question {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #0c5e37;
    border-radius: 14px;
    flex-direction: row-reverse;
    justify-content: space-between;
} 

.layout-2-item.active {
    border: 0px solid #0c5e37;
}

.layout-2-icon-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.layout-2-icon-container img {
    display: none;
}

.layout-2-icon-container::before,
.layout-2-icon-container::after {
    content: '';
    position: absolute;
    background-color: #0c5e37;
    transition: all 0.3s ease;
}

.layout-2-icon-container::before {
    width: 14px;
    height: 2px;
}

.layout-2-icon-container::after {
    width: 2px;
    height: 14px;
}

.layout-2-item.active .layout-2-icon-container::after {
    transform: rotate(90deg);
    opacity: 0;
}

.layout-2-toggle-button {
    background-color: #0c5e37 !important;
    color: #fff !important;
}

.layout-2-toggle-button:hover {
    background-color: #93764E !important;
}

/* Layout 3 */
.faq-item .layout-3-question {
    background-color: #93764E !important;
    color: #fff !important;
    position: relative;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.faq-item .layout-3-question .faq-title-link{
	margin-right: 10px;
}

.layout-3-item.active {
    border: 1px solid #93764e;
}

.layout-3-toggle-button {
    background-color: #0c5e37 !important;
    color: #fff !important;
}

.layout-3-toggle-button:hover {
    background-color: #93764e !important;
}

.layout-3-icon-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.layout-3-icon-container img {
    display: none;
}

.layout-3-icon-container::before,
.layout-3-icon-container::after {
    content: '';
    position: absolute;
    background-color: #fff;
    transition: all 0.3s ease;
}

.layout-3-icon-container::before {
    width: 14px;
    height: 2px;
}

.layout-3-icon-container::after {
    width: 2px;
    height: 14px;
}

.layout-3-item.active .layout-3-icon-container::after {
    transform: rotate(90deg);
    opacity: 0;
}

/* Layout 4 */
.faq-item .layout-4-question {
    background-color: #fff !important;
    color: #000 !important;
    border-radius: 14px;
}

.layout-4-item.active {
    border: 1px solid #000;
}

.layout-4-toggle-button {
    background-color: #0c5e37 !important;
    color: #fff !important;
}

.layout-4-toggle-button:hover {
    background-color: #93764e !important;
}

.layout-4-icon-container {
    display: flex;
}

/* Layout 4 Answer with Read More below */
.faq-item.layout-4-item.active .faq-answer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.layout-4-item .faq-read-more {
    display: block;
    align-self: flex-start;
    margin-left: 0;
    margin-top: 10px;
}

/* Layout 5 */
.faq-item.layout-5-item {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: 0;
    background-color: transparent !important;
}

.faq-item .layout-5-question {
    background-color: transparent !important;
    color: #000 !important;
    padding: 24px 0; 
    display: flex;
    flex-direction: row-reverse; 
    justify-content: space-between;
    width: 100%;
}

.layout-5-question .faq-title-link {
    font-weight: 500;
    font-size: 20px;
    color: #000;
    transition: color 0.3s ease;
}

.layout-5-item.active .layout-5-question .faq-title-link {
    color: #0c5e37; 
}

.layout-5-icon-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout-5-icon-container img {
    display: none;
}

.layout-5-icon-container::before,
.layout-5-icon-container::after {
    content: '';
    position: absolute;
    background-color: #000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout-5-icon-container::before {
    width: 14px;
    height: 2px;
}

.layout-5-icon-container::after {
    width: 2px;
    height: 14px;
}

.layout-5-item.active .layout-5-icon-container::after {
    transform: rotate(90deg);
}

.layout-5-item.active .layout-5-icon-container {
    transform: rotate(180deg);
}

.layout-5-item.active .faq-answer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 0 24px 0;
    color: #444;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInSlide 0.5s ease forwards;
}

.layout-5-item .faq-read-more {
    display: block;
    align-self: flex-start;
    margin-left: 0;
    margin-top: 10px;
}

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

/* ========================
   Layout 6 (Professional 2-Column Independent)
   ======================== */

/* Container for the two columns */
.faq-list-layout-6-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start; /* Ensures columns don't stretch to equal height if not needed */
    width: 100%;
}

/* Individual Columns */
.faq-col-left,
.faq-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

/* Card Styling */
.faq-item.layout-6-item {
    background-color: #fff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06); 
    border-radius: 14px;
    margin-bottom: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item.layout-6-item:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Question Header */
.faq-item .layout-6-question {
    background-color: transparent !important;
    color: #000 !important;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Title Typography */
.layout-6-question .faq-title-link {
    font-weight: 500;
	font-size: 20px;
    color: #000;
    line-height: 1.4;
    flex: 1;
}

/* Icon (Plus/Minus) */
.layout-6-icon-container {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.layout-6-icon-container img {
    display: none;
}

.layout-6-icon-container::before,
.layout-6-icon-container::after {
    content: '';
    position: absolute;
    background-color: #000;
    transition: all 0.3s ease;
}

.layout-6-icon-container::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.layout-6-icon-container::after {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.layout-6-item.active .layout-6-icon-container::before {
    background-color: #0c5e37; 
}

.layout-6-item.active .layout-6-icon-container::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Answer Content */
.faq-item.layout-6-item .faq-answer {
    display: flex; 
    flex-direction: column;
    padding: 0 30px 30px 30px;
    color: #282530;
    line-height: 1.6;
    gap: 15px;
    height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, padding 0.4s ease;
}

.layout-6-item.active .faq-answer {
    opacity: 1;
    height: auto;
    padding-bottom: 30px; 
}

/* Read More Button for Layout 6 */
.layout-6-item .faq-read-more {
    display: block; 
    align-self: flex-end; 
    background-color: #0c5e30;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 4px 10px rgba(12, 94, 55, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
    margin-top: 5px;
}

.layout-6-item .faq-read-more:hover {
    background-color: #93764e;
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

/* Layout 6 Toggle Button (Reusing default green style) */
.layout-6-toggle-button {
    background-color: #0c5e30 !important;
    color: #fff !important;
}

.layout-6-toggle-button:hover {
    background-color: #93764E !important;
}

/* ========================
   Pagination
   ======================== */
.faq-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 20px;
}

.faq-pagination-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    padding: 0;
}

.faq-pagination-btn:hover:not(:disabled) {
    background-color: #0c5e37;
    border-color: #0c5e37;
    color: #fff;
}

.faq-pagination-btn:hover:not(:disabled) svg {
    stroke: #fff;
}

.faq-pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.faq-pagination-btn svg {
    stroke: #333;
    transition: stroke 0.3s ease;
}

.faq-page-info {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 50px;
    text-align: center;
    user-select: none;
}

.faq-item.hidden-by-search {
    display: none !important;
}