/* =========================================================
   HEADER
========================================================= */
header {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    background: #AA183D;
    box-shadow: 0 2px 2px -2px rgba(0,0,0,.2);
    color: white;
    padding: 0;
    width: auto;
    text-align: center;
    font-family: "Poppins", serif;
}

#header {
    max-width: 85%;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.logoCon { width: 25%; }
.titleCon { width: 65%; }

.logo {
    max-width: 175px;
    position: relative;
}

header h1 {
    font-size: 45px;
    margin: 0;
    font-weight: 600;
}

header h3 {
    margin: 0;
    font-size: 28px;
    font-family: "Roboto", sans-serif;
}

/* =========================================================
   NAVIGATION
========================================================= */
#check { display: none; }
.checkbtn, .home {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    float: right;
    margin-right: 20px;
}

#nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0F3063;
    padding-right: 20px;
    z-index: 9;
}

#nav ul {
    display: flex;
}

#nav ul li {
    list-style-type: none;
}

#nav a,
#nav span {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    text-decoration: none;
}

#nav a:hover {
    text-decoration: underline;
    text-decoration-color: white;
    transition: 0.5s;
}

.activeNavLink { text-decoration: underline; }

.navSearchBtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.navSearchBtn i {
    color: #fff;
    pointer-events: none;
}

/* Hamburger Toggle */
#toggle { display: none; }

/* =========================================================
   DROPDOWN
========================================================= */
.dropbtn {
    border: none;
    background: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: "Poppins", serif;
}

#nav .dropdown-content {
    display: none;
    position: absolute;
    min-width: 180px;
    background: #f9f9f9;
    padding-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
    z-index: 1;
}

#nav .dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #000;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #0F3063;
    color: #fff !important;
}

.dropdown:hover .dropdown-content {
    display: block !important;
}

/* =========================================================
   NAV SEARCH
========================================================= */
.navSearch {
    display: none;
    position: absolute;
    right: 100px;
    animation: fadeIn .5s;
}

.activeSearch { display: block; }

.navSearchForm {
    width: 380px;
    position: absolute;
    top: 20px;
    right: 0;
    z-index: 1000;
    border: 2px solid #1e90ff;
}

.navSearch input[type="text"],
.overlay input[type="text"] {
    padding: 10px;
    font-size: 17px;
    border: none;
    width: 100%;
    background: white;
}

.navSearch input[type="text"]:hover,
.overlay input[type="text"]:hover {
    background: #f1f1f1;
}

.navSearch input[type="text"]:focus,
.overlay input[type="text"]:focus {
    outline: none;
}

.navSearch button,
.overlay button {
    width: 15%;
    padding: 10px;
    border: none;
    cursor: pointer;
    background: #1e90ff;
    color: #fff;
    font-size: 17px;
    z-index: 1;
}

.navSearch button:hover,
.overlay button:hover {
    background: #bbb;
}

/* =========================================================
   AUTOCOMPLETE
========================================================= */
.autocomplete {
    position: relative;
    width: 100%;
    display: inline-block;
}

.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border: 1px solid #d4d4d4;
    border-top: none;
    background: #fff;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background: #e9e9e9;
}

.autocomplete-active {
    background: dodgerblue !important;
    color: #fff;
}

/* =========================================================
   OVERLAY SEARCH
========================================================= */
.overlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0,0,0,0.9);
    animation: fadeIn .5s;
    z-index: 1;
}

.overlay-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    margin: auto;
    top: 28%;
    text-align: center;
}

.overlay .closebtn {
    position: absolute;
    top: 40px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
    color: #fff;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    text-align: left;
    background: #373636;
}

footer a,
footer span {
    color: #fff;
    font-size: 14px;
    padding: 2px 15px;
}

footer a:hover {
    color: red;
    text-decoration: underline;
}

/* =========================================================
   FLOATING SEARCH BUTTON
========================================================= */
.toSearch {
    position: fixed;
    bottom: 16px;
    right: 32px;
    background: #AA183D;
    width: 20px;
    height: 20px;
    padding: 22px;
    border-radius: 50%;
    display: none;
    color: #fff;
    align-items: center;
    justify-content: center;
    transition: .4s;
    z-index: 5;
    border: none;
}

.toSearch:hover {
    background: green;
}

.toSearch i {
    font-size: 20px;
    color: #fff;
}

/* =========================================================
   SOCIAL STICKY BUTTON
========================================================= */
.social-sticky {
    position: fixed;
    top: 80%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
}

.social-sticky.visible {
    opacity: 1;
    pointer-events: auto;
}

.social-link {
    background: #0088cc;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 30px 0 0 30px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    width: 50px;
    transition: width .6s ease, background .3s ease;
}

.social-link:hover {
    width: auto;
}

.typing {
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid rgba(255,255,255,0.7);
    animation: blink .7s infinite;
    transition: opacity .3s ease;
}

.icon-wrapper {
    font-size: 20px;
    margin-left: 8px;
    transition: transform .6s ease, opacity .6s ease;
}

.rotate-out {
    transform: rotateY(90deg);
    opacity: 0;
}

.rotate-in {
    transform: rotateY(0deg);
    opacity: 1;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes blink {
    0%, 50%, 100% { border-color: rgba(255,255,255,0.7); }
    25%, 75% { border-color: transparent; }
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */
@media screen and (max-width: 800px) {

    #header { max-width: 100%; }
    header { min-height: 110px; }

    .logoCon { display: none; }
    .titleCon { width: 100%; }

    header h1 { font-size: 30px; }
    header h3 { font-size: 20px; }

    /* NAV MOBILE */
    #nav { border-radius: 0; }

    #nav a {
        width: 100%;
        padding: 0;
        font-size: 20px;
        font-weight: 400;
        display: block;
        color: #000;
    }

    #nav ul {
        flex-direction: column;
        position: absolute;
        left: -100%;
        width: 65%;
        height: 90vh;
        top: 133px;
        padding: 40px 0 60px;
        background: #fff;
        transition: .5s;
        line-height: 2;
        z-index: 2;
    }

    #nav ul li {
        padding: 5px 10%;
        border-bottom: 1px solid #7f7f7f;
    }

    .nav2 {
        width: 100vw;
        display: flex;
        justify-content: space-between;
    }

    #toggle {
        display: flex;
        margin-left: 10px;
        background: #0F3063;
    }

    /* Hamburger */
    #toggle span { padding: 5px; font-weight: 400; }

    .iconbar1, .iconbar2, .iconbar3 {
        width: 35px;
        height: 5px;
        background: #fff;
        margin: 6px 0;
        transition: .4s;
    }

    .change .iconbar1 {
        transform: translate(0, 11px) rotate(-45deg);
    }
    .change .iconbar2 { opacity: 0; }
    .change .iconbar3 {
        transform: translate(0, -11px) rotate(45deg);
    }

    .activeNav { left: 0 !important; }

    /* Nav Search */
    .navSearchBtn {
        position: absolute;
        right: 0;
        margin: 5px 8px;
    }

    .navSearch {
        top: 30px;
        position: relative;
        right: 0;
    }

    /* Dropdown Mobile */
    .dropbtn {
        color: #000;
        font-size: 20px;
        font-weight: 400;
        padding: 5px;
    }

    #nav .dropdown-content {
        width: 100%;
        margin-top: 15px;
        padding-bottom: 0;
        box-shadow: none;
        position: relative;
    }

    #nav .dropdown-content a {
        padding: 5px 10px;
        background: #f1f1f1;
    }

    /* Footer */
    footer {
        flex-direction: column;
        text-align: center;
    }

    .footerLink {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer a { font-size: 16px; }

    /* Bottom Mobile Nav */
    .mobBottom {
        position: fixed;
        bottom: 0;
        height: 65px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 5px 0;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.35);
        border: 1px solid #e3e3e3;
        z-index: 4;
    }

    .mobCol {
        width: 20%;
        padding: 5px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobCol p {
        margin: 0;
        font-size: 12px;
    }

    .mobCol figure {
        margin: 0 0 10px 0;
        text-align: center;
    }

    .mobCol a { color: #000; }

    .toSearch { bottom: 20px; }
}
