/* FAQ Accordion Improvements */
.tf__faq_accordion {
    display: grid;
    gap: 16px;
}

.accordion-item {
    border: none;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    padding: 18px 24px;
    background: #f8f7ff;
    border: 2px solid #e8e5f5;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: #6254a3;
    border-color: #6254a3;
    color: #fff;
}

.accordion-button:hover {
    background: #f0eef9;
    border-color: #d8d5e5;
    color: #6254a3;
}

.accordion-button:not(.collapsed):hover {
    background: #4a3a7f;
    border-color: #4a3a7f;
    color: #fff;
}

.accordion-button:focus {
    border-color: #6254a3;
    box-shadow: 0 0 0 0.25rem rgba(98, 84, 163, 0.25);
}

.accordion-collapse {
    animation: slideDown 0.3s ease;
}

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

.accordion-body {
    padding: 18px 24px;
    background: #fff;
    border: 2px solid #e8e5f5;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #666;
    line-height: 1.7;
}

.accordion-body p {
    margin: 0;
}

/* Course Card Improvements */
.tf__single_courses {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.tf__single_courses:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.tf__single_courses_img {
    overflow: hidden;
    flex: 0 0 auto;
}

.tf__single_courses_img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf__single_courses:hover .tf__single_courses_img img {
    transform: scale(1.08);
}

.tf__single_courses_img .categories {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    background: #fff;
    color: #111;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.categories.green {
    background: #e8f5e9;
    color: #27ae60;
}

.categories.blue {
    background: #e3f2fd;
    color: #2196f3;
}

.tf__single_courses_text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.tf__single_courses_text ul {
    margin-bottom: 12px;
}

.tf__single_courses_text ul li {
    list-style: none;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tf__single_courses_text ul li i {
    color: #6254a3;
}

.tf__single_courses_text .title {
    flex: 0 0 auto;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 12px 0;
}

.tf__single_courses_text .description {
    flex: 1 1 auto;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0;
}

.tf__single_courses_text h3 {
    color: #6254a3;
    font-size: 20px;
    font-weight: 700;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Category Cards Improvements */
.tf__single_category {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf__single_category:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tf__single_category_icon {
    font-size: 48px;
    color: #6254a3;
}

.tf__single_category_text h3 {
    color: #111;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tf__single_category_text p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Testimonial Cards */
.perizona-testimonial-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: #fff;
}

.perizona-testimonial-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.perizona-testimonial-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.perizona-testimonial-card:hover img {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .accordion-button {
        padding: 14px 18px;
        font-size: 15px;
    }

    .accordion-body {
        padding: 14px 18px;
        font-size: 14px;
    }

    .tf__single_courses_img img {
        height: 200px;
    }

    .tf__single_courses_text {
        padding: 18px;
    }

    .tf__single_courses_text .title {
        font-size: 16px;
    }

    .perizona-testimonial-card img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .accordion-button {
        padding: 12px 14px;
        font-size: 14px;
    }

    .accordion-body {
        padding: 12px 14px;
        font-size: 13px;
    }

    .tf__single_courses {
        margin-bottom: 16px;
    }

    .tf__single_courses_img img {
        height: 180px;
    }

    .perizona-testimonial-card img {
        height: 200px;
    }
}
