/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
}

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

section {
    background-color: #F5F5F5;
    margin-bottom: 40px;
    padding: 40px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    color: #003366;
    margin-top: 0;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #C82333;
    border-radius: 2px;
}

a {
    color: #C82333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #C82333;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a01c2a;
    text-decoration: none;
}

/* Header */
header {
    background-color: #FFFFFF;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #000000;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #C82333;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
    font-size: 0.9em;
    width: 200px;
    transition: width 0.3s ease;
}

.search-bar input:focus {
    width: 250px;
    border-color: #C82333;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: -30px;
    color: #888;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Article Card Base */
.article-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a row have same height */
    display: flex;
    flex-direction: column;
}

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

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to expand and push footer down */
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #000000;
}

.article-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

.article-card .read-more {
    display: inline-block;
    color: #C82333;
    font-weight: bold;
    margin-top: auto; /* Pushes the link to the bottom */
}

/* Grid Layouts */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Footer */
footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
    margin-bottom: 20px;
    display: block;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px 10px 15px;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #C82333;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    color: #FFFFFF;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

.copyright {
    margin-top: 20px;
    color: #bbb;
}