* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #735DA5;
    color: #333;
    scroll-behavior: smooth;
    min-height:100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 9%;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.content{
    display: flex;
    align-items: center;
}
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-link {
    cursor: pointer;
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(241, 241, 241,0.5);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li {
    padding: 8px 12px;
}

.dropdown-menu a {
    text-decoration: none;
    color: black;
    display: block;
}

.dropdown-menu a:hover {
    background-color: rgb(241, 241, 241,0.5);
}

.dropdown:hover .dropdown-menu {
    display: block;
}
.hamburger{
    display: none;
    width:20px;
    height:20px;
    flex-direction: column;
    cursor: pointer;
}
.hamburger .list {
    width: 25px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 4px 0;
}
.close{
    display: none;
    margin-right: 20px;
    flex-direction: column;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}
.close.active {
    display: block;
}
.hamburger.hide {
    display: none;
}
.content.active {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-size: 1.5rem;
    gap: 1.5rem;
}
.navbar .name h1{
    font-size: 36px;
    font-family: "Calibri Light" , sans-serif;
    cursor: pointer;
}
.navbar .content a {
    margin: 0 15px;
    text-decoration: none;

    color: #333;
    font-weight: 600;
}
.navbar nav a:hover {
    color: #0073e6;
}
.social-icons{
    width: 100px;
    display: flex;
    justify-content: space-around;

}
.social-link {
    color: #333;
    margin-left: 15px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}
.social-link:hover {
    color: #0073e6;
}

section{
    flex: 1;
}
.blog-section {
    margin-top:10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.blog-section h1 {
    font-size: 50px;
    width: 100%;
    text-align: center;
    margin: 10px 10px 0;
    font-family: cursive;


}
.blog-section h1{
    font-size: 3rem;
    font-family: "Calibri Light" , sans-serif;
    font-weight: bolder;
    padding: 20px 20px 0;
    width: 100%;
    color: white;
}
.blogs-container{
    display: flex;
    width: 90%;
    margin: 50px;
    justify-content: space-around;
    align-items: center;
    gap:10px;
    flex-wrap: wrap;
}
.blog-link {
    text-decoration: none; /* Removes default link styling */
    color: inherit; /* Inherits text color */
}

.blog {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 350px; /* Set a fixed width for blog cards */
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-thumbnail img {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.blog-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
}
.pagination{
    width: 100%;
    margin:10px;
    text-align: center;
    font-size: 1.1rem;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 45px;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}
.pagination button{
    width: 30px;
    height: 30px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.05)  10px 10px;
}
@media screen and (max-width: 900px) {
    .content {
        display:none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(10px);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    .hamburger {
        display:block;
    }
    .blogs-container{
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        gap:25px;
    }

    
}


section{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    justify-content: space-around;
}
.no-blog-found{
    margin: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}
.no-blog-found h2{
    font-family: cursive;
    margin:10px;
    padding: 10px;
}
.no-blog-found button {
    margin: 10px;
    width: 200px;
    height: 45px;
    padding: 5px;
}
.no-blog-found a{
    text-decoration: none;
    color: black;
    font-family: cursive;
    font-size: 1.2rem;
}

.blogs-display{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
}
.category-link{
    align-self: flex-start;
    color:white;
    text-decoration: underline;
}
.about-blog{
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    margin-top: 20px;
}
.content_1{
    padding:20px;
    text-align: left;
}
.blogs-display img{
    margin-top: 20px;
    width: 100%;
    height: auto;
    padding: 10px;
}
.blog-content{
    width: 100%;
}
.blog-content pre{
    background: black;
    padding: 10px;
    margin: 10px;
    color: white;
    border: 10px solid white;
    overflow: auto;
}
.blog-content code{
    color :white;
    font-style: italic;
}
.search-bar {
    position: relative;
    width: 100%;
    height: 40px;
    margin-left: 10%;
}
.search-bar input {
    width: 80%;
    height: 40px;
    border-radius: 10px;
    padding: 2px 2px 2px 5px;
}

#searchDropdown {
    position: absolute;
    top: 100%; /* Position below the input */
    left: 0;
    width: 80%;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default */
    z-index: 1000;
    max-height: 200px; /* Set a max-height */
    overflow-y: auto; /* Add scroll if the content exceeds max-height */
}

#searchDropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

#searchDropdown a:hover {
    background-color: #f1f1f1;
}

#searchDropdown a:last-child {
    border-bottom: none; /* Remove border from the last item */
}
@media screen and (max-width: 600px) {
    .blogs-display{
        margin-top: 25%;
        margin-left:20px;
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .name svg{
        width: 150px;
    }
    .blog-section{
        margin-top: 35%;
        height: max-content;
        gap:20px;
    }
    .blogs-display{
        margin-top: 30%;
    }

}
@media  screen and (max-width: 375px) {
    .name svg{
        width: 120px;
    }
    .blog{
        width: 300px;
    }
}