/* Boxed Layout */
.boxed-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.site-name {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

.navigation a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.navigation a:hover {
    color: #0073e6;
}

/* Top Section */
.top-section {
    margin-top: 100px; /* ensures content starts beneath the header */
    padding: 40px 20px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.top-section p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Latest News Section */
.latest-news {
    padding: 20px;
    background-color: #f2f2f2;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.latest-news h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
    width: 100%;
}

.latest-news .post {
    display: flex;
    flex-direction: column;
    width: calc(33% - 15px);
    margin-bottom: 15px;
}

.latest-news img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer a:hover {
    color: #0073e6;
}

.social-media img {
    width: 30px;
    margin: 0 5px;
}

/* Blog Page Styles */
.main-content {
    padding: 40px 20px;
    margin-top: 100px; /* ensures content starts beneath the header */
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article h2 {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.meta-info {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.featured-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        display: none;
    }

    .navigation.active ul {
        display: flex;
    }

    .navigation-toggle {
        display: block;
        cursor: pointer;
    }

    .latest-news .post {
        width: 100%;
    }

    .social-media img {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px;
    }

    .site-name {
        font-size: 1.5em;
    }

    .top-section {
        padding: 20px 10px;
    }

    .latest-news {
        padding: 10px;
    }

    .footer-inner {
        padding: 10px;
    }
}