/*
 * To avoid overflow of the services table, we need to set the body-content to overflow-x: hidden;
 */
section, .content-page-wrapper {
    overflow-x: hidden;
}
img {
     max-width: 100%;
     height: auto;
}
p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

ul.nav.nav-tabs {
    width: 100%;
}


.text-gold { color: #ffd700!important; }

header.landing-header {
    min-height: 840px;

    .language-selector-wrapper {
        text-align: right;
        z-index: 3;
        position: inherit;
    }
    .masthead {
        .masthead-avatar-wrapper {
            min-height: 110px;
        }
        .responsive-img {
            max-width: 500px;
            width: 100%;
            height: auto;

            &.d-print-block {
                max-width: 300px;
            }
        }
        .masthead-subheading {
            margin-top: 2rem;
            font-size: 1.5rem;
            letter-spacing: 0.05em;
            font-weight: 600;
        }
    }
}
.portfolio-modal-title {
    font-family: "Domine", serif;
}
.page-section {
    padding: 4rem 0 200px;

    .page-section-heading {
        font-family: "Domine", serif;
        line-height: 1.2!important;
        letter-spacing: 0.07rem;
    }
}
.text-justify {
    text-align: justify;
}

.contact-actions {
    .btn {
        padding-right: 1rem;
        padding-left: 1rem;

        &.whatsapp {
            font-size: 2rem;
        }
        &.phone {
            font-size: 1.6rem;
            padding: 11px 17px;
        }
    }
}

.candidate-features {
    ul {
        margin-bottom: 0!important;

        li {
            white-space: nowrap;
        }
    }
}

.contact-actions {
    min-height: 100px;

    #contact-action-form-resp {
        img {
            padding-bottom: 1rem;
        }
    }
}

.register-buttons {
    margin-top: 10rem;
}

.ck-editor {
    width: 100%!important;

    .ck-editor__editable_inline {
        min-height: 500px;
    }
}
.card {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.1);
}

section {
    break-after: always;
}

table.table {
    border: none;
    color: inherit;

    caption-side: top;
    caption {
        color: inherit;
    }

    tr, th, td {
        border: none;
    }

    & > :not(caption) > * > * {
        padding: 0;
    }

    th, td {
        padding: 0.2rem 0.25rem;
    }

    &.services-table {
        width: 100%;
        th {
            &.checkbox {
                width: 1%;
            }
            &.name {
                width: 30%;
            }
            &.summary {
                width: 60%;
            }
        }
    }
    &.locations-table {
        width: 100%;

        th {
            &.address {
                width: 30%;
            }
            &.state {
                width: 10%;
            }
        }

        /* Remove bullets and left padding for every nested list */
        ul,
        ul ul {
            list-style: none;
            margin: 0;
            padding-left: 0;
        }

        /* Optional: indent nested levels for readability */
        ul ul {
            padding-left: 1.25rem; /* adjust as needed */
        }
    }
}
b {
    font-weight: 600;
}

.content-page-wrapper {
    padding-bottom: 4rem;
    padding-top: 5rem;

    .content-page-heading {
        font-family: "Domine", serif;
        font-size: 2rem;
        font-weight: 600;
        padding-bottom: 0.5rem;
        padding-top: 4rem;
    }
    .content-page-body {

    }
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

/*
 * Taken and adapted from https://startbootstrap.github.io/startbootstrap-creative/
 */
#mainNav {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #143E3B;
    transition: background-color 0.2s ease;
    padding: 0.1rem 0;

    .navbar-brand img {
        max-height: 80px;
        width: auto;
    }
    &.navbar-shrink .navbar-brand img {
        max-height: 65px;
        width: auto;
    }
    .navbar-toggler svg.fa-x {
        padding-left: 1px;
    }

    .navbar-toggler.collapsed {
        svg {
            &.fa-bars {
                display: inline-block;
            }
            &.fa-x {
                display: none;
            }
        }
    }
    .navbar-toggler:not(.collapsed) {
        svg {
            &.fa-bars {
                display: none;
            }
            &.fa-x {
                display: inline-block;
            }
        }
    }
    .nav-item {
        .nav-link {
            font-size: 1.15rem;
            letter-spacing: 0.025em;
        }

        &.login {
            margin-top: 0.3rem;
        }
    }
}
#mainNav .navbar-collapse.show .navbar-nav .nav-item .nav-link:hover, #mainNav .navbar-collapse.show .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-collapse.collapsing .navbar-nav .nav-item .nav-link.active {
    color: #AD8F60;
}
#mainNav.app, footer.app {
    background-color: rgb(60, 95, 200);
}
#mainNav.control-panel, footer.control-panel {
    background-color: rgb(149, 175, 184);
}
@media (min-width: 992px) {
    .lead {
        font-weight: 400;
    }
    #mainNav.index {
        box-shadow: none;
        background-color: transparent;
    }
    #mainNav .navbar-brand {
        color: rgba(255, 255, 255, 0.7);
    }
    #mainNav .navbar-brand:hover {
        color: #fff;
    }
    #mainNav .navbar-nav .nav-item .nav-link {
        color: rgba(255, 255, 255, 0.7);
        padding: 0 1rem;
    }
    #mainNav .navbar-nav .nav-item .nav-link:hover {
        color: #fff;
    }
    #mainNav .navbar-nav .nav-item:last-child .nav-link {
        padding-right: 0;
    }
    #mainNav.navbar-shrink {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        background-color: #143E3B;
        padding-top: 0.05rem;
        padding-bottom: 0.05rem;
        &.app {
            background-color: rgb(60, 95, 200);
        }
        &.control-panel {
            background-color: rgb(149, 175, 184);
        }
    }
    #mainNav.navbar-shrink .navbar-brand:hover {
        color: #AD8F60;
    }
    #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover {
        color: #AD8F60;
    }
}

/*
 * Taken from https://startbootstrap.github.io/startbootstrap-creative/
 */
header {
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    background: url(../assets/img/bg/masthead-bg.jpg) no-repeat center fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}
.landing-header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures video fills area like background-size: cover */
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1; /* ensures text appears above video */
    color: white;
    top: 50%;
    transform: translateY(-50%);
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 0.5;
}
@media (min-width: 992px) {
    header {
        height: 100vh;
        min-height: 1100px;
        padding-top: 4.5rem;
        padding-bottom: 0;
    }
}

a[target="_blank"]::after {
    font-family: "bootstrap-icons";
    content: "\f1c5"; /* box-arrow-up-right */
    font-size: 0.9em;
    margin-left: 0.3em;
    vertical-align: middle;
    font-weight: normal;
}

form .contact-input-group {
    select.contact-type {
        max-width: 60px;
        text-align: left;
    }
    &.was-validated {
        select.contact-type {
            padding-right: inherit;
            background-image: none;
        }
    }
}

#app-bookings {
    .calendar-container {
        margin: auto; background: #fff;
        border: 1px solid #dee2e6; border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        overflow-x: auto;

        .calendar-header {
            background-color: rgb(60, 95, 200); color: white; text-align: center;
            padding: 10px; font-size: 1.25rem; font-weight: 500;
            a, a:hover, a:focus {
                color: white; text-decoration: none;
            }
        }
        .calendar-grid {
            display: grid; grid-template-columns: repeat(7, 1fr);
        }
        .day-header {
            text-align: center; background: #f8f9fa; font-weight: 600;
            padding: 10px; border-bottom: 1px solid #dee2e6;
        }
        .day-cell {
            border: 1px solid #dee2e6; min-height: 120px; padding: 6px;
            font-size: 0.9rem; overflow: hidden;
            &.today { background-color: rgba(251, 231, 224, 0.68); }
        }
        .day-number { font-weight: 600; color: #6c757d; margin-bottom: 4px; }
        .booking {
            background-color: #e7f1ff; border-top: 4px solid #0d6efd;
            padding: 4px 6px; margin-bottom: 3px; border-radius: 4px;
            font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .booking.urgent { background-color: #fde8e8; border-top-color: #dc3545; }
    }
    .week-container {
        margin: auto; background: #fff;
        border: 1px solid #dee2e6; border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        overflow-x: auto;

        .week-header {
            background-color: rgb(60, 95, 200); color: white; text-align: center;
            padding: 10px; font-size: 1.25rem; font-weight: 500;
            a, a:hover, a:focus {
                color: white; text-decoration: none;
            }
        }
        .week-grid {
            display: grid; grid-template-columns: 80px repeat(7, 1fr);
        }
        .day-header {
            background: #f8f9fa; font-weight: 600; text-align: center;
            border-bottom: 1px solid #dee2e6; padding: 8px;
        }
        .time-cell {
            text-align: right; padding-right: 5px; font-size: 0.8rem;
            color: #6c757d; border-bottom: 1px solid #dee2e6;
        }
        .day-column {
            border-left: 1px solid #dee2e6; position: relative;
            &.today { background-color: rgba(251, 231, 224, 0.68); }
        }
        .hour-slot {
            border-bottom: 1px solid #dee2e6; height: 50px; position: relative;
        }
        .booking {
            position: absolute; left: 5%; width: 90%;
            background-color: rgba(231, 241, 255, 0.7); border-top: 4px solid #0d6efd;border-bottom: 1px solid #0d6efd;
            border-radius: 4px; padding: 4px 6px; font-size: 0.8rem;
            overflow: hidden; text-overflow: ellipsis;
        }
        .booking.urgent {
            background-color: #fde8e8; border-top-color: #dc3545;
        }
    }
}

#users {
    td {
        &.not-verified {
            color: #a8424b;
        }
    }
}

/* Make it visible on he print medium */
.divider-custom-line, #how-it-works .step-icon {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

footer.footer {
    padding-top: 2rem;
    padding-bottom: 2rem;

    h4 {
        font-family: "Domine", serif;
    }
    .lead {
        margin-bottom: 0.5rem;
    }
    .swiss-made {
        margin-top: 1.3rem;
        font-size: 0.85rem;
        font-weight: 400;
        letter-spacing: 0.05rem;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        img {
            width: 0.90rem;
            height: auto;
            margin: 0 0.25em; /* optional spacing */
        }
    }
    a::after {
        display: none!important;
    }
}

.contact-form-entries {
    table caption {
        font-family: "Domine", serif;
        font-size: 2rem;
        font-weight: 600;
        padding-bottom: 0.5rem;
    }
}


/* Print-specific styles */
@media print {
    .masthead {
        padding-top: 0;
        margin-top: 0;
    }
}