﻿/* =========================================================
   HOMEPAGE SECTIONS CSS
   Section-wise CSS for index.php. Keep homepage section
   overrides here instead of inline <style> blocks.
========================================================= */

/* =========================================================
   HERO SECTION
========================================================= */

.ed-home-hero,
.ed-home-hero .ed-hero-media-stage {
    min-height: 570px;
    background: #120607 !important;
}

.ed-home-hero .ed-hero-video-wrap {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background: #120607;
}

.ed-home-hero #heroIntroVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ed-home-hero .ed-hero-video-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.22));
    pointer-events: none;
}

.ed-home-hero .ed-hero-video-copy {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 30px));
    min-height: 570px;
    margin: 0 auto;
    padding: 110px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.ed-home-hero .ed-hero-video-copy h1 {
    max-width: 680px;
    margin: 0 auto 16px;
    color: #fff;
    font-size: clamp(32px, 4vw, 62px);
    line-height: 1.12;
}

.ed-home-hero .ed-hero-video-copy p {
    max-width: 600px;
    margin: 0 auto 28px;
    color: #fff;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .ed-home-hero,
    .ed-home-hero .ed-hero-media-stage,
    .ed-home-hero .ed-hero-video-wrap {
        min-height: 430px;
    }

    .ed-home-hero .ed-hero-video-copy {
        width: 100%;
        min-height: 430px;
        padding: 70px 24px;
        align-items: center;
        text-align: center;
    }

    .ed-home-hero .ed-hero-video-wrap::after {
        background: rgba(0,0,0,.52);
    }
}

/* =========================================================
   COURSE SECTION
========================================================= */

#homeCoursesGrid {
    row-gap: 14px !important;
}

#homeCoursesGrid > div {
    display: flex !important;
    margin-bottom: 0 !important;
}

#homeCoursesGrid .home-course-card {
    width: 100% !important;
    max-width: 410px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px dashed #f0bdc5 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
    animation: msolCardRise .65s ease both;
}

#homeCoursesGrid .home-course-card:hover {
    background: #fff !important;
    border-color: #f0bdc5 !important;
    transform: translateY(-7px) !important;
    box-shadow: 0 18px 34px rgba(10, 36, 70, .16) !important;
}

#homeCoursesGrid .it-course-thumb {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
}

#homeCoursesGrid .home-course-image {
    width: 100% !important;
    height: 172px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px 6px 0 0 !important;
    object-fit: cover !important;
}

#homeCoursesGrid .it-course-content {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 16px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    text-align: left !important;
}

#homeCoursesGrid .it-course-content::before,
#homeCoursesGrid .it-course-content::after,
#homeCoursesGrid .it-course-item::before,
#homeCoursesGrid .it-course-item::after,
#homeCoursesGrid .border-line::before,
#homeCoursesGrid .border-line::after {
    display: none !important;
}

#homeCoursesGrid .it-course-title {
    margin: 0 0 8px !important;
    padding: 0 0 7px !important;
    border-bottom: 1px solid #222;
    color: #000 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    letter-spacing: 2px !important;
    text-align: left !important;
}

#homeCoursesGrid .it-course-title a,
#homeCoursesGrid .it-course-title a:hover,
#homeCoursesGrid .home-course-card:hover .it-course-title a {
    color: #000 !important;
}

#homeCoursesGrid .static-course-flag {
    position: absolute;
    right: 20px;
    bottom: -28px;
    width: 58px;
    height: 58px;
    border: 3px solid #c6093b;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    z-index: 2;
}

#homeCoursesGrid .static-course-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#homeCoursesGrid .course-ref-meta,
#homeCoursesGrid .course-ref-badges {
    display: flex !important;
    flex-wrap: wrap;
    gap: 3px 6px;
    margin: 0 0 6px !important;
}

#homeCoursesGrid .course-ref-meta span {
    width: auto !important;
    flex: 0 1 auto;
    color: #111827 !important;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: nowrap;
    padding-right: 0 !important;
    margin-right: 0 !important;
    border-right: 0 !important;
}

#homeCoursesGrid .course-ref-meta i {
    color: #c6093b;
    margin-right: 5px;
}

#homeCoursesGrid .course-ref-meta strong {
    color: #00618a;
}

#homeCoursesGrid .course-ref-badges span {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
}

#homeCoursesGrid .course-ref-badges span:first-child {
    background: #c6093b;
}

#homeCoursesGrid .course-ref-badges span:last-child {
    background: #00618a;
}

#homeCoursesGrid .course-fee-line {
    display: none !important;
}

#homeCoursesGrid .it-course-btn {
    display: none !important;
}

@keyframes msolCardRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   WHY CHOOSE SECTION
   Base .wcu-* CSS lives in about-us.css because About page
   and homepage share the same design.
========================================================= */

.wcu-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 8px !important;
    min-height: 150px;
    padding: 30px 18px 30px !important;
    box-shadow: 0 10px 26px rgba(17, 24, 39, .10) !important;
    transform: translateY(0) scale(1);
    transform-style: preserve-3d;
    transition:
        transform .34s cubic-bezier(.2,.8,.2,1),
        box-shadow .34s ease,
        border-color .34s ease,
        filter .34s ease;
    animation: msolCardRise .65s ease both;
}

.wcu-card::before {
    content: "";
    position: absolute;
    inset: -45% -20%;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.95), transparent 28%),
        linear-gradient(120deg, transparent 28%, rgba(255,255,255,.75) 48%, transparent 68%);
    opacity: 0;
    transform: translateX(-55%) rotate(12deg);
    transition: transform .58s ease, opacity .34s ease;
    pointer-events: none;
}

.wcu-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: currentColor;
    opacity: .22;
    transform: scaleX(.45);
    transform-origin: center;
    transition: transform .34s ease, opacity .34s ease;
    pointer-events: none;
}

.wcu-card:hover {
    transform: translateY(-12px) scale(1.025);
    filter: saturate(1.06);
    box-shadow: 0 22px 44px rgba(17, 24, 39, .18) !important;
}

.wcu-card:hover::before {
    opacity: .9;
    transform: translateX(42%) rotate(12deg);
}

.wcu-card:hover::after {
    opacity: .62;
    transform: scaleX(1);
}

.wcu-icon {
    box-shadow: 0 10px 18px rgba(17, 24, 39, .18);
    transform: translateZ(18px);
    transition:
        transform .34s cubic-bezier(.2,.8,.2,1),
        box-shadow .34s ease,
        filter .34s ease;
}

.wcu-card:hover .wcu-icon {
    transform: translateY(-6px) translateZ(24px) rotate(-5deg) scale(1.08);
    filter: brightness(1.04);
    box-shadow: 0 16px 28px rgba(17, 24, 39, .22);
}

.wcu-card h4 {
    position: relative;
    transform: translateZ(14px);
    transition: transform .34s ease, letter-spacing .34s ease;
}

.wcu-card:hover h4 {
    transform: translateY(-2px) translateZ(18px);
    letter-spacing: .2px;
}

.wcu-wave {
    transition: transform .42s ease, opacity .34s ease;
}

.wcu-card:hover .wcu-wave {
    opacity: .95;
    transform: translateY(-3px) scaleX(1.04);
}

/* =========================================================
   HERO QUICK LINKS
========================================================= */

.ed-quick-links-wrap {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background: #f7f9fc !important;
}

.ed-quick-links {
    gap: 10px !important;
}

.ed-quick-link {
    position: relative !important;
    min-height: 46px !important;
    padding: 7px 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--ql-color, #246bfe), rgba(17, 24, 39, .82)) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10) !important;
    overflow: hidden;
    isolation: isolate;
}

.ed-quick-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.26) 48%, transparent 72%);
    opacity: 0;
    transform: translateX(-70%);
    transition: opacity .28s ease, transform .48s ease;
}

.ed-quick-link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .15) !important;
}

.ed-quick-link:hover::before {
    opacity: 1;
    transform: translateX(70%);
}

.ed-quick-link-icon {
    width: 26px !important;
    height: 26px !important;
    color: #ffffff !important;
    background: rgba(255,255,255,.18) !important;
}

.ed-quick-link-icon svg {
    width: 13px !important;
    height: 13px !important;
}

.ed-quick-link-copy strong {
    color: #ffffff !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
}

.ed-quick-link-arrow {
    color: #ffffff !important;
    background: rgba(255,255,255,.16) !important;
}

@media (max-width: 767.98px) {
    .ed-quick-links-wrap {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .ed-quick-links {
        gap: 8px !important;
    }

    .ed-quick-link {
        min-height: 42px !important;
        padding: 7px 9px !important;
    }

    .ed-quick-link-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .ed-quick-link-copy strong {
        font-size: 11.5px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcu-card,
    .wcu-card::before,
    .wcu-card::after,
    .wcu-icon,
    .wcu-card h4,
    .wcu-wave,
    .ttm-card,
    .ttm-card::before,
    .ttm-card::after,
    .ttm-stars,
    .ttm-text,
    .ttm-person,
    .ttm-avatar {
        animation: none !important;
        transition: none !important;
    }
}

/* Testimonial popup viewport lock. */
.ttm-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.ttm-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.ttm-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(20, 29, 42, .72) !important;
    backdrop-filter: blur(2px) !important;
}

.ttm-modal-box {
    position: relative !important;
    z-index: 2 !important;
    width: min(430px, calc(100vw - 40px)) !important;
    max-height: calc(100svh - 46px) !important;
    overflow: auto !important;
    padding: 36px 30px 28px !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 28px 60px rgba(13, 40, 92, .42) !important;
}

.ttm-modal-close {
    position: absolute !important;
    top: 18px !important;
    right: 22px !important;
    width: 28px !important;
    height: 28px !important;
    color: #111827 !important;
    font-size: 34px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    background: transparent !important;
    border: 0 !important;
}

.ttm-modal-user {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    margin-bottom: 20px !important;
}

.ttm-modal-image {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 0 0 5px #f2f4f7 !important;
}

.ttm-modal-user h3 {
    margin: 0 !important;
    max-width: 220px !important;
    color: #111827 !important;
    font-size: 26px !important;
    line-height: 1.02 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.ttm-modal-user span {
    display: block !important;
    margin-top: 8px !important;
    color: #6b7280 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

.ttm-modal-stars {
    margin: 20px 0 26px 100px !important;
    color: #f5a400 !important;
    font-size: 30px !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
}

.ttm-modal-message {
    margin: 0 0 28px !important;
    color: #263447 !important;
    font-size: 18px !important;
    line-height: 1.62 !important;
    font-weight: 500 !important;
}

.ttm-modal-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 150px !important;
    min-height: 50px !important;
    margin: 0 auto !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #ef1f2a !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

@media (max-width: 575.98px) {
    .ttm-modal {
        padding: 20px !important;
    }

    .ttm-modal-box {
        width: min(356px, calc(100vw - 40px)) !important;
        padding: 34px 22px 28px !important;
        border-radius: 20px !important;
    }

    .ttm-modal-user {
        gap: 18px !important;
    }

    .ttm-modal-image {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
    }

    .ttm-modal-user h3 {
        font-size: 25px !important;
        max-width: 172px !important;
    }

    .ttm-modal-user span {
        font-size: 16px !important;
    }

    .ttm-modal-stars {
        margin: 18px 0 26px 100px !important;
        font-size: 27px !important;
    }

    .ttm-modal-message {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }
}

/* Homepage section spacing final override. */
.wcu-section {
    padding: 0px 0 !important;
}

.it-about-area {
    padding-top: 25px !important;
    padding-bottom: 0px !important;
}

@media (min-width: 768px) {
    #homeCoursesGrid .it-course-item {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: calc(90% - 0px) !important;
        margin-bottom: 0 !important;
    }
}

/* =========================================================
   HOMEPAGE TESTIMONIAL DESKTOP RESTORE
   Mobile testimonial is already correct, so these rules start
   at tablet/desktop only.
========================================================= */

@media (min-width: 768px) {
    .ttm-section {
        overflow: hidden !important;
        padding-top: 54px !important;
        padding-bottom: 50px !important;
    }

    .ttm-section .ttm-wrap {
        position: relative !important;
        width: min(1500px, 100%) !important;
        max-width: 1500px !important;
        margin: 0 auto !important;
        padding: 0 48px !important;
        overflow: hidden !important;
    }

    .ttm-section .ttm-track {
        display: flex !important;
        grid-template-columns: none !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 8px 2px 16px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        cursor: grab !important;
    }

    .ttm-section .ttm-track::-webkit-scrollbar {
        display: none !important;
    }

    .ttm-section .ttm-card,
    .ttm-section .ttm-card:nth-child(n+4) {
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 calc((100% - 60px) / 4) !important;
        width: calc((100% - 60px) / 4) !important;
        min-width: calc((100% - 60px) / 4) !important;
        max-width: calc((100% - 60px) / 4) !important;
        height: 330px !important;
        min-height: 330px !important;
        max-height: 330px !important;
        margin: 0 !important;
        padding: 26px 22px 22px !important;
        box-sizing: border-box !important;
        scroll-snap-align: start !important;
    }

    .ttm-section .ttm-text {
        height: 122px !important;
        min-height: 122px !important;
        max-height: 122px !important;
        overflow: hidden !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .ttm-section .ttm-person-row {
        margin-top: auto !important;
    }

    .ttm-section .ttm-prev,
    .ttm-section .ttm-next {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

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

    .ttm-section .ttm-track {
        gap: 16px !important;
    }

    .ttm-section .ttm-card,
    .ttm-section .ttm-card:nth-child(n+4) {
        flex-basis: calc((100% - 32px) / 3) !important;
        width: calc((100% - 32px) / 3) !important;
        min-width: calc((100% - 32px) / 3) !important;
        max-width: calc((100% - 32px) / 3) !important;
    }
}

/* Homepage sync with the common testimonial design. */
@media (min-width: 768px) {
    .ttm-section .ttm-wrap {
        max-width: 1660px !important;
        padding-left: 58px !important;
        padding-right: 58px !important;
    }

    .ttm-section .ttm-track {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        gap: 22px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
    }

    .ttm-section .ttm-card,
    .ttm-section .ttm-card:nth-child(n+4) {
        flex: 0 0 calc((100% - 66px) / 4) !important;
        width: calc((100% - 66px) / 4) !important;
        min-width: calc((100% - 66px) / 4) !important;
        max-width: calc((100% - 66px) / 4) !important;
        height: 450px !important;
        min-height: 450px !important;
        max-height: 450px !important;
        padding: 30px 28px 28px !important;
        border-radius: 72px 0 72px 0 !important;
    }

    .ttm-section .ttm-card .ttm-text {
        max-height: 138px !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        color: #ffffff !important;
    }

    .ttm-section .ttm-stars {
        color: #ffd400 !important;
    }

    .ttm-section .ttm-person h5,
    .ttm-section .ttm-person span {
        color: #ffffff !important;
    }

    .ttm-section .ttm-person-row {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 58px !important;
        margin-top: auto !important;
    }

    .ttm-section .ttm-person-row .ttm-person {
        position: static !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .ttm-section .ttm-person-row .ttm-avatar {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        flex: 0 0 56px !important;
        border: 2px solid rgba(255,255,255,.82) !important;
    }

    .ttm-section .ttm-person-row .ttm-read-more {
        position: static !important;
        transform: none !important;
        flex: 0 0 auto !important;
        min-width: 84px !important;
        max-width: 102px !important;
        min-height: 32px !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 1px solid rgba(255,255,255,.48) !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.16) !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .ttm-section .ttm-wrap {
        padding-left: 46px !important;
        padding-right: 46px !important;
    }

    .ttm-section .ttm-track {
        gap: 18px !important;
    }

    .ttm-section .ttm-card,
    .ttm-section .ttm-card:nth-child(n+4) {
        flex-basis: calc((100% - 36px) / 3) !important;
        width: calc((100% - 36px) / 3) !important;
        min-width: calc((100% - 36px) / 3) !important;
        max-width: calc((100% - 36px) / 3) !important;
        height: 420px !important;
        min-height: 420px !important;
        max-height: 420px !important;
    }
}

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

    .ttm-section .ttm-track {
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .ttm-section .ttm-card,
    .ttm-section .ttm-card:nth-child(n+4) {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 330px !important;
        min-height: 330px !important;
        max-height: 330px !important;
        padding: 22px 18px !important;
        border-radius: 28px 28px 48px 28px !important;
        color: #ffffff !important;
    }

    .ttm-section .ttm-card .ttm-text,
    .ttm-section .ttm-person span {
        color: #ffffff !important;
    }

    .ttm-section .ttm-stars {
        color: #ffd400 !important;
    }

    .ttm-section .ttm-person h5 {
        color: #ffffff !important;
    }

    .ttm-section .ttm-card .ttm-text {
        max-height: 118px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .ttm-section .ttm-person-row {
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
        min-height: 50px !important;
    }

    .ttm-section .ttm-person-row .ttm-person,
    .ttm-section .ttm-person-row .ttm-read-more {
        position: static !important;
        transform: none !important;
    }

    .ttm-section .ttm-person-row .ttm-avatar {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        flex-basis: 46px !important;
    }
}

/* Final testimonial cleanup: hide closed modal, circle avatars, shorter cards. */
.ttm-modal:not(.is-open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ttm-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.ttm-section .ttm-avatar,
.ttm-section .ttm-person-row .ttm-avatar,
.ttm-modal-image {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

@media (min-width: 1200px) {
    .ttm-section .ttm-card,
    .ttm-section .ttm-card:nth-child(n+4) {
        height: 385px !important;
        min-height: 385px !important;
        max-height: 385px !important;
        padding: 28px 26px 24px !important;
        border-radius: 58px 0 58px 0 !important;
    }

    .ttm-section .ttm-card .ttm-text {
        max-height: 112px !important;
        font-size: 15px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .ttm-section .ttm-card,
    .ttm-section .ttm-card:nth-child(n+4) {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
        border-radius: 48px 0 48px 0 !important;
    }
}

@media (max-width: 767.98px) {
    .ttm-section .ttm-card,
    .ttm-section .ttm-card:nth-child(n+4) {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .ttm-section .ttm-card .ttm-text {
        max-height: 96px !important;
    }
}

/* Final homepage testimonial text and popup polish. */
.ttm-section .ttm-person h5,
.ttm-section .ttm-person-row .ttm-person h5 {
    max-width: 100% !important;
    margin: 0 0 3px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.ttm-section .ttm-person span,
.ttm-section .ttm-person-row .ttm-person span {
    color: rgba(255,255,255,.9) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.ttm-section .ttm-person-row .ttm-read-more {
    min-width: 76px !important;
    max-width: 88px !important;
    min-height: 28px !important;
    padding: 7px 8px !important;
    font-size: 9px !important;
}

.ttm-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
}

.ttm-modal:not(.is-open) {
    display: none !important;
}

.ttm-modal-box {
    width: min(620px, calc(100vw - 28px)) !important;
    max-height: calc(100svh - 34px) !important;
    padding: 34px 34px 28px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 70px rgba(8,20,38,.28) !important;
}

.ttm-modal-close {
    top: 10px !important;
    right: 14px !important;
    width: 34px !important;
    height: 34px !important;
    color: #172033 !important;
    font-size: 30px !important;
}

.ttm-modal-user {
    gap: 15px !important;
    margin-bottom: 20px !important;
}

.ttm-modal-image {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    border-radius: 50% !important;
}

.ttm-modal-user h3 {
    margin: 0 0 3px !important;
    color: #111827 !important;
    font-size: 22px !important;
    line-height: 1.18 !important;
}

.ttm-modal-message {
    color: #273244 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    margin-bottom: 22px !important;
}

.ttm-modal-button {
    min-width: 120px !important;
    padding: 11px 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}

@media (max-width: 767.98px) {
    .ttm-section .ttm-person h5,
    .ttm-section .ttm-person-row .ttm-person h5 {
        font-size: 12px !important;
    }

    .ttm-section .ttm-person-row .ttm-read-more {
        min-width: 72px !important;
        max-width: 84px !important;
        min-height: 27px !important;
        padding: 7px 8px !important;
        font-size: 8.5px !important;
    }

    .ttm-modal-box {
        padding: 30px 18px 22px !important;
        border-radius: 16px !important;
    }

    .ttm-modal-image {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
    }

    .ttm-modal-user h3 {
        font-size: 18px !important;
    }

    .ttm-modal-message {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }
}

/* Testimonial popup final viewport lock. */
.ttm-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    transform: none !important;
}

.ttm-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.ttm-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(20, 29, 42, .72) !important;
    backdrop-filter: blur(2px) !important;
}

.ttm-modal-box {
    position: relative !important;
    z-index: 2 !important;
    width: min(430px, calc(100vw - 40px)) !important;
    max-height: calc(100svh - 46px) !important;
    overflow: auto !important;
    padding: 36px 30px 28px !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 28px 60px rgba(13, 40, 92, .42) !important;
}

.ttm-modal-close {
    position: absolute !important;
    top: 18px !important;
    right: 22px !important;
    width: 28px !important;
    height: 28px !important;
    color: #111827 !important;
    font-size: 34px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    background: transparent !important;
    border: 0 !important;
}

.ttm-modal-user {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    margin-bottom: 20px !important;
}

.ttm-modal-image {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 0 0 5px #f2f4f7 !important;
}

.ttm-modal-user h3 {
    margin: 0 !important;
    max-width: 220px !important;
    color: #111827 !important;
    font-size: 26px !important;
    line-height: 1.02 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.ttm-modal-user span {
    display: block !important;
    margin-top: 8px !important;
    color: #6b7280 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

.ttm-modal-stars {
    margin: 20px 0 26px 100px !important;
    color: #f5a400 !important;
    font-size: 30px !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
}

.ttm-modal-message {
    margin: 0 0 28px !important;
    color: #263447 !important;
    font-size: 18px !important;
    line-height: 1.62 !important;
    font-weight: 500 !important;
}

.ttm-modal-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 150px !important;
    min-height: 50px !important;
    margin: 0 auto !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #ef1f2a !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

@media (max-width: 575.98px) {
    .ttm-modal {
        padding: 20px !important;
    }

    .ttm-modal-box {
        width: min(356px, calc(100vw - 40px)) !important;
        padding: 34px 22px 28px !important;
        border-radius: 20px !important;
    }

    .ttm-modal-user {
        gap: 18px !important;
    }

    .ttm-modal-image {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
    }

    .ttm-modal-user h3 {
        font-size: 25px !important;
        max-width: 172px !important;
    }

    .ttm-modal-user span {
        font-size: 16px !important;
    }

    .ttm-modal-stars {
        margin: 18px 0 26px 100px !important;
        font-size: 27px !important;
    }

    .ttm-modal-message {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }
}

