/* General body styling */
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-image: url('../../assets/images/slide-01.jpg');
    background-repeat: repeat-y;
    background-size: 100% auto;
    margin: 0;
}

/* Header styling */
header {
    position: sticky;   /* or fixed */
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #1a1a1a; /* solid dark background */
    color: white;
}

/* Logo */
.logo img {
    height: 120px;
    width: auto;
    display: block;
}

.outer_container {
    width: 80%;
    margin: auto;
    overflow: visible;
}

.container {
    margin: auto;
    overflow: visible;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 5px;
    color: black;
}

/* Title (kept if used elsewhere) */
.title {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* ---- NAV (Hamburger-only) ---- */

/* Nav container aligns search + hamburger to right */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* push contents to right */
    gap: 20px;
    flex: 1;
    position: relative; /* anchor for absolute dropdown */
}

/* Search block sits before hamburger */
.searchbartop {
    position: relative;
    display: inline-block;
    justify-content: center; /* fixed spelling */
    order: 1; /* search first */
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-search input[type="text"] {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 260px; /* desktop default */
}

.header-search button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Hamburger button (always visible) */
.menu-toggle {
    background: none;
    border: 0;
    font: inherit;
    line-height: 1;
    padding: 4px 6px;

    display: block;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
    user-select: none;
    order: 2;   /* hamburger after search */
    margin-left: 0;
}

/* Dropdown panel (hidden by animation state) */
.nav-links {
    position: absolute;
    right: 20px;
    top: 100%;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-width: 240px;
    z-index: 1100;

    /* animation states */
    max-height: 0;            /* collapsed */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 240ms ease, opacity 180ms ease;
    padding: 0;               /* no padding when collapsed */
}

/* Shown state (toggled by JS adding .show) */
.nav-links.show {
    max-height: 480px;        /* large enough for all links */
    opacity: 1;
    visibility: visible;
    padding: 10px 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nav-links,
    .nav-links.show {
        transition: none;
    }
}

/* Menu links */
.nav-links a {
    color: #fff;
    padding: 14px 20px;  /* comfortable tap area */
    text-decoration: none;
    font-size: 18px;
    text-align: left;
    display: block;
}
.nav-links a:hover {
    background-color: #333;
}

/* ---- END NAV ---- */

/* Footer styling */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    color: white;
    text-align: center;
}

/* Close button styling */
.close-button {
    background-color: #f9f9f9;
    color: black;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}
.close-button:hover {
    background-color: #575757;
}

/* Footer text styling */
.footer-text {
    color: white;
    font-size: 12px;
    margin: 0;
}

/* Video container styling */
.video-container {
    margin: 0 auto;
    padding: 10px;
    width: 80%;
    max-width: 800px;
    border: 5px solid white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

video {
    width: 100%;
    height: auto;
}

/* Sign Search Styling (page content) */
h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}
.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.search-form input[type="text"] {
    padding: 8px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.search-form button {
    padding: 8px 15px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.search-form button:hover {
    background-color: #004494;
}

.file-list {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.file-list h3 {
    margin-top: 0;
    background-color: #0056b3;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 18px;
}
.file-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.file-list li {
    margin-bottom: 5px;
    padding: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.file-list li:hover {
    background-color: #e0e0e0;
}
.file-list li a {
    text-decoration: none;
    color: #0056b3;
}
.file-list li a:hover {
    text-decoration: underline;
}
.no-files {
    text-align: center;
    color: #888;
}

/* Link style (global) */
a {
    color: grey;
    text-decoration: none;
}
a:hover {
    color: #575757;
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    position: relative;
    width: 60%;
    max-height: 60%;
    background: #000;
    border-radius: 8px;
}
.lightbox video {
    width: 100%;
    height: auto;
    min-height: 150px;
    display: block;
}
.lightbox .close {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* ---- RESPONSIVE TWEAKS ---- */
@media (max-width: 768px) {
    .header-search input[type="text"] {
        width: 160px;
    }
    .logo img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .header-search input[type="text"] {
        width: 120px;
    }
    .logo img {
        height: 48px;
    }
}
