/* Home page (index.html). */

header {
    background: linear-gradient(180deg, #5C6DFF 0%, #5061FF 49.48%, #000E89 100%);
    height: 100vh;
    width: 100%;
}

.hero-section {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding-top: 0px;
}

.hero-section .left h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 45px;
    line-height: 125%;
    color: #FFFFFF;
    margin-bottom: 0;
}

.hero-section .left p {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 43px;
    color: #DDDDDD;
    margin-bottom: 30px;
    margin-left: 30px;
    
}

.hero-section .left a{
    margin-top: 100px;
    margin-left: 20px;
}

.hero-section .left {
    flex: 1;
    margin-left: 75px;
}

.hero-section .right {
    align-self: flex-end;
}

.hero-section .right img {
    height: 800px;
    margin-right: 110px;
}

.achievement-card {
    position: absolute;
}

.achievement-card .content {
    border-radius: 24px;
    background: #FFFFFF;
    padding: 8px 32px;
    z-index: 10;
    position: relative;
}

.achievement-card {
    left: 49%;
    top: 228px;
}

.achievement-card h3{
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 36px;
    color: var(--dark-blue-color);
    margin: 0;
    text-align: center;
    width: 100%;
}

.achievement-card p {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    font-size: 16px;
    color: var(--dark-blue-color);
    margin-top: 4px;
    margin-bottom: 8px;
    text-align: center;
}

.achievement-card .bg {
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, #6f7dfb 0%, #3b448f 100%);
    border-radius: 24px;
    top: 8px;
    left: 8px;
    z-index: 1;
}

section {
    margin-top: 100px;
}

section h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 54px;
    margin: 0;
    color: var(--blue-color);
}

section h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 40px;
    color: var(--dark-blue-color);
    margin: 12px 0;
}

.testimonials-section {
    text-align: center;
    align-items: center;
}

.testimonials-section .up {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.testimonials-section .down {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 5.8vw, 100px);
}

.testimonials-section .testimonial-card {
    width: min(408px, 100%);
    background: #ffffff;
    box-shadow: 0px 9px 36px rgba(0, 0, 0, 0.2);
    border-radius: 60px;
    margin-top: 86px;
}

.testimonials-section .testimonial-card img {
    margin-top: 20px;
    height: 120px;
}

.testimonials-section .testimonial-card .content h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 35px;
    line-height: 40px;
    color: #000000;
}

.testimonials-section .testimonial-card .info p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 44px;
    color: #8A8585;
    margin-top: 20px;
}

.ups {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
}

.ups h1 {
    width: 320px;
}

.ups h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 43px;
    color: #000000;
}

.news .article {
    display: flex;
    width: 100%;
    max-width: 1700px;
    background: #ffffff;
    box-shadow: 5px 5px 5px rgba(0.2, 0.2, 0.2, 0.2);
    border-radius: 20px;
    margin-top: 20px;
}

.news .article .inf {
    margin-left: 20px;
    flex: 1;
    min-width: 0;
}

.news .article .inf a {
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 40px;
    color: #000000;
}

.news .article .inf p {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    font-size: 24px;
    margin-left: 20px;
    margin-top: -2px;
    color: #464646;
}

.news .article img {
    margin-left: clamp(16px, 5.8vw, 100px);
    height: 250px;
    width: 400px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Patient and caregiver cards: one row that scrolls sideways on its own
   when it is wider than the screen, so the page itself never does. */
.patients,
.cares {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 4px 16px;
}

.patients > *,
.cares > * {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.patients {
    display: flex;
    gap: 50px;
}

.patient {
    background: #ffffff;
    box-shadow: 5px 5px 5px rgba(0.2, 0.2, 0.2, 0.2);
    border-radius: 42.65px;
}

.patients h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 40px;
    text-align: center;
    color: #000000;
}

.patients p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 44px;
    text-align: center;
    color: #8A8585;
}

.patients a {
    text-decoration: none;
}

.cares {
    display: flex;
    gap: 50px;
}

.care {
    background: #ffffff;
    box-shadow: 5px 5px 5px rgba(0.2, 0.2, 0.2, 0.2);
    border-radius: 42.65px;
}

.cares h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 40px;
    text-align: center;
    color: #000000;
}

.cares p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 44px;
    text-align: center;
    color: #8A8585;
}

.cares a {
    text-decoration: none;
}

/* Hero image and text stack on small screens. */
@media (max-width: 1100px) {
    .hero-section .right img {
        height: auto;
        max-height: 70vh;
        max-width: 50vw;
        margin-right: var(--page-gutter);
    }
}

@media (max-width: 900px) {
    header,
    .hero-section {
        height: auto;
        min-height: 100vh;
    }

    .hero-section {
        flex-direction: column;
        align-items: stretch;
        padding-top: 140px;
        gap: 24px;
    }

    .hero-section .left {
        margin: 0 var(--page-gutter);
    }

    .hero-section .left h1 {
        font-size: 32px;
    }

    .hero-section .left h1 br {
        display: none;
    }

    .hero-section .left p {
        font-size: 20px;
        line-height: 1.5;
        margin-left: 0;
    }

    .hero-section .left a {
        display: inline-block;
        margin: 0;
    }

    .hero-section .right {
        align-self: center;
    }

    .hero-section .right img {
        max-width: 100%;
        max-height: 50vh;
        margin: 0;
    }

    .testimonials-section .testimonial-card .info p {
        font-size: 20px;
        line-height: 1.6;
    }

    .ups h1 {
        width: auto;
    }

    .news .article {
        flex-direction: column-reverse;
    }

    .news .article .inf {
        margin: 0 16px 16px;
    }

    .news .article .inf p {
        font-size: 18px;
        margin-left: 0;
    }

    .news .article .inf p br {
        display: none;
    }

    .news .article img {
        margin: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 8 / 5;
        border-radius: 20px 20px 0 0;
    }
}
