/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 {
    color: #333;
}

header {
    width: 100%;
    background-color: #070606; /* Dark background for professionalism */
    margin-bottom: 0;
}

/* Hero Section */
.banner {
    width: auto;
}

.banner img {
    width: 100%;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;  /* Ensure text is above the overlay */
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    color: #000000;  /* Light gray text for the subheading */
}

/* Article Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    margin-top: 20px;
}

/* Article Preview Styles */
.post-preview {
    position: relative; /* Allows positioning of child elements */
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
    overflow: hidden; /* Ensures content doesn't overflow the box */
}

/* Image Container */
.image-container {
    position: absolute; /* Position relative to the article */
    top: 10px; /* Space from the top */
    right: 10px; /* Space from the right */
}

/* Content Container */
.content-container {
    margin-right: 120px; /* Space for the image */
}

/* Post List Section */
.post-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

/* Post Card */
.post-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 3px;
    border-width: 20px;
    outline: auto;
    outline-color: #d2d2d2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
    text-decoration: none; /* Remove underline from link */
    transition: transform 0.2s;
}

.post-card:hover {
    transform: scale(1.02);
}

/* Image Section */
.post-image {
    width: 300px;
    height: 170px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

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

/* Post Details */
.post-details {
    padding: 15px;
}

.post-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #333;
}

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

.post-description {
    font-size: 0.95rem;
    color: #333;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-container {
    margin: 0 auto;
}

/* Post Styles */
.post {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
}

.post h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.img-articles { 
    display: block;
    margin: 0 auto;
    max-width: 40%;
    height: auto;
    overflow: hidden;
}

@media (max-width: 968px) {
    .img-articles {
        display: block;
        margin: 0 auto;
        max-width: 80%;
        height: auto;
        overflow: hidden;
    }
}

.wrapper {
    flex: 1;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content img {
    display: block;
    margin: 20px auto;
    max-width: 60%;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .post-content img {
        max-width: 95%;
    }
}

.donation-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

/* Job Listings Styles */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    width: 100%;
}

.job-card:hover {
    transform: scale(1.02);
}

.job-title {
    font-size: 1.5em;
    color: #007bff;
    margin: 0;
}

.job-location {
    font-weight: bold;
    color: #444;
    margin-top: 4px;
}

.job-salary {
    font-weight: bold;
    color: #28a745;
    margin-top: 2px;
}

.job-description {
    font-size: 1em;
    color: #555;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
}

.job-link {
    text-decoration: none;
    color: inherit;
}

.job {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
}

/* Style the table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: left;
}

td {
    padding: 10px;
    border: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo a {
    font-size: 1.5em;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    font-size: 130%;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: #555;
    border-radius: 4px;
}

.navbar .toggle-button {
    display: none;
    font-size: 1.5em;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar .toggle-button {
        display: block;
    }

    .nav-links#navbarLinks {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links#navbarLinks.active {
        display: flex;
    }

    .nav-links#navbarLinks a {
        padding: 10px 0;
        width: 100%;
        border-top: 1px solid #444;
    }
}
