@media screen and (max-width: 766px) {
    :root {
        --header-height: 150px;
        --header-offset: 150px;
    }
}

@media screen and (min-width: 767px) {
    :root {
        --header-height: 200px;
        --header-offset: 200px;
    }
}

:root {
    --header-height-scrolled: 100px;
    --dark-blue: rgb(2, 134, 143);
    --turqoise: rgba(50, 100, 125, 0.85);
    --turqoise2: rgba(0, 150, 135);
    --turqoise-cobalt: #007272;
    --turqoise-cobalt-light: #007272e0;
    --brown: rgb(75, 45, 30);
    --pink: rgb(250, 220, 220);
    --light-pink: rgba(99, 99, 99, 0.05);
    --dark-pink: rgba(225, 100, 150, 0.65);
    --light-blue: rgba(175, 225, 245, 0.75);
    --light-blue2: #afeeee;
    --light-blue3: #b1eeee;
    --light-blue4: rgba(130, 210, 245, 0.75);
    --light-grey: rgb(241, 249, 247);
    --text-grey: #a9a9a9;
    --white-65: rgba(255, 255, 255, 0.65);

    --primary-color: var(--turqoise2);
    --primary-light: rgba(0, 150, 135, 0.1);

    --beeRightPosition: 5%;
}

/* Page */
html, body {
    height: 100%;
    margin: 0;
}

body, textarea {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
    color: black;
}

body {
    background-color: rgba(173, 227, 243, 0.719); /* purple: rgb(75, 0, 75), blue: rgb(0, 0, 75), green: rgb(144, 201, 144);*/
    /*background-color: rgba(144, 201, 144, 0.25);*/
    display: flex;
    flex-direction: column;
    align-items: center;
}
button {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3 {
    text-wrap: balance;
}

h1, h2, h3, p {
    padding-top: 10px;
    padding-bottom: 5px;
    padding-left: 5px;
    margin-bottom: 0;
    min-width: 0;
    word-break: break-word;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.625rem; /* ~26px */
    }
    h2 {
        font-size: 1.375rem; /* ~22px */
    }
    h3 {
        font-size: 1.125rem; /* ~18px */
    }
}

q::before {
  content: "„";
}

q::after {
  content: "“";
}

.bold {
    font-weight: bold;
}

.padding-top-0 {
    padding-top: 0;
}

.padding-bottom-10px {
    padding-bottom: 10px;
}
.center-vertical * {
    vertical-align: middle;
    margin-top: auto;
    margin-bottom: auto;
}
.self-center-vertical {
    align-self: center;
}

div {
    background-color: white;
    border-radius: 2px;
    padding: 0;
}

div:not(:has(div)) {
    padding: 10px;
}

div p:first-of-type {
    padding-top: 0;
    margin-top: 0;
}

div.rounded-corners {
    border-radius: 25px;
}

div.min-width-25pc {
    min-width: 25%;
}
div.min-width-30pc {
    min-width: 30%;
}

.padding-10px {
    padding: 10px;
}
div.padding-20px {
    padding: 20px;
}
@media screen and (min-width: 767px) {
    .desktop-padding-10px {
        padding: 10px;
    }
    .desktop-padding-20px {
        padding: 20px;
    }
    .desktop-gap-10px {
        gap: 10px;
    }
}

.opacity-65 {
    opacity: 65%;
}
.opacity-100 {
    opacity: 100%;
}

div.background-white-65 {
    background-color: var(--white-65);
}
.background-white-100 {
    background-color: white;
}

div.background-dark-blue {
    background-color: var(--dark-blue);
}

div.background-turqoise2 {
    background-color: var(--turqoise2);
}
.background-turqoise-dark {
    background-color: #058d82f9;
}

div.background-turqoise2 *:not(.background-white-100, .background-turqoise-dark, .popover-content) {
    background-color: transparent;
}


div .font-white {
    color: white;
}

div.flex-row {
    display: flex;
    flex-direction: row;
}
.flex-row.wrap {
    flex-wrap: wrap;
}
div.flex-width-1 {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
}
div[class~="flex-width-1.2"] {
    display: flex;
    flex-direction: column;
    flex: 1.2 1 0;
}
div.flex-width-1 > *, div[class~="flex-width-1.2"] > * {
    flex-grow: 0;
}

div.grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px;
    align-items: start;
    justify-items: start;
}

div.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 25%);
}
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 50%);
}

.full-width {
    width: 100%;
}

div.space-between {
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;    
}

div.flex-column.align-center {
    align-items: center;
    text-align: center;
}
div .center-horizontal {
    margin: auto;
}

.title.no-padding * {
    padding: 0;
}
div.no-margin *, .no-margin {
    margin: 0;
}
.border-bottom {
    border-bottom: 1px solid var(--light-grey);
}
.fit-content {
    height: fit-content;
}

@media screen and (max-width: 766px) {
    div.mobile-column {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: auto;
    }
}

button {
    border-radius: 5px;
    padding: 5px;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    border: 0;
    background-color: white;
}

.color-primary {
    color: var(--primary-color);
}
.background-primary-light {
    background-color: var(--primary-light);
}
.background-secondary-light {
    background-color: var(--light-grey);
}
.background-secondary-light *:is(div, button) {
    background-color: transparent;
}
.elements-background-white > div:not(.js-collapsible-group), .elements-background-white div:is(.js-collapsible) {
    background-color: white;
}
.round:not(img) {
    border-radius: 50%;
}
.material-symbols-outlined.icon-size-1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 400;
    padding: 10px;
}
.material-symbols-outlined.icon-size-1:not(.center-horizontal) {
    margin: auto 5px; /* center-vertically */
}
#container-services .flex-column .material-symbols-outlined.icon-size-1:not(.center-horizontal) {
    margin: 0 5px; /* center-vertically */
}
#container-services .js-collapsible .material-symbols-outlined.icon-size-1:not(.center-horizontal) {
    margin: auto 5px; /* center-vertically */
}

a {
    text-decoration: none;
}

a.primary {
    background-color: var(--primary-color);
    color: white;
}
a.primary, a.secondary {
    display: flex;
    justify-content: center;
    gap: 10px;
    border-radius: 25px;
    padding: 15px;
    margin: 10px auto;

    transition: gap 0.4s ease-out;
}

a:hover {
    gap: 15px;
}

a.home-link.current-view {
    font-weight: 800;
    border-bottom: 3px solid var(--turqoise-cobalt);
}

button.secondary {
    border-radius: 15px;
    border: 1px solid var(--dark-blue);
    background-color: var(--light-grey);
    color: var(--dark-blue);
    font-weight: bold;
    font-size: 0.75rem;
}

button:hover {
    cursor: pointer;
    opacity: 0.6;
}

span {
    word-wrap: break-word;
}

span.heading-1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: bold;
}

span.heading-2 {
    font-size: 1.5rem;
    font-weight: bold;
}
span.heading-2.font-weight-200 {
    font-weight: 200;
}

span.heading-3 {
    font-size: 1.17rem;
    line-height: 1.5rem
}

span.heading-4 {
    font-size: 1rem;
    line-height: 1.4rem
}

li {
    list-style-type: none; /* Remove bullets */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margins */
}

.box-shadow {
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

.green-border {
    border: 7.5px solid rgb(144, 201, 144);
}

/* Header */
@media screen and (max-width: 999px) { 
    header { flex-wrap: wrap; }
    header .sign-in {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }
}

/* ensure img and .sign-in fit in line (min. 650px) */
@media screen and (min-width: 1000px) { 
    header { flex-wrap: nowrap; }
    header .sign-in {
        flex: 0 0 auto;
        display: flex;
        flex-wrap: wrap;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;

    min-height: var(--header-height);
    height: auto;

    display: flex;

    align-items: center;
    background-color: white;
    border-radius: 5px;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0 25px lightgray;

    transition: min-height 0.35s ease;
}

header .links {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
    gap: 5px;

    justify-content: space-evenly;
    
    flex: 1 1 auto;
    min-width: 0;

    text-transform: uppercase;
    font-weight: bold;

    a {
        padding-bottom: 10px;
        text-decoration: none;
        white-space: nowrap;
        color: var(--turqoise-cobalt);
    }
}

header .logo {
    width: fit-content;
    height: var(--header-height);
    font-weight: bold;
    color: rgb(0, 0, 75);
    padding: 0;

    transform-origin: left center;
    transform: translateZ(0); /* initial enlarged state */

    transition:
        height 0.35s ease,
        transform 0.35s ease;
}

header .logo img{
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

header .sign-in {
    padding: 0;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

header .sign-in input {
    min-width: 120px;
    flex: 0 1 150px;
}

header .sign-in #auth-status {
    margin-left: auto;
    display: flex;
    align-items: center;
}

@media screen and (max-width: 766px) {
    .mobile-slide-in {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 80vw !important;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 80px 20px 20px 20px; /* Top padding clears the button */
        box-sizing: border-box;
        opacity: 0.95;
    }
    .mobile-slide-in.active {
        right: 0;
        box-shadow: -100px 0 100px rgba(0,0,0,0.5);
    }

    .mobile-slide-in .links {
        flex-direction: column;
        padding-bottom: 40vh;
    }

    .mobile-slide-in a {
        margin-right: auto;
    }
}

.hamburger-btn {
    position: fixed;
    top: 2%;
    right: 5%;
    z-index: 1000;
}

/* Page Content */
main {
    padding-top: calc(var(--header-offset) + 10px);
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    gap: 10px;
    overflow: hidden;
}

#home {
    background-color: transparent;
}

.flex-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Global Container settings */
.container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1000px;
    min-height: 60vh;
    gap: 10px;
    margin: 0 5%;
    padding: 10px 10px;
    box-sizing: border-box;

    justify-content: center;  /* horizontal centering */
    align-items: center;      /* vertical centering */

    scroll-margin-top: calc(var(--header-offset) + 10px);

    .title {
        width: 100%;
        align-self: flex-start; /* move to top */
        padding-left: 0;
        padding-right: 0;

        display: flex;
        align-items: center;     /* vertical centering inside title */
        justify-content: center; /* horizontal centering */
        text-align: center;
        margin: 1em 0;
    }

    .text-container {
        display: flex;
        flex-direction: column;
        /* padding: 10px; */
        align-self: center;
        /*justify-content: center;*/
    }

    .text-container.align-top {
        align-self: flex-start;
    }
}

.title p {
    margin: 10px;
}

.container .align-flex-start {
    align-self: flex-start;
}

.no-gap {
    gap: 0;
}
.gap-10px {
    gap: 10px;
}

img.width-30pc {
    width: 30%;
    max-height: 100%;
    object-fit: contain;
}
.rounded-corners-25px {
    border-radius: 25px;
}

/* Top Container */
#container-top {
    background-image: url(pexels-marcus-aurelius-6787787-mirrored.jpg);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* left ↔ right */
    align-items: flex-start;
    background-size: cover;
    background-position: center;
    width: 100vw;
    margin: 0;
    text-wrap: balance;
    text-align: center;
    box-shadow: inset 5vw 5vw 10vw rgba(0, 0, 0, 1);;
}
@media screen and (max-width: 766px) {
    #container-top {
        height: 75vh;
        border-radius: 5px;
        background-position: right 15% top 50%; 
    }
}

#container-top .title {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;

    align-self: flex-end; /* push to bottom */
    width: auto;
    height: auto;
    padding: 10px 15px;
    margin: 0;
}

#container-top .title * {
    padding: 0;
    margin: auto;
}

#container-top .text-container {
    margin: 15px 0 5px;
    padding: 20px;
    max-width: 300px;
    align-self: flex-start;
}

#container-top .text-container h1 {
    margin-top: 10px;
}

#container-top .text-container p {
    overflow-wrap: break-word;
    padding: 15px 5px;
}

/* Promotion */
#countdown, #countdown * {
    box-sizing: border-box;
}
#countdown {
    margin: 0;
    height: fit-content;
    min-height: 30vh;
    width: 100%;

    align-items: center;
}
#countdown > .flex-row {
    align-items: center;
    gap: 5px;
}
#countdown > .flex-row > .flex-column {
    align-items: center;
    padding: 0 4vw;
}
#countdown img {
    max-height: 25vh;
    border-radius: 50%;
}
#countdown-timer {
    width: 100%;
    padding: 0;
    /* font-size: 3rem; */
}
#countdown-timer .colon {
    font-size: 3rem;
    color: #22a394;
    align-self: center;
}
#countdown-timer > div {
    align-items: center;
}
#promotion-text {
    align-items: end;
    padding: 0;
}
@media screen and (max-width: 766px) {
    #countdown {
        padding: 2vw 5vw;
    }
    #countdown span.heading-1 {
        font-size: 1.25rem;
    }
    #countdown-timer {
        justify-content: center;
    }
    #countdown-timer .colon {
        font-size: 2rem;
    }
    #countdown h1 {
        font-size: 1.25rem;
        text-align: center;
    }
    #countdown .long {
        display: none;
    }
    #countdown > .flex-row > .flex-column {
        padding: 2vw;
    }
}
@media screen and (min-width: 767px) {
    #countdown .short {
        display: none;
    }
}
/* Promotion popover */
.no-wrap {
    white-space: nowrap;
}
#promotion-info-trigger {
    /* 1. Force the button to sit perfectly on the text baseline */
    vertical-align: text-bottom;
    display: inline-flex;
    white-space: nowrap;
    
    margin: 0;
    padding: 0 4px; /* Keep horizontal spacing, remove vertical padding */
    color: #94dcd4;
}
@media screen and (min-width: 767px) {
    #promotion-info-trigger {
        vertical-align: baseline;
    }
}

.popover-content {
    position: fixed; /* Required for anchoring to work */
    
    /* Position below the trigger */
    left: 50%;
    transform: translateX(-50%); /* Centers it horizontally */
    
    /* Reset default popover styles */
    margin: 0;
    border: none;
    
    /* Visual styling */
    width: 90vw;
    max-width: 950px;
    background-color: white;
    color: black;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Optional: Adds a shadow since the background is white */
}

/* Optional: Smooth entry/exit transition using modern CSS overlay properties */
.popover-content {
  opacity: 0;
  transition: opacity 0.2s;
}

.popover-content:popover-open {
  opacity: 1;
  
  @starting-style {
    opacity: 0;
  }
}


/* Services */
.container-service, .width-50pc {
    flex-basis: 50%;
    min-width: 260px;
}

#container-services {
    display: flex;
    flex-flow: row wrap;
}

#container-services .title {
    width: 100%;
    justify-items: center;
    background-color: transparent;
}
.important {
    gap: 5px;
    border-radius: 10px;
}
.important span.heading-1 {
    font-size: 1.5rem;
    font-weight: 600;
    background-color: white;
    padding: 2px;
    margin: auto;
}

#container-services .text-container {
    width: 100%;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-flow: row wrap; /* set both flex-direction and flex-wrap ("wrap if necessary") */
    box-sizing: border-box;
    /* border-radius: 25px; */
}

#container-services .width-50pc, .service-category .js-collapsible-group {
    flex-basis: 100%;
    box-sizing: border-box;
    /* height: fit-content; */
    margin: 5px 10px;
    border-radius: 10px;
}
#container-services .width-50pc {
    min-height: 250px;
}
#container-services .width-50pc .flex-column {
    padding: 1em;
}

@media (min-width: 767px) {
    #container-services .width-50pc {
        flex-basis: 50%;
        padding-right: 40%;
        position: relative;
    }
    .services > .width-50pc:not(:has(~ .width-50pc)) {
        height: max-content;
    }
}

.service-category h2 {
    padding: 0;
    margin: 1.5em 1em 0.5em;
}
.service-category h3 {
    padding: 0;
    margin: 10px 0;
}

.service-category.no-padding *:not(.js-collapsible-group, .js-collapsible-group *, .material-symbols-outlined) {
    padding: 0;
}
.service-category {
    padding-bottom: 1em;
}
.service-category button {
    text-align: start;
}

/* To do:
Hide .text-container p
When hovering, or on click, show p
Add background photos
*/

#container-services .service-category img {
    align-self: center;
    padding-left: 10px;

    width: 40%;
    height: 100%;

    object-fit: cover;
    border-radius: 0 10px 10px;
}
@media screen and (max-width: 766px) {
    #container-services .service-category img {
        width: 60%;
        height: 150px;
        padding: 10px;
        border-radius: 70px;
    }
}
@media screen and (min-width: 767px) {
    #container-services .service-category img {
        position: absolute;
        top: 0;
        right: 0;
    }
}

#container-services .text-container p {
    width: 100%;
}

/* About me */
#container-about-me {
    flex-direction: column;
}

#container-about-me .text-container {
    display: flex;
    align-content: center;
}

#container-about-me img {
    object-fit: contain;
    border-radius: 10%;
    margin-bottom: 20px;
    max-height: 30vh;;
}
@media screen and (max-width: 766px) {
    #container-about-me .text-container { flex-direction: column; }
    #container-about-me #about-me-portrait {
        max-width: 90vw;
    }
}
@media screen and (min-width: 767px) {
    #container-about-me .text-container { flex-direction: row; }
    #container-about-me #about-me-portrait {
        width: 100%;
        max-width: 20vw;
        max-height: 80vh;
    }
}

#about-me-collapsibles {
    padding: 1em;
}

#about-me-collapsibles button .material-symbols-outlined {
    margin-bottom: 0.25em;
}

/* Reviews */
#container-reviews {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    h3 {
        margin: 0;
    }

    p {
        margin-top: 5px;
        margin-bottom: 0;
    }

    .title {
        justify-items: center;
        width: 100%;
    } 

    #text-container-reviews {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
        justify-items: center;
        gap: 10px;
        justify-content: center;
    }

    .text-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-width: 0;
        max-width: 300px;
    }

    .top-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .message-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .review-message {
        border: 2px solid lightgrey;
        background-color: aliceblue;
        border-radius: 10px;
        padding-top: 10px;
        padding-bottom: 10px;

        height: auto;
        min-height: 100px;
    }
}

#container-video {
    flex-direction: column;
}
#container-video #video-column {
    width: 100%;
}

.video-container {
    display: flex;
    justify-content: center;
    width: 75%;                 /* fill container */
    aspect-ratio: 4/3;        /* same as 640/480 */
    height: auto;

    iframe {
        width: 100%;
    }
}
#video-client-information {
    padding: 1em;
    margin: 1em auto;
    background-color: var(--light-grey);
    border-radius: 10px;
    max-width: 720px;
}
#video-client-information span {
    height: 40px;
    display: inline-flex;
    align-items: center;
}
#video-client-information .flex-column {
    padding: 0;
}
#video-client-information h3 {
    margin: 0;
}
#video-client-information q {
    padding-top: 1em;
}
#video-client-information * {
    background-color: transparent;
}

#container-contact {
    flex-direction: column;
    justify-content: flex-start;

    .text-container {
        height: 100%;
        width: 80%;
        max-width: 600px;
        align-items: center;
    }

    form {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    input, textarea, fieldset {
        border: 1px solid lightblue;
        border-radius: 10px;
    }
    form>label {
        margin-top: 10px;
    }
    input {
        /* width: 100%; */
        max-width: 300px;
        padding-inline: 0.5em;
        height: 2em;
    }
    textarea {
        /* width: 100%; */
        height: 150px;
        padding: 0.5em;
    }
    fieldset {
        /* width: 100%; */
        gap: 10px;
        margin-top: 10px;
    }
    fieldset div {
        padding: 5px 0;
    }
    fieldset[id="Pflegestufe"] div, fieldset[id="Pflegeperson"] div {
        display: inline-flex;
        align-items: center;
    }
    button[type="submit"] {
        display: inline-flex;
        width: 150px;
        align-self: center;
        border-radius: 25px;
        background-color: var(--primary-color);
        color: white;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-weight: bold;

        transition: gap 0.4s ease-out;
    }

    button:hover {
        gap: 10px;
    }
    fieldset {
        display: flex;
        flex-wrap: wrap;
    }
    fieldset input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }
    fieldset label {
        cursor: pointer;
    }
    fieldset input[type="checkbox"] + label {
        border: 2px solid var(--primary-color);
        border-radius: 15px;
        padding: 6px 12px;
        color: var(--primary-color);
        background-color: var(--primary-light);
        font-weight: bold;

        transition: background-color 0.4s ease-out;
    }
    fieldset input[type="checkbox"] + label:hover {
        background-color: rgba(0, 150, 135, 0.25);
    }
    fieldset input[type="checkbox"]:checked + label {
        border: 2px solid var(--primary-color);
        border-radius: 15px;
        padding: 6px 12px;
        color: white;
        background-color: var(--primary-color);
        font-weight: bold;

        transition: opacity 0.4s ease-in-out;
    }
    fieldset input[type="checkbox"]:checked + label:hover {
        opacity: 0.6;
    }
    fieldset[id="Unterstützung"] div:last-of-type {
        display: flex;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }
}
input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Animation */
/* SCROLLED STATE */
body.scrolled header .logo {
    transform: scale(1); /* back to normal */
}

body.scrolled {
    --header-height: var(--header-height-scrolled);
}

/* Protect sensitive content */
body.logged-out .protected {
    display: none;
}

body.logged-out #login-form {
    display: flex;
}

body.logged-in .protected {
    display: flex;
}

body.logged-in #login-form {
    display: none;
}

.auth {
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

#logout-btn {
    padding: 6px 12px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

@media screen and (min-width: 767px) {
    .desktop-hidden {
        display: none;
    }
}

/* Container */
.js-collapsible-group {
    max-width: 100%;
    position: relative;
    min-width: 0;
}

/* Collapsed Item */
.js-collapsible {
    padding: 10px 0;
}
@media screen and (min-width: 767px) {
    
    .js-collapsible {
        max-width: 90vw;
        top: 100%;

        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 
                    0 8px 10px -6px rgba(0, 0, 0, 0.1);
    }
    #about-me-collapsibles .js-collapsible {
        width: 400px;
    }
    #about-me-collapsibles .js-collapsible-group:last-of-type > .js-collapsible {
        align-self: flex-end;
    }
}
.js-collapsible.background-light-pink {
    background-color: var(--light-pink);
    border-radius: 5px;
}
.collapsed {
    display: none;
}
.js-collapsible .flex-row + .flex-row {
    border-top: 1px solid #ccc; /* Creates the horizontal line */
}
.js-collapsible .flex-row p:first-of-type {
    margin-top: 0;
    align-self: center;
}

/* Button arrow */
.js-arrow {
    display: inline-block;
    transition: transform 0.4s ease-out;
}
.js-arrow.is-rotated {
    transform: rotate(180deg);
}

/* Overwrite on large screens */
@media screen and (min-width: 767px) {
    .js-arrow.right {
        transform: rotate(-90deg);
    }
    .js-arrow.right.is-rotated {
        transform: rotate(90deg);
    }
}

/* Button */
.js-toggle-btn {
    width: 100%;
    max-width: 300px;
}
@media screen and (max-width: 766px) {
    .mobile-center-horizontal {
        margin: 0 auto;
    }
}
.js-toggle-btn .material-symbols-outlined {
    margin-bottom: 5px;
}

.text-grey {
    color: #a9a9a9;
}

