

.therapistBox {
    margin-top: max(max(4vh, 40px), min(4vw, 40px));
    margin-left: max(max(3vh, 30px), min(3vw, 30px));
    border: 2px solid var(--tan-color);
    padding-top: max(max(2vh, 20px), max(2vw, 20px));
    padding-left: max(max(2vh, 20px), max(2vw, 20px));
    width: 85%;
    display: grid
}

.generalInfo {
    display: flex;
    flex-wrap: wrap;
}

.identifiers, .flags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min-content;
    justify-self: center;
}

.identifiers {
    padding-right:max(max(2vh, 20px), max(2vw, 20px));
}

.cropFrame {
    height: 400px;
    width: 320px;
    float: left;
    display: grid;
    overflow: hidden;
    justify-content: center;
    box-shadow: 0 0 2px var(--taupe-color);
    margin-right: max(max(4vh, 40px), min(4vw, 40px));
    margin-bottom: max(max(1vh, 10px), min(1vw, 10px));
}


.therapistHeadshot {
    margin-top: -10px;
    width: 420px;
    height: 420px;
}

.sparkHead {
    align-self: center;
    margin-bottom: 30px;
    width: 90px;
    height: 117px;
}

.titleLine {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: max(max(4vh, 40px), min(4vw, 40px));
    margin-bottom: max(max(2vh, 20px), min(2vw, 20px));
}

.name {
    font-family: Fraunces, ui-serif;
    font-variation-settings: "SOFT" 100;
    font-size: max(max(2.6vh, 26px), min(2.6vw, 26px));
    color: var(--slate-color);
    white-space: nowrap;
    font-weight: 600;
    align-content: center;
    padding-right:max(max(2vh, 20px), max(2vw, 20px));
}

.credentials {
    font-family: Fraunces, ui-serif;
    font-variation-settings: "SOFT" 100;
    font-size: max(max(2vh, 20px), min(2vw, 20px));
    color: var(--slate-color);
    white-space: nowrap;
    font-weight: 400;
    margin-left: 15px;
    display: grid;
    grid-template-columns: min-content min-content;
    justify-self: center;
    align-self: center;
}

.degree {
    border-right: 3px solid var(--slate-color);
    justify-self: center;
    align-self: center;
    padding-right: 10px;
}

.license {
    justify-self: center;
    align-self: center;
    padding-left: 10px;
}

.speaksBox, .speaksBox, .laptopIconBox, .telehealthOnlyBox {
    display: grid
}

.speaksBoxes {
    align-self: center;
    margin-right: 15px;
}

.speaks, .telehealthIcon {
    justify-self: center;
    align-self: center;
    white-space: nowrap;
}

.speaks {
    font-style: italic;
    font-family: Fraunces, ui-sans-serif;
    font-variation-settings: "SOFT" 100;
    font-weight: bold;
    color: var(--slate-color);
}

.schedule, .openingsBox {
    font-family: Baloo2-Bold, ui-sans-serif;
    font-variant: all-small-caps;
    font-size: max(max(2.2vh, 22px), min(2.2vw, 22px));
    /*cursor: pointer;*/
    width: max(max(23.5vh, 235px), min(23.5vw, 235px));
    white-space: nowrap;
    border: 4px solid white;
    color: black;
    text-align: center;
    height: min-content;
}

.schedule {
    background: var(--lightSage-color);
}

.openingsBox {
    background: var(--lightSalmon-color);
}

.blurbBox {
    margin-bottom: -20px;
    margin-left: 1%;
}

.blurb  {
    font-family: Fraunces, ui-serif;
    line-height: max(max(2.8vh, 28px), max(2.8vh, 28px));
    font-size: max(max(1.6vh, 16px), min(1.6vw, 16px));
    font-variation-settings: "SOFT" 100;
    width: 95%;
    text-align: justify;
    margin-bottom: max(max(2vh, 20px), min(2vw, 20px));
    letter-spacing: 0.4px;
    font-weight: 360;
}

.specBox {
    display: flex;
    flex-wrap: wrap;
    color: var(--slate-color);
    margin-top: 20px;
    margin-bottom: 20px;
}

.groupBox summary::marker {
    content: '>  ';
}

.groupBox[open] summary::marker {
    content: '>  ';
}

.specGroup {
    font-family: Baloo2-Bold, ui-sans-serif;
    font-variant: all-small-caps;
    font-size: max(max(2.2vh, 22px), min(2.2vw, 22px));
    cursor: pointer;
    width: max(max(22vh, 220px), min(22vw, 220px));
    white-space: nowrap;
    background: var(--blueWhite-color);
    border: 4px solid white;
    padding-left: 15px;
}

.specRow {
    font-family: Baloo2, ui-sans-serif;
    font-size: max(max(1.6vh, 16px), min(1.6vw, 1.6px));
}

.specList {
    color: black;
}

.insBox {
    display: flex;
    flex-wrap: wrap;
    margin-top: max(max(2vh, 20px), min(2vw, 20px));
    border: 1px solid var(--taupe-color);
    border-radius: max(max(1vh, 10px), min(1vw, 10px));
    justify-content: center;
    width: 90%;
}

.insIcon {
    align-self: center;
    width: max(max(9.5vh, 95px), min(9.5vw, 95px));
    height: max(max(9.5vh, 95px), min(9.5vw, 95px));
    padding-left: max(max(2vh, 20px), min(2vw, 20px));
    padding-right: max(max(2vh, 20px), min(2vw, 20px));
}

.blank {
    height: 0;
    width: 0;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: max(max(4vh, 40px), min(4vw, 40px));
}

.pageButton {
    font-family: Baloo2-Bold, ui-sans-serif;
    font-variant: all-small-caps;
    font-size: max(max(2.2vh, 22px), min(2.2vw, 22px));
    cursor: pointer;
    width: max(max(19vh, 190px), min(19vw, 190px));
    white-space: nowrap;
    background: var(--tan-color);
    border: 2px solid var(--blueWhite-color);
    border-radius: 100px;
}

.pageButton:hover {
    background: var(--spring-color);
}

.switchPage0, .switchPage1 {
    justify-self: center;
}

.switchPage0, .switchPage1 {
    margin-bottom: 30px;
    margin-right: max(5vw, 50px);
}

@media (width < 1200px) {
    .titleLine {
        justify-self: center;
        grid-template-columns: auto;
        margin-bottom: 20px;
        margin-top: 20px;
    }
    .name {
        justify-self: center;
    }
    .credentials {
        margin-left: 0;
    }
    .identifiers, .flags {
        padding-right: 0;
    }
    .flags {
        margin-top: 10px;
        margin-bottom: -10px;
    }
    .speaksBoxes, .laptopIconBox {
        margin-bottom: 10px;
    }
    .intro {
        display: grid;
    }
    .cropFrame {
        justify-self: center;
        margin-right: 0;
    }
    .specBox {
        justify-content: center;
    }
}

@media (width < 800px) {
    .blurb {
        text-align: left;
    }
    .identifiers, .flags {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 10px;
        width: 100%;
        justify-self: center;
        padding-right: 0;
    }
    .name {
        padding-right: 0;
    }
}

/* 1. Hide the actual checkbox */
.expand-box {
    display: none;
}

@media (width < 500px) {
    .providerName {
        font-size: 1.1em;
    }
    .therapistBox {
        margin-left: max(max(1.9vh, 19px), min(1.9vw, 19px));
    }

    /* Create expand collapse with text ellipsis */

    .preview {
        display: -webkit-box;
        -webkit-line-clamp: 6; /* Show only 6 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 3. Reveal content when checkbox is checked */
    .preview:has(+ .expand-box:checked) {
        display: inline;
    }

    /* 4. Change "Read More" to "Read Less" when checked */
    .expand-box:checked + .content-label::after {
        content: " [ Read Less ]";
    }

    .expand-box:checked + .content-label {
        margin-top: 10px;
    }

    /* Style the label as a button */
    .content-label::after {
        content: " [ Read More ]";
        color: var(--slate-color);
        cursor: pointer;
        font-family: Baloo2-Bold, ui-sans-serif;
        font-variation-settings: "SOFT" 100;
        font-variant: all-small-caps;
        font-size: max(max(2.4vh, 24px), min(2.4vw, 24px));
        font-weight: 400;
    }
    .content-label {
        justify-self: center;
        margin-top: 30px;
    }
}

@media (width < 420px) {
    .insIcon {
        padding-left: max(max(0.5vh, 5px), min(0.5vw, 5px));
        padding-right: max(max(0.5vh, 5px), min(0.5vw, 5px));
    }
    .therapistHeadshot {
        width: 315px;
        height: 315px;
    }
    .cropFrame {
        height: 300px;
        width: 240px;
    }
    .name {
        font-size: max(max(2vh, 20px), min(2vw, 20px))
    }
    .credentials {
        font-size: max(max(1.6vh, 16px), min(1.6vw, 16px));
    }
}

@media (width < 410px) {
    .switchPage0, .switchPage1 {
        margin-right: 0;
    }
}