/* Font Definitions */
@font-face {
    font-family: 'RobotoSlab';
    src: url('fonts/RobotoSlab-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'RobotoSlab';
    src: url('fonts/RobotoSlab-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RobotoSlab';
    src: url('fonts/RobotoSlab-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Header Styles */
.header {
    text-align: center;
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.header h1 {
    font-family: 'Ariel', serif;
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.navbar {
    margin-top: 10px;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.navbar a {
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #555;
    text-decoration: underline;
}

/* Wider, Centered Main Content */
.content {
    max-width: 800px; /* Increased width for a more open layout */
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

/* News Item Page Styling */
.news-item-page {
    margin-top: 10px;
    text-align: center; /* Centering the article content */
}

.news-item-page h2 {
    font-family: 'RobotoSlab', sans-serif;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.news-item-page .summary {
    font-family: 'RobotoSlab', serif;
    font-style: bold;
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #555;
}

.news-item-page .news-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

article.news-item-page .full-content,
.news-item-page div.full-content {
    font-family: 'RobotoSlab', serif;

    line-height: 1.6;
    color: #555;
    text-align: left;
}
body.page-body .content .news-item-page .full-content {
    font-size: 1.1em !important;
}




/* Global Styling */
.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
    width: 100%;
}

.top-story {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.top-story-text {
    flex: 1;
}

.top-story-img {
    max-width: 100%;
    height: auto;
}

.more-news {
    width: 100%;
    margin-bottom: 20px;
}

.news-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.news-item {
    width: 32%;
    text-align: center;
    font-family: RobotoSlab;
}

.image-container {
    width: 100%;
    padding-bottom: 66.67%;
    position: relative;
    overflow: hidden;
}

.news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-title {
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    padding: 0.5em 0;
}

.divider {
    width: 1px;
    background-color: #ddd;
}

/* Responsive Styling */
@media (max-width: 768px) {
    /* Top Story: display image first, full width */
    .top-story {
        flex-direction: column;
        text-align: center;
    }

    .top-story-text {
        order: 2; /* Move text below the image */
        width: 100%;
        padding: 1em 0;
    }

    .top-story-img {
        width: 100%;
        order: 1; /* Ensure image is displayed first */
    }

    /* More News: make images full width */
    .news-row {
        flex-direction: column;
    }

    .news-item {
        width: 100%;
    }

    .image-container {
        padding-bottom: 56.25%; /* Adjust padding for a more mobile-friendly aspect ratio */
    }

    .divider {
        display: none;
    }
}

