* {
    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;
}
.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;
}
article{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.blog-section{
    margin-top: 9%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap:50px;
}
.blogs-display{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    gap:20px;
}
.category-link {
    align-self: flex-start;
    color: white;
    text-decoration: underline;
}
.blogs-display img {
    width: 100%;
    height: auto;
}
.blog-section h1 {
    font-size: 3rem;
    font-family: "Calibri Light", sans-serif;
    font-weight: bolder;
    width: 100%;
    color: white;
}
.about-blog {
    width: 100%;
    display: flex
;
    justify-content: space-around;
}
.blog-content {
    width: 100%;
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:100px;
}
.blog-content div{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 100vh;
    gap:50px
}
section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap:30px;
}
.blog-content pre {
    background: black;
    padding: 10px;
    color: white;
    border: 10px solid white;
    overflow-x: auto; /* Allow horizontal scrolling for content that exceeds the width */
    word-wrap: break-word; /* Break words to fit within the container */
    white-space: pre-wrap; /* Preserve line breaks but allow wrapping */
    max-width: 100%; /* Ensure it doesn’t exceed the screen width */
    box-sizing: border-box; /* Include padding and borders in width calculations */
    border-radius: 8px; /* Rounded corners for aesthetics */
}
.blog-content code {
    width: 100%;
    color: white;
    font-style: italic;
    overflow: scroll;
}
.authorlink a{
    align-self: flex-start;
    color: white;
    text-decoration: underline;
}
.more-blog-section{
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.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;
    color: inherit;
}
.blog {
    display: flex
;
    flex-wrap: wrap;
    gap: 16px;
    width: 350px;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.blog-details {
    display: flex
;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
}

.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;
}


@media screen and (max-width: 600px) {
    .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;
    }
    .blog-section{
        margin-top: 15%;
    }
    .blogs-display{
        width: 100%;
    }
    .no-blog-found{
        margin-top:20%;
    }

}
@media screen and (max-width: 500px) {
    .blog-section h1{
        font-size: 2.5rem;
    }
    .blogs-display img{
        width: 300px;
        height: auto;
    }
    .blogs-display {
        margin-top: 15%;
    }
    .name .logo{
        width: 150px;
    }
}
@media screen and (max-width: 400px) {

    .blog{
        width: 100%;

    }
}