@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    font-family: 'Roboto', sans-serif;
    background-color: rgba(0, 0, 0, 0.03);
}

header {
    width: 100%;
    padding: 20px 0;
    background-color: #00a1db;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header img {
    width: 10%;
}

header .socialIcons {
    padding: 10px 0;
    display: flex;
    height: fit-content;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 20px;
}

header .socialIcons a {
    text-decoration: none;
    color: #fff;
    transition: scale 0.3s linear;
    width: 17.5px;
    scale: 1.1;
}

header .socialIcons a:hover {
    color: rgb(226, 226, 226);
    scale: 1.2;
}

header .socialIcons img {
    width: 17.5px !important;
    height: 20px !important;
    padding: 0;
    margin-top: 4px;
}

/* Filter Navigation stylling start here */
.main-container {
    width: 90vw;
    margin: 0 auto;
}

.filter {
    width: 100%;
    height: 100%;
    margin: 15px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.filter .serach-filter {
    width: 50%;
    height: 100%;
    height: max-content;
    display: flex;
    align-items: center;
    position: relative;
}

#searchBar {
    padding: 10px 15px 10px 30px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(5px);
    outline: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    color: black;
    font-variant: small-caps;
}

#searchBar::-webkit-input-placeholder {
    /* Edge */
    font-weight: lighter;
    font-size: 12px;
    width: 90%;
}

#searchBar:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    font-weight: lighter;
    font-size: 12px;
    width: 90%;
}

#searchBar::placeholder {
    font-weight: lighter;
    font-size: 12px;
    width: 90%;
}

.search_icon {
    position: absolute;
    right: 15px;
    cursor: pointer;
}

#searchBar:active,
#searchBar:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

.sortBy {
    height: 100%;
    width: 50%;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.sortBy .toggleLoc {
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    /* box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1); */
    /* border-radius: 5px; */
    position: relative;
    padding: 5px 10px;
}

.toggleLoc #toggleOnOff {
    padding-left: 7px;
}

.sortBy .toggleLoc #sortCheckbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.sortBy .toggleLoc #sortCheckbox:checked {
    background-color: #00a1db;
    color: white;
}

.sortBySelect,
.sort-filter {
    width: 150px;
    height: 40px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 10px;
    transition: all 0.3s ease;
    /* box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1); */
    /* border-radius: 5px; */
    cursor: pointer;
    display: flex;
    align-items: center;
}

.sortBySelect .drop_down,
.sort-filter .drop_down {
    position: absolute;
    top: 0px;
    right: 0;
    transition: all 0.3s ease;
}

.sortBySelect:hover,
.sort-filter:hover,
.sortBySelect:hover #drop_down {
    transform: translateX(-2px);
    color: #000;
}

.sortBySelect:hover option {
    display: block;
}

.sortBySelect:hover #drop_down {
    transform: rotateZ(180deg);
}

.sortBySelect:hover #sort,
.sort-filter:hover #near_area {
    color: #000;
    background-color: rgba(0, 0, 0, 0.1);
    /* box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1); */
}

#sort,
#near_area {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    border-radius: 5px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

#sort option,
#near_area option {
    background-color: rgba(0, 0, 0, 0.05);
    margin-top: 5px;
}

.category-head {
    width: 100%;
    padding: 20px 0;
}

.category-head ul {
    width: 100%;
    list-style-type: none;
    display: flex;
    justify-content: center;
    column-gap: 12px;
    row-gap: 5px;
}

.category-head ul .category-title {
    flex: 0 0 calc((100%/7) - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(197, 39%, 86%, 0.1);
    border-radius: 10px;
    padding: 12px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.4s ease;
}

.category-head ul .category-title:hover {
    background-color: hsla(220, 75%, 30%, 0.2);
}

.category-title li {
    padding: 0 10px;
    font-weight: bold;
    color: #00a1db;
}

.category-title span {
    color: #00a1db;
}

.active {
    background-image: linear-gradient(90deg, #00a1db, #00a1db) !important;
}

.active li,
.active span {
    color: white;
}


/* Project card area start here */
.posts-main-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 40px;
    position: relative;
}



/* Projects card Start here */
.card {
    width: 100%;
    height: 350px;
    padding: 20px;
    border: 3px solid rgba(128, 128, 128, 0.3);
    background: linear-gradient(225deg, hsla(197, 39%, 86%, 0.1), rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    transition: border 0.3s ease;
    margin: 0;
}

.card:hover {
    border: 3px solid rgba(128, 128, 128, 0.8);
}

.card .card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card .card-header .card-info {
    height: 70%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.card .card-header .card-info h2 {
    line-height: 30px;
    font-size: 1.25em;
    color: #00a1db;
    font-weight: bolder;
    text-transform: uppercase;
}

.card .card-header .card-info span {
    font-weight: 600;
    font-size: 0.9em;
    color: #00a1db;
}

.card .card-header .card-info p {
    color: #00a1db;
    text-transform: capitalize;
    letter-spacing: 1px;
    font-weight: bold;
}

.card .card-header img {
    width: 80px;
    height: 100px;
}

.card .card-header .custom_img {
    width: 110px;
    height: 75px;
}


.card .card-body {
    width: 100%;
    height: 194px;
    display: grid;
    place-content: center;
}

.card .card-body img {
    width: 100%;
    height: 100%;
    scale: 0.6;
}

.card .card-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.card .card-footer button {
    padding: 5px 10px;
    background-image: linear-gradient(90deg, #00a1db, #1e82a7);
    outline: none;
    border: 2px solid #00a1db;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    color: white;
    font: 18px bold;
    font-family: 'Roboto', sans-serif !important;
    cursor: pointer;

}

.card .card-footer button:hover {
    background-image: none;
    color: #00a1db;
    /* background-color: rgba(0, 0, 0, 0.03); */
    background: hsla(220, 75%, 30%, 0.1);
}

.card .card-footer button:active {
    box-shadow: inset 0px 2px 4px #00a1db;
}

.card .card-footer .disabled {
    background: linear-gradient(90deg, #505050, #505050);
    border: 2px solid #505050;
    color: #000;
    cursor: auto;
}

.card .card-footer .disabled:hover {
    color: #000;
    background: linear-gradient(90deg, #505050, #505050);
}


/* Responsive Stilling start here */
@media(max-width: 1800px) {
    .posts-main-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width: 1300px) {
    .category-head ul {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* .category-head ul div:first-child {
        grid-column: 3 span;
    } */
}


@media(max-width: 1350px) {
    .posts-main-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-head ul {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* .category-head ul div:first-child {
        grid-column: 3 span;
    } */
}

@media(max-width : 1100px) {
    .filter {
        flex-direction: column;
    }

    .filter .serach-filter {
        width: 100%;
    }

    .filter .sortBy {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

}

@media(max-width: 880px) {
    .posts-main-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px) {
    header img {
        height: 20%;
        width: 20%;
    }

}

@media (max-width:550px) {
    .category-head ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .category-head ul div:first-child {
        grid-column: 2 span;
    }

    .card .card-footer button {
        font-size: 16px;
        padding: 5px;
    }

    .filter .sortBy {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

    .filter .sortBy .toggleLoc,
    .filter .sortBy .sort-filter,
    .filter .sortBy .sortBySelect {
        width: 100%;
    }
}


/* for mozilla firefox */
@-moz-document url-prefix() {
    header {
        padding: 10px 0 25px;
    }

    .card .card-body img {
        width: 100%;
        height: 194px;
    }
}

/* for no result found */
.empty {
    position: absolute;
    width: 100%;
    top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* display: none; */
}

.hidden {
    display: none;
}

.block {
    display: block;
}