/* =========================================================
   PATIENT TESTIMONIAL PAGE
   COMPLETELY ISOLATED CSS
========================================================= */


/* =========================================================
   BASE
========================================================= */

body.testimonial-page {
    margin: 0;
    padding: 0;

    background: #ffffff;

    color: #222222;

    font-family: "Poppins", Arial, sans-serif;
}


body.testimonial-page *,
body.testimonial-page *::before,
body.testimonial-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   MAIN
========================================================= */

body.testimonial-page .testimonial-main {
    width: 100%;

    margin: 0;
    padding: 0;

    background: #ffffff;
}


body.testimonial-page .testimonial-container {
    width: 90%;

    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HERO
========================================================= */

body.testimonial-page .testimonial-hero {
    position: relative;

    width: 100%;
    height: 420px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #eeeeee;
}


body.testimonial-page .testimonial-hero-image-wrapper {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}


body.testimonial-page img.testimonial-hero-image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;

    object-position: center;

    border: 0;
}


body.testimonial-page .testimonial-hero-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    width: 100%;

    padding: 110px 5% 40px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0)
    );
}


body.testimonial-page .testimonial-hero-overlay h1 {
    margin: 0;

    color: #ffffff !important;

    font-size: 42px !important;

    line-height: 1.2;

    font-weight: 700 !important;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   DESCRIPTION
========================================================= */

body.testimonial-page .testimonial-description-section h2 {
    margin: 0 0 18px;

    color: #12345b !important;

    font-size: 30px !important;

    line-height: 1.3;

    font-weight: 700 !important;
}


body.testimonial-page .testimonial-description-section h2 {
    margin: 0 0 18px;

    color: #12345b !important;

    font-size: 30px !important;

    line-height: 1.3;

    font-weight: 700 !important;
}


body.testimonial-page .testimonial-description-section p {
    width: 100%;

    max-width: 1050px;

    margin: 0;

    color: #555555 !important;

    font-size: 16px !important;

    line-height: 1.85;
}


/* =========================================================
   TESTIMONIAL GRID
========================================================= */

body.testimonial-page .testimonial-list-section {
    width: 100%;

    margin: 0;

    padding: 20px 0 80px;

    background: #ffffff;
}


body.testimonial-page .testimonial-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;

    width: 100%;
}


/* =========================================================
   TESTIMONIAL CARD
========================================================= */

body.testimonial-page .testimonial-card {
    position: relative;

    display: flex;

    flex-direction: column;

    width: 100%;

    margin: 0;

    padding: 0;

    border: 1px solid #e0e0e0;

    border-radius: 6px;

    overflow: hidden;

    background: #ffffff;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Hover */

body.testimonial-page .testimonial-card:hover {
    transform: translateY(-6px);

    border-color: #cccccc;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   THUMBNAIL
========================================================= */

body.testimonial-page .testimonial-thumbnail {
    position: relative;

    width: 100%;

    height: 260px;

    overflow: hidden;

    background: #eeeeee;
}


body.testimonial-page .testimonial-thumbnail img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


/* Image hover */

body.testimonial-page .testimonial-card:hover
.testimonial-thumbnail img {
    transform: scale(1.05);
}


/* =========================================================
   PLAY BUTTON
========================================================= */

body.testimonial-page .testimonial-play {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    display: flex;

    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);

    color: #222222;

    font-size: 22px;

    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


body.testimonial-page .testimonial-play i {
    margin-left: 3px;
}


body.testimonial-page .testimonial-card:hover
.testimonial-play {
    transform:
        translate(-50%, -50%)
        scale(1.1);

    background: #ffffff;
}


/* =========================================================
   CARD CONTENT
========================================================= */

body.testimonial-page .testimonial-content {
    width: 100%;

    padding: 22px 24px 25px;
}


body.testimonial-page .testimonial-content h3 {
    margin: 0 0 10px;

    color: #12345b !important;

    font-size: 20px !important;

    line-height: 1.4;

    font-weight: 600 !important;
}


body.testimonial-page .testimonial-content p {
    margin: 0;

    color: #666666 !important;

    font-size: 14px !important;

    line-height: 1.75;
}


/* =========================================================
   VIDEO MODAL
========================================================= */

body.testimonial-page .testimonial-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 30px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* Open */

body.testimonial-page
.testimonial-modal.testimonial-modal-open {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   MODAL OVERLAY
========================================================= */

body.testimonial-page .testimonial-modal-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0, 0, 0, 0.82);
}


/* =========================================================
   MODAL CONTENT
========================================================= */

body.testimonial-page .testimonial-modal-content {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 1000px;

    background: #000000;

    border-radius: 5px;

    overflow: visible;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

body.testimonial-page .testimonial-modal-close {
    position: absolute;

    top: -48px;
    right: 0;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    color: #222222;

    font-size: 18px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


body.testimonial-page .testimonial-modal-close:hover {
    transform: scale(1.08);

    background: #ffffff;
}


/* =========================================================
   VIDEO
========================================================= */

body.testimonial-page .testimonial-video-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000000;

    overflow: hidden;
}


body.testimonial-page .testimonial-video {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain;

    background: #000000;
}


/* =========================================================
   ERROR / EMPTY
========================================================= */

body.testimonial-page .testimonial-error,
body.testimonial-page .testimonial-empty {
    grid-column: 1 / -1;

    width: 100%;

    padding: 35px;

    border: 1px solid #dddddd;

    background: #ffffff;

    color: #666666;

    text-align: center;

    font-size: 15px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    body.testimonial-page .testimonial-hero {
        height: 360px;
    }


    body.testimonial-page
    .testimonial-hero-overlay h1 {
        font-size: 36px !important;
    }


    body.testimonial-page .testimonial-thumbnail {
        height: 230px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body.testimonial-page .testimonial-container {
        width: 90%;
    }


    /* Hero */

    body.testimonial-page .testimonial-hero {
        height: 280px;
    }


    body.testimonial-page
    .testimonial-hero-overlay {
        padding: 70px 5% 25px;
    }


    body.testimonial-page
    .testimonial-hero-overlay h1 {
        font-size: 28px !important;
    }


    /* Description */

    body.testimonial-page
    .testimonial-description-section {
        padding: 40px 0 25px;
    }


    body.testimonial-page
    .testimonial-description-section h2 {
        font-size: 25px !important;
    }


    body.testimonial-page
    .testimonial-description-section p {
        font-size: 15px !important;
    }


    /* Grid */

    body.testimonial-page .testimonial-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* Thumbnail */

    body.testimonial-page .testimonial-thumbnail {
        height: 220px;
    }


    /* Card */

    body.testimonial-page
    .testimonial-content {
        padding: 20px;
    }


    body.testimonial-page
    .testimonial-content h3 {
        font-size: 18px !important;
    }


    /* Modal */

    body.testimonial-page .testimonial-modal {
        padding: 20px;
    }


    body.testimonial-page
    .testimonial-modal-content {
        max-width: 100%;
    }


    body.testimonial-page
    .testimonial-modal-close {
        top: -48px;
        right: 0;
    }


    

    body.testimonial-page
    .testimonial-heading-section {
        padding: 40px 0 20px;
    }

    body.testimonial-page
    .testimonial-heading-section h1 {
        font-size: 29px !important;
    }

}