/* style/blog.css */
.page-blog {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

/* Hero Section */
.page-blog__hero {
    background: linear-gradient(135deg, #003366, #1a4d80);
    color: #fff;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.page-blog__hero-content {
    z-index: 1;
    max-width: 800px;
}

.page-blog__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: #FFD700;
    font-weight: bold;
}

.page-blog__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-blog__hero-cta {
    display: inline-block;
    background-color: #FFD700;
    color: #003366;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__hero-image {
    display: none; /* Hidden by default, shown on larger screens */
}

.page-blog__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Articles Section */
.page-blog__articles {
    padding: 60px 0;
    background-color: #f0f2f5;
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #003366;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-blog__filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.page-blog__search-box,
.page-blog__category-filter {
    flex: 1 1 45%;
    display: flex;
    gap: 10px;
}

.page-blog__search-box input,
.page-blog__category-filter select {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
}

.page-blog__search-box button {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.page-blog__search-box button:hover {
    background-color: #002244;
}

.page-blog__category-filter label {
    font-weight: bold;
    color: #003366;
    align-self: center;
    white-space: nowrap;
}

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

.page-blog__article-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-blog__article-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__article-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #003366;
    font-weight: bold;
}

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

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

.page-blog__article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-blog__article-summary {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-btn {
    display: inline-block;
    background-color: #FFD700;
    color: #003366;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-blog__read-more-btn:hover {
    background-color: #e6c200;
}

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-blog__pagination-link {
    display: block;
    padding: 10px 15px;
    border: 1px solid #003366;
    color: #003366;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
    background-color: #003366;
    color: #fff;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #003366;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
    border-radius: 10px;
}

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

.page-blog__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-blog__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-blog__cta-btn {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 200px;
}

.page-blog__cta-btn--primary {
    background-color: #FFD700;
    color: #003366;
}

.page-blog__cta-btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-blog__cta-btn--secondary {
    background-color: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.page-blog__cta-btn--secondary:hover {
    background-color: #FFD700;
    color: #003366;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-blog__hero {
        flex-direction: row;
        text-align: left;
        padding: 100px 40px;
    }

    .page-blog__hero-content {
        flex: 1;
        padding-right: 40px;
    }

    .page-blog__hero-image {
        display: block;
        flex: 1;
        max-width: 500px;
    }

    .page-blog__hero-title {
        font-size: 4em;
    }

    .page-blog__filter-bar {
        flex-wrap: nowrap;
    }

    .page-blog__search-box,
    .page-blog__category-filter {
        flex: 1;
    }

    .page-blog__cta-btn {
        min-width: 250px;
    }
}

@media (max-width: 767px) {
    .page-blog__hero {
        padding: 60px 15px;
    }
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__search-box,
    .page-blog__category-filter {
        flex: 1 1 100%;
    }
    .page-blog__article-list {
        grid-template-columns: 1fr;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
    }
    .page-blog__cta-btn {
        width: 100%;
    }
}