/* Blog Styles */

:root {
    --primary-color: #ffd700;
    --text-color: #000000;
    --bg-color: #ffffff;
    --accent-color: #f0f0f0;
    --hover-color: #e6c200;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 72px 0 0 0; /* Adjusted to account for fixed nav */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Blog Header */
.blog-header {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 100px 0 60px; /* Increased top padding */
    text-align: center;
    margin-top: 72px; /* Add margin to account for fixed navbar height */
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Blog Main Content */
.blog-main {
    flex: 1;
    padding: 40px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Blog Posts */
.blog-post {
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.post-image {
    height: 200px;;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.blog-post h2, .blog-post h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.blog-post h2 {
    font-size: 2rem;
}

.blog-post h3 {
    font-size: 1.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-meta i {
    margin-right: 5px;
}

.post-excerpt {
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.read-more:hover {
    background-color: var(--hover-color);
}

/* Featured Post */
.featured-post .blog-post {
    display: flex;
    flex-direction: column;
}

.featured-post .post-image {
    height: 400px;
}

.featured-post .post-image img {
    height: 100%;
    object-fit: cover;
}

/* Recent Posts Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Overlay for Full Post */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: var(--text-color);
    cursor: pointer;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.nav-btn:hover {
    background-color: var(--hover-color);
}

/* Footer Styles */
footer {
    background: var(--text-color);
    color: var(--primary-color);
    padding: 20px;
    text-align: center;
}

footer .social-media a {
    margin: 0 10px;
    color: var(--primary-color);
    font-size: 20px;
    transition: color 0.3s;
}

footer .social-media a:hover {
    color: var(--bg-color);
}

/* Updated Overlay for Full Post */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.overlay-content {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: var(--text-color);
    cursor: pointer;
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

.full-post {
    max-width: 800px;
    margin: 0 auto;
}

.full-post-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.full-post h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.full-post .post-meta {
    font-size: 1rem;
    margin-bottom: 20px;
}

.full-post .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.full-post .post-content h3 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.full-post .post-content p {
    margin-bottom: 20px;
}

.full-post .post-content ul,
.full-post .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.full-post .post-content li {
    margin-bottom: 10px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.nav-btn:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .overlay-content {
        padding: 20px;
        width: 95%;
        margin: 20px auto;
    }

    .full-post h2 {
        font-size: 2rem;
    }

    .full-post .post-content {
        font-size: 1rem;
    }

    .full-post .post-content h3 {
        font-size: 1.5rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
    }
}

/* Navigation Styles */
nav {
    background-color: var(--text-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 72px; /* Explicitly set height */
}

nav .logo {
    margin-right: auto;
    padding-left: 20px;
}

nav .logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0;
    width: 100%;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--bg-color);
}

/* Hamburger menu icon */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive adjustments */

/* Nav Responsive adjustments */
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        height: 60px;
        background-color: var(--text-color);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    nav .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    nav .logo img {
        height: 40px;
        width: auto;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    nav ul {
        display: none;
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background-color: var(--text-color);
        flex-direction: column;
        padding: 1rem 0;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    nav ul.active {
        left: 0;
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav a {
        color: var(--primary-color);
        display: block;
        padding: 0.5rem 1rem;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .featured-post .blog-post {
        flex-direction: column;
    }

    .featured-post .post-image {
        height: 250px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .overlay-content {
        padding: 20px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .blog-post h3 {
        font-size: 1.2rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav .logo {
        margin-bottom: 1rem;
        padding-left: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }}