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

body {
    font-family: 'Century Schoolbook', serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Custom message styling */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    border: 1px solid transparent;
    color: white;
    opacity: 1;
    transition: opacity 0.5s ease-out; 
}

/* Success and Error Alerts */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error, .alert-danger {
    color: #f44336;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}


.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s 0.5s;
}


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

.chronicles-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8bc27;
    border-radius: 10px;
}

.chronicles-header h1 {
    color: #7b4513;
    font-size: 2.5em;
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

.chronicles-header h1 span{
    color: #F9E87B;
}

.chronicles-header img {
    width: 150px;
    height: auto;
    border-radius: 10px;
}

.article-section {
    margin-bottom: 40px;
}

.article-section h3 {
    color: #7b4513;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.article-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.article-card {
    background-color: #fff;
    width: 30%;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.article-description {
    padding: 10px 0;
}

.article-description h4 {
    font-size: 1.4rem;
    color: #7b4513;
    margin-bottom: 10px;
}

.article-description p {
    font-size: 1rem;
    color: #555;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    background-color: #b1630a;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #7b4513;
}

/* Footer Styling */
footer {
    background-color: #f8bc27; /* Keep your footer background color */
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 10px 0; /* Consistent spacing for all paragraphs */
    color: #7b4513;
}

footer p a {
    text-decoration: none;
    color: rgb(67, 71, 65);
    font-weight: bold;
}

footer p a:hover {
    color: blue;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* Add consistent spacing between social icons */
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
}

.social-links img {
    width: 30px;
    height: 30px; /* Square dimensions for a more balanced look */
    border-radius: 8px;
}

footer a {
    color: #1e90ff; /* Adjusted link color for general links in footer */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* MEDIA QUERIES */

@media screen and (max-width: 1087px) {
    header .logo {
        text-align: center;
    }

    .article-card {
        width: 48%;
    }

    .chronicles-header h1 {
        font-size: 1.8em;
    }

    .social-links img {
        width: 25px;
        height: 19px;
        border-radius: 5px;
    }
}

@media screen and (max-width: 500px) {
    .article-card {
        width: 100%;
    }

    .chronicles-header img {
        width: 120px;
    }

    .chronicles-header h1 {
        font-size: 1.2rem;
    }
}