html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scroll-behavior: smooth
}

* {
    box-sizing: border-box
}

.intro {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.intro .illustration {
    flex: 0 0 334px;
}

.intro .illustration img {
    border-radius: 50%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.intro .text {
    flex: 1 1 100%;
}

.intro .text p {
    text-align: justify;
}

.site-container {
    display: flex;
    flex-direction: row;
}

.site-content {
    flex: 1 1 1200px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header-placeholder {
    flex: 0 0 240px;
}

hr {
    margin: 30px auto;
    border: none;
    color: #c05746;
}

section {
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
    line-height: 1.4;
}

a {
    color: #107e7d;
    text-decoration: none;
}

a:hover {
    color: #c05746;
}

h1 {
    font-size: 50px;
    color: #c05746;
    text-align: center;
}

h2 {
    font-size: 35px;
    color: #adc698;
}

h3 {
    font-size: 25px;
    color: #107e7d;
    font-family: Cormorant Infant;
}

body {
    font-family: Cormorant Infant;
    font-size: 20px;
    color: #2d0700;
    line-height: 1.5;
    text-align: justify;
    overflow-x: hidden;
}

main {
    margin: 0 10px;
}

footer {
    text-align: center;
    margin-top: 30px;
    font-family: Cormorant Infant;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 1px;
    color: #000;
}


.specialty-item {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.specialty-item-button {
    text-align: center;
}

.specialty-item-button a {
    text-align: center;
    color: #c05746;
    box-shadow: none;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    padding: 40px 20px;

}

.specialty-item-button a:hover {
    color: #adc698;
}

.specialty-item-detail a {
    text-align: center;
}

.specialty-item .media {
    flex: 0 0 208px;
}

.specialty-item-right {
    flex-direction: row-reverse;
}

.specialty-item-right .text h3 {
    text-align: right;
}

.specialty-item-left {
    flex-direction: row;
}

.hero h1 {
    margin-bottom: 0;
}

.hero p {
    text-align: center;
    font-size: 36px;
    color: #2d0700;
    line-height: 1.5;
    box-sizing: border-box;
    margin-top: 0;
}

/* Layout with left sidebar */
.site-header {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 240px;
    background: #fff;
    border-right: 1px solid #107e7d;
    z-index: 50
}

img {
    max-width: 100%;
    height: auto;
}

.sidebar {
    padding: 20px;
    height: 100%;
    overflow: auto;
    transform: translateX(0);
    transition: transform .25s ease;
    background-color: #fff;
}

.sidebar .logo {
    display: block;
    margin: 0 auto 10px;
    text-decoration: none;
    color: #c05746;
    font-weight: 700;
    width: 150px;
    text-align: center;
}

.sidebar .menu {
    list-style: none;
    margin: 0;
    padding: 0
}

.sidebar .menu li {
    margin: 20px 0
}

.sidebar .legal {
    font-size: 18px;
    color: #000;
}

.sidebar .menu a {
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.sidebar .menu a:hover {
    color: #adc698
}


/* Burger (shown on small screens) */
.burger {
    display: none;
    position: fixed;
    left: 12px;
    top: 12px;
    width: 32px;
    height: 26px;
    z-index: 60
}

.burger span {
    display: block;
    height: 3px;
    background: #adc698;
    margin: 6px 0;
    transition: all .2s ease
}

.burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg)
}

.burger.open span:nth-child(2) {
    opacity: 0
}

.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg)
}

@media (max-width: 959px) {
    .site-header {
        width: 0;
        border-right: none;
    }

    .site-header.open {
        width: 220px;
    }

    .sidebar {
        width: 220px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        will-change: transform;
    }

    .site-header-placeholder {
        width: 0;
        flex: 0 0 0;
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .with-sidebar {
        margin-left: 0
    }

    .burger {
        display: block
    }
}

/* Scroll-to-top */
#scroll-top {
    display: none;
    opacity: 0;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 2px;
    text-align: center;
    z-index: 100;
    box-sizing: content-box
}

#scroll-top {
    background-color: #c05746
}

#scroll-top:hover {
    background-color: #adc698
}

/* About section to match screenshot */
.about {
    margin: 10px 0
}

.about .about-inner {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center
}

.about .about-image {
    flex: 0 0 266px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto
}

.about .about-image img {
    border-radius: 50%;
}

.about .about-text p {
    text-align: justify;
}

.about .about-cta {
    text-align: center;
    margin-top: 16px
}

.about .about-cta a {
    color: #c05746;
    text-decoration: none;
    font-weight: 700;
    font-size: 30px;
    padding: 20px 0;
    text-align: center;

}

.about .about-cta a:hover {
    color: #adc698
}

/* Contact form styles */
.contact form {
    max-width: 388px;
    margin: 0 auto
}

.contact .row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.contact .field {
    margin-bottom: 14px
}

.contact label {
    display: block;
    margin-bottom: 6px;
    color: #adc698
}

.contact input,
.contact textarea {
    width: 100%;
    max-width: 388px;
    padding: .6em .9em;
    border: 1px solid #107e7d;
    background: #fff;
    font-family: inherit
}

.contact .actions {
    text-align: center;
    margin-top: 16px
}

/* Notices */
.notice {
    max-width: 388px;
    margin: 10px auto;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #adc698;
    background: #f1f7f1;
    color: #2d0700;
    text-align: center
}

.notice-success {
    border-color: #adc698;
    background: #eef7ef
}

.notice-error {
    border-color: #c05746;
    background: #fbefec
}

.contact .btn {
    background: #adc698;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .6em 1.6em;
    letter-spacing: .2em
}

.contact .btn:hover {
    background: #c05746
}

@media (max-width: 959px) {
    .contact .row.two {
        grid-template-columns: 1fr
    }
}

/* Responsive layout tweaks */
@media (max-width: 959px) {
    .site-content {
        padding: 0 16px;
    }

    /* Intro section */
    .intro {
        flex-direction: column;
        gap: 16px;
    }

    .intro .illustration {
        flex: 0 0 auto;
        max-width: 260px;
    }

    .intro .text p {
        text-align: left;
    }

    /* Specialty section */
    .specialty-item {
        flex-direction: column;
        gap: 12px;
    }

    .specialty-item-right {
        flex-direction: column;
    }

    .specialty-item-left {
        flex-direction: column;
    }

    .specialty-item .media {
        flex: 0 0 auto;
        max-width: 220px;
    }

    .specialty-item .text h3 {
        text-align: center;
    }

    /* Hero */
    .hero p {
        font-size: 24px;
        padding: 0 6px;
    }

    /* About */
    .about .about-inner {
        flex-direction: column;
        gap: 16px;
    }

    .about .about-image {
        flex: 0 0 auto;
        max-width: 240px;
    }
}

/* Mobile typography */
@media (max-width: 700px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    body {
        font-size: 18px;
        line-height: 1.6;
    }

    .hero p {
        font-size: 22px;
    }
}

/* Professional page */
.template-professional h1 {
    text-align: center;
    color: #c05746;
    font-size: 42px
}

.professional {
    max-width: 1050px;
}

.professional .intro {
    margin: 10px auto 30px;
    text-align: justify;
}

.professional .intro p {
    text-align: justify;
}

.professional h2 {
    color: #adc698;
    text-align: left
}

.timeline {
    margin: 0 auto
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    margin: 18px 0
}

.timeline-meta .place {
    font-weight: 700
}

.timeline-meta .period {
    color: #777
}

.timeline .content h3 {
    color: #000;
    margin-top: 10px;
}

.timeline .content .subtitle {
    font-style: italic;
    margin-bottom: 6px
}

.timeline .content .body p {
    text-align: justify;
    line-height: initial;
    padding-top: 10px;
}

@media (max-width: 700px) {
    .timeline-item {
        grid-template-columns: 1fr
    }
}

/* Timeline (professional page) – alternating layout, white theme */
.timeline {
    position: relative;
    margin: 40px auto;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, hsla(0, 0%, 90%, 0) 0, #adc698 10%, #adc698 90%, hsla(0, 0%, 90%, 0) 100%);
    /* light neutral for center line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    right: -9px;
    background-color: #adc698;
    /* white dot */
    /* border: 4px solid #adc698; accent ring */
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    padding-right: 40px;
    padding-left: 40px;
    left: 0;
}

.left .content {
    flex-direction: row-reverse;
}

.right {
    padding-left: 40px;
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #c05746;
    /* white arrow tip */
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #c05746;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #c05746;
    /* white arrow tip */
    border-width: 10px 10px 10px 0;
    border-color: transparent #c05746 transparent transparent;
}

.right::after {
    left: -11px;
}

.timeline .content {
    padding: 10px;
    position: relative;
    background: #fff;
    /* card background */
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 0;
}

.timeline .content img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin: 0 auto;
}

.timeline .content h3,
.timeline .content h4,
.timeline .content p {
    margin: 0;
}

/* Side-specific accents */
.left .content {
    border-right: 4px solid #c05746;
}

.right .content {
    border-left: 4px solid #c05746;
}

.timeline .content p {
    text-align: justify;
}


.slider {
    margin: 10px 0 30px;
    text-align: center
}

.slider .swiper {
    width: 100%;
    position: relative;
    overflow: hidden
}

.slider .swiper-slide {
    display: flex;
    justify-content: center;
}

.slider .swiper-slide img {
    margin: auto;
    max-height: 390px;
    display: block
}

.slider .swiper-slide {
    width: 100% !important
}

.swiper-pagination-bullets {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    margin: 0;
    z-index: 5
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c05746;
    opacity: 1
}

.swiper-pagination-bullet-active {
    background: #adc698
}

.slider-toggle {
    display: inline-block;
    border: none;
    background: #adc698;
    color: #fff;
    border-radius: 6px;
    padding: .35em .6em;
    cursor: pointer
}

.slider-toggle:hover {
    background: #c05746
}

@media screen and (max-width: 1300px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 60px;
        padding-right: 25px;
    }

    .timeline-container::before {
        /*left: 60px;*/
        left: 50px;
        border: medium solid #c05746;
        border-width: 10px 10px 10px 0;
        border-color: transparent #c05746 transparent transparent;
    }

    .left .content {
        border-left: 4px solid #c05746;
        border-right: none;
    }

    .right .content {
        border-left: 4px solid #c05746;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .left {
        left: 0%;
    }

    .right {
        left: 0%;
    }


    .timeline .content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .timeline .content img {
        width: 100px;
        height: 100px;
    }

    .timeline .content p {
        text-align: center;
        margin: 0;
    }

    .timeline .left .content {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .timeline-container {
        padding-left: 40px;
        padding-right: 0;
        /*width: 85%;
        padding-left: 60px;
        padding-right: 20px;*/
    }

    .timeline .content {
        padding: 8px;
    }

    .timeline .content img {
        width: 80px;
        height: 80px;
    }

    .timeline::after {
        left: 25px;
    }

    .timeline-container::before {
        left: 30px;
    }

    .timeline-container::after {
        display: none;
    }

    .left::after,
    .right::after {
        left: 12px;
    }
}