.td_filter_category a.active {
    background-color: var(--accent-color);
    color: #fff;
}

.write_review_box_reting_icon li i.active {
    color: #ecc800 !important;
}

.instructors_details_skil_bar_bg,
.instructors_details_skil_bar_over {
    animation: none !important;
}

.td_testimonial_with_shape {
    background-image: url(../img/home_4/testimonial_bg.png);
}

.qs-h1-testimonial_dots .td_pagination.td_style_1 li.slick-active button {
    transform: scale(1.34);
    background-color: var(--white-color);
}

.qs-instructor-card_h1 .qs-instructor-card_h1_img {
    width: 100%;
    height: 392px;
}

.td_about.td_style_1 .td_circle_text span {
    animation: rotate-anim 40s linear infinite;
}

.qs-custom-min-width-1 {
    width: 684px;
}


/* bordered team section */


/* bordered team section end*/

.td_card.td_style_5 .td_card_thumb .add_to_wishlist.active .td_cart_wishlist_icon,
.td_card.td_style_3 .add_to_wishlist.active .td_cart_wishlist_icon {
    background-color: #fff;
}

.td_card.td_style_5 .td_card_thumb .add_to_wishlist.active .td_cart_wishlist_icon svg,
.td_card.td_style_3 .add_to_wishlist.active .td_cart_wishlist_icon svg {
    stroke: none;
    fill: currentColor;
    color: #fd4746;
    transition: all linear 0.5s;
}

.td_team.td_style_3 .td_team_thumb.qs-shaped-border {
    border-radius: 37% 63% 42% 58% / 57% 33% 67% 43%;
    border: 3px dashed #a089fe;
}

.td_team.td_style_3 .td_team_thumb.qs-shaped-border .qs-team-thumb-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 37% 63% 42% 58% / 57% 33% 67% 43%;
    border: 5px solid transparent;
    overflow: hidden;
}

.td_card.td_style_3 .td_card_thumb {
    width: 100%;
    aspect-ratio: 410/276;
}

.td_card.td_style_3 .td_card_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*currency and language*/

.top_bar-curr-lang-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Aprendea: language/currency selector removed from navbar */
.td_site_header.td_style_1.td_type_2 .top_bar-curr-lang-wrapper,
.td_site_header.td_style_1.td_type_2 .td_nav_list_wrap .top_bar-curr-lang-wrapper,
.td_site_header.td_style_1.td_type_2 .td_nav_list_wrap.td_active .top_bar-curr-lang-wrapper {
    display: none !important;
}

.top_bar-curr-lang-wrapper .curr-wrapper,
.top_bar-curr-lang-wrapper .lang-wrapper {
    display: flex;
    align-items: center;
}

.top_bar-curr-lang-wrapper .separator {
    color: white;
}

.top_bar-curr-lang-wrapper_s3 .separator {
    color: #000;
}

.curr-wrapper .curr-select,
.lang-wrapper .lang-select {
    background: none;
    color: white;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-overflow: "";
    cursor: pointer;
    font-size: 14px;
    padding: 0 10px;
}

.top_bar-curr-lang-wrapper_s3 .curr-wrapper .curr-select,
.top_bar-curr-lang-wrapper_s3 .lang-wrapper .lang-select {
    color: #000;
}

.curr-wrapper .curr-select:focus,
.lang-wrapper .lang-select:focus {
    outline: none;
    border: none;
}

.td_nav_list_wrap .top_bar-curr-lang-wrapper {
    display: none;
}

.td_nav_list_wrap.td_active .top_bar-curr-lang-wrapper {
    display: flex;
    padding: 12px;
}

.td_nav_list_wrap .curr-wrapper .curr-select,
.td_nav_list_wrap .lang-wrapper .lang-select {
    color: #000;
}

.td_nav_list_wrap .top_bar-curr-lang-wrapper .separator {
    color: #000;
}

.td_nav_list_wrap .top_bar-curr-lang-wrapper_s3 .curr-wrapper .curr-select,
.td_nav_list_wrap .top_bar-curr-lang-wrapper_s3 .lang-wrapper .lang-select {
    color: #fff;
}

.td_nav_list_wrap .top_bar-curr-lang-wrapper_s3 .separator {
    color: #fff;
}

.td_hero_icon_btns {
    display: flex;
    gap: 27px;
}

.td_iconbox.td_style_2 .td_iconbox_subtitle span {
    background-color: transparent;
    color: var(--accent-color);
}

.td_iconbox.td_style_2 .td_iconbox_subtitle span {
    background-color: transparent;
    color: var(--accent-color);
}

.td_iconbox.td_style_2:hover .td_iconbox_subtitle span {
    background-color: transparent;
    color: #fff;
}

.td_post.td_style_1 .td_post_label {
    background: #ffffff54;
}

.td_card.td_style_3 .td_card_category {
    box-shadow: none;
}

.td_heading_bg.td_heading_bg_forth {
    background-color: #150005 !important;
}

.td_team.td_style_1.td_style-home-four .td_team_info {
    border-radius: 10px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.05);
}

.td_team.td_style_1.td_style-home-four:hover .td_team_info {
    animation: none;
}

.td_team.td_style_1.td_style-home-four:hover .td_team_info {
    background: #890c25;
}

.td_team.td_style_1.td_style-home-four:hover .td_team_info .td_team_member_title {
    color: #fff;
}

.td_team.td_style_1.td_style-home-four:hover .td_team_info .td_team_member_designation {
    color: #fff;
}

.td_blog_details_head .td_blog_details_img_main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td_blog_details_head .td_blog_details_img_wrapper {
    width: 100%;
    aspect-ratio: 890 / 570;
}

/* Blog detail readability */
.td_blog_details,
.td_blog_details p,
.td_blog_details li,
.td_blog_details span,
.td_blog_details div,
.td_blog_details h1,
.td_blog_details h2,
.td_blog_details h3,
.td_blog_details h4,
.td_blog_details h5,
.td_blog_details h6 {
    color: #111827 !important;
}

.td_blog_details a,
.td_recent_post_right h3 a,
.td_sidebar_widget_list li a span:first-child,
.tagcloud .tag-cloud-link,
.td_categories .td_category {
    color: var(--secondary) !important;
}

.td_recent_post_right h3 a:hover,
.td_sidebar_widget_list li a:hover span:first-child,
.tagcloud .tag-cloud-link:hover,
.td_categories .td_category:hover {
    color: var(--primary) !important;
}

.td_author_card_thumb {
    object-fit: cover;
}

div.edc-searchbar-clickaway {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: transparent;
}

div.edc-searchbar-clickaway.active {
    display: block;
}

div.edc-searchbar-clickaway {
    display: none;
}

.td_tab_links.td_style_2 li a {
    font-size: 18px;
}

.home-three-auth-btn-group .td_btn.td_style_1.td_type_1 {
    box-shadow: none;
    border: 1px solid var(--accent-color);
}

.home-three-auth-btn-group .td_btn.td_style_1.td_type_1.td_with_shadow::after {
    display: none;
}

.home-three-auth-btn-group .td_btn.td_style_1.td_with_shadow::after {
    display: none;
}

.home-three-auth-btn-group .td_btn.td_style_1 .td_btn_in {
    padding: 10px 25px;
}

.td_course_details .td_tab_links.td_style_2.td_type_2 {
    overflow-x: auto;
}

#edc-pd-btns-contain {
    scroll-snap-type: x mandatory;
}

.scroll-section {
    scroll-snap-align: start;
}

.edc-pd-tab-btns-wrapper .edc-pd-tab-btn-prev,
.edc-pd-tab-btns-wrapper .edc-pd-tab-btn-next {
    background: #000;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5555px;
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.edc-pd-tab-btns-wrapper .edc-pd-tab-btn-prev {
    left: -7px;
}

.edc-pd-tab-btns-wrapper .edc-pd-tab-btn-next {
    right: -7px;
}

.edc-pd-tab-btns-wrapper .edc-pd-tab-btn-prev svg,
.edc-pd-tab-btns-wrapper .edc-pd-tab-btn-next svg {
    width: 16px;
    height: 16px;
}

.td_team.td_style_1:hover .td_team_info {
    animation: none;
    box-shadow: 0px 4px 0px 0px #D2C9FE;
}

.td_post.td_style_1 .td_post_info {
    border: 1px solid #E6E0FF;
    padding: 20px 30px 30px;
}

.comment-list .comment-meta+p {
    color: var(--body-color)
}

.td_page_heading .breadcrumb-item {
    font-weight: 400;
}

.td_faq_1_img {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.td_faq_2_img {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.curr-wrapper .curr-select option,
.lang-wrapper .lang-select option {
    color: var(--heading-color);
}

.td_sign_thumb {
    padding-left: 0;
    padding-right: 44px;
}

.contact_modal .modal-body .form-control,
.td_form_field {
    box-shadow: none;
    border: 1px solid #E6E0FF;
    padding: 14px 18px;
}

.contact_modal .modal-body .form-control:focus,
.td_form_field:focus {
    border: 1px solid #6440fb;
}

.td_form_card.td_style_1 .td_form_card_bottom {
    flex-direction: column;
}

.edc-auth-btn {
    width: 100%;
}

.edc-line-sperator {
    width: 137px;
    height: 1px;
    background: #E6E0FF;
}

.td_card.td_style_7 .td_card_video_block img {
    width: 100%;
}

.td_page_heading {
    min-height: 451px;
}

.td_card.td_style_5 .td_card_review .td_heading_color,
.td_card.td_style_3 .td_card_review .td_heading_color {
    color: var(--body-color) !important;
    opacity: 100;
}

.td_card.td_style_5 .td_card_meta li span,
.td_card.td_style_3 .td_card_meta li span {
    color: var(--body-color) !important;
    opacity: 100;
}

.td_card.td_style_3 .td_card_subtitle.td_heading_color {
    color: var(--body-color) !important;
    opacity: 100;
}

.td_team.td_style_1 .td_team_member_designation.td_heading_color {
    color: var(--body-color) !important;
    opacity: 100;
}

.td_style_1.td_type_1 .td_testimonial_meta_right .td_heading_color {
    color: var(--body-color) !important;
    opacity: 100;
}

.td_post.td_style_1.td_type_1 .td_post_subtitle.td_heading_color {
    color: var(--body-color) !important;
    opacity: 100;
}

.td_post.td_style_1 .td_post_subtitle.td_heading_color {
    color: var(--body-color) !important;
    opacity: 100;
}

.contact_modal.contact_modal_page .modal-content {
    background: #f9f9fa;
}

.contact_modal .modal-content {
    background: #f9f9fa;
}

.contact_modal_form_inner .form-control {
    border-radius: 30px !important;
}

.contact_modal_form_inner textarea.form-control {
    border-radius: 20px !important;
}

.fm-pd {
    padding: 0 18px 0 18px !important;
    background-position: calc(100% - 20px) calc(1em - 6px), calc(100% + -15px) calc(1em - 6px) !important;
}


/* responsive */

@media screen and (min-width: 992px) {
    .td_height_100 {
        height: 100px;
    }
}

@media screen and (min-width: 1200px) {
    .td_site_header.td_style_1.td_type_3 .td_nav_list_wrap_in {
        display: flex;
        align-items: center;
        gap: 100px;
    }
    .td_site_header.td_style_1 .td_main_header_in,
    .td_theme_2 .td_site_header.td_style_1 .td_top_header_in {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1536px) {}

@media (max-width: 1280px) {}

@media (max-width: 1170px) {}

@media (max-width: 1024px) {
    .td_theme_3 .td_site_header.td_style_1 .td_main_header_right {
        padding-right: 30px;
    }
    .td_sign_thumb {
        padding-right: 0px;
    }
}

@media (max-width: 768px) {
    .td_theme_3 .td_site_header.td_style_1 .td_main_header_right {
        padding-right: 20px;
    }
    .td_tab_links.td_style_2.td_type_2 a {
        padding: 8px 24px;
    }
    .td_course_details .td_tab_links.td_style_2.td_type_2 {
        margin-bottom: 20px;
    }
    .td_tab_links.td_style_2.td_type_2 {
        gap: 0;
    }
    .td_sign_thumb {
        display: none;
    }
}

@media (max-width: 640px) {
    .td_type_3 .top_bar-curr-lang-wrapper {
        display: none;
    }
    .td_btns_group {
        gap: 30px 20px;
    }
    .td_site_header.td_style_1.td_type_2 .td_wishlist_btn {
        display: none;
    }
    .td_hero_icon_btns {
        display: flex;
        gap: 10px;
    }
    .td_faq_1 .td_faq_1_right {
        margin-top: 0;
    }
    .instructors {
        padding: 50px 0;
    }
    .edc-line-sperator {
        display: none;
    }
    .td_form_card.td_style_1 {
        padding: 20px 20px;
    }
    .td_fs_20.td_fs_sm_16 {
        font-size: 16px;
    }
    .td_course_details .audio-item {
        display: block;
    }
}

/* ------------------------------------------------------------------
   Aprendea Design System Alignment (design_system.md)
------------------------------------------------------------------ */
:root {
    --primary: #757ee8;
    --secondary: #07075c;
    --emphasis: #ff6b6b;
    --text: #1f2937;
    --background: #0f0f0f;
    --surface: #ffffff;

    --accent-color: var(--primary);
    --heading-color: var(--secondary);
    --body-color: var(--text);
    --border-color: #e5e7eb;
    --gray-color: #f8fafc;
    --heading-font: "Space Grotesk", "Sora", "Euclid Circular A", sans-serif;
    --body-font: "Inter", "Manrope", "Euclid Circular A", sans-serif;
}

.td_theme_2,
.td_theme_3,
.td_theme_4,
.td_theme_5,
.td_theme_6 {
    --accent-color: var(--primary);
}

html,
body {
    color: var(--text);
    background-color: var(--surface);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary);
    font-family: var(--heading-font);
}

body,
p,
span,
a,
button,
input,
select,
textarea {
    font-family: var(--body-font);
}

.container {
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.td_heading_bg,
.td_site_header.td_style_1 .td_top_header {
    background-color: var(--secondary);
}

.td_site_header.td_style_1 .td_main_header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(7, 7, 92, 0.1);
}

.td_site_header.td_style_1.td_gescout_sticky .td_main_header {
    background-color: #ffffff;
}

.td_site_header.td_style_1 .td_top_header a,
.td_site_header.td_style_1 .td_top_header span,
.td_site_header.td_style_1 .td_top_header .curr-select,
.td_site_header.td_style_1 .td_top_header .lang-select {
    color: #ffffff;
}

.td_site_header.td_style_1 .td_main_header .td_nav .td_nav_list > li > a,
.td_site_header.td_style_1 .td_main_header .td_nav .td_nav_list > li > a::after {
    color: var(--secondary);
}

.td_site_header.td_style_1 .td_nav .td_nav_list > li > a:hover {
    color: var(--primary);
}

.td_accent_bg {
    background-color: var(--primary) !important;
}

.td_btn.td_style_1,
.td_btn.td_style_2,
.td_btn.td_style_3 {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.td_btn.td_style_1 .td_btn_in {
    background-color: var(--primary);
    border-radius: 14px;
}

.td_btn.td_style_1 .td_btn_in.td_white_bg,
.td_btn.td_style_1.td_type_1 .td_btn_in {
    background-color: #ffffff;
    color: var(--secondary);
    border: 1px solid rgba(7, 7, 92, 0.18);
}

.td_btn.td_style_1 .td_btn_in.td_heading_bg {
    background-color: var(--secondary);
}

.td_btn.td_style_1.td_type_1:hover .td_btn_in {
    background-color: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.td_header_btns .td_btn.td_style_1.td_type_1.td_with_shadow::after {
    display: none;
}

.td_header_btns .td_btn.td_style_1.td_type_1 {
    box-shadow: none;
    overflow: hidden;
}

.td_header_btns .td_btn.td_style_1.td_type_1 .td_btn_in::before {
    display: none;
}

.td_btn.td_style_1:hover,
.td_btn.td_style_3:hover {
    transform: translateY(-2px) scale(1.03);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.td_btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(117, 126, 232, 0.35);
}

.td_card,
.td_iconbox.td_style_2 .td_iconbox_in,
.td_post.td_style_1,
.td_team.td_style_1 .td_team_info,
.td_form_card.td_style_1 {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(7, 7, 92, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.td_card:hover,
.td_iconbox.td_style_2:hover .td_iconbox_in,
.td_post.td_style_1:hover,
.td_team.td_style_1:hover .td_team_info {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(7, 7, 92, 0.12);
}

.td_section_title,
.td_hero_title {
    letter-spacing: -0.02em;
}

/* Hero highlight text without blob background (theme one) */
.td_hero.td_style_2 .td_hero_title span {
    color: var(--accent-color);
    padding: 0;
}

.td_hero.td_style_2 .td_hero_title span::after {
    display: none;
    content: none;
}

.gradient-text {
    background: linear-gradient(100deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.td_footer.td_style_1,
.td_footer.td_style_1 .td_footer_bottom {
    background-color: var(--secondary);
}

.td_footer.td_style_1,
.td_footer.td_style_1 p,
.td_footer.td_style_1 a,
.td_footer.td_style_1 li,
.td_footer.td_style_1 h2,
.td_footer.td_style_1 h3,
.td_footer.td_style_1 h4,
.td_footer.td_style_1 h5 {
    color: #ffffff;
}

.td_footer.td_style_1 a:hover {
    color: var(--primary);
}

/* Remove decorative slashes from all section subtitles */
.td_section_subtitle_up i {
    display: none !important;
}

/* Unified header behavior for theme one */
.td_site_header.td_style_1.td_type_2 .td_main_header_left {
    flex: 0 0 auto;
}

.td_site_header.td_style_1.td_type_2 .td_site_branding {
    display: flex;
    align-items: center;
    max-width: 260px;
    width: 100%;
    overflow: hidden;
}

.td_site_header.td_style_1.td_type_2 .td_site_branding img {
    display: block;
    width: 100%;
    max-width: 260px;
    max-height: 62px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.td_site_header.td_style_1.td_type_2 .td_nav .td_nav_list>li>a {
    white-space: nowrap;
}

.td_site_header.td_style_1.td_type_2 .td_header_btns .td_btn .td_btn_in>span:first-child {
    white-space: nowrap;
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .td_site_header.td_style_1.td_type_2 .td_nav .td_nav_list>li {
        margin-right: 18px;
    }

    .td_site_header.td_style_1.td_type_2 .td_nav .td_nav_list>li>a {
        font-size: 18px;
    }

    .td_site_header.td_style_1.td_type_2 .td_header_btns {
        gap: 12px;
    }

    .td_site_header.td_style_1.td_type_2 .td_header_btns .td_btn .td_btn_in {
        padding: 10px 18px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .td_site_header.td_style_1.td_type_2 .td_site_branding,
    .td_site_header.td_style_1.td_type_2 .td_site_branding img {
        max-width: 230px;
    }

    .td_site_header.td_style_1.td_type_2 .td_header_btns .td_btn .td_btn_in>span:first-child {
        font-size: 18px;
    }
}

@media (max-width: 1199px) {
    .td_site_header.td_style_1.td_type_2 .td_site_branding,
    .td_site_header.td_style_1.td_type_2 .td_site_branding img {
        max-width: 210px;
    }

    .td_site_header.td_style_1.td_type_2 .td_site_branding img {
        max-height: 52px;
    }
}

@media (max-width: 575px) {
    .td_site_header.td_style_1.td_type_2 .td_site_branding,
    .td_site_header.td_style_1.td_type_2 .td_site_branding img {
        max-width: 185px;
    }

    .td_site_header.td_style_1.td_type_2 .td_site_branding img {
        max-height: 44px;
    }
}

/* Home One: Categories section redesign (CMS dynamic-safe) */
.apr-categories-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 260px at 12% 0%, rgba(117, 126, 232, 0.10), transparent 62%),
        radial-gradient(700px 220px at 100% 100%, rgba(7, 7, 92, 0.06), transparent 65%),
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.apr-categories-section .apr-categories-heading {
    align-items: flex-start;
}

.apr-categories-section .apr-categories-heading.apr-categories-heading-centered {
    justify-content: center;
    text-align: center;
}

.apr-categories-section .apr-categories-heading.apr-categories-heading-centered .td_section_heading_left {
    max-width: 860px;
    margin: 0 auto;
}

.apr-categories-section .td_section_heading_left .td_section_title {
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.apr-categories-section .apr-section-description {
    color: var(--body-color);
    opacity: 0.78;
    line-height: 1.65;
    max-width: 42ch;
}

.apr-categories-section .apr-section-description.apr-section-description-center {
    max-width: 760px;
    margin: 18px auto 0;
}

.apr-categories-section .apr-categories-cta {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    margin-top: 8px;
}

.apr-categories-section .apr-category-grid {
    row-gap: 24px;
    justify-content: center;
}

.apr-categories-section .apr-category-card.td_iconbox.td_style_2 {
    height: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.apr-categories-section .apr-category-card.td_iconbox.td_style_2 .td_iconbox_in {
    height: 100%;
    border-radius: 28px;
    border: 1px solid rgba(7, 7, 92, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 14px 30px rgba(7, 7, 92, 0.08);
    padding: 34px 24px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.apr-categories-section .apr-category-card .apr-category-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(117, 126, 232, 0.18), rgba(7, 7, 92, 0.06));
    border: 1px solid rgba(117, 126, 232, 0.28);
}

.apr-categories-section .apr-category-card .apr-category-icon img {
    max-width: 34px;
    max-height: 34px;
    width: auto;
    height: auto;
}

.apr-categories-section .apr-category-card .td_iconbox_title {
    color: var(--secondary);
    opacity: 0.96;
    line-height: 1.25;
}

.apr-categories-section .apr-category-card .apr-category-meta {
    color: rgba(7, 7, 92, 0.78);
    font-size: 22px;
}

.apr-categories-section .apr-category-card .apr-category-meta span {
    background: rgba(117, 126, 232, 0.16);
    color: var(--accent-color);
    border-radius: 999px;
    padding: 2px 10px;
    margin-left: 4px;
}

.apr-categories-section .apr-category-card.td_iconbox.td_style_2:hover .td_iconbox_in {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: rgba(117, 126, 232, 0.5);
    box-shadow: 0 20px 34px rgba(7, 7, 92, 0.14);
}

.apr-categories-section .apr-category-card.td_iconbox.td_style_2:hover .td_iconbox_icon {
    filter: none;
}

.apr-categories-section .apr-category-card.td_iconbox.td_style_2:hover .td_iconbox_title {
    color: var(--secondary);
    opacity: 1;
}

.apr-categories-section .apr-category-card.td_iconbox.td_style_2:hover .td_iconbox_subtitle {
    color: rgba(7, 7, 92, 0.82);
}

.apr-categories-section .apr-category-card.td_iconbox.td_style_2:hover .td_iconbox_subtitle span {
    background: rgba(117, 126, 232, 0.2);
    color: var(--accent-color);
}

@media (max-width: 1199px) {
    .apr-categories-section .apr-categories-cta {
        font-size: 26px;
    }

    .apr-categories-section .apr-category-card.td_iconbox.td_style_2 .td_iconbox_in {
        padding: 30px 22px 24px;
    }
}

@media (max-width: 767px) {
    .apr-categories-section .apr-categories-cta {
        font-size: 22px;
    }

    .apr-categories-section .apr-category-card .apr-category-icon {
        width: 64px;
        height: 64px;
    }
}

/* Home One: full-width key-features carousel (without left trust block) */
.td_rate_section.apr-rate-full {
    display: block;
}

.td_rate_section.apr-rate-full .td_rate_feature_list_wrap {
    width: 100%;
}

.td_rate_section.apr-rate-full .td_rate_feature_list {
    justify-content: flex-start;
    gap: 16px 44px;
    padding: 28px 24px;
}

.td_rate_section.apr-rate-full .td_moving_box {
    animation-duration: 24s;
}

@media (max-width: 991px) {
    .td_rate_section.apr-rate-full .td_rate_feature_list {
        gap: 14px 30px;
        padding: 20px 14px;
    }
}

/* Home One: Course cards redesign (CMS dynamic-safe) */
.apr-home-courses-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(780px 240px at 8% 0%, rgba(117, 126, 232, 0.12), transparent 62%),
        radial-gradient(680px 220px at 100% 100%, rgba(7, 7, 92, 0.06), transparent 70%),
        #f7f8ff;
}

.apr-home-courses-section .apr-home-course-card.td_card.td_style_5.td_type_1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    border: 1px solid rgba(7, 7, 92, 0.1);
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 14px 30px rgba(7, 7, 92, 0.1);
    padding: 14px;
}

.apr-home-courses-section .apr-home-course-card.td_card.td_style_5.td_type_1:hover {
    transform: translateY(-6px);
    border-color: rgba(117, 126, 232, 0.45);
    box-shadow: 0 22px 34px rgba(7, 7, 92, 0.14);
}

.apr-home-courses-section .apr-home-course-card .td_card_thumb {
    width: 100%;
    margin: 0;
}

.apr-home-courses-section .apr-home-course-card .td_card_thumb .td_card_thumb_in {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(117, 126, 232, 0.22);
    background: linear-gradient(135deg, #dfe5ff, #eef2ff);
}

.apr-home-courses-section .apr-home-course-card .td_card_thumb .td_card_thumb_in::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(7, 7, 92, 0) 0%, rgba(7, 7, 92, 0.35) 100%);
    pointer-events: none;
}

.apr-home-courses-section .apr-home-course-card .td_card_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apr-home-courses-section .apr-home-course-card .td_card_label {
    top: 16px;
    left: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(117, 126, 232, 0.96);
    backdrop-filter: blur(2px);
}

.apr-home-courses-section .apr-home-course-card .td_card_thumb .add_to_wishlist {
    top: 14px;
    right: 14px;
}

.apr-home-courses-section .apr-home-course-card .td_card_thumb .td_cart_wishlist_icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(117, 126, 232, 0.24);
    background-color: rgba(255, 255, 255, 0.96);
    color: var(--secondary);
}

.apr-home-courses-section .apr-home-course-card .td_card_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.apr-home-courses-section .apr-home-course-card .td_card_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.apr-home-courses-section .apr-home-course-card .td_card_meta li {
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(117, 126, 232, 0.2);
    background: #f4f6ff;
    color: var(--secondary);
}

.apr-home-courses-section .apr-home-course-title {
    margin: 0;
    font-size: clamp(24px, 2.1vw, 34px);
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.apr-home-courses-section .apr-home-course-title a {
    color: var(--secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apr-home-courses-section .apr-home-course-card .td_card_price_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.apr-home-courses-section .apr-home-course-card .td_card_review {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apr-home-courses-section .apr-home-course-card .td_card_review .td_rating i {
    color: #f6b300;
}

.apr-home-courses-section .apr-home-course-card .td_card_price {
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 18px rgba(117, 126, 232, 0.35);
    font-size: 28px;
    line-height: 1.1;
}

.apr-home-courses-section .apr-home-course-card .td_card_btns_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.apr-home-courses-section .apr-home-course-card .apr-home-course-cta .td_btn_in {
    border-radius: 999px;
    border: 1px solid rgba(117, 126, 232, 0.34);
    background: linear-gradient(135deg, #ffffff, #f2f4ff);
    color: var(--secondary);
    min-width: 178px;
    justify-content: center;
    padding: 12px 18px;
}

.apr-home-courses-section .apr-home-course-card .apr-home-course-cta:hover .td_btn_in {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.apr-home-courses-section .apr-home-course-instructor {
    color: rgba(7, 7, 92, 0.85);
    font-size: 20px;
    line-height: 1.2;
}

@media (max-width: 1399px) {
    .apr-home-courses-section .apr-home-course-title {
        font-size: 30px;
    }

    .apr-home-courses-section .apr-home-course-card .td_card_price {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .apr-home-courses-section .apr-home-course-card .td_card_price_wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .apr-home-courses-section .apr-home-course-title {
        font-size: 28px;
    }

    .apr-home-courses-section .apr-home-course-instructor {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .apr-home-courses-section .apr-home-course-card.td_card.td_style_5.td_type_1 {
        border-radius: 20px;
        padding: 12px;
    }

    .apr-home-courses-section .apr-home-course-card .td_card_meta {
        gap: 8px;
    }

    .apr-home-courses-section .apr-home-course-card .td_card_meta li {
        width: 100%;
    }

    .apr-home-courses-section .apr-home-course-title {
        font-size: 24px;
    }

    .apr-home-courses-section .apr-home-course-card .td_card_price {
        font-size: 22px;
    }

    .apr-home-courses-section .apr-home-course-card .apr-home-course-cta,
    .apr-home-courses-section .apr-home-course-card .apr-home-course-cta .td_btn_in {
        width: 100%;
    }

    .apr-home-courses-section .apr-home-course-instructor {
        font-size: 17px;
    }
}

/* Home One: Testimonials readability and copy */
.apr-testimonial-section .apr-testimonial-title {
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.apr-testimonial-section .td_testimonial.td_style_1.td_type_1 {
    background-color: #ffffff;
    border: 1px solid rgba(7, 7, 92, 0.1);
    box-shadow: 0 14px 28px rgba(7, 7, 92, 0.12);
}

.apr-testimonial-section .td_testimonial .td_quote_icon {
    opacity: 0.18;
    color: #8f95dd;
}

.apr-testimonial-section .td_testimonial .apr-testimonial-name {
    color: var(--secondary);
    opacity: 1;
}

.apr-testimonial-section .td_testimonial .apr-testimonial-role {
    color: #4b5563 !important;
    opacity: 1 !important;
}

.apr-testimonial-section .td_testimonial .apr-testimonial-comment {
    color: #111827 !important;
    opacity: 1 !important;
    font-size: 21px;
    line-height: 1.55;
}

@media (max-width: 1199px) {
    .apr-testimonial-section .td_testimonial .apr-testimonial-comment {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .apr-testimonial-section .apr-testimonial-title {
        font-size: 34px;
    }

    .apr-testimonial-section .td_testimonial .apr-testimonial-comment {
        font-size: 17px;
    }
}

/* Home One: Blog cards readability + slider */
.apr-home-blog-section .apr-home-blog-card.td_post.td_style_1.td_type_1 {
    background: #ffffff;
    border: 1px solid rgba(7, 7, 92, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(7, 7, 92, 0.1);
}

.apr-home-blog-section .apr-home-blog-card .td_post_meta span {
    color: #1f2937;
    opacity: 1;
}

.apr-home-blog-section .apr-home-blog-card .td_post_title a {
    color: var(--secondary);
    opacity: 1;
    line-height: 1.28;
}

.apr-home-blog-section .apr-home-blog-card .td_post_subtitle {
    color: #374151 !important;
    opacity: 1 !important;
    -webkit-line-clamp: 3;
    line-height: 1.55;
}

.apr-home-blog-section .apr-home-blog-cta .td_btn_in {
    border: 1px solid rgba(117, 126, 232, 0.42);
    background: var(--primary);
    color: #ffffff;
    min-width: 150px;
    justify-content: center;
}

.apr-home-blog-section .apr-home-blog-cta:hover .td_btn_in {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

.apr-home-blog-section .apr-home-blog-card .td_post_info {
    min-height: 250px;
}

.apr-home-blog-section .apr-home-blog-dots {
    display: flex;
    justify-content: center;
}

.apr-home-blog-section .apr-home-blog-dots .slick-dots {
    margin: 0;
    padding: 0;
}

.apr-home-blog-section .apr-home-blog-dots .slick-dots li button {
    background: rgba(7, 7, 92, 0.22);
    border: 1px solid rgba(7, 7, 92, 0.32);
}

.apr-home-blog-section .apr-home-blog-dots .slick-dots li.slick-active button {
    background: var(--primary);
    border-color: var(--primary);
}
