.subpage-hero-content-right img {
    object-position: center;
}

/* ===============  ABOUT / WHY TAB SECTION ==============  */
.why-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 28px;
    width: 100%;
}

.why-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    margin-bottom: -2px;
    transition: all .2s;
}

.why-tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.why-tab-panel {
    display: none;
    width: 96%;
    animation: fadeIn .4s ease;
}

.why-tab-panel.active {
    display: block;
}

.why-tab-panel {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.75;
}

.why-tab-panel p {
    font-size: 14px;
    line-height: normal;
}

.icon-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 24px;
    height: 100%;
    transition: all .3s;
    cursor: default;
    box-shadow: var(--sh-sm);
}

.icon-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-6px);
    border-color: var(--gold);
}

.icon-card .ic-icon {
    width: 52px;
    height: 52px;
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 18px;
    transition: all .3s;
}

.icon-card:hover .ic-icon {
    background: var(--gold);
    color: #fff;
}

.icon-card h5 {
    font-size: 16px;
    color: var(--text-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.icon-card p {
    font-size: 14px;
    line-height: normal;
    margin: 0;
}


.why-mfd-note {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sh-md);
    margin-top: 60px;
    border: 1px solid var(--border);
    background: var(--cream);
    flex-direction: column;
    padding: 15px;
}

.why-mfd-note b {
    color: var(--gold);
}

.whosa-mfd-not {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sh-md);
    margin-top: 60px;
    border: 1px solid var(--border);
    background: var(--cream);
}

.why-mfd-note-lline {
    width: 6px;
    background: var(--gold);
}

.why-mfd-note-left {
    flex: 1;
    padding: 20px 24px;
}

.why-mfdl-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 80%;
}

.why-mfdl-pills span {
    background: var(--cream2);
    font-size: 16px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    font-weight: 600;
}

.why-mfd-note-right {
    width: 220px;
    background: var(--text-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.why-mfd-note-right i {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 6px;
}

.why-mfd-note-right .why-mfdr-exp {
    margin: 0;
    font-size: 14px;
    color: var(--text-white);
    letter-spacing: 1px;
}

.why-mfd-note-right .why-mfdr-yr {
    margin: 2px 0;
    font-size: 30px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
}

.why-mfd-note-right .why-mfdr-sm {
    margin: 0;
    font-size: 14px;
    color: var(--text-white);
    letter-spacing: 1px;
    text-align: center;
}

.type-card {
    transition: box-shadow .25s, border-color .25s, transform .25s;
    position: relative;
    overflow: hidden;
}

.tc-body {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    width: 70%;
}

.tc-indiv-body {
    width: 100%;
    margin-bottom: 12px;
}


.open-house-fee-box {
    background: var(--cream2);
    border-radius: 8px;
    border-left: 3px solid var(--text-blue);
    padding: 14px 15px;
    margin-top: 15px;
}

.open-house-fee-head p {
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
}

.open-house-fee-para p {
    font-size: 14px;
    margin-bottom: 0px;
    font-weight: 600;
}

.open-house-fee-head p i {
    font-size: 30px;
}

.open-house-fee-card {
    margin-top: 16px;
}

.open-house-fee-card .top .sub {
    font-size: 16px;
    color: var(--gold);
    margin-top: 2px;
    font-weight: 600;
}

.open-house-fee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.open-house-fee-grid .cell {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--cream);
    padding: 11px 10px 11px 15px;
    border-radius: 8px;
}

.train-type-box-para p {
    font-size: 14px;
    margin-bottom: 0px;
}

.open-house-fee-grid .cell .cell-label {
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 0.1rem;
    font-weight: 600;
}

.open-house-fee-grid .cell-val {
    font-size: 14px;
    color: var(--text-blue);
    font-weight: 600;
    background: #ffffff;
    padding: 3px 10px;
    letter-spacing: .4px;
    border-radius: 8px;
    margin-top: 5px;
    border-bottom: 2px solid #b5b1a9;
}

.grid-terms {
    margin-top: 5px;
}

.grid-terms a {
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    color: var(--text-blue);
    cursor: pointer;
}

.mfd-d-openh-right {
    overflow: hidden;
    position: relative;
    height: 115vh;
}

.mfd-d-openh-right img {
    object-fit: cover;
    margin-top: 0;
    object-position: right;
    height: 100%;
    width: 100%;
}

.mem_terms_list ul {
    list-style: none;
    padding-inline-start: 0px;
    margin-bottom: 0px;
}

.mem_terms_list ul li {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.mem_terms_list ul li p {
    margin-bottom: 0px;
}

.train-type-box {
    background: var(--cream2);
    border-radius: 8px;
    border-left: 3px solid var(--text-blue);
    padding: 14px 15px;
    margin-top: 15px;
}

.train-type-box-inhouse {
    height: auto;
}

.train-type-box-head p {
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0px;
}

.train-type-box-para p {
    font-size: 14px;
    margin-bottom: 0px;
}

.benefit-row-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    text-align: center;
    width: 100%;
    gap: 24px;
}

.benefit-row-card .benefit-row {
    width: 100%;
    box-shadow: var(--sh-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--border);
}

.benefit-row:hover {
    transform: translateY(-10px);
    box-shadow: var(--sh-md);
}

.benefit-row-image {
    width: 100%;
}

.benefit-row-image img {
    width: 100%;
    object-fit: cover;
    margin-top: 0;
    object-position: top;
    height: 165px;
}

.benefit-row-content {
    padding: 15px;
    background: #ffffff;
    height: 88px;
}

.benefit-row h6 {
    font-size: 14.5px;
    margin-bottom: 5px;
}

.benefit_list_li {
    padding-inline-start: 0px;
    margin-top: 10px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
}

.benefit_list_li li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 0px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    padding: 11px 15px;
    height: 79px;
}

.benefit_list_li img {
    width: 30px;
    height: 30px;
    margin-top: 5px;
}

.benefit_list_li p {
    margin-bottom: 0px;
    font-size: 14px;
    line-height: normal;
}

.certification-wrap {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.cert-wrap {
    padding: 17px;
    height: 100%;
    width: 100%;
    box-shadow: var(--sh-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: #ffffff;
    text-align: center;
    display: flex;
    border: 1px solid var(--border);
    gap: 0;
    flex-direction: column;
    align-items: flex-start;
}

.cert-wrap:hover {
    transform: translateY(-10px);
    box-shadow: var(--sh-md);
    border-color: var(--gold);
}

.ccd-icon {
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 8px;
    transition: all .3s;
    padding: 8px 12px;
    height: 47px;
}

.ccd-icon img {
    max-width: 31px;
}

.ccd_cont {
    text-align: left;
}

.cert-wrap h1 {
    font-size: 18px;
    color: var(--text-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.cert-wrap p {
    margin-bottom: 0px;
    font-size: 14px;
    line-height: normal;
}

.testi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: all .3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--sh-sm);
    height: 310px;
    position: relative;
}

.testi-card:hover {
    box-shadow: 0 12px 40px rgba(10, 22, 40, .1);
    transform: translateY(-5px);
}

.testi-card .quote {
    font-size: 3.5rem;
    color: var(--gold);
    line-height: .8;
    margin-bottom: -10px;
    display: block;
}

.testi-card p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    line-height: normal;
}

.testi-author {
    display: flex;
    gap: 14px;
    align-items: center;
    position: absolute;
    left: 30px;
    bottom: 30px;
    width: 80%;
}

.testi-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.testi-author strong {
    color: var(--text-blue);
    font-size: 14px;
    display: block;
    font-weight: 600;
}

.testi-author span {
    font-size: 14px;
    line-height: normal;
    color: var(--text2);
    font-weight: 600;
}

.mfd_testi_slider {
    padding-top: 15px;
    padding-bottom: 30px;
}

.certificate_right_img {
    text-align: right;
}

.certificate_right_img img {
    margin-top: 0;
    width: 85%;
}

/* ===========  MODULES =========== */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
}

.mod-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--sh-sm);
    position: relative;
    overflow: hidden;
    transition: all .3s;
}

.mod-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: scaleY(0);
    transform-origin: bottom;
    transform: scaleY(1);
    transition: transform .3s;
    background: var(--text-blue) !important;
}

.mod-card:hover {
    box-shadow: 0 10px 36px rgba(10, 22, 40, .12);
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--sh-md);
}

.mod-num {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-blue);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mod-num::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.mod-card h6 {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 600;
}

.mod-card p {
    font-size: 14px;
    margin: 0;
}

.mfd_d_fbtn_grp {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem !important;
}


@media only screen and (min-width: 1551px) and (max-width: 1930px) {}

@media only screen and (min-width: 1300px) and (max-width: 1550px) {

    .icon-card {
        padding: 15px;
    }

    .mfd-upcom-batch-right {
        height: 80vh;
    }

}

@media only screen and (min-width: 1340px) and (max-width: 1518px) {
    .mfd-d-openh-right {
        height: 94%;  
    }

    .mfd-d-inhouse-right {
        height: 94%;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1299px) {}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .scroll-tabs .nav-link {
        font-size: 14px;
        padding: 10px 20px;
    }

    .icon-card {
        padding: 15px;
    }

    .why-tab-nav {
        width: 95%;
    }

    .why-mfdl-pills span {
        font-size: 14px;
    }

    .mfd-d-openh-right {
        height: 60vh;
        margin-top: 25px;
    }

    .mfd-d-openh-right img {
        object-position: top;
    }

    .mfd-d-inhouse-right {
        height: 635px;
    }

    .benefit_list_li li {
        height: auto;
        padding: 9px;
    }

    .certificate_right_img img {
        width: 100%;
    }

    .cert-wrap h1 {
        font-size: 16px;
    }

    .benefit-row-content {
        height: auto;
    }

    .mfd_d_fbtn_grp {
        margin-bottom: 1rem;
    }

    .mfd-d-inhouse-right img {
        width: 103%;
    }

    .why-tab-btn {
        font-size: 14px;
    }

    .mfd-upcom-batch-right {
        height: 475px;
    }

    .certificate_right_img {
        margin-top: 24px;
    }

    
    .testi-card-left p {
        height: 132px;
        overflow-y: scroll;
        overflow-x: hidden;
        padding-right: 15px;
    }

}

@media only screen and (max-width: 768px) {
    .scroll-tabs .nav-link {
        font-size: 14px;
        padding: 8px 20px;
    }

    .mfd_d_fbtn_grp {
        margin-bottom: 15px;
    }

    .why-mfdl-pills span {
        font-size: 14px;
    }

    .why-tab-btn {
        font-size: 14px;
    }

    .mfd-d-openh-right {
        height: auto;
        margin-top: 10px;
    }

    .mfd-d-inhouse-right {
        height: 375px;
        margin-bottom: 25px;
    }

    .mfd-d-inhouse-right img {
        width: 100%;
    }

    .open-house-fee-grid .cell {
        padding: 5px;
        border-radius: 8px;
        align-items: center;
    }

    .open-house-fee-grid .cell .cell-label {
        font-size: 12px;
    }

    .open-house-fee-grid .cell-val {
        font-size: 10px;
    }

    .tc-post-nominal-modal,
    .mem_terms_list ul li,
    .mem_terms_list p {
        font-size: 14px;
    }

    .why-mfd-note {
        margin-top: 30px;
    }

    .benefit-row-content {
        height: auto;
    }

    .benefit-row h6 {
        font-size: 14px;
        margin-bottom: 5px;
        line-height: normal;
    }

    .benefit_list_li li {
        height: auto;
        flex-direction: column;
    }

    .certificate_right_img img {
        width: 100%;
        margin-top: 25px;
    }

    .testi-card-left p {
        height: 132px;
        overflow-y: scroll;
        overflow-x: hidden;
        padding-right: 15px;
    }

    .benefit_list_li,
    .benefit-row-card,
    .certification-wrap {
        gap: 15px;
    }

    .why-mfdl-pills span {
        font-size: 12px;
    }

    .open-house-fee-card .top .sub {
        font-size: 14px;
    }


}

@media only screen and (max-width: 540px) {

    .benefit_list_li {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr;
    }

    .why-tab-btn {
        font-size: 14px;
    }

    .mfd_d_fbtn_grp {
        flex-direction: column;
    }

    .mfd_d_fbtn_grp a {
        width: 100%;
    }

    .whosa-mfd-not {
        flex-direction: column;
    }

    .why-mfdl-pills,
    .why-mfd-note-right {
        width: 100%;
    }

    .why-mfdl-pills span {
        width: 100%;
        font-size: 14px;
    }

    .open-house-fee-grid {
        gap: 10px;
        margin-top: 10px;

    }

    .open-house-fee-grid .cell {
        padding: 10px;
    }

    .open-house-fee-grid .cell-val {
        font-size: 12px;
    }

    .mfd-d-openh-right {
        height: 30vh;
        margin-top: 20px;
    }

    .mfd-d-inhouse-right {
        height: 30vh;
        margin-bottom: 20px;
    }

    .benefit-row-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificate_right_img img {
        width: 100%;
        margin-top: 24px;
    }

    .testi-card {
        height: 340px;
    }

    .testi-card p {
        font-size: 16px;
        height: 150px;
        overflow-y: scroll;
        overflow-x: hidden;
        padding-right: 15px;
    }

    .cert-wrap h1 {
        font-size: 16px;
    }

    .benefit_list_li li {
        height: auto;
    }


}