/* Accordion Styles */
.accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    --bs-accordion-bg: transparent !important;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-top-left-radius: 0 !important;
    border: none !important;
    border-top-right-radius: 0 !important;
    padding: 32px 0;
}

.accordion-item:not(:last-child) {
    border-bottom: 1px solid rgba(142, 142, 142, 0.5) !important;
}

.accordion-item button {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f0f0f0;
    font-family: Chakra Petch, var(--default-font-family);
    font-size: 20px;
    line-height: 140%;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
    padding-bottom: 12px;
}

.accordion-item button:focus {
    outline: none;
}

.accordion-title {
    padding-right: 20px;
}

.accordion-item button .icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item button[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.accordion-content p {
    margin: 0;
    padding-right: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-family: Chakra Petch, var(--default-font-family);
    font-size: 16px;
    line-height: 1.6;
}

.accordion-item button[aria-expanded="true"]+.accordion-content {
    opacity: 1;
}

@media screen and (max-width: 991px) {
    .accordion-item {
        padding: 24px 0;
    }

    .accordion-item button {
        align-items: flex-start;
    }
}

/* Read More container */
@media only screen and (min-width: 768px) {
    .recent-project-section.faqs-section {
        padding-top: 250px;
    }
}

.read-more {
    overflow: hidden;
    margin: 0;
    transition: max-height 0.4s ease;
}

/* Toggle button */
.read-more+.read-more-toggle {
    cursor: pointer;
    font-size: 18px;
    display: inline-block;
    margin-top: 6px;
    color: hsla(0, 0%, 100%, 0.5);
    margin-top: -16px;
}

/* Optional: add subtle fade effect */
.read-more::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Remove fade when expanded */
.read-more.expanded::after {
    opacity: 0;
}

.read-more+span.read-more-toggle {
    cursor: pointer;
    font-size: 18px;
}