
/* Basic styling */
.accordion {
    margin: 0 auto;
}

.accordion-item {
    margin: 5px 0 5px 0;
    border-bottom: 3px solid rgb(var(--gray-300));
}

.accordion-btn {
    width: 100%;
    padding: 14px 10px 14px 0;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 40px;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    background: transparent;
}

.accordion-btn {
    color: black;
}

.dark-mode .accordion-btn {
    color: rgb(var(--white2));
}

.accordion-btn .plus::after {
  content: url("data:image/svg+xml,%3Csvg%20width%3D%2226%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0_4021_2)%22%3E%3Cpath%20d%3D%22M15.4375%200H10.5625V26H15.4375V0Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M26%2015.4375V10.5625L0%2010.5625V15.4375L26%2015.4375Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_4021_2%22%3E%3Crect%20width%3D%2226%22%20height%3D%2226%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
}

.dark-mode .accordion-btn .plus::after {
  content: url("data:image/svg+xml,%3Csvg%20width%3D%2226%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0_4021_2)%22%3E%3Cpath%20d%3D%22M15.4375%200H10.5625V26H15.4375V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26%2015.4375V10.5625L0%2010.5625V15.4375L26%2015.4375Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_4021_2%22%3E%3Crect%20width%3D%2226%22%20height%3D%2226%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
}

.accordion-btn .plus {
    transition: .2s transform;
}

.accordion-body {
    height: 0; /* Start with a height of 0 */
    overflow: hidden;
    transition: height 0.3s ease-out; /* Use height for smooth transition */
    font-family: var(--font-secondary);
}

.accordion-inner {
    padding: 10px;
    font-size: 20px;
}

.accordion-inner p {
    line-height: 30px;
}

.dark-mode .accordion-inner p {
    color: rgb(var(--white2));
}

/* Add animation to open the body */
.accordion-item.active .accordion-body {
    height: auto; /* Allow content height to adjust */
}

.accordion-item.active .plus {
    transform: rotate(45deg);
}

@media (max-width: 639px) {
    .accordion-btn {
        font-size: 30px;
        padding-left: 10px;
    }

    .accordion-btn .plus::after {
        content: url('data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%228%22%20width%3D%224%22%20height%3D%2220%22%20fill%3D%22black%22%2F%3E%0A%3Crect%20x%3D%2220%22%20y%3D%228%22%20width%3D%224%22%20height%3D%2220%22%20transform%3D%22rotate(90%2020%208)%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E');
    }

    .accordion-inner {
        font-size: 18px;
    }

}

@media (min-width: 768px) and (max-width: 1023px)  {
    .accordion-btn {
        font-size: 40px;
    }
}

@media (min-width: 640px) and (max-width: 767px)  {
    .accordion-btn {
        font-size: 35px;
    }
}

