/* Reset some basic elements */
*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Poppins' , sans-serif;
}

body {
    margin: 0;
    /* font-family: 'Poppins', sans-serif; */
    background-color: #121f26;
}

/* Styling the header */
.home-header {
    color: #fff; 
    padding: 10px 0; 
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #121f26;
}


.home-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.home-navbar-left,
.home-navbar-right,
.home-navbar-center {
    display: flex;
    align-items: center;
}

.home-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff; 
}

.home-navbar-left img,
.home-navbar-right img {
    max-width: 50px; 
    height: auto;
}
.home-navbar-right-notification img{
    max-width: 24px;
    height: auto;
    margin-right: 50px;
}

.home-navbar-right-profile img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.dropdownProfile {
    visibility: hidden; /* Hide dropdown initially */
    opacity: 0;
    transform: translateY(-20px); /* Start slightly above the original position */
    transition: visibility 0s linear 0.5s, opacity 0.5s linear, transform 0.5s ease; /* Coordinated transition */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 1.5%;
}

.dropdownProfile.active {
    visibility: visible; /* Make dropdown visible */
    opacity: 1;
    transform: translateY(0); /* Move to original position */
    transition-delay: 0s; /* Apply transitions without delay when becoming visible */
}

.dropdownProfile::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #f9f9f9;
}

.dropdownProfile a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdownProfile a:hover {
    background-color: #f1f1f1;
}


.CodeBlog-Name {
    margin-left: 10px; 
    font-weight: 600; 
}

/* Navigation links */
.home-nav-links {
    list-style-type: none; 
    padding: 0;
    margin: 0;
    display: flex; 
    gap: 20px;
}

.home-nav-links a {
    text-decoration: none;
    color: #fff; /* White text for links */
    font-weight: 400; /* Regular font weight for links */
}

.home-nav-links a:hover {
    color: #ccc; /* Lighter color on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-navbar-center {
        display: none; /* Hide center links on smaller screens */
    }

    .home-navbar {
        justify-content: space-between;
    }
}

/* Additional responsive or specific styles can go here */

.home-nav-links li {
    margin-right: 20px; /* Adds space to the right of each link */
}

.home-nav-links li:last-child {
    margin-right: 0; /* Ensures the last item doesn't have extra space on the right */
}


/* Nav Bar completed  */

.home-main-content{
    margin-top: 76.4px;
    display: flex;
    height: 100vh;
    /* justify-content: center; */
}

.home-main-content-blogs{
    position: relative;
    flex:0 0 65%;
    height: 100vh;
    /* overflow-y: auto; */
    padding: 20px;
}
.sort-by button {
    color: #fff;
    position: absolute;
    top: 4.3vh;
    left: 7vw;
    height: 40px;
    width: 60px;
    background-color: #345A69;
    border-radius: 10px;
    border-color: #fff;
    cursor: pointer;
    
}

.dropdownSort {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 60px; /* Adjusted width to match the button */
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    width: 135px;
    left: 8.3vh;
    
}

.dropdownSort a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    
}

.dropdownSort a:hover {
    background-color: #f1f1f1;
}


.rankings-section{
    flex: 0 0 35%;
    max-width: 35vw;
    height: 100vh;
    position: fixed;
    top:76.4px;
    right:0;
    margin-right: 5rem;
    /* padding: ; */
    /* position: fixed; */
}


/* Table  */

.rankings-section{
    text-align: center;
    color: #fff;
}
.rankings-section-table-body{
    /* background-color: #15222D; */
    color: #fff;

}

.rank{
    text-align: center;
    /* margin-right: 400rem; */

}


.rankings-section-table-body a{
    text-decoration:none;
    color: #fff;
    /* min-width: none; */
}

.rankings-section-table{
    /* min-width: none; */
    width: 20rem;
}

.rankings-section img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

.ranking-section-table-row a{
    display: flex;
    align-content: center;
    align-content: center;
    /* width: 100%; */
    /* height: auto; */
    /* width:15rem; */
    /* height: auto; */
}

.ranking-section-table-row span{
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;
    
}
.rank{
    /* padding-right: 3rem; */
    padding: 0 4rem;

}

.user-profile{
    min-width: 20rem;
}


.gap{
    /* background-color: #1c303a; */
    background-color: #15222D;
    margin-bottom: 0.4rem;
    /* padding-right: 2rem; */
    /* min-width: 2rem; */
}


/*  search bar */
.search-bar {
    display: flex;
    border: 1px solid black;
    align-items: center;
    border-radius: 30px; /* Rounded corners for the container */
    background-color: #f2f2f2; /* Light gray background */
    padding: 5px;
    width: 500px; /* Adjust width as needed */
    margin: 0 auto;
}


.search-bar input[type="search"] {
    flex: 1;
    border: none;
    background-color: white; /* Same as form background for seamless integration */
    padding: 10px 15px;
    margin-right: 5px;
    border-radius: 22px; /* Rounded corners for the input field */
    outline: none;
    font-size: 16px; /* Adjust size as needed */
    }
    
    .search-bar button.search-button {
    background-color: #345A69;; /* The button's background color */
    /* color: white; */
    border: none;
    padding: 10px 15px;
    border-radius: 50%; /* Circular shape */
    cursor: pointer;
    outline: none;
    /* font-size: 16px; Adjust size as needed */
    width: 44px; /* Circle's width */
    height: 44px; /* Circle's height */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    .search-bar button.search-button img{
        /* width: 100%; */
        height: 100%;
    }
    
    /* Adjust placeholder color for better visibility if necessary */
    .search-bar input::placeholder {
    color: #333;
    }

    /* Hover and focus states for interactivity */
    .search-bar input:focus,
    .search-bar button:hover {
    border: none;
    box-shadow: 0 0 0 2px white; /* A subtle shadow to highlight focus/hover */
    }
    
    /* Making the button's hover state a bit darker */
    .search-bar button:hover {
    background-color: #345A69;;
    }


    /* cards section  */
    .card-index{
        display: flex;
            flex-wrap: wrap;
            /* justify-content: center; Center cards horizontally within the container */
            gap: 10px; /* Space between cards */
            width: 100%; /* You can adjust this as needed */
            margin: 0 auto;
            transition: opacity 0.5s ease-out;
            opacity: 1;
        
    }
    
    .card-image{
        border-radius: 1rem;
        background-color: #224452;
        position: relative;
        margin: 1rem;
        border: #ffffff  solid 1px;
        height:  16.341rem;
        
    
    }
    .card-image img{
        border-radius: 1rem 1rem 0rem 0rem;
        height: 8.5rem;
        width: 12.9rem;
    }
    /* .card-image:hover{
        transform:scale(1.1);
    } */
    .topic-name{
        color: #ffffff;
        padding: 0.5rem;
    
    }
    .p-blog{
        color: #ffffff;
        margin-left: 5rem;
        font-size: 28.1px;
        font-weight: 600;
    }
    .explore-btn button{
        color: #ffffff;
        background: transparent;
        border: none;
        width: 70px;
        background-color: #5999B1;
        padding: 0.2rem 0.4rem 0.2rem 0.4rem;
        cursor: pointer;
        border-radius: 1rem;
       
    
    }
    .explore-btn{
        color: #ffffff;
        position: absolute; 
        bottom: 0; 
        right: 0; 
        width: 65px;
        margin: 0.4rem ;
        border-radius: 5rem;
        text-align: center;
        transition: background-color 0.3s ease;
        margin: 0rem 0.9rem 0.6rem 0rem; 
       
    }
    .explore-btn:hover {
        background-color: #487a8c; 
    }

@media only screen and (max-width: 1149px) {
    .rankings-section{
        display: none;

    }
    .home-main-content{
        display: block;
    }
    }
    
@media only screen and (max-width:1225px){
    .rankings-section{
        max-width: 30vw;
    }
}  

/* .home-main-content-blogs{
    margin:0 auto;
} */

.rank gap{
    background-color: #121f26;
}
.dots p{
    margin: 0;
}

/* for transition effect  */
.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in;
    display: none;
}

/* for notification  */
.notifications-dropdown {
    visibility: hidden; /* Hide dropdown initially */
    opacity: 0;
    transform: translateY(-20px); /* Start slightly above the original position */
    transition: visibility 0s linear 0.5s, opacity 0.5s linear, transform 0.5s ease; /* Coordinated transition */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 1.5%;
    margin-right: 6rem;
}

.notifications-dropdown.active {
    visibility: visible; /* Make dropdown visible */
    opacity: 1;
    transform: translateY(0); /* Move to original position */
    transition-delay: 0s; /* Apply transitions without delay when becoming visible */
}
