html {
    scroll-behavior: smooth;
}

main .section-heading {
    font-size: 30px;
}

main section.course-section {
    padding: 60px 0 0 0;
}

#course_preview>.container>.align-items-center {
    gap: 100px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.presale-des {
    color: #191919;
    margin-top: 24px;
    position: relative;
}

.presale-des p {
    text-indent: 20px;
}

.presale-des::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #52A780;
    border-radius: 50%;
    position: absolute;
    top: 5px;

}

#course_preview>.container>.align-items-center::before,
#course_preview>.container>.align-items-center::after,
.course-summery-wrapper::before,
.course-summery-wrapper::after,
.features-section>.container::before,
.features-section>.container::after {
    content: unset !important;
    display: none !important;
}

.course-head h1.media-heading {
    font-size: 36px;
}

.short-des {
    color: #2E3840;
    line-height: 24px;
    margin-bottom: 34px;
}

.regular-price {
    color: #898989;
    font-size: 14px;
    font-family: 'IranSansNumbers';
    position: relative;
}

.regular-price::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: red;
    transform: rotate(-15deg);
    transform-origin: center;
}

.sale-price,
.only-price {
    font-size: 20px;
    color: #2E3840;
    line-height: 30px;
    font-family: 'IranSansNumbers';

}

.sale-price {
    margin-right: 8px;
}

.btn-wrapper {
    display: flex;
    margin-top: 10px;
    gap: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.course-add-to-cart {
    cursor: pointer;
    background: #52A780;
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    line-height: 18px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #52A780;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.show-chapters {
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    color: #52A780;
    line-height: 18px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #52A780;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-preview-img .img-fluid {
    width: 100%;
    max-width: 530px;
    height: auto;
    border-radius: 16px;
}

.features-section {
    background: #EEF8EF;
    padding: 60px !important;
}

.features-section .font-md {
    font-size: 30px;
    font-weight: 700;
    color: #191919;
}

.features-section .text-muted {
    font-size: 18px;
    color: #000;
}



.course-summery-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 120px;
}

.course-summery-wrapper .col-right {
    width: 64%;
}

.course-summery-wrapper .col-left {
    width: 36%;
}

.summery-left-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
}

.card-img-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}

.card-details-wrapper {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-title {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    color: #000;
}

.card-price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price-wrapper p {
    margin: 0;
}

.card-box {
    border-radius: 16px;
    box-shadow: 20px 20px 50px 8px #9E9E9E26;
}

.course-info-item {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
}

.course-info-item-txt {
    margin: 0;
    font-family: 'IranSansNumbers';
}

.course-navigation {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #A3A3A3;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
}

.course-navigation-item {
    font-size: 18px;
    line-height: 28px;
    transition: 0.3s all;
    position: relative;
}

.course-navigation-item a {
    color: #000;
    padding: 8px 32px;
    display: inline-block;
    font-weight: 700;
    width: max-content;
}

.course-navigation-item.active::before,
.course-navigation-item:hover::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 2px;
    background: #52A780;
    position: absolute;
    bottom: 0;
    right: 0;
}

.course-navigation-item.active a,
.course-navigation-item:hover a {
    color: #52A780;
}

.course-summery-details {
    padding: 0 32px;
    margin-top: 75px;
    border-right: 2px dashed #A3A3A3;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.video-placeholder {
    margin-top: 24px;
}

.course-summery-title {
    margin: 0;
    font-size: 24px;
    line-height: 15px;
    position: relative;
}

.course-summery-title::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #52A780;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: -41px;

}

.course-video-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: right;
    color: #000;
}

.course-suit-wrapper,
.course-preq-wrapper {
    padding-right: 18px;
    margin-top: 15px;
}

.course-suit-item,
.course-preq-item {
    font-size: 16px;
    line-height: 36px;
    text-align: right;
    color: #000;
}

.teachers-wrapper {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.teachers-item {
    background: #EEF8EF;
    border-radius: 16px;
    padding: 30px 20px;
}

.teachers-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: auto auto 20px;
}

.teacher-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.tw-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.teachers-item .tw-social a.tw-social-link {
    background: unset;
    padding: 0;
    display: flex;
    align-items: center;
}

.course-summery-details>div {
    scroll-margin-top: 70px;
}

.course-nav-wrapper {
    position: sticky;
    top: 0px;
    z-index: 2;
    background: #fff;
}

#chapters {
    padding: 0;
}

/* --- Accordion & Course Seasons Styles --- */
.course-seasons {
    margin-top: 30px;
    border-radius: 16px;
    background: #EEF8EF;
    margin-bottom: 24px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 24px 16px;
    border-bottom: 1px solid #C6C6C6;
}

.accordion-item:last-child .accordion-header,
.accordion-item:last-child .accordion-content {
    border-bottom: unset !important;
}

.accordion-item.open:last-child .accordion-content {
    border-top: 1px solid #C6C6C6;
}

.accordion-toggle-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url(https://college.tapsell.ir/wp-content/uploads/2025/07/arrow-down.svg) no-repeat center;
    background-size: contain;
    transition: transform 0.3s;
}

.accordion-item.open .accordion-toggle-icon {
    transform: rotate(180deg);
}

.season-title {
    flex: 1;
    text-align: right;
    font-size: 16px;
    color: #191919;
    font-weight: 500;
    line-height: 24px;
}

.left,
.right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.season-counts,
.left {
    gap: 24px;
}

.count {
    color: #000;
    font-family: 'IranSansNumbers';
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.count:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #52A780;
    border-radius: 50%;
    top: 0;
    right: 12px;
    position: relative;
}

.accordion-content {
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 16px;
}

.accordion-item.open .accordion-content {
    padding: 0 16px;
    border-bottom: 1px solid #C6C6C6;
}

.course-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 20px;
}

.course-row:last-child {
    border-bottom: none;
}

.course-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.course-title {
    flex: 1;
    font-size: 16px;
    line-height: 24px;
    color: #191919;
    font-weight: 400;
}

.course-kind label {
    margin-left: 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.course-kind span {
    font-weight: 400;
    line-height: 20px;
    font-size: 14px;
    color: #000;
}

.total-counts {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    border-bottom: 1px solid #C6C6C6;
    padding: 24px;
}

.sum-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}

.sum-count {
    color: #292D32;
    font-family: 'IranSansNumbers';
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.sum-wrapper svg {
    width: 24px;
}

/* --- End Accordion & Course Seasons Styles --- */

.features-course {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
}

.features-course img {
    margin-bottom: 12px;
    width: 40px;
    height: 40px;
}

.course-nav-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: -6px;
}

/*////////////////////*/
#group_list .faq-body {
    margin-top: 0;
}

#group_list .faq--item {
    padding: 0;
}

#group_list .faq-header button {
    padding: 24px 16px;
    white-space: normal;
}

#group_list .faq--item>div:nth-child(2) {
    padding: 0px 16px 24px;
}

/*/////////////////////*/


/*Related Course*/
.related-course .section-heading {
    margin: 0;
}

.slider-title {
    text-align: right;
    margin: 40px 60px 20px 0;
    font-size: 2rem;
    color: #222;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    max-width: 1300px;
}

.title-nav-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.nav-item {
    width: 48px;
    height: 48px;
    display: flex;
    opacity: 1;
    border-radius: 100px;
    background: #52A780;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-item.deactive {
    background: #85C5A2;
}

.slider-btn {
    background: #e6f4ea;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.course-duration {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
}

.course-duration-txt {
    font-size: 14px;
    color: #737373;
    line-height: 20px;
    margin: 0;
    font-family: 'IranSansNumbers';
}

.card-price {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    font-family: 'IranSansNumbers';
}

.slider-btn:hover {
    background: #b2dfdb;
}

.slider-wrapper {
    overflow-x: hidden;
    padding: 38px 10px;
}

.slider-track {
    display: flex;
    gap: 20px;
    width: 1280px;
    max-width: 100%;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.slider-track .card {
    max-width: calc((100% - 40px) / 3);
    background: #fff;
    box-shadow: 3px 15px 20px 0 #9E9E9E26;
    /*width: 320px;*/
    min-width: calc((100% - 40px) / 3);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 15px 16px;
    box-sizing: border-box;
    border: 1px solid #E2E2E2;
    border-radius: 24px;
}

.card-img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 388 / 268;
    object-fit: cover;
    background: #222;
}

.card-content {
    padding-top: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.card-btn {
    border: 1px solid #52A780;
    color: #52A780;
    border-radius: 8px;
    padding: 14px 18px 14px 48px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    background-image: url(https://college.tapsell.ir/wp-content/uploads/2025/07/arrow-left.svg);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: 16px center;
}

.card-btn:hover {
    background-color: #52A780;
    color: #fff;
    background-image: url(https://college.tapsell.ir/wp-content/uploads/2025/07/arrow-left-white.svg);
}


@media only screen and (max-width: 800px) and (min-width: 600px) {

    .slider-track .card {
        min-width: calc((100% - 20px) / 2);
    }
}

@media only screen and (max-width: 600px) {

    .slider-track .card {
        min-width: 100%;
    }

    .card-btn {
        background-size: 18px;
        font-size: 14px;
        background-position: 12px center;
        padding: 10px 14px 10px 38px;
    }

    .nav-wrapper {
        gap: 15px;
    }

    .nav-item {
        width: 30px;
        height: 30px;
    }

    .nav-item svg {
        width: 16px;
    }

    .card-price {
        font-size: 16px;
    }
}

/*End Related Course*/

@media only screen and (max-width: 767px) {
    .testomania-section .carousel-container {
        padding-top: 25px;
    }

    .slider-wrapper {
        padding-top: 25px;
    }

    .features-section {
        padding: 30px !important;
    }

    .course-head h1.media-heading {
        font-size: 24px;
    }

    #course_preview>.container>.align-items-center {
        flex-direction: column;
        gap: 25px;
    }

    #course_preview .btn-wrapper {
        gap: 15px;
    }

    .course-add-to-cart {
        font-size: 15px;
    }

    .course-add-to-cart svg {
        width: 22px;
    }

    .show-chapters {
        font-size: 15px;
    }

    .show-chapters svg {
        width: 22px;
    }

    .features-course img {
        width: 32px;
        height: 32px;
    }

    main .section-heading {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .features-section {
        margin-top: 50px;
    }

    .features-course {
        flex-direction: column;
    }

    .features-section .font-md {
        font-size: 20px;
    }

    .features-course .text-muted {
        font-size: 16px;
    }

    .course-summery-wrapper {
        flex-direction: column;
        gap: 55px;
    }

    .course-summery-wrapper .col-right {
        width: 100%;
    }

    .course-summery-wrapper .col-left {
        width: 100%;
    }

    .course-summery-details {
        padding: 0 15px;
        gap: 55px;
    }

    .course-summery-title {
        font-size: 22px;
    }

    .course-summery-title::before {
        right: -22px;
        width: 12px;
        height: 12px;
    }

    .teachers-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-suit-item,
    .course-preq-item {
        line-height: 32px;
    }

    .total-counts {
        padding: 16px;
    }

    .course-title {
        font-size: 14px;
        line-height: 22px;
    }

    .sum-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .accordion-header {
        padding: 18px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .course-row {
        padding: 18px 0;
    }

    .season-counts {
        gap: 8px;
        padding-right: 22px;
    }

    .count:not(:last-child)::after {
        right: 5px;
    }

    .count {
        font-size: 12px;
    }
}











/* New Carousel Styles */
.carousel-section {
    margin-top: 80px;
    padding: 0 20px;
}

.carousel-title-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-nav-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.carousel-nav-item {
    width: 56px;
    height: 56px;
    display: flex;
    opacity: 1;
    border-radius: 100px;
    background: #52A780;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-nav-item:hover {
    background: #4a9a6f;
}

.carousel-nav-item.deactive {
    background: #85C5A2;
    cursor: not-allowed;
}

.carousel-container {
    max-width: 1220px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 50px 0 90px 0;
    display: flex;
    align-items: center;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
}

.carousel-slide {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E2E2;
    padding: 16px;
    box-sizing: border-box;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    cursor: pointer;
    width: calc((100% - 40px) / 3);
    min-width: 420px;
    flex-shrink: 0;
    opacity: 0.4;
    transform: scale(0.75);
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.carousel-slide.center {
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    opacity: 1;
    box-shadow: 20px 20px 50px 8px #9E9E9E26;
}

.carousel-slide.left {
    transform: translate(-125%, -50%) scale(0.85);
    z-index: 2;
    opacity: 0.7;
    box-shadow: 16.73px 16.73px 41.83px 6.69px #9E9E9E26;
    backdrop-filter: blur(4px);
}

.carousel-slide.right {
    transform: translate(25%, -50%) scale(0.85);
    z-index: 2;
    opacity: 0.7;
    box-shadow: 16.73px 16.73px 41.83px 6.69px #9E9E9E26;
    backdrop-filter: blur(4px);
}

.carousel-slide:not(.center):not(.left):not(.right) {
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0.3;
    z-index: 1;
}

.carousel-img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 388 / 268;
    object-fit: cover;
    background: #222;
    margin-bottom: 16px;
}


.carousel-content p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: justify;
    color: #191919;
    margin: 0;
    min-height: 144px;
}

.carousel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    width: 100%;
}

.carousel-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #52A780;
}

.testomania-date {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.testomania-user-info {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.testomania-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    object-fit: cover;
    align-items: center;
}

.testomania-username {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;

}

/* Responsive Design for Carousel */
@media (max-width: 1200px) {
    .carousel-slide {
        min-width: 320px;
        width: calc((100% - 40px) / 3);
    }

    .carousel-content p {
        font-size: 14px;
        line-height: 20px;
        min-height: 160px;
    }

    .carousel-slide.left {
        transform: translate(-140%, -50%) scale(0.9);
    }

    .carousel-slide.right {
        transform: translate(40%, -50%) scale(0.9);
    }
}

@media (max-width: 1000px) {
    .carousel-slide {
        width: calc((100% - 40px) / 3);
    }


    .carousel-slide.left {
        transform: translate(-130%, -50%) scale(0.9);
    }

    .carousel-slide.right {
        transform: translate(30%, -50%) scale(0.9);
    }
}

@media (max-width: 930px) {
    .carousel-container {
        flex-wrap: wrap;
        row-gap: 65px;
        column-gap: 15px;
        justify-content: center;
    }

    .carousel-wrapper {
        order: -1;
    }

    .carousel-nav-item {
        width: 45px;
        height: 45px;
    }

}

@media (max-width: 800px) {
    .carousel-container {
        padding: 40px 0;
    }


    .carousel-slide {
        width: calc((100% - 30px) / 3);
    }

    .carousel-slide.left {
        transform: translate(-120%, -50%) scale(0.9);
    }

    .carousel-slide.right {
        transform: translate(20%, -50%) scale(0.9);
    }

    .carousel-slide:not(.center):not(.left):not(.right) {
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@media (max-width: 600px) {
    .carousel-title-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .testomania-username {
        font-size: 14px;
        line-height: 18px;
    }

    /*.carousel-wrapper {*/
    /*    height: 300px;*/
    /*}*/

    .carousel-slide {
        padding: 15px;
        /*min-width: 200px;*/
        width: calc((100% - 20px) / 3);
    }

    .carousel-slide.left {
        transform: translate(-110%, -50%) scale(0.9);
    }

    .carousel-slide.right {
        transform: translate(10%, -50%) scale(0.9);
    }

    .carousel-title {
        font-size: 1rem;
    }

    .carousel-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 1100px) {
    .slider-track {
        width: 700px;
    }

    .card,
    .card-img {
        width: 220px;
        min-width: 220px;
    }
}

@media (max-width: 800px) {
    .slider-track {
        width: 100%;
    }

    .card,
    .card-img {
        width: 100%;
        min-width: 100%;
    }

    /*.slider-container {*/
    /*    max-width: 350px;*/
    /*}*/
}