/* style/blog.css */

.page-blog {
    color: #333333; /* Default text color for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-blog__section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: #555555;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000080, #000040); /* Dark blue background for contrast */
    color: #ffffff; /* Light text for dark background */
    padding-bottom: 60px; /* Adjust as needed */
}

.page-blog__hero-container {
    position: relative;
    max-width: 100%; /* Important for mobile overflow */
    margin: 0 auto;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6; /* Slightly dim the image to make text pop */
    filter: brightness(0.8); /* Darken slightly, but no color change filter */
    min-width: 200px;
    min-height: 200px;
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 80%;
    max-width: 800px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold main color for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-blog__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-blog__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: #000080; /* Dark blue text on gold button */
    background-color: #FFD700; /* Gold button */
    border: 2px solid #FFD700;
}

.page-blog__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-blog__hero-button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text on transparent button */
    border: 2px solid #FFD700;
}

.page-blog__hero-button--secondary:hover {
    background-color: #FFD700;
    color: #000080;
}

/* Section Titles */
.page-blog__section-title {
    font-size: 2.5em;
    color: #000080; /* Auxiliary dark blue for section titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 60px;
}

/* Featured Articles */
.page-blog__featured-articles {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.page-blog__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__article-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px;
}

.page-blog__article-content {
    padding: 25px;
}

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-blog__article-title a {
    color: #000080; /* Dark blue for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

.page-blog__read-more-link {
    display: inline-block;
    color: #FFD700; /* Gold for read more link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Latest News */
.page-blog__latest-news {
    padding: 40px 0;
    background-color: #ffffff;
}

.page-blog__news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-blog__news-item {
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.page-blog__news-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px;
}

.page-blog__news-content {
    padding: 25px;
}

.page-blog__news-title {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-blog__news-title a {
    color: #000080;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__news-title a:hover {
    color: #FFD700;
}

.page-blog__news-date {
    font-size: 0.85em;
    color: #888888;
    margin-bottom: 15px;
}

.page-blog__news-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

.page-blog__view-all {
    text-align: center;
    margin-top: 50px;
}

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #000080; /* Dark blue button */
    color: #FFD700; /* Gold text */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #000080;
}

.page-blog__view-all-button:hover {
    background-color: #FFD700;
    color: #000080;
    transform: translateY(-2px);
    border-color: #FFD700;
}


/* Call to Action Section */
.page-blog__cta-section {
    background: linear-gradient(90deg, #000080, #000040); /* Dark blue gradient */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-blog__cta-content {
    max-width: 900px;
}

.page-blog__cta-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold title */
    margin-bottom: 20px;
}

.page-blog__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #FFD700; /* Gold button */
    color: #000080; /* Dark blue text */
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-blog__news-list {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    }
}

@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 3em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__article-image,
    .page-blog__news-image {
        height: 200px; /* Adjust height for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__hero-button {
        width: 80%;
        max-width: 300px;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__news-list {
        grid-template-columns: 1fr;
    }
    .page-blog__news-item {
        flex-direction: column;
    }
    .page-blog__news-image {
        height: 250px;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-button {
        font-size: 1.1em;
        padding: 15px 30px;
    }
    /* Mobile image overflow prevention */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure images within content area are not small */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-blog--fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}