/* style/blog.css */

/* Base styles for the blog page content */
.page-blog {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header offset to prevent content from being hidden by fixed header */
.page-blog__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    color: #ffffff; /* Light text for dark overlay */
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-blog__hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(26, 43, 60, 0.7); /* Dark blue overlay with transparency */
    padding: 40px;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__hero-title {
    font-size: 3em;
    color: #FFD700; /* Gold accent */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-blog__hero-cta {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #1A2B3C; /* Dark blue text */
    padding: 15px 30px;
    border-radius: 5px;
    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(-2px);
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #1A2B3C; /* Dark blue title */
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

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

.page-blog__latest-articles {
    padding: 60px 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: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.page-blog__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block; /* Ensure image is block-level */
}

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

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

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

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

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

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

.page-blog__read-more:hover {
    color: #1A2B3C;
}

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

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

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

.page-blog__featured-guides {
    padding: 60px 0;
}

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

.page-blog__guide-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.page-blog__guide-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block; /* Ensure image is block-level */
}

.page-blog__guide-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-blog__guide-title a {
    color: #1A2B3C;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-blog__guide-excerpt {
    color: #666666;
    font-size: 0.9em;
    padding: 0 20px;
    margin-bottom: 20px;
}

.page-blog__guide-cta {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2B3C;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__cta-section {
    background-color: #1A2B3C; /* Dark blue background */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-blog__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 1;
}

.page-blog__cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.page-blog__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2B3C;
    padding: 18px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__about-section {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.page-blog__about-text {
    font-size: 1em;
    line-height: 1.8;
    color: #444444;
    text-align: justify;
}

.page-blog__additional-resources {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-blog__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-blog__resource-item {
    background-color: #ffffff;
    border-left: 5px solid #FFD700; /* Gold accent border */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__resource-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-blog__resource-title a {
    color: #1A2B3C;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-blog__resource-description {
    font-size: 0.9em;
    color: #777777;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        min-height: 400px;
        padding: 40px 15px;
    }
    .page-blog__hero-overlay {
        padding: 30px;
    }
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-cta {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__section-subtitle {
        font-size: 1em;
    }
    .page-blog__article-grid,
    .page-blog__guide-grid,
    .page-blog__resource-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__article-image,
    .page-blog__guide-image {
        height: auto; /* Allow image height to adjust */
    }
    .page-blog__cta-section {
        padding: 60px 20px;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Ensure content area images are responsive and not too small */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    /* Specific override for hero image to ensure it covers */
    .page-blog__hero-image {
        max-width: none;
        width: 100%;
        height: 100%;
    }
    /* Ensure card images within blog content are not smaller than 200px display */
    .page-blog__article-image,
    .page-blog__guide-image {
        min-width: 200px;
        min-height: 200px;
        width: 100%; /* Occupy full width of card */
        height: 200px; /* Fixed height for consistency, will be object-fit: cover */
    }
}

@media (max-width: 480px) {
    .page-blog__hero-overlay {
        padding: 20px;
    }
    .page-blog__hero-title {
        font-size: 1.6em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__hero-cta {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}