body {
    background-color: rgba(0, 0, 0, 0.911);
    color:darkgray;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: border-box;
    
}

.navbar {
    display: flex;
    justify-content:left;
    align-items: center;
    background: #222;
    padding-top: 5px;
    padding-bottom: 5px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.dropdown-content {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.dropdown-content li {
    margin: 0;
    display: flex;
}

.dropdown-content a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 8px 12px;
    transition: 0.3s;
}

.dropdown-content a:hover {
    background: #555;
    border-radius: 5px;
}

.menu-btn {
    font-size: 24px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        background: #222;
        flex-direction:column;
        width: 200px; 
        padding: 10px 0;
        text-align: center;
    }

    .dropdown-content li {
        margin: 0;
    }

    .dropdown-content.show {
        display:flex;
        position:absolute;
    }
}

.profile_icons {
    display:flex;
    gap: 20px;
    align-items:center;
    position:absolute;
    right: 20px;
}

.profile_icons img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.profile_icons img:hover {
    transform: scale(1.1);
}

/* Header styling */
.header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
}

/* Navigation bar */
.nav ul {
    list-style-type: none;
    padding: 0;
}

.nav ul li {
    display: inline;
    margin-right: 20px;
}

.nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.nav a:hover {
    text-decoration: underline;
}

/* Main blog posts area */
.blog-posts {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Card styling */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

/* Image inside the card */
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

/* Card content */
.card-content {
    padding: 20px;
}

.card-content .post-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.card-content .post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.card-content .post-summary {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.card-content .read-more {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.card-content .read-more:hover {
    color: #2980b9;
}


html {
    scroll-behavior: smooth;
}