/* Search Box Styling for University of Galway */

/* Search box container - positioned normally in layout flow */
.search-box-container {
    position: relative;
    background-image: url('/plugins/arDominionB5Plugin/images/p28_0014.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 16px auto;
    max-width: 800px;
    min-height: 220px;
    display: flex;
    align-items: center;
}

/* Semi-transparent overlay for readability - very light opacity */
.search-box-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

/* Image legend/caption */
.search-box-container::after {
    content: 'University of Galway Archives';
    position: absolute;
    bottom: 8px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
    border-radius: 2px;
}

/* Form positioning - centered with margin auto */
.search-box-container form {
    position: relative;
    z-index: 2;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Center the input group */
.search-box-container .input-group {
    max-width: 600px;
    width: 100%;
}

/* Reduce input field height - only for the styled container */
.search-box-container #search-box-input {
    height: 36px !important;
    font-size: 14px;
    line-height: 1.4;
}

/* Adjust button heights to match input - only for the styled container */
.search-box-container .btn {
    height: 36px !important;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* University color accents - only for the styled container */
.search-box-container .btn:hover {
    background-color: #B89145 !important;
    border-color: #B89145 !important;
}

/* Ensure dropdown menus appear above overlay - only for the styled container */
.search-box-container .dropdown-menu {
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-box-container {
        margin: 8px auto;
        max-width: 95%;
    }
    
    .search-box-container form {
        padding: 12px;
    }
}