@font-face {
    font-family: 'DMsans-medium';
    src: url('/fonts/DMSans-Medium.ttf');
}

a,
input,
textarea,
i,
button,
li,
ul {
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
}

body {
    display: block;
    overflow-x: hidden;
    font-family: DMSans-medium;
}

#active {
    color: #B1AFE6 !important;
}

.card_title a {
    text-decoration: none;
    color: black;
}

.card_title a:hover {
    text-decoration: underline;
}


/*First esction container*/

.blogs_container {
    position: relative;
    display: inline-block;
}

.blogs_img_div {
    position: relative;
    display: inline-block;
}

.overlay {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: 0;
}

.main_img {
    width: 100vw;
    height: 88.5vh;
    display: block;
}

.text_overlay {
    position: absolute;
    top: 10%;
    left: 4.5%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.5vw;
    font-weight: bold;
}


/* Search bar */


/* Style for the search container */

.search-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}


/* Style for the search box */

.search-box {
    width: 25vw;
    margin: 3% 3% 0 0;
    padding: 0.8% 4% 0.8% 4%;
    border: 1px solid #ccc;
    border-radius: 30rem;
    font-size: 1.3vw;
}


/* Style for the search button */

.search-button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    position: absolute;
    right: 22%;
    top: 62%;
    padding: 0 3.4vw 0 0;
}

.search-button i {
    color: #555;
    font-size: 1.5vw;
}

.search-button:hover i {
    color: #333;
}


/* Style for the card section */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28%, 1fr));
}


/* Style for the card */

.cards {
    width: 98vw;
    margin: 3% 0 3% 1.8%;
    align-items: center;
    text-align: left;
    justify-content: left;
}

.card_image img {
    width: 30vw;
}

.card_title p {
    height: 4.5vw;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 1.4vw;
    font-weight: 600;
    padding: 2% 0 2% 0;
    margin: 0 3% 0 5%;
}

.card_description p {
    font-size: 1vw;
    width: 27vw;
    padding: 2% 0 2% 0;
    margin: 0 3% 0 5%;
}

.blog_card {
    width: 30vw;
    border-radius: 8px;
    margin: 0 0 3% 0;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding-bottom: .5vw;
}

.profile {
    width: 90%;
    display: flex;
    margin: 2% 0 0 5%;
}
.profile_admin{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:3%;
    position:relative;
}
.profile_admin button{
    background:transparent;
    border:none;
    color:#8e8aff;
    cursor:pointer;
    font-size: 1.5vw;
}

.profile_name_txt p {
    width: 8.5vw;
    font-size: 1.2vw;
    margin: 5% 0 0 10%;
}

.blog_publish_date p {
    width: 7vw;
    font-size: 0.8vw;
    
}

.ellipse img {
    width: 3.5vw;
}

.share_button button {
    width: 25vw;
    margin: 2% 0 0 0;
    background-color: transparent;
    border-color: transparent;
}

.share_button img {
    width: 1.5vw;
    margin: 2% 0 0 10%;
    background-color: transparent;
    border-color: transparent;
}


/*suggestions*/

.suggestions::-webkit-scrollbar {
    display: none;
}

.suggestions {
    width: 24vw;
    border-radius: 10px;
    display: none;
    right: 3.5%;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 30vh;
    overflow-y: auto;
    z-index: 1;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.suggestion {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion:hover {
    background-color: #f4f4f4;
}

.share-container {
    position: absolute;
    bottom: -1vw;
    right:3vw;
    background-color: transparent;
   margin-bottom: .5vw;
    border: 0;
    
    border-radius: 5px;
    display:flex;
    
    transition: .5s ease-in-out;
    justify-content:space-between;
    align-items:center;
   
    z-index: 0;
}

.share-container button {
    display: block;
    padding:0;
    border: none;
    margin-right: 1vw;
    background: none;
    cursor: pointer;
}
.copied{
    padding:1vw 3vw;
    border:3px solid  #B1AFE6;
    color:#fff;
    display:none;
    font-weight:bold;
    background-color:#8e8aff;
    position:fixed;
    bottom:0;
    right:0;
    border-radius:2vw;
    margin:2vw;
}
.share-container button i {
    background-color: #B1AFE6;
    color: #fff;
    /* Adjust size as needed */
    font-size:1.5vw;
    padding: 1vw 1.1vw;
    
    border-radius: 50%;
    /* Adjust size as needed */
}

.hidden {
    opacity: 0;
    visibility: hidden;
    right: 0vw;
}

@media (max-width:1024px) {
    .main_img {
        width: 100vw;
        height: auto;
    }
    .text_overlay {
        font-size: 5vw;
    }
    /* Search bar */
    /* Style for the search box */
    .search-box {
        width: 40vw;
        margin: 3% 3% 0 0;
        padding: 2% 2% 2% 8%;
        font-size: 2.5vw;
    }
    /* Style for the search button */
    .search-button {
        position: absolute;
        right: 33.8%;
        transform: translateY(-55%);
        padding: 0 3.4vw 0 0;
    }
    .search-button i {
        font-size: 3vw;
    }
    .search-button:hover i {
        color: #333;
    }
}

@media screen and (max-width: 800px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Style for the card section */
    .cards {
        margin: 5% 0 3% 3%;
    }
    .card_image img {
        width: 45vw;
    }
    .card_title p {
        height: 6.5vw;
        width: 40vw;
        font-size: 2.2vw;
    }
    .card_description p {
        font-size: 2vw;
        width: 40vw;
    }
    .blog_card {
        width: 45vw;
        height: 62vw;
    }
    .profile_name_txt p {
        width: 15vw;
        font-size: 2vw;
        margin: 5% 0 0 10%;
    }
    
    .blog_publish_date p {
        width: 15vw;
        font-size: 1.5vw;
        margin-bottom: 0;
    }
    .blog_publish_date {
        display:flex ;
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        width:100%;
    }
    .ellipse img {
        width: 6.5vw;
    }
    .share_button button {
        width: 25vw;
        margin: -4% 0 0 10%;
    }
    .share_button img {
        width: 2vw;
    }
    .profile_admin button{
        font-size: 3.5vw;
    }
    .share-container button i{
        font-size: 3.5vw;
        padding: 1.5vw;
    }
    .share-container{
        right: 6vw;
        padding: 0 0 2vw;
    }
    .hidden{
        right: -2vw;
    }
}