/* ==========================================================================
   Header Section (front-header.css)
   ========================================================================== */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 5px 5px 4px 5px;
    box-sizing: border-box;
}

.header-logo {
    flex: 0 1 auto;
    min-width: 0;
}

.header-logo img {
    height: 95px;
    width: auto;
    max-width: 100%;
    display: block;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    min-width: 0;
}

.social-links {
    margin-bottom: 6px;
    white-space: nowrap;
}

.social-links a {
    margin-left: 4px;
    display: inline-block;
}

.social-links img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}


/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 0;
    padding: 0;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;
    border: 1px solid #aeb4ba;
    border-radius: 14px;

    padding: 3px 8px 3px 12px;

    width: 220px;
    min-width: 0;

    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);

    box-sizing: border-box;

    white-space: nowrap;
    overflow: hidden;
}

.search-box input[type="text"] {
    border: none;
    outline: none;

    font-size: 12px;
    color: #555;

    flex: 1 1 auto;
    min-width: 0;

    width: 100%;

    background: transparent;
    padding: 0;
    margin: 0;
}

.search-box button {
    background: transparent;
    border: none;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 2px;

    flex: 0 0 auto;
    width: auto;
    min-width: 18px;
}


/* ==========================================================================
   Tablet Header
   ========================================================================== */

@media screen and (max-width: 991px) {

    .header-top {
        padding: 5px 8px 6px 8px;
    }

    .header-logo img {
        height: 85px;
    }

    .header-right {
        max-width: 280px;
    }

    .social-links {
        margin-bottom: 6px;
    }

    .social-links img {
        width: 23px;
        height: 23px;
    }

    .search-box {
        width: 220px;
    }
}


/* ==========================================================================
   Mobile Header
   ========================================================================== */

@media screen and (max-width: 768px) {

    .header-top {
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 10px;

        padding: 8px 10px 10px 10px;
    }

    .header-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-logo img {
        height: auto;
        width: auto;
        max-width: 90%;
        max-height: 75px;
        object-fit: contain;
    }

    .header-right {
        width: 100%;
        max-width: none;

        align-items: center;
        justify-content: center;
    }

    .social-links {
        width: 100%;
        text-align: center;
        margin-bottom: 7px;
        white-space: nowrap;
    }

    .social-links a {
        margin: 0 2px;
    }

    .social-links img {
        width: 24px;
        height: 24px;
    }

    .search-form {
        width: 100%;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 300px;
        height: 30px;
    }
}


/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media screen and (max-width: 480px) {

    .header-top {
        gap: 8px;
        padding: 7px 8px 9px 8px;
    }

    .header-logo img {
        max-width: 94%;
        max-height: 65px;
    }

    .social-links {
        margin-bottom: 6px;
    }

    .social-links img {
        width: 22px;
        height: 22px;
    }

    .search-box {
        width: 100%;
        max-width: 280px;
        height: 29px;
        padding: 3px 7px 3px 10px;
    }

    .search-box input[type="text"] {
        font-size: 12px;
    }
}


/* ==========================================================================
   Extra Small Mobile
   ========================================================================== */

@media screen and (max-width: 360px) {

    .header-top {
        padding-left: 6px;
        padding-right: 6px;
    }

    .header-logo img {
        max-width: 96%;
        max-height: 60px;
    }

    .social-links img {
        width: 21px;
        height: 21px;
    }

    .search-box {
        max-width: 260px;
    }
}