
/* ========================================
   PATIENT EDUCATION PAGE
   Bootstrap 5.3
======================================== */

#patient-education-page {
    --pe-primary: #49304f;
    --pe-secondary: #9b7a98;
    --pe-accent: #d8cad9;
    --pe-background: #faf7f3;
    --pe-text: #29252b;

    background: var(--pe-background);
    color: var(--pe-text);
    overflow-x: clip;
}

#patient-education-page *,
#patient-education-page *::before,
#patient-education-page *::after {
    box-sizing: border-box;
}

/* Page introduction */

#patient-education-page .pe-hero {
    padding: 38px 0 42px;
    text-align: center;
}

#patient-education-page .pe-hero .container {
    max-width: 900px;
}

#patient-education-page .pe-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--pe-secondary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

#patient-education-page .pe-hero h1 {
    margin: 0 0 18px;
    color: var(--pe-primary);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.2;
}

#patient-education-page .pe-hero p {
    max-width: 800px;
    margin: 0 auto;
    color: #5f555f;
    font-size: 20px;
    line-height: 1.65;
}

/* Video section */

#patient-education-page .pe-section {
    padding: 30px 0 60px;
}

#patient-education-page .pe-section > .container {
    max-width: 1240px !important;
}
/* Section title row */

#patient-education-page .pe-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(155, 122, 152, 0.25);
}

#patient-education-page .pe-heading-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

#patient-education-page .pe-cap-icon {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: var(--pe-primary);
}

#patient-education-page .pe-cap-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

#patient-education-page .pe-section-heading h2 {
    margin: 0 0 3px;
    color: var(--pe-primary);
    font-size: 30px;
    font-weight: 750;
    line-height: 1.25;
}

#patient-education-page .pe-section-heading p {
    margin: 0;
    color: #827780;
    font-size: 16px;
    line-height: 1.5;
}

#patient-education-page .pe-view-all {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
    color: var(--pe-primary);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

#patient-education-page .pe-view-all:hover {
    color: var(--pe-secondary);
}

/* Video cards */

#patient-education-page .pe-video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(155, 122, 152, 0.22);
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(41, 37, 43, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#patient-education-page .pe-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(41, 37, 43, 0.09);
}

/* Thumbnail */

#patient-education-page .pe-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ded8dd;
    text-decoration: none;
}

#patient-education-page .pe-thumbnail > img:first-child {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

#patient-education-page .pe-video-card:hover .pe-thumbnail > img:first-child {
    transform: scale(1.025);
}

/* Dark gradient and video title */

#patient-education-page .pe-video-overlay {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 62px;
    padding: 14px 15px 20px;
    color: #fff;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.82),
        rgba(0, 0, 0, 0)
    );
}

#patient-education-page .pe-video-overlay > span {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#patient-education-page .pe-doctor-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}

/* Play buttons */

#patient-education-page .pe-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 6px solid #fff;
    border-radius: 50%;
    color: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

#patient-education-page .pe-thumbnail:hover .pe-play {
    transform: translate(-50%, -50%) scale(1.08);
}

#patient-education-page .pe-play svg {
    width: 30px;
    height: 30px;
}

#patient-education-page .pe-play-youtube {
    background: #ed2028;
}

#patient-education-page .pe-play-facebook {
    background: #2864ed;
}

#patient-education-page .pe-play-instagram {
    width: 80px;
    height: 80px;
    border: 0;
    background: linear-gradient(
        45deg,
        #ffbd45,
        #f04483,
        #c638c9
    );
}

#patient-education-page .pe-duration {
    position: absolute;
    right: 10px;
    bottom: 9px;
    z-index: 4;
    padding: 3px 7px;
    border-radius: 4px;
    color: #fff;
    background: rgba(0, 0, 0, 0.9);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

/* Card content */

#patient-education-page .pe-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    min-height: 165px;
    padding: 24px 25px 22px;
}

#patient-education-page .pe-card-body h3 {
    margin: 0;
    color: #19151a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

#patient-education-page .pe-watch-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--pe-primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

#patient-education-page .pe-watch-link > span {
    font-size: 18px;
}

#patient-education-page .pe-watch-link:hover {
    color: var(--pe-secondary);
}

/* Tablet */

@media (max-width: 991.98px) {
    #patient-education-page .pe-hero {
        padding: 32px 0;
    }

    #patient-education-page .pe-section {
        padding: 25px 0 45px;
    }

    #patient-education-page .pe-section-heading h2 {
        font-size: 26px;
    }

    #patient-education-page .pe-card-body {
        min-height: 155px;
        padding: 20px;
    }
}

/* Mobile */

@media (max-width: 575.98px) {
    #patient-education-page .pe-hero {
        padding: 28px 0 20px;
    }

    #patient-education-page .pe-hero p {
        padding: 0 8px;
        font-size: 16px;
    }

    #patient-education-page .pe-section {
        padding: 20px 0 35px;
    }

    #patient-education-page .pe-section-heading {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 22px;
        padding-bottom: 16px;
    }

    #patient-education-page .pe-heading-left {
        gap: 10px;
    }

    #patient-education-page .pe-cap-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    #patient-education-page .pe-section-heading h2 {
        font-size: 21px;
    }

    #patient-education-page .pe-section-heading p {
        font-size: 13px;
    }

    #patient-education-page .pe-view-all {
        gap: 4px;
        padding-top: 5px;
        font-size: 13px;
    }

    #patient-education-page .pe-play {
        width: 62px;
        height: 62px;
        border-width: 5px;
    }

    #patient-education-page .pe-play svg {
        width: 24px;
        height: 24px;
    }

    #patient-education-page .pe-play-instagram {
        width: 66px;
        height: 66px;
        border: 0;
    }

    #patient-education-page .pe-video-overlay {
        gap: 8px;
        padding: 10px;
    }

    #patient-education-page .pe-doctor-avatar {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    #patient-education-page .pe-video-overlay > span {
        font-size: 12px;
    }

    #patient-education-page .pe-card-body {
        min-height: 145px;
        padding: 18px;
    }

    #patient-education-page .pe-card-body h3 {
        font-size: 16px;
    }
}