/* blog.css */

/* Basic styling for the blog page */
body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --------- Header Styling --------- */
#header {
    background-color: #111;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.nav-logo .nav-name {
    color: #0a8fff; /* Main text color */
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-left: auto;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

.nav-menu .nav-link {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active-link {
    color: #0a8fff;
}

.nav-button {
    display: flex;
    align-items: center;
}

.nav-button .btn {
    background-color: #0a8fff;
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.nav-button .btn:hover {
    background-color: #0771e5;
}

.nav-menu-btn {
    display: none; /* Keep it hidden for large screens */
}

/* ----- Mobile Menu ----- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide menu on small screens */
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #111;
        width: 100%;
        padding: 20px;
        border-top: 1px solid #333;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu-btn {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: #fff;
    }

    .nav-logo {
        font-size: 22px;
    }

    .nav-button {
        display: none;
    }

    .nav-menu li {
        text-align: center;
        margin: 15px 0;
    }

    .nav-menu li .nav-link {
        font-size: 20px;
    }
}

/* Header Text - Blog Title */
h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 40px;
    color: #fff;
    font-weight: 600;
}

/* Blog Post Section Styling */
.blog-posts {
    margin-top: 50px;
}

.blog-post {
    background-color: #1e1e1e;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.blog-post h2 {
    color: #0a8fff;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-date {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 16px;
    color: #0a8fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.tldr{
    color: #0a8fff;
}

.read-more:hover {
    text-decoration: underline;
    color: #ffffff;
}

.full-post {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: #ddd;
}

/* Footer Styling */
footer {
    background-color: #111; /* Keep original background color */
    padding: 20px;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}

footer .footer-social-icons {
    margin-bottom: 10px;
}

footer .footer-social-icons a {
    margin: 0 15px;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-social-icons a:hover {
    color: #ffffff;
}

footer .bottom-footer {
    margin-top: 10px;
    font-size: 14px;
    color: #ddd;
}

/* Change the color of the link */
footer .bottom-footer a {
    color: #0a8fff; /* Make the link blue */
    text-decoration: none;
}

footer .bottom-footer a:hover {
    text-decoration: underline;
    color: #ffffff; /* On hover, make the text white */
}

/* Responsiveness */
@media (max-width: 768px) {
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 32px;
    }

    .blog-post {
        padding: 20px;
    }

    .blog-post h2 {
        font-size: 24px;
    }

    .post-excerpt {
        font-size: 16px;
    }

    .read-more {
        font-size: 14px;
    }
}
