/* Reset some basic elements */
*,
*::before,
*::after {
    box-sizing: border-box;
    background-color: #121f26;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff; /* White text color */
}

/* Styling the header */
.home-header {
    color: #fff; /* White text color */
    padding: 10px 0; /* Padding around the navbar */
    /* position: fixed; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Navigation bar layout */
.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; /* White text for the link */
}

.home-navbar-left img,
.home-navbar-right img {
    max-width: 50px; /* Adjust logo and icons size */
    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;
}

.CodeBlog-Name {
    margin-left: 10px; /* Space between logo and site name */
    font-weight: 600; /* Semi-bold for the site name */
}

/* Navigation links */
.home-nav-links {
    list-style-type: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
    display: flex; /* Align links horizontally */
    gap: 20px; /* Space between links */
}

.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 */
}


/* 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 */
}

.viewprofile {
    /* margin-left: 40px; */
    display: flex;
    flex-direction: column;
    margin: 80px 0px 0px 40px;
    font-size: 20px;
    
    
}
.profile-section {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    font-size: 20px;
    justify-content: space-between;
    
}

#image-section {
    /* border: 2px solid black; */
    width: 300px;
    height: 300px;
    background-image: url(../images/profile-photo.png);
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
    border-radius: 20px;
    margin-left: 60px;
    
}
.profile {
    padding: 20px;
    /* text-align: center; */
    color: white;
    margin-top: 60px;
}

.name {
    font-size: 60px; /* Large font size for the name */
    margin-bottom: 20px; /* Space between name and badges */
    font-weight: 500;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between badges */
}

.badge {
    /* background-color: #4f6d7a; Matching the badge background */
    border-radius: 25px; /* Rounded corners for badges */
    padding: 10px 20px;
    color: black; /* Text color */
    font-size: 18px; /* Smaller font size for badges */
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5); Shadow for depth */
}
.rank {
    background-color: #6B9AC4;
}
.likes {
    background-color: #5999B1;
}

.social-sidebar {
    margin: 0px 30px 0px 0px;
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 5px 0 0 5px; /* Rounded corners on the left side */
}

.social-icon {
    display: flex; /* New line for each icon */
    background-color: #121F26; /* Icon background */
    border-radius: 4px; /* Rounded corners for icons */
    overflow: hidden; /* Ensures the border-radius applies to children img */
}

.social-icon img {
    
    display: block; /* Remove inline-block spacing */
    width: 35px; /* Set a fixed width for icons */
    height: auto; /* Keep the aspect ratio */
    border-radius: 5px;
}

/* Add additional styling as needed */


.blogs-section {
    margin-left: 40px;
    display: flex;
    flex-direction: row;
    margin-top: 50px;
    font-size: 20px;
    justify-content: space-around;
}

.card {
    background-color: #224452;
    width: 250px; /* Adjust the width as necessary */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 70px;
    /* background: #fff; */
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    scale: 1.1;
}

.card-header {
    padding: 0;
    border-radius: 10px 10px 0 0;
    background-color: #224452;
}

.card-header img {
    width: 100%;
    border-radius: 10px;
}

.card-body {
    border-radius: 10px;
    background-color: #224452;
    padding: 1px 16px;
}

.card-body h3 {
    background-color: #224452;
    margin: 16px 0;
}
.ex-btn {
    background-color: #224452;
    display: flex;
    justify-content: end;
}

.card-body button {
    background-color: #5999B1;
    color: black;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: flex;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
}

.card-body button:hover {
    color: white;
    background: #6B9AC4;
}

@media only screen and (max-width: 600px) {
    .card {
        width: 95%;
    }
}

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

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

    .profile-section {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .blogs-section {
        flex-direction: column;
    }
    .social-sidebar {
        display: none;
    }

}


.card-index{
    display: flex;
        flex-wrap: wrap;

        /* justify-content: space-evenly; */
        /* margin-right: 3rem; */
        /* 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;
        margin-left: 6rem;
    
}
.card-image{
    border-radius: 1rem;
    background-color: #224452;
    position: relative;
    margin: 1rem;
    border: #ffffff  solid 1px;
    height:  16.341rem;
    margin-right: 2rem;
    

}
.card-image img{
    border-radius: 1rem 1rem 0rem 0rem;
    height: 8.5rem;
    width: 12.9rem;
}
.topic-name{
    color: #ffffff;
    padding: 0.5rem;
    background-color: #224452;

}
.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; 
}


