/* ========== GENERAL LAYOUT ========== */
#container {
    width: auto;
    margin: 0 auto;
}

.top_h1 {
    height: 5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1em;
}

.top_h1 h1 a {
    text-decoration: none;
    color: rgb(111, 145, 255);
}

/* ========== NAVBAR ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    position: relative;
}

.menu_dropdown {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1em;
}

.menu_dropdown > li {
    position: relative;
}

.menu_dropdown > li > a {
    text-decoration: none;
    color: #005e86;
    padding: 0.5em 0.75em;
    display: block;
}

/* ========== DESKTOP DROPDOWN ========== */
.menu_dropdown li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-width: 180px;
    max-width: 220px;
    padding: 0.25rem 0;
    z-index: 1000;
    font-family: sans-serif;
}

.menu_dropdown li:hover > ul {
    display: block;
}

.menu_dropdown li ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu_dropdown li ul li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    text-align: left;
    white-space: normal;         /* Allow text to wrap */
    word-wrap: break-word;       /* Force long words to break */
    max-width: 220px;            /* Match the dropdown size */
    box-sizing: border-box;      /* Prevent overflow from padding */
}


.menu_dropdown li ul li a:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* ========== BURGER ========== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 25px;
    cursor: pointer;
}

.burger span {
    height: 3px;
    width: 100%;
    background-color: #000;
    border-radius: 2px;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .menu_dropdown {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 0;
        border-top: 1px solid #ddd;
    }

    .menu_dropdown.active {
        display: flex;
    }

    .menu_dropdown > li {
        width: 100%;
    }

    .menu_dropdown > li > a {
        padding: 1em;
        color: #005e86;
        text-align: left;
    }

    .menu_dropdown li ul {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1em;
    }

    .menu_dropdown li.open > ul {
        display: flex;
        flex-direction: column;
    }

    .menu_dropdown li ul li a {
        padding: 0.75em 1em;
        color: rgba(128, 128, 128, 0.9);
    }

    /* Disable hover on mobile */
    .menu_dropdown li:hover > ul {
        display: none;
    }
}

/* ========== QR SECTION ========== */
.qr {
    text-align: center; 
    padding: 1em 0;
}

.qr h2 {
    font-size: 1.5rem;
    margin-bottom: 1em;
    color: #005e86;
    font-weight: bold;
}

#qrimg {
    display: flex;
    gap: 0.7em; /* space between QR images */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* allows wrapping on small screens */
    
}

.qrs {
    width: 400px;   /* adjust size as needed */
    height: auto;
    display: block;
    object-fit: contain; /* keeps proportions */
    transition: transform 0.3s ease; /* smooth hover animation */
}

.qrs:hover {
    transform: scale(1.05); /* subtle hover zoom */
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 600px) {
    #qrimg {
        flex-direction: column; /* stack vertically on mobile */
        gap: 0.75em;
    }

    .qrs {
        width: 150px; /* smaller on mobile for visibility */
    }
}
