/* style/blog.css */
/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F3F8FF; /* Text Main */
    background-color: transparent; /* body handles background color */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #08162B; /* Deep Navy for consistency */
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: #F3F8FF; /* Text Main */
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Gold */
}

.page-blog__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #AFC4E8; /* Text Secondary */
}

/* General button style */
.page-blog__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

/* Latest Posts Section */
.page-blog__latest-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-blog__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
}

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

.page-blog__post-card {
    background-color: #10233F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid #244D84; /* Border */
    color: #F3F8FF; /* Text Main */
}

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

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

.page-blog__post-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-title a {
    color: #4FA8FF; /* Glow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #F2C14E; /* Gold */
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-blog__read-more:hover {
    color: #4FA8FF; /* Glow */
}

/* Call to Action Section */
.page-blog__cta-section {
    background-color: #113B7A; /* Primary color */
    padding: 80px 20px;
    text-align: center;
    color: #F3F8FF; /* Text Main */
}

.page-blog__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
}

.page-blog__cta-text {
    font-size: 1.1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already has padding-top */
    }

    .page-blog__main-title {
        font-size: 2.2em;
    }

    .page-blog__intro-text {
        font-size: 1em;
    }

    .page-blog__latest-posts {
        padding: 40px 15px;
    }

    .page-blog__section-title {
        font-size: 2em;
    }

    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__post-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-blog__post-title {
        font-size: 1.2em;
    }

    .page-blog__cta-section {
        padding: 60px 15px;
    }

    .page-blog__cta-title {
        font-size: 2em;
    }

    .page-blog__cta-text {
        font-size: 1em;
    }

    /* Mobile specific overrides for images, videos, buttons to prevent overflow */
    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__hero-image {
        width: 100% !important;
        height: 100% !important;
    }

    /* Generic container for images/videos/buttons */
    .page-blog__hero-section,
    .page-blog__latest-posts,
    .page-blog__posts-grid,
    .page-blog__post-card,
    .page-blog__cta-section,
    .page-blog__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__posts-grid {
        padding-left: 0;
        padding-right: 0;
    }

    .page-blog__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding to button itself */
        padding-right: 15px;
    }
}

/* Ensure minimum image size for content area */
.page-blog__post-image {
    min-width: 200px;
    min-height: 200px;
}