/* style/blog.css */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Light background to ensure contrast */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #1E90FF; /* Using auxiliary color for a strong header */
    color: #ffffff;
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly dimmed to make text stand out */
}

.page-blog__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

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

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

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

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    white-space: nowrap;
}

.page-blog__button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #1E90FF; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

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

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

.page-blog__button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #1E90FF; /* Auxiliary color for section titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-blog__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #555555;
}

/* Latest Articles */
.page-blog__latest-articles {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-blog__article-card {
    background-color: #fefefe;
    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;
}

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

.page-blog__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #1E90FF; /* Auxiliary color for article titles */
}

.page-blog__article-title a {
    text-decoration: none;
    color: inherit;
    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: #666666;
    margin-bottom: 20px;
}

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

.page-blog__read-more:hover {
    color: #1E90FF; /* Auxiliary color on hover */
}

/* Categories Section */
.page-blog__categories {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-blog__category-card {
    display: block; /* Make the whole card clickable */
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__category-image {
    width: 100%;
    height: 186px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__category-title {
    font-size: 1.3em;
    color: #1E90FF;
    padding: 20px;
    margin: 0;
}

/* Full Article Section */
.page-blog__featured-article-full {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-blog__article-full-image {
    width: 100%;
    max-width: 800px; /* Constrain image width for readability */
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__article-full-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05em;
    color: #444444;
}

.page-blog__article-full-content h3 {
    font-size: 1.8em;
    color: #1E90FF;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-blog__article-full-content p {
    margin-bottom: 20px;
}

.page-blog__article-full-content a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__article-full-content a:hover {
    color: #1E90FF;
}

.page-blog__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Call to Action Section */
.page-blog__cta-section {
    background-color: #1E90FF; /* Auxiliary color for CTA background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-blog__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

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

.page-blog__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-blog__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-blog__button--cta {
    background-color: #FFD700;
    color: #1E90FF;
    border: 2px solid #FFD700;
    padding: 18px 35px;
    font-size: 1.2em;
}

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

.page-blog__button--cta-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-blog__button--cta-secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__article-title {
        font-size: 1.3em;
    }
    .page-blog__category-title {
        font-size: 1.1em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
    }
    .page-blog__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 80%;
        max-width: 300px;
    }

    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__section-intro {
        font-size: 1em;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .page-blog__article-image,
    .page-blog__category-image {
        height: 150px; /* Smaller fixed height for mobile cards */
    }
    .page-blog__article-full-content h3 {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-actions {
        flex-direction: column;
    }
    .page-blog__button--cta, .page-blog__button--cta-secondary {
        width: 90%;
        max-width: 350px;
        padding: 15px 25px;
        font-size: 1.1em;
    }
    /* Ensure content images are responsive and don't overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
}