/* ======================================================= */
/* NAVIGATION BAR                                          */
/* ======================================================= */

ul.topnav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
}

ul.topnav li {
    float: right;
}

ul.topnav li a {
    display: inline-block;
    color: #646464;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
}

ul.topnav li a:hover {
    background-color: #d9e6ef;
}

ul.topnav li.icon {
    display: none;
}

@media screen and (max-width:680px) {
    ul.topnav li {
        display: none;
    }

    ul.topnav li.icon {
        float: right;
        display: inline-block;
    }

    ul.topnav.responsive {
        position: relative;
    }

    ul.topnav.responsive li.icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    ul.topnav.responsive li {
        float: none;
        display: inline;
    }

    ul.topnav.responsive li a {
        display: block;
        text-align: center;
    }
}

/* ======================================================= */
/* TYPOGRAPHY & CORE ELEMENTS                              */
/* ======================================================= */

body, h1, h2, h3, h4, h5, h6, b, strong, footer, footer p {
    font-family: 'Rubik', sans-serif !important;
    font-weight: 400 !important;
}

em, i {
    font-style: normal !important;
}

body, html {
    color: #777;
    line-height: 1.8;
}

.w3-wide {
    letter-spacing: 2px;
}

/* ======================================================= */
/* PARALLAX BANNERS & HERO BADGES                          */
/* ======================================================= */

.bgimg-1, .bgimg-2, .bgimg-3 {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bgimg-1 {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('media/banners/img_parallax1.jpg') !important;
    min-height: 100vh;
}

.bgimg-2 {
    background-image: url("media/banners/img_parallax2.png");
    opacity: 0.7;
    min-height: 300px;
}

.bgimg-3 {
    background-image: url("media/banners/img_parallax3.jpg");
    min-height: 400px;
}

.bgimg-1 .hero-badge,
.bgimg-2 .hero-badge,
.bgimg-3 .hero-badge,
.hero-badge {
    background-color: #8fa4b3 !important;
    color: #ffffff !important;
    display: block !important;
    text-align: center !important;
    white-space: nowrap !important;
    width: fit-content !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    letter-spacing: 4px !important;
    padding: 18px 22px 18px 18px !important;
    line-height: 1.5 !important;
    font-size: 32px !important;
}

@media screen and (max-width: 768px) {
    .bgimg-1, .bgimg-2, .bgimg-3 {
        background-attachment: scroll !important;
        background-position: center center !important;
        min-height: 24vh !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .bgimg-1 {
        background-image: url('media/banners/img_parallax1_mobile.jpg') !important;
    }

    .bgimg-1 .hero-badge,
    .bgimg-2 .hero-badge,
    .bgimg-3 .hero-badge,
    .hero-badge {
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        text-align: center !important;
        font-size: min(4.8vw, 20px) !important;
        letter-spacing: 1px !important;
        padding: 15px 0 !important;
        margin: 0 auto !important;
    }
}

/* ======================================================= */
/* LAYOUT SECTIONS                                         */
/* ======================================================= */

.sticky-navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.main-text-section {
    width: 70% !important;
    text-align: justify;
    padding-left: 24px;
}

.main-image-section {
    width: 30% !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-circular-img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

/* ======================================================= */
/* GALLERY UNIFORMITY (DESKTOP)                            */
/* ======================================================= */

.clinic-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
    justify-content: center;
}

.clinic-grid-col {
    box-sizing: border-box;
    padding: 0 8px;
    width: 20%;
}

.gallery-img {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.clinic-mobile-nav {
    display: none;
}

/* ======================================================= */
/* INDIVIDUAL PALETTE DEFINITIONS                          */
/* ======================================================= */

ul.topnav li a.nav-active {
    background-color: #8fa4b3 !important;
    color: #ffffff !important;
}

footer {
    background-color: #8fa4b3 !important;
    color: #ffffff !important;
    padding: 15px 0 !important;
}

footer p {
    margin: 0 !important;
}

h2, h3 {
    color: #8fa4b3 !important;
}

.map-container {
    width: 100%;
    border: 8px solid #8fa4b3;
    border-radius: 4px;
    box-sizing: border-box;
    filter: grayscale(85%) opacity(90%);
}

.sleek-divider {
    border: 0;
    height: 1px;
    background-color: #d9e6ef;
    margin: 0 auto !important;
    width: 80%;
}

/* ======================================================= */
/* LIGHTBOX MODAL                                          */
/* ======================================================= */

#modal01 {
    background-color: rgba(20, 25, 30, 0.92) !important;
}

#img01 {
    max-height: 80vh !important;
    width: auto !important;
    max-width: 90vw !important;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin: 0 auto;
    display: block;
}

#caption {
    color: #ffffff !important;
    font-weight: 400 !important;
    letter-spacing: 1px;
    margin-top: 15px;
    font-size: 18px;
}

.w3-blue-grey { background-color: #8fa4b3 !important; color: #ffffff !important; }
.w3-hover-blue-grey:hover { background-color: #8fa4b3 !important; color: #ffffff !important; }
.w3-container.w3-blue-grey { background-color: #8fa4b3 !important; color: #ffffff !important; }

/* ======================================================= */
/* RESPONSIVE DESIGN (MOBILES & TABLETS - NON BANNERS)     */
/* ======================================================= */

@media screen and (max-width: 768px) {
    body, p, .w3-large, .main-text-section p, .slide-caption p {
        font-size: 19px !important;
        line-height: 1.7 !important;
    }

    .main-text-section,
    .main-image-section {
        width: 100% !important;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .profile-circular-img {
        margin: 24px auto 0 auto !important;
        width: 180px !important;
        height: 180px !important;
        display: block !important;
    }

    .clinic-grid-row {
        position: relative;
        display: block !important;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
    }

    .clinic-grid-col {
        width: 100% !important;
        padding: 0;
    }

    .clinic-slide {
        display: none;
    }

    .clinic-mobile-nav {
        display: block;
        position: absolute;
        top: 40%;
        width: auto;
        padding: 10px;
        color: #8fa4b3;
        font-weight: bold;
        font-size: 22px;
        cursor: pointer;
        user-select: none;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        z-index: 15;
        text-decoration: none;
    }
    .clinic-next { left: 10px; }
    .clinic-prev { right: 10px; }
}
