/* Basic reset */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

p,
ul {
    margin-block-start: 0;
    margin-block-end: 0;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: #ffffff;
    box-sizing: border-box;
    height: var(--header-height);
}

.navbar {
    height: 100%;
}

img.logo {
    height: 80px;
    width: auto;
}

.navbar .left {
    padding: 8px;
    flex: 1;
}

.navbar .right {
    width: fit-content;
    justify-content: space-between;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 16px;
    background: var(--gradient-2);
    text-align: center;
}

.navbar .right .btn-link:first-child {
    margin-right: 1rem;
}

.navbar .right .btn-link {
    font-weight: 600;
    font-size: 1.25rem;
}

.btn-link,
.tag {
    background-color: #991d1d;
    color: white;
    padding: 0.25rem 0.5rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
}

span.tag.news {
    float: right;
}

.nav-links {
    display: flex;
    gap: 2rem;
    /* justify-content: space-between; */
    padding-inline-start: 10px;
    align-items: flex-end;
    height: max-content;
    box-sizing: border-box;
}

.nav-links li {
    list-style: none;
    font-size: 18px;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    transition: color 0.3s ease, background-color 0.3s ease,
        box-shadow 0.3s ease;
    border-radius: 8px;
    background-color: rgb(219, 225, 228);
}

.nav-links a:hover {
    color: #2c7a7b; /* Slight color change on hover */
    background-color: #e0f0ec; /* Light background color on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow effect */
}

.nav-links a.active {
    background-color: #a4c7bc;
    border-radius: 8px;
    font-weight: 600;
    padding: 4px 8px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for active state */
}

.tel {
    font-weight: 500;
    font-size: 1.5rem;
}

.navbar .icon {
    display: none;
}

main {
    width: 100%;
}

/* Fullscreen video container */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: var(--header-height);
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

section:not(.video-container) {
    padding: 24px 10% 0 10%;
}

@media (min-width: 1400px) {
    section:not(.video-container) {
        padding-left: var(--spacing);
        padding-right: var(--spacing);
    }
    .navbar .left {
        padding-left: var(--spacing);
    }

    .navbar .right {
        padding-right: var(--spacing);
    }
    .page-title h1 {
        padding-left: var(--spacing) !important;
        padding-right: var(--spacing) !important;
    }
    footer {
        margin-left: var(--spacing);
        margin-right: var(--spacing);
    }
}

/* h3 {
  text-align: center;
} */

.what-new {
    overflow-x: auto;
    width: 100%;
}

.what-new table {
    margin: 16px 0;
    width: 100%;
    table-layout: fixed;
}

.what-new table td {
    padding: 0.5rem 0;
    text-align: left;
}

.what-new table td:first-child {
    min-width: 30%;
}

.what-new table td:nth-child(2) {
    min-width: 30%;
}

.what-new table td:nth-child(3) {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

hr {
    border: 1px dashed #ddd;
    margin: 1rem 0;
}

section.access {
    padding-bottom: 1rem;
}

.access .container table {
    flex: 1;
    table-layout: fixed;
}
.access .container {
    margin: 1rem 0;
    display: flex;
    gap: 2rem;
}

.access .container table td {
    padding: 0.5rem;
    text-align: left;
}
.access .container table td[rowspan] {
    vertical-align: top;
}

.access .container table tr > td {
    padding-left: 0;
}

.access .container table tr:not(:last-child) > td.pd-bottom {
    padding-bottom: 0 !important;
}

.pd-top {
    padding-top: 0 !important;
}

.access .container table tr.pd-top > td:not(:last-child) {
    padding-top: 0 !important;
    width: 10%;
}

.access .container table td img {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.25rem;
    display: inline;
}
.access .container #map-container {
    flex: 1;
}

footer {
    background-color: #dbe1e4;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

footer .tel-mail {
    position: relative;
    /* padding: 0px 10% 0 10%; */
    width: 100%;
    background-color: #a4c7bc;
}

footer .tel-mail a {
    width: 50%;
    height: 100%;
    cursor: pointer;
    position: absolute;
    z-index: 2;
}
footer .tel-mail a.tel {
    left: 0;
    top: 0;
}
footer .tel-mail a.mail {
    right: 0;
    top: 0;
}

footer .tel-mail.mobile {
    display: none;
    background-color: #c6d5d0;
}

footer p {
    padding: 0 var(--spacing);
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: end;
    gap: 2.5rem;
    margin: 0.5rem 0;
    padding: 0 var(--spacing);
}

.footer-links li {
    list-style: none;
}

/* Mobile styles */
@media (max-width: 375px) {
    .access .container table tr.pd-top > td:not(:last-child) {
        width: 23%;
    }
}

@media (max-width: 767px) and (min-width: 376px) {
    .access .container table tr.pd-top > td:not(:last-child) {
        width: 18%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.7);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-burger {
        display: flex;
    }

    .video-container {
        height: auto;
    }

    .bg-video {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    footer .tel-mail {
        display: none;
    }
    footer .tel-mail.mobile {
        display: block;
    }
    footer .footer-links {
        display: none;
    }

    .access .container {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .what-new table td:first-child {
        width: 20%;
    }

    .what-new table td:nth-child(2) {
        width: 20%;
    }
}

@media (min-width: 321px) {
    .access .container table {
        width: 100%;
    }
}
