/* style/blog.css */

/* Core page styling */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default white body background */
    background-color: #f8f8f8; /* Light background for the main content area */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #0A1931; /* Deep blue for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-blog__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding: 80px 0;
    background-color: #0A1931; /* Dark background for hero */
    color: #ffffff; /* Light text for dark hero background */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-blog__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for hero title */
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-blog__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-blog__hero-button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #0A1931; /* Deep blue text */
    border: 2px solid #FFD700;
}

.page-blog__hero-button--primary:hover {
    background-color: #e0b800;
    transform: translateY(-3px);
}

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

.page-blog__hero-button--secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
    transform: translateY(-3px);
}

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

.page-blog__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Latest Articles Section */
.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: #fdfdfd;
    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(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.page-blog__article-card:hover .page-blog__article-image img {
    transform: scale(1.05);
}

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: #0A1931; /* Deep 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: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-blog__read-more-button:hover {
    background-color: #e0b800;
    transform: translateY(-2px);
}

/* Featured Guides Section */
.page-blog__featured-guides {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.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: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__guide-card img {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-blog__guide-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0 20px;
}

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

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

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

.page-blog__guide-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #0A1931;
    color: #FFD700;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__guide-button:hover {
    background-color: #1a2a4e;
    transform: translateY(-2px);
}

/* Call to Action Section */
.page-blog__cta-section {
    background: linear-gradient(90deg, #0A1931 0%, #1a2a4e 100%); /* Gradient background */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

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

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

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

.page-blog__cta-button {
    display: inline-block;
    padding: 18px 35px;
    background-color: #FFD700;
    color: #0A1931;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-blog__cta-button:hover {
    background-color: #e0b800;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

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

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

.page-blog__category-card {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-blog__category-card:hover {
    background-color: #fffaf0; /* Light gold tint on hover */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-blog__category-count {
    font-size: 0.9em;
    color: #666666;
}

/* Newsletter Section */
.page-blog__newsletter-section {
    background-color: #0A1931;
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

.page-blog__newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

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

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

.page-blog__newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-blog__newsletter-input {
    flex-grow: 1;
    max-width: 400px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
}

.page-blog__newsletter-input::placeholder {
    color: #888888;
}

.page-blog__newsletter-button {
    padding: 15px 30px;
    background-color: #FFD700;
    color: #0A1931;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 60px 0;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__hero-button {
        width: 80%;
        max-width: 300px;
    }

    .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__category-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-button {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    .page-blog__newsletter-title {
        font-size: 1.8em;
    }
    .page-blog__newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    .page-blog__newsletter-input,
    .page-blog__newsletter-button {
        width: 80%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* Enforce image responsiveness in content area for mobile */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

/* Global image rules for content area to meet minimum size and no filter */
.page-blog img {
    min-width: 200px; /* Minimum width for content images */
    min-height: 200px; /* Minimum height for content images */
    /* Ensure no filter properties are used to change image colors */
    /* filter: none; is implicitly applied by not defining one */
}

/* Specific card image adjustments to ensure they are large enough */
.page-blog__article-image img, 
.page-blog__guide-card img {
    min-width: 200px; 
    min-height: 200px; 
    width: 100%; 
    height: 100%; /* Occupy full card image area */
    object-fit: cover;
}