@import url('./global.css');
/* Header and Navigation CSS */

header {
    display: grid;
    /* grid-template-columns: 16px 1fr 16px; */
}

header>nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* padding: 8px 16px; */
    align-items: center;
    /* flex-direction: column; */
    background: #FFF;
    /* grid-column: 2;
    grid-column: 1 / span 3;
    grid-template-columns: 1fr auto; */
}


header>nav>#logo {
    /* background: var(--orange-color-2); */
    border-radius: 24px;
    display: flex;
    margin: 4px 8px;
    padding: 8px 16px;
    width: 40px;
    height: 40px;
    padding: 9.167px 0.833px 13.333px 10px;
    justify-content: center;
    align-items: center;
}

header>nav>#logo img,
header>nav>#logo picture {
    width: 48px;
    height: 48px;
}

header>nav>ul {
    display: none;
    padding: 12px 8px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    grid-row: 3;
    grid-column: span 2;
}

header>nav>ul li {
    list-style: none;
}

header>nav>ul li a {
    text-decoration: none;
    color: var(--grey-color);
}

header>nav>ul li#active-link a {
    color: var(--logo-color);
    font-weight: 600;
}

header>nav>form {
    display: none;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--light-grey-color);
    grid-row: 2;
    grid-column: 1/ span 2;
}


header>nav>form>p {
    display: flex;
    width: 80%;
    padding: 4px;
    align-items: center;
    /* gap: 8px;
    flex-shrink: 0; */
    border-radius: 8px;
    border: 1px solid var(--grey-color);
    background: #fff;
}


header>nav>form input {
    border: none;
    outline: none;
}

#catalogue-download-btn {
    padding: 16px;
    margin-inline: auto;
    align-items: center;
    background: var(--logo-color);
    border-color: var(--logo-color);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin-block-start: 36px;
    margin-block-end: 16px;
    grid-column: 1 / span 2;
    width: 90%;
}

header>nav #mobile-icon {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    flex-grow: 1;
    margin: 4px 8px;
    padding: 8px 16px;
}

.top-social-links {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 23px;
    margin-block-end: 30%;
    justify-content: center;
    /* grid-column: 2; */
}


.flex {
    display: flex;
}

.grid {
    display: grid;
}

.inline-flex {
    display: inline-flex;
}

.block {
    display: block;
}

.hide {
    display: none;
}

.header-open {
    align-content: space-between;
    height: 100vh;
    position: fixed;
    width: 100vw;
    background: #fff;
    z-index: 1000;
}

.header-open-with-search-result {
    height: initial;
    position: initial;
}

.search-result {
    margin-block-start: 1rem;
    flex: 1 1 100%;
}

.catalogue-list {
    z-index: 20000;
    flex-direction: column;
    width: 90%;
    background-color: #FFF;
    height: initial;
    position: absolute;
    display: flex;
}

.catalogue-first-list-item {
    margin-block-start: 2rem;
}

.catalogue-list-item {
    padding-block: 0.4rem;
    flex: 1 1 100%;
    display: flex;
    align-items: stretch;
    width: 100%;
    justify-content: space-between;
}

.catalogue-list-item:nth-child(odd) {
    background-color: #f9f9f9;
}

.catalogue-list-item:nth-child(even) {
    background-color: white;
}

.position-relative {
    position: relative;
    padding-top: 50px;
}

.top-right-position {
    position: absolute;
    right: 10px;
    top: -10px;
}

.top-right-position-0 {
    position: absolute;
    right: 10px;
    top: 0px;
}

mark {
    background-color: yellow;
    font-weight: bold;
}

/* End of  Header and Navigation CSS */




@media (min-width:768px) {}

@media (min-width:1024px) {
    header {
        display: block;
    }

    header>nav {
        display: flex;
        justify-content: space-between;
        padding: 1rem 1.2rem;
        align-items: center;
        border-bottom: 1px solid var(--grey-color);
        background: #FFF;
    }

    header>nav>#logo {
        width: 48px;
        height: 48px;
        padding: 11px 1px 16px 3px;
        margin: 0;
    }

    header>nav>ul {
        display: flex;
        padding: 12px 8px;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 20px;
    }

    header>nav>ul li#active-link a {
        border-bottom: 2px solid var(--logo-color);
    }

    header>nav>form {
        display: block;
        width: auto;
        background: initial;
        padding: 0;
    }


    header>nav>form>p {
        display: flex;
        width: 250px;
        padding: 4px;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        border-radius: 8px;
        border: 1px solid var(--grey-color);
    }

    header>nav>form input {
        border: none;
        outline: none;
    }

    #catalogue-download-btn {
        display: block;
        width: auto;
        margin: 0px;
        padding: 8px 8px;
        border-radius: 8px;
        border: 2px solid var(--logo-color);
        background: var(--logo-color);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        /* 175% */
        letter-spacing: -0.016px;
    }

    .catalogue-list {
        width: 295px;
    }

    header>nav #mobile-icon {
        display: none;
    }

}

@media (min-width:1250px) {
    header>nav {
        padding: 1rem 4rem;
    }

    header>nav>form>p {
        width: 331px;
    }

    #catalogue-download-btn {
        padding: 8px 16px;
        font-size: 16px;
        font-weight: 500;
        line-height: 28px;
    }
}