﻿
/* =========================================================
   QUICK TABS FINAL - ALWAYS WINS
========================================================= */

.ed-quick-links-section{
    background:#f7f9fc !important;
    padding:8px 0 !important;
}

/* Homepage course cards: keep timing/duration and badges equal without large middle gaps. */
.it-course-area .course-ref-meta,
.it-course-area .course-ref-badges {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 10px !important;
    align-items: center !important;
    margin: 0 !important;
}

.it-course-area .course-ref-meta + .course-ref-badges,
.it-course-area .ed-course-meta-offset + .ed-course-meta-offset {
    margin-top: 8px !important;
}

.it-course-area .course-ref-meta span,
.it-course-area .course-ref-badges span {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.it-course-area .course-ref-meta strong {
    margin-right: 0 !important;
}

.it-course-area .course-ref-badges span {
    border-radius: 6px !important;
}

@media (max-width: 480px) {
    .it-course-area .course-ref-meta,
    .it-course-area .course-ref-badges {
        gap: 7px !important;
    }

    .it-course-area .course-ref-meta span,
    .it-course-area .course-ref-badges span {
        min-height: 38px !important;
        padding: 6px 7px !important;
        font-size: 13px !important;
    }

    .it-course-area .course-ref-badges span {
        font-size: 14px !important;
        font-weight: 800 !important;
    }
}

.ed-quick-links-section .ed-quick-links-wrap{
    max-width:1440px !important;
    margin:0 auto !important;
    padding:0 15px !important;
}

.ed-quick-links-section .ed-quick-links{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:10px !important;
}

/* MAIN TAB */
.ed-quick-links-section .ed-quick-link{
    position:relative !important;
    width:100% !important;

    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;

    padding:5px 8px !important;
    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    gap:10px !important;

    border:none !important;
    border-radius:8px !important;
    overflow:hidden !important;

    text-decoration:none !important;

    opacity:1 !important;
    visibility:visible !important;

    box-shadow:0 5px 14px rgba(20,35,60,.14) !important;
}

/* REMOVE OLD OVERLAY */
.ed-quick-links-section .ed-quick-link::before,
.ed-quick-links-section .ed-quick-link::after{
    display:none !important;
    content:none !important;
}

/* COLORS */
.ed-quick-links-section .ed-quick-link-red{
    background:linear-gradient(110deg,#ff5967,#ff3158) !important;
}

.ed-quick-links-section .ed-quick-link-dark{
    background:linear-gradient(110deg,#4695f5,#1976ed) !important;
}

.ed-quick-links-section .ed-quick-link-blue{
    background:linear-gradient(110deg,#9a55ee,#7627e8) !important;
}

.ed-quick-links-section .ed-quick-link-cyan{
    background:linear-gradient(110deg,#1bc7ae,#02a994) !important;
}

/* ICON */
.ed-quick-links-section .ed-quick-link .ed-quick-link-icon{
    position:relative !important;
    z-index:5 !important;

    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    flex:0 0 38px !important;

    padding:0 !important;
    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    background:#fff !important;
    border:none !important;
    border-radius:8px !important;

    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
}

/* REMOVE OLD ICON OVERLAY */
.ed-quick-links-section .ed-quick-link .ed-quick-link-icon::before,
.ed-quick-links-section .ed-quick-link .ed-quick-link-icon::after{
    display:none !important;
    content:none !important;
}

.ed-quick-links-section .ed-quick-link .ed-quick-link-icon svg{
    position:relative !important;
    z-index:10 !important;

    width:17px !important;
    height:17px !important;

    opacity:1 !important;
    visibility:visible !important;

    fill:none;
}

/* ICON COLORS */
.ed-quick-links-section .ed-quick-link-red .ed-quick-link-icon,
.ed-quick-links-section .ed-quick-link-red:hover .ed-quick-link-icon{
    color:#ff3158 !important;
}

.ed-quick-links-section .ed-quick-link-dark .ed-quick-link-icon,
.ed-quick-links-section .ed-quick-link-dark:hover .ed-quick-link-icon{
    color:#1976ed !important;
}

.ed-quick-links-section .ed-quick-link-blue .ed-quick-link-icon,
.ed-quick-links-section .ed-quick-link-blue:hover .ed-quick-link-icon{
    color:#7627e8 !important;
}

.ed-quick-links-section .ed-quick-link-cyan .ed-quick-link-icon,
.ed-quick-links-section .ed-quick-link-cyan:hover .ed-quick-link-icon{
    color:#02a994 !important;
}

/* TEXT */
.ed-quick-links-section .ed-quick-link .ed-quick-link-copy{
    position:relative !important;
    z-index:5 !important;

    flex:1 1 auto !important;
    min-width:0 !important;

    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
}

.ed-quick-links-section .ed-quick-link .ed-quick-link-copy strong,
.ed-quick-links-section .ed-quick-link:hover .ed-quick-link-copy strong,
.ed-quick-links-section .ed-quick-link:focus .ed-quick-link-copy strong{
    display:block !important;

    color:#fff !important;

    font-size:13px !important;
    font-weight:700 !important;
    line-height:1.15 !important;

    margin:0 !important;
    padding:0 !important;

    opacity:1 !important;
    visibility:visible !important;

    text-decoration:none !important;
}

/* ARROW */
.ed-quick-links-section .ed-quick-link .ed-quick-link-arrow,
.ed-quick-links-section .ed-quick-link:hover .ed-quick-link-arrow{
    position:relative !important;
    z-index:5 !important;

    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    flex:0 0 30px !important;

    margin-left:auto !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    color:#fff !important;
    font-size:18px !important;

    border:1px solid rgba(255,255,255,.55) !important;
    border-radius:50% !important;

    background:rgba(255,255,255,.10) !important;

    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
}

/* HOVER - KEEP EVERYTHING VISIBLE */
.ed-quick-links-section .ed-quick-link:hover{
    opacity:1 !important;
    visibility:visible !important;

    transform:translateY(-2px) !important;

    box-shadow:0 8px 18px rgba(20,35,60,.18) !important;
}

.ed-quick-links-section .ed-quick-link:hover .ed-quick-link-icon,
.ed-quick-links-section .ed-quick-link:hover .ed-quick-link-copy,
.ed-quick-links-section .ed-quick-link:hover .ed-quick-link-copy strong,
.ed-quick-links-section .ed-quick-link:hover .ed-quick-link-arrow{
    opacity:1 !important;
    visibility:visible !important;
}

/* TABLET */
@media(max-width:991px){
    .ed-quick-links-section .ed-quick-links{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

/* MOBILE */
@media(max-width:575px){
    .ed-quick-links-section .ed-quick-links{
        grid-template-columns:1fr !important;
        gap:7px !important;
    }
}


/* ===== QUICK TABS CENTER + VERTICAL SPACE FIX ===== */

.ed-quick-links-section{
    padding:16px 0 18px !important;
    overflow:visible !important;
}

.ed-quick-links-section .ed-quick-links-wrap{
    max-width:1460px !important;
    margin:0 auto !important;
    padding-left:20px !important;
    padding-right:20px !important;
}

.ed-quick-links-section .ed-quick-links{
    max-width:1450px !important;
    margin:0 auto !important;
    align-items:center !important;
    overflow:visible !important;
}

.ed-quick-links-section .ed-quick-link{
    margin:0 !important;
    align-self:center !important;
    overflow:visible !important;
}

@media(max-width:575px){
    .ed-quick-links-section{
        padding:12px 0 14px !important;
    }

    .ed-quick-links-section .ed-quick-links-wrap{
        padding-left:12px !important;
        padding-right:12px !important;
    }
}


/* ===== QUICK TAB ICON PERFECT CENTER ===== */

.ed-quick-links-section .ed-quick-link .ed-quick-link-icon{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    flex:0 0 38px !important;

    padding:0 !important;
    margin:0 !important;

    line-height:1 !important;
    text-align:center !important;
}

.ed-quick-links-section .ed-quick-link .ed-quick-link-icon svg{
    display:block !important;
    width:17px !important;
    height:17px !important;

    margin:auto !important;
    padding:0 !important;

    position:static !important;
    transform:none !important;
}


/* ===== QUICK TAB ICON ABSOLUTE CENTER FIX ===== */

.ed-quick-links-section .ed-quick-link .ed-quick-link-icon{
    position:relative !important;

    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    flex:0 0 44px !important;

    display:block !important;

    padding:0 !important;
    margin:0 !important;

    background:#fff !important;
    border-radius:8px !important;

    overflow:hidden !important;
}

.ed-quick-links-section .ed-quick-link .ed-quick-link-icon svg{
    position:absolute !important;

    top:50% !important;
    left:50% !important;

    width:17px !important;
    height:17px !important;

    margin:0 !important;
    padding:0 !important;

    transform:translate(-50%,-50%) !important;

    vertical-align:middle !important;
    display:block !important;
}

/* SVG CHILDREN KO BHI NORMAL POSITION */
.ed-quick-links-section .ed-quick-link .ed-quick-link-icon svg *,
.ed-quick-links-section .ed-quick-link:hover .ed-quick-link-icon svg *{
    transform:none !important;
}


/* ===== MOBILE QUICK TAB ICON CENTER FIX ===== */
@media (max-width:575px){

    .ed-quick-links-section{
        padding:10px 0 !important;
        margin:0 !important;
    }

    .ed-quick-links-section .ed-quick-link{
        height:58px !important;
        min-height:58px !important;
        max-height:58px !important;
        padding:7px 9px !important;
        overflow:hidden !important;
    }

    .ed-quick-links-section .ed-quick-link .ed-quick-link-icon{
        position:relative !important;

        width:44px !important;
        height:44px !important;
        min-width:44px !important;
        max-width:44px !important;
        flex:0 0 44px !important;

        padding:0 !important;
        margin:0 !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        background:#fff !important;
        border-radius:8px !important;
        overflow:hidden !important;
    }

    .ed-quick-links-section .ed-quick-link .ed-quick-link-icon svg{
        position:absolute !important;
        top:50% !important;
        left:50% !important;

        width:18px !important;
        height:18px !important;

        margin:0 !important;
        padding:0 !important;

        transform:translate(-50%,-50%) !important;

        display:block !important;
        opacity:1 !important;
        visibility:visible !important;
    }

    .ed-quick-links-section .ed-quick-link-copy{
        display:flex !important;
        align-items:center !important;
        height:100% !important;
    }

    .ed-quick-links-section .ed-quick-link-copy strong{
        margin:0 !important;
        line-height:1.2 !important;
    }

    .ed-quick-links-section .ed-quick-link-arrow{
        align-self:center !important;
    }
}

/* User requested final quick links spacing. */
.ed-quick-links-section {
    padding: 26px 0 26px !important;
    overflow: visible !important;
}
/* Final mobile homepage hero guard: keep heading/subtitle inside viewport. */
@media (max-width: 575px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .video-hero,
    .video-hero-media {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .video-hero-content {
        left: 50% !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 18px !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
    }

    .video-hero-title {
        display: block !important;
        width: 100% !important;
        max-width: calc(100vw - 42px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 28px !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }

    .video-hero-subtitle {
        display: block !important;
        width: 100% !important;
        max-width: min(292px, calc(100vw - 56px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}

/* Final hover scope: language strip moves as a slider, but cards do not hover.
   Hover motion is kept only for real buttons and testimonial cards. */
.it-brand-5-area,
.it-brand-6-active,
.it-brand-6-active .it-brand-5-item,
.it-brand-6-active .it-brand-5-item:hover,
.it-brand-6-active .it-brand-5-item:focus,
.it-brand-6-active .it-brand-5-item:hover img,
.it-brand-6-active .it-brand-5-item:focus img,
.it-brand-6-active img:hover {
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

.it-brand-6-active .it-brand-5-item:hover,
.it-brand-6-active .it-brand-5-item:focus {
    border-color: #e8edf3 !important;
    box-shadow: 0 6px 18px rgba(20, 35, 60, .08) !important;
}

main :is(
    .card,
    [class*="card"],
    [class*="box"],
    [class*="item"],
    .course-modern-card,
    .course-logo-card,
    .wcu-card,
    .wcu-item,
    .gco-card,
    .ti-card,
    .ps-benefit-card,
    .ps-plan-step
):not(.ttm-card):not(.it-testimonial-2-item):not(.ed-course-testimonial-card):not(.testimonial):hover {
    transform: none !important;
    box-shadow: inherit !important;
}

main :is(
    .card,
    [class*="card"],
    [class*="box"],
    [class*="item"],
    .course-modern-card,
    .course-logo-card,
    .wcu-card,
    .wcu-item,
    .gco-card,
    .ti-card,
    .ps-benefit-card,
    .ps-plan-step
):not(.ttm-card):not(.it-testimonial-2-item):not(.ed-course-testimonial-card):not(.testimonial):hover img,
main :is(.course-section-image, .why-learn-fr-img-wrap, .image-card):hover img {
    transform: none !important;
    filter: none !important;
}

main :is(
    .btn,
    button,
    .theme-btn,
    .it-btn,
    .cta-btn,
    .dc-btn-primary,
    .ed-dc-primary,
    .dc-enroll-button,
    .ed-course-btn a,
    .home-quick-action,
    .ttm-arrow,
    .ttm-read-more
):hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 28px rgba(223, 34, 34, .22) !important;
}

main :is(
    .ttm-card,
    .it-testimonial-2-item,
    .ed-course-testimonial-card,
    .testimonial
):hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14) !important;
}

/* Course detail Why Learn: content-only layout, no left image column. */
body.course-page .why-learn-fr-sec .row {
    display: block !important;
    grid-template-columns: none !important;
    padding: clamp(24px, 3vw, 42px) !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.course-page .why-learn-fr-img-col,
body.course-page .why-learn-fr-img-wrap,
body.course-page .why-learn-fr-img-portrait,
body.course-page .why-learn-fr-img-square,
body.course-page .why-learn-fr-img-landscape {
    display: none !important;
}

body.course-page .why-learn-fr-content-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
}

body.course-page .why-learn-fr-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: block !important;
}

body.course-page .why-learn-fr-title,
body.course-page .why-learn-fr-subtitle,
body.course-page .why-learn-fr-desc {
    max-width: 100% !important;
}

/* Testimonials: keep arrows aligned with the slider, not floating as separate boxes. */
.ttm-section {
    overflow: hidden !important;
}

.ttm-section .ttm-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 62px !important;
    padding-right: 62px !important;
    overflow: visible !important;
}

.ttm-section .ttm-arrow {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    z-index: 20 !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #14264b !important;
    font-size: 30px !important;
    line-height: 1 !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .16) !important;
    transform: translateY(-50%) !important;
}

.ttm-section .ttm-arrow:hover {
    transform: translateY(-50%) scale(1.06) !important;
    background: #e71f25 !important;
    color: #ffffff !important;
}

.ttm-section .ttm-prev {
    left: 12px !important;
    right: auto !important;
}

.ttm-section .ttm-next {
    left: auto !important;
    right: 12px !important;
}

@media (max-width: 767.98px) {
    .ttm-section .ttm-wrap {
        padding-left: 42px !important;
        padding-right: 42px !important;
    }

    .ttm-section .ttm-arrow {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 26px !important;
    }

    .ttm-section .ttm-prev {
        left: 4px !important;
    }

    .ttm-section .ttm-next {
        right: 4px !important;
    }
}

@media (max-width: 390px) {
    .video-hero-title,
    .video-hero-subtitle {
        max-width: min(280px, calc(100vw - 56px)) !important;
    }

    .video-hero-title {
        font-size: 26px !important;
    }
}

/* Final course detail mobile guard: page-specific CSS loads before this file. */
@media (max-width: 991px) {
    body.course-page .dc-hero {
        min-height: 0 !important;
        padding-top: 150px !important;
        padding-bottom: 34px !important;
        background-position: center top !important;
        background-size: contain !important;
    }

    body.course-page .dc-hero .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.course-page .dc-hero-grid,
    body.course-page .dc-hero-grid-background {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.course-page .dc-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 20px !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }

    body.course-page .dc-hero h1,
    body.course-page .dc-lead {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    body.course-page .dc-hero h1 {
        font-size: 32px !important;
        line-height: 1.16 !important;
    }

    body.course-page .dc-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    body.course-page .dc-content,
    body.course-page .dc-sidebar,
    body.course-page .dc-enroll-card,
    body.course-page .dc-info {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.course-page .why-learn-fr-sec .row {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        align-items: stretch !important;
        gap: 20px !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.course-page .why-learn-fr-img-col,
    body.course-page .why-learn-fr-content-col,
    body.course-page .why-learn-fr-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
    }

    body.course-page .why-learn-fr-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 24px 0 0 !important;
        display: block !important;
    }

    body.course-page .why-learn-fr-title,
    body.course-page .why-learn-fr-subtitle,
    body.course-page .why-learn-fr-desc,
    body.course-page .why-learn-fr-desc p,
    body.course-page .why-learn-fr-desc li {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        writing-mode: horizontal-tb !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
        transform: none !important;
    }

    body.course-page .why-learn-fr-title {
        font-size: 30px !important;
        line-height: 1.18 !important;
    }

    body.course-page .why-learn-fr-img-wrap,
    body.course-page .why-learn-fr-img-portrait,
    body.course-page .why-learn-fr-img-square,
    body.course-page .why-learn-fr-img-landscape {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        border-radius: 16px !important;
    }

    body.course-page .why-learn-fr-img-wrap img,
    body.course-page .why-learn-fr-img-portrait img,
    body.course-page .why-learn-fr-img-square img,
    body.course-page .why-learn-fr-img-landscape img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
        border-radius: 16px !important;
    }
}

/* Final homepage language slider: one clean line, no overlapping duplicate cards. */
.it-brand-5-area {
    padding: 12px 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.it-brand-5-area .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden !important;
}

.it-brand-6-active {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.it-brand-6-active .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 !important;
    width: max-content !important;
    min-width: 0 !important;
    transition: none !important;
}

.it-brand-6-active .swiper-slide {
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    padding: 0 8px !important;
    margin: 0 !important;
}

.it-brand-6-active .it-brand-5-item {
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(20, 35, 60, .08) !important;
}

.it-brand-6-active .swiper-slide {
    padding: 0 8px !important;
}

.it-brand-6-active .it-brand-5-item img {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    flex: 0 0 46px !important;
    margin: 0 !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}

.it-brand-6-active .it-brand-5-item span {
    display: block !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    color: #17233d !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 991px) {
    .it-brand-6-active .swiper-slide {
        padding: 0 7px !important;
    }

    .it-brand-6-active .it-brand-5-item {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        padding: 0 14px !important;
        gap: 12px !important;
    }

    .it-brand-6-active .it-brand-5-item img {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        flex-basis: 44px !important;
    }

    .it-brand-6-active .it-brand-5-item span {
        font-size: 16px !important;
    }
}

@media (max-width: 575px) {
    .it-brand-5-area .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .it-brand-6-active .swiper-slide {
        padding: 0 5px !important;
    }

    .it-brand-6-active .it-brand-5-item {
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        padding: 0 10px !important;
        gap: 10px !important;
    }

    .it-brand-6-active .it-brand-5-item img {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        flex-basis: 38px !important;
    }

    .it-brand-6-active .it-brand-5-item span {
        font-size: 15px !important;
    }
}

/* French detail page: restore the image + content "Why Learn" layout on desktop. */
body.course-page .why-learn-fr-sec .row {
    display: grid !important;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr) !important;
    align-items: center !important;
    gap: clamp(30px, 4vw, 56px) !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.course-page .why-learn-fr-img-col,
body.course-page .why-learn-fr-img-wrap,
body.course-page .why-learn-fr-img-portrait,
body.course-page .why-learn-fr-img-square,
body.course-page .why-learn-fr-img-landscape {
    display: block !important;
}

body.course-page .why-learn-fr-img-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: initial !important;
}

body.course-page .why-learn-fr-img-wrap {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    background: #fff7f7 !important;
}

body.course-page .why-learn-fr-img-wrap img,
body.course-page .why-learn-fr-img-portrait img,
body.course-page .why-learn-fr-img-square img,
body.course-page .why-learn-fr-img-landscape img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 560px !important;
    object-fit: contain !important;
    object-position: center !important;
}

body.course-page .why-learn-fr-content-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: initial !important;
}

body.course-page .why-learn-fr-content {
    width: 100% !important;
    max-width: 620px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: left !important;
}

body.course-page .why-learn-fr-title,
body.course-page .why-learn-fr-subtitle,
body.course-page .why-learn-fr-desc {
    max-width: 100% !important;
    text-align: left !important;
}

@media (max-width: 991px) {
    body.course-page .why-learn-fr-sec .row {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
    }

    body.course-page .why-learn-fr-img-wrap {
        max-width: 460px !important;
    }

    body.course-page .why-learn-fr-content {
        max-width: 100% !important;
        text-align: center !important;
    }

    body.course-page .why-learn-fr-title,
    body.course-page .why-learn-fr-subtitle,
    body.course-page .why-learn-fr-desc {
        text-align: center !important;
    }
}

