/* ==========================================================================
   SEARCH PAGE STYLES
   ========================================================================== */

/* ==========================================================================
   SEARCH HEADER
   ========================================================================== */

.arci-content {
    height: auto;
    margin: 20px auto;
    padding: 20px 40px;
    border: none;
    background: #f5f5f5;
    text-align: left;
    word-break: break-all;
    word-wrap: break-word;
}

.arci-content h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.arci-content p {
    font-size: 1rem;
    margin: 10px auto;
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

#search {
    width: 100%;
    margin: 20px auto;
    text-align: center;
}

#search::before,
#search::after {
    display: block;
    visibility: hidden;
    clear: both;
    height: 0;
    content: ".";
}

.search-form {
    min-width: 1px;
    min-height: 1px;
    height: 40px;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 10px;
}

#search-from {
    display: none;
}

#sform {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

#sbox {
    height: 40px;
    padding: 0 10px;
    left: 0;
    top: 0;
    outline: 0;
    background: #eee;
    border: none;
    width: 100%;
    border-radius: 4px 0 0 4px;
}

#sbtn {
    height: 40px;
    width: 45px;
    position: absolute;
    left: calc(100% - 45px);
    top: 0;
    background: #d20243;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease;
}

#sbtn:hover {
    background: #a00233;
}

#sbtn .fa-search {
    font-size: 20px;
    position: absolute;
    top: 30%;
    left: 30%;
}

#sbtn:before {
    font-family: FontAwesome;
    content: "\f002";
}

/* --- Search Form Alternative --- */
.search-form-a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.search-input {
    flex: 1 1 auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    min-width: 200px;
}

.search-button {
    padding: 10px 20px;
    border: none;
    background-color: #0073aa;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #005f8d;
}

/* --- No Results --- */
.no-results {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-top: 20px;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN - SEARCH
   ========================================================================== */

/* --- Tablet (768px and below) --- */
@media (max-width: 768px) {
    .search-form-a {
        flex-wrap: wrap;
    }

    .search-input,
    .search-button {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .search-input {
        margin-bottom: 10px;
    }

    #sform {
        max-width: 100%;
        width: calc(100% - 40px);
    }
}

/* --- Mobile (479px and below) --- */
@media (max-width: 479px) {
    .arci-content {
        padding: 15px 20px;
    }

    .arci-content h1 {
        font-size: 1.3rem;
    }

    #search {
        margin: 15px auto;
    }
}