@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

/*Reset CSS Line*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    /* background-image: linear-gradient(45deg, #fa7cbb, #f14658); */
    display: flex;
    /* align-items: center;
justify-content: center; */
}



/*maindiv styling*/
.maindiv {
    margin: 4rem auto;
    /* Center the div horizontally */
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 2px 5px 20px #2323235e;
    max-width: 1400px;
    /* Increased maximum width */
    width: 100%;
    /* Ensure it takes full width up to the max-width */
    height: auto;
    /* Adjust height dynamically based on content */
}

/*styling main headline of the website*/
.innerdiv h1 {
    margin: 0.7rem 0 0.4rem;
    color: #03a9f4;
}

/*styling the small flag image in the headline*/
.innerdiv h1 img {
    height: 2rem;
    margin-right: 0.5rem;
}

/*styling the description of the website*/
.innerdiv p {
    font-size: 1.2rem;
    color: #969393;
    margin-bottom: 0rem;
    margin-top:10px;
}

/*styling the each card*/
.eachdiv {
    display: inline-block;
    width: 23.5%;
    background: white;
    box-shadow: 1px 2px 10px #33333352;
    padding: 1rem;
    margin: 0.5rem 0.4%;
    border-radius: 1rem;
    cursor: pointer;
    transition: 0.4s;
    height: 500px;
    /* Set a fixed height for all cards */
}

/*card Hover State*/
.eachdiv:hover {
    transform: scale(1.03);
    box-shadow: 2px 6px 10px #2f2f2f69;
}

/*styling the card images*/
.eachdiv img {
    width: 100%;
    height: 200px;
    /* Ensure consistent image height */
    object-fit: cover;
    /* Ensure the image scales properly */
    margin-bottom: 0.8rem;
    border-radius: 1rem;
}

/*styling card title*/
.eachdiv h3 {
    color: rgb(51, 51, 51);
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Styling for Explore More text */
.explore-more {
    display: block;
    margin-top: 0rem;
    color: #03a9f4;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: end;
}

.explore-more:hover {
    color: #0288d1;
}

/* Styling for search bar and filter dropdown */
.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.filter-container input,
.filter-container select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width:30%
}

.filter-container input {
    flex: none;
    /* Remove flex-grow behavior */
    width: 50%;
    /* Set a fixed width for the search input */
    margin-right: 1rem;
}

/*Media Query Part 
For responsiveness of the website*/

/*Under 1000px styling
For medium screen devices*/
@media only screen and (max-width: 1000px) {
    .maindiv {
        margin: 3rem;
    }

    .eachdiv {
        width: 48%;
    }
}

/*Under 600px styling 
For small devices*/
@media only screen and (max-width: 600px) {
    .maindiv {
        margin: 2rem;
    }

    .eachdiv {
        width: 100%;
        margin: 0.5rem 0;
    }
}