html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: 1.6;
    background-color: #00346b;
    font-family: 'Noto Sans', sans-serif;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    padding: 1rem 1rem;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-logo {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
}

.navbar-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.navbar-links a {
    text-decoration: none;
    color: #00346b;
    position: relative;
    top: 8px;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #00346b;
    bottom: -5px; 
    left: 0;
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.navbar-links a:hover::after {
    transform: scaleX(1);
}

/* SEARCH */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #fff;
    overflow: hidden;
}

.search-form input[type="text"] {
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-family: 'Noto Sans', sans-serif;
    outline: none;
    width: 200px;
    transition: width 0.3s ease-in-out;
    background-color: transparent;
}

.search-form input[type="text"]:focus {
    width: 250px;
}

.search-button {
    border: none;
    background-color: transparent;
    padding: 8px 12px 8px 0;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: #00346b;
}

/* PAGE CONTENT */
.page-content {
    padding: 2rem;
    max-width: 1366px;
    margin: 0 auto;
    text-align: center;
}

.page-content h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 100;
}

.link-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 2rem;
}

.video-link-card {
    position: relative;
    width: 30vw;
    max-width: 600px;
    min-width: 200px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-link-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-link-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.video-link-card:hover video {
    transform: scale(1.2);
}
.video-link-card:hover .overlay-text {
    opacity: 1;
}

/* SLIDER */
.slideshow-container {
    max-width: 100vw;
    height: calc(100vh - (2rem + 60px + 1px));
    position: relative;
    margin: 0 auto;
    background-color: #222; 
    overflow: hidden;
}

.slide-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.mySlides {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-text h3 {
    font-size: 1.8rem;
    font-weight: 100;
}
.slide-text p {
    font-size: 1.1rem;
    font-weight: 100;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: background-color 0.3s ease;
    user-select: none;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#scroll-indicator {
    position: absolute;
    border-radius: 50%;
    bottom: -5px;
    left: 30px;
    z-index: 10001;
    width: 120px;
    cursor: pointer;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

#scroll-indicator video {
    width: 100%;
    height: 100%;
    object-fit:cover ;
    display: block;
}

#scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* LOCATION / MAP */
.location-container {
    padding: 2rem;
    max-width: 100vw;
    margin: 2rem auto 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-title {
    color: #00346b;
    font-size: 2.5rem;
    text-shadow: none;
    font-weight: 300;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}

#map {
    width: 100%;
    height: 60vh;
    z-index: 1;
    border-radius: 4px;
    background-color: #e9e9e9;
}

/* Map Popups */
.custom-popup h3 {
    margin: 0 0 5px 0;
    color: #00346b;
    font-size: 1.1rem;
}
.custom-popup p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #333;
}
.popup-buttons {
    display: flex;
    gap: 10px;
}
.map-btn {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    transition: opacity 0.3s;
}
.map-btn:hover {
    opacity: 0.8;
}
.google-btn { background-color: #4285F4; }
.waze-btn { background-color: #33ccff; }


/* FOOTER */
.site-footer {
    background-color: #002244;
    color: #ffffff;
    padding-top: 3rem;
}

.footer-content {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #004085;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    background-color: white;
    padding: 5px;
}

.footer-desc {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.footer-links, .footer-contact, .footer-hours {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-links a, .footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    color: #ccc;
}
.footer-hours span {
    font-weight: bold;
    color: #fff;
}

.footer-bottom {
    background-color: #001a33;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #888;
}

/* LOGIN PAGE STYLES */
.login-body {
    background-color: #00346b;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: white;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.login-header h2 {
    color: #00346b;
    margin: 10px 0 5px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #00346b;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #00346b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #002244;
}

.error-message {
    color: #d9534f;
    font-size: 0.9rem;
    display: none;
    margin-bottom: 10px;
}

.login-footer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE NAV */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #00346b;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f8f8f8;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mobile-nav-overlay.active {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    background: none;
    border: none;
    color: #00346b;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-content {
    text-align: center;
    width: 100%;
}

.mobile-links-list {
    list-style: none;
    padding: 0;
}

.mobile-links-list li {
    margin: 20px 0;
}

.mobile-links-list a {
    text-decoration: none;
    color: #00346b;
    font-size: 1.5rem;
    font-weight: 500;
}

.mobile-divider {
    width: 50%;
    margin: 30px auto;
    border-top: 1px solid #ccc;
}

.mobile-contact-info h3 {
    color: #00346b;
    font-weight: 700;
}

/* MEDIA QUERY */
@media (max-width: 1104px) {
    .desktop-link { display: none; }
    .hamburger-menu { display: flex; }
    .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-hours li { justify-content: center; gap: 15px; }
}