/* ===== 1) Page background ===== */
html,
body.page-template-client-testimonial {
    background-color: #F8F9FC;
}

/* ===== 2) Hero section ===== */
.dmw-client-testimonial-hero-section {
    background: #081426;
    padding: 100px 50px;
}

.dmw-client-testimonial-hero-container {
    margin: 100px auto 0 auto;
}

.dmw-client-testimonial-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dmw-client-testimonial-hero-label {
    display: inline-block;
    margin: 0 0 14px;
    font-family: 'Satoshi', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
    color: #1382F9;
}

.dmw-client-testimonial-hero-title {
    margin: 0 0 14px;
    font-family: 'Satoshi', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 66px;
    color: #F5F7FA;
    text-align: center;
}

.dmw-client-testimonial-hero-desc {
    margin: 0 !important;
    font-family: 'Satoshi', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
    color: #9BAAC0;
    text-align: center;
}

/* ===== 3) Grid + columns ===== */
.dmw-ct-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;          /* all 3 columns = same height */
    width: 100%;
    margin: 80px auto 0;
}

.dmw-ct-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

/* Text + stats cards keep their natural size */
.dmw-ct-col > .dmw-ct-card--text,
.dmw-ct-col > .dmw-ct-card--stats {
    flex: 0 0 auto;
}

/* Only the video card grows (photo just crops) */
.dmw-ct-col > .dmw-ct-card--video {
    flex: 1 1 auto;
    min-height: 0;
}

/* Used by dmw-ct-balance.js while measuring natural heights */
.dmw-ct-measure .dmw-ct-col > .dmw-ct-card {
    flex: none !important;
}

/* ===== 4) Cards (common) ===== */
.dmw-ct-card,
.dmw-ct-card * {
    box-sizing: border-box;
    font-family: 'Satoshi' !important;
}

.dmw-ct-card {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    text-align: left;
}

/* --- Text card --- */
.dmw-ct-card--text {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px;
}

.dmw-ct-card--dark {
    background: url(/wp-content/uploads/2026/10/CardBG.webp) center / cover no-repeat;
}

.dmw-ct-card--light {
    background: #F8F9FC;
    border: 1px solid #0814261A;
}

.dmw-ct-logo {
    display: block;
    width: auto;
    max-width: 127px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
    flex: none;
}

.dmw-ct-text {
    margin: 0 !important;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    width: 100%;
    max-width: 83%;
}

.dmw-ct-card--dark .dmw-ct-text {
    color: #9BAAC0;
    padding-top: 50px;
}

.dmw-ct-card--light .dmw-ct-text {
    color: #081426;
}

/* --- Author --- */
.dmw-ct-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 40px;
    flex: none;
}

.dmw-ct-avatar {
    display: block;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dmw-ct-who {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.dmw-ct-name { font-size: 16px; font-weight: 500; line-height: normal; }
.dmw-ct-role { font-size: 14px; font-weight: 400; line-height: normal; }

.dmw-ct-card--dark .dmw-ct-name  { color: #FFFFFF; }
.dmw-ct-card--dark .dmw-ct-role  { color: #9BAAC0; }
.dmw-ct-card--light .dmw-ct-name { color: #081426; }
.dmw-ct-card--light .dmw-ct-role { color: #08142699; }

/* --- X button --- */
.dmw-ct-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s;
}

a.dmw-ct-x:hover { transform: translateY(-1px); }

.dmw-ct-card--dark .dmw-ct-x  { background: #081426; }
.dmw-ct-card--light .dmw-ct-x { color: #081426; border: 1px solid #0814261A; }
.dmw-ct-card--video .dmw-ct-x { border: 1px solid #FFFFFF80; }

/* ===== 5) Video card ===== */
.dmw-ct-card--video {
    aspect-ratio: 247 / 270;       /* base height. Smaller 2nd number = shorter video */
    background: #0b1d36;
    cursor: pointer;
    box-shadow: 0 20px 50px 0 #009CFB21;
}

.dmw-ct-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.dmw-ct-card--video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 37, 50, 0.8) 0%, rgba(24, 59, 86, 0.0001) 49.52%, #152532 100%);
    pointer-events: none;
}

.dmw-ct-vtop {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dmw-ct-vname { display: block; color: #FFFFFF; font-size: 16px; font-weight: 700; line-height: normal; }
.dmw-ct-vrole { display: block; margin-top: 4px; color: #FFFFFF99; font-size: 14px; font-weight: 500; line-height: normal; }

.dmw-ct-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #06101f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s, transform .2s;
}

.dmw-ct-card--video:hover .dmw-ct-play,
.dmw-ct-play:focus-visible {
    opacity: 1;
    transform: scale(1);
}

.dmw-ct-vbottom {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dmw-ct-stars { display: flex; gap: 3px; font-size: 16px; line-height: 1; }
.dmw-ct-star  { color: rgba(255, 255, 255, .3); }
.dmw-ct-star.on { color: #fbb024; }
.dmw-ct-tag   { color: #fff; font-size: 16px; font-weight: 500; line-height: 1.2; }

/* ===== 6) Blue stats card ===== */
.dmw-ct-card--stats {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #1382F9;
    color: #fff;
    border: 1px solid #1382F94D;
}

.dmw-ct-card--stats .dmw-ct-stats-title {
    margin: 0 0 20px !important;
    padding: 0 !important;
    color: #FFFFFF !important;
    font-size: 34px !important;
    line-height: normal !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.dmw-ct-card--stats .dmw-ct-stats-desc {
    margin: 0 !important;
    color: #FFFFFFCC;
    font-size: 18px;
    line-height: normal;
    font-weight: 400;
    width: 100%;
    max-width: 90%;
}

.dmw-ct-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 70px;
}

.dmw-ct-stat strong {
    display: block;
    font-size: 40px;
    line-height: normal;
    font-weight: 400;
    white-space: nowrap;
    color: #F8F9FC;
    font-style: italic;
}

.dmw-ct-stat span {
    display: block;
    margin-top: 9px;
    font-size: 15px;
    white-space: nowrap;
    color: #FFFFFFCC;
    font-weight: 500;
}

/* ===== 7) Technology section ===== */
.dmw-ct-tech-section {
    padding: 100px 50px 0;
    margin-top: 0 !important;
}

.dmw-ct-tech-container {
    margin: 0 auto;
    background: url(/wp-content/uploads/2026/10/technologyBG-scaled.webp) top center / cover no-repeat;
    backdrop-filter: blur(19.2px);
    border-radius: 30px;
}

.dmw-ct-tech-card {
    position: relative;
    overflow: hidden;
    padding: 65px 24px;
    text-align: center;
    border: 1px solid #08142633;
    border-radius: 30px;
}

.dmw-ct-tech-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dmw-ct-tech-content p {
    margin: 0 !important;
}

.dmw-ct-tech-section .dmw-ct-tech-title {
    margin: 0 0 15px !important;
    padding: 0 !important;
    font-family: 'Satoshi' !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    text-align: center;
    color: #081426 !important;
    width: 100%;
    max-width: 43%;
}

.dmw-ct-tech-section .dmw-ct-tech-desc {
    margin: 0 auto !important;
    font-family: 'Satoshi' !important;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
    color: #536176;
    width: 100%;
    max-width: 35%;
}


/* Floating logo circles */
.dmw-ct-tech-logos {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.dmw-ct-tech-logo {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.dmw-ct-tech-logo img {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 !important;
    object-fit: contain;
    border-radius: 50%;
}

/* 7 positions */
.dmw-ct-tech-logo:nth-child(1) { left: 6.6%;  top: 14%; }
.dmw-ct-tech-logo:nth-child(2) { left: 14.4%; top: 44%; }
.dmw-ct-tech-logo:nth-child(3) { left: 3.5%;  top: 76%; }
.dmw-ct-tech-logo:nth-child(4) { left: 29.7%; top: 66%; }
.dmw-ct-tech-logo:nth-child(5) { left: 80.5%; top: 12%; }
.dmw-ct-tech-logo:nth-child(6) { left: 90.6%; top: 43%; }
.dmw-ct-tech-logo:nth-child(7) { left: 77.7%; top: 72%; }

.dmw-ct-tech-logo:nth-child(3) img { width: 53px; height: 53px; }
.dmw-ct-tech-logo:nth-child(4) img { width: 55px; height: 55px; }
.dmw-ct-tech-logo:nth-child(6) img { width: 80px; height: 80px; }
.dmw-ct-tech-logo:nth-child(7) img { width: 67px; height: 67px; }


/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ===== Desktop 1341px–1600px ===== */
@media (min-width: 1341px) and (max-width: 1600px) {
    .dmw-ct-tech-section .dmw-ct-tech-title {
        max-width: 80% !important;
    }
}

/* ===== Laptop 993px–1340px (3 columns, no empty gaps) ===== */
@media (min-width: 993px) and (max-width: 1340px) {
    /* Last card of every column grows, so the column always fills the full height */
    .dmw-ct-col > .dmw-ct-card:last-child {
        flex: 1 1 auto;
    }

    /* Keep the content tidy inside a card that grew taller */
    .dmw-ct-col > .dmw-ct-card--text:last-child .dmw-ct-author,
    .dmw-ct-col > .dmw-ct-card--stats:last-child .dmw-ct-stats-row {
        margin-top: auto;
    }

    .dmw-ct-text {
        max-width: 100% !important;
    }
}

/* ===== Laptop 993px–1200px ===== */
@media (min-width: 993px) and (max-width: 1200px) {

    .dmw-client-testimonial-hero-title {
        font-size: 46px;
        line-height: 1.2;
    }

    .dmw-client-testimonial-hero-desc {
        font-size: 19px;
    }

    .dmw-ct-grid,
    .dmw-ct-col {
        gap: 22px;
    }

    .dmw-ct-card--text {
        padding: 20px;
    }

    .dmw-ct-card--stats {
        padding: 24px;
    }

    .dmw-ct-card--stats .dmw-ct-stats-title {
        font-size: 30px !important;
    }

    .dmw-ct-card--stats .dmw-ct-stats-desc {
        max-width: 100% !important;
    }

    .dmw-ct-stat strong {
        font-size: 32px;
    }

    .dmw-ct-stat span {
        font-size: 13px;
        white-space: normal;
    }

    .dmw-ct-tech-section {
        padding: 80px 25px 0;
    }



    .dmw-ct-tech-section .dmw-ct-tech-desc {
        max-width: 50%;
        font-size: 18px;
    }
}

/* ===== Laptop 1201px–1340px ===== */
@media (min-width: 1201px) and (max-width: 1340px) {
    .dmw-client-testimonial-hero-section,
    .dmw-ct-tech-section {
        padding-left: 35px !important;
        padding-right: 35px !important;
    }

    .dmw-ct-grid,
    .dmw-ct-col {
        gap: 10px;
    }

    .dmw-ct-tech-section .dmw-ct-tech-title {
        max-width: 71% !important;
    }

    .dmw-ct-tech-section .dmw-ct-tech-desc {
        max-width: 57% !important;
    }
}

/* ===== Tablet 768px–992px (2 columns, cards flow freely) ===== */
@media (min-width: 768px) and (max-width: 992px) {
    .dmw-client-testimonial-hero-section {
        padding: 100px 25px;
    }

    .dmw-client-testimonial-hero-title {
        font-size: 40px;
        line-height: normal;
    }

    .dmw-client-testimonial-hero-desc {
        font-size: 18px;
    }

    .dmw-ct-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-top: 50px;
    }

    .dmw-ct-col {
        display: contents;
    }

    .dmw-ct-card--text {
        padding: 20px;
    }

    .dmw-ct-text {
        max-width: 100%;
    }

    .dmw-ct-card--stats {
        padding: 20px;
        min-height: 100%;
    }

    .dmw-ct-card--stats .dmw-ct-stats-title {
        font-size: 28px !important;
    }

    .dmw-ct-stats-row {
        padding-top: 80px;
        flex-wrap: wrap;
    }

    .dmw-ct-stat strong {
        font-size: 30px;
    }

    .dmw-ct-stat span {
        font-size: 12px;
        white-space: normal;
    }

    .dmw-ct-tech-section {
        padding: 60px 25px 0;
    }

    .dmw-ct-tech-card {
        padding: 60px 20px;
    }

    .dmw-ct-tech-section .dmw-ct-tech-title {
        max-width: 80%;
    }

    .dmw-ct-tech-section .dmw-ct-tech-desc {
        max-width: 90%;
        font-size: 18px;
    }

    .dmw-ct-tech-logo,
    .dmw-ct-tech-logo img {
        width: 70px;
        height: 70px;
    }
}

/* ===== Mobile up to 767px (1 column) ===== */
@media (max-width: 767px) {
    .dmw-client-testimonial-hero-section {
        padding: 100px 15px;
    }

    .dmw-client-testimonial-hero-label {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .dmw-client-testimonial-hero-title {
        font-size: 35px;
        line-height: 45px;
    }

    .dmw-client-testimonial-hero-desc {
        font-size: 18px;
    }

    .dmw-ct-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 40px;
    }

    .dmw-ct-col {
        display: contents;
    }

    .dmw-ct-card--text {
        padding: 20px;
        gap: 20px;
    }

    .dmw-ct-text,
    .dmw-ct-card--light .dmw-ct-text {
        max-width: 100%;
        font-size: 16px;
    }

    .dmw-ct-vtop {
        left: 14px;
        right: 14px;
    }

    .dmw-ct-play {
        opacity: 1;
        transform: scale(1);
    }

    .dmw-ct-card--stats {
        min-height: 260px;
        padding: 22px;
    }

    .dmw-ct-card--stats .dmw-ct-stats-title {
        font-size: 22px !important;
        margin: 0 0 15px !important;
    }

    .dmw-ct-card--stats .dmw-ct-stats-desc {
        font-size: 16px !important;
    }

    .dmw-ct-stats-row {
        padding-top: 20px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .dmw-ct-stat strong {
        font-size: 28px;
    }

    .dmw-ct-stat span {
        font-size: 12px;
        white-space: normal;
    }

    .dmw-ct-tech-section {
        padding: 60px 15px 0;
    }

    .dmw-ct-tech-container,
    .dmw-ct-tech-card {
        border-radius: 20px;
    }

    .dmw-ct-tech-card {
        padding: 36px 18px;
    }

    .dmw-ct-tech-logos {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        margin-bottom: 26px;
    }

    .dmw-ct-tech-logos .dmw-ct-tech-logo:nth-child(n) {
        position: static;
        width: 44px;
        height: 44px;
    }

    .dmw-ct-tech-logos .dmw-ct-tech-logo img {
        width: 44px;
        height: 44px;
    }

    .dmw-ct-tech-section .dmw-ct-tech-title {
        max-width: 100%;
        font-size: 24px !important;
        line-height: normal !important;
    }

    .dmw-ct-tech-section .dmw-ct-tech-desc {
        max-width: 100%;
        font-size: 16px;
        margin-bottom: 24px !important;
    }

    .dmw-ct-tech-section .dmw-ct-tech-btn {
        padding: 12px 24px;
        font-size: 16px;
        line-height: normal !important;
        margin: 0 !important;
    }
    .dmw-client-testimonial-hero-container {
        margin-top: 60px;
    }
}


@media (min-width: 768px) and (max-width: 1550px){

    .dmw-ct-tech-section .dmw-ct-tech-title{
         font-size: 32px !important;
         line-height: 42px !important;
    }
    .dmw-client-testimonial-hero-container {
        margin: 80px auto 0 auto;
    }
} 