/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero to contrast with text */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero section */
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim the image to make text pop */
    z-index: 1;
}

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

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-blog__hero-cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for bright button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__hero-cta-button:hover {
    background-color: #E0A53C;
    transform: translateY(-2px);
}

/* Articles Section */
.page-blog__articles-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-blog__articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-blog__articles-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 15px;
}

.page-blog__articles-intro {
    font-size: 1.1em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
}

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

.page-blog__article-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    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 16px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__article-heading {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000000;
}

.page-blog__article-heading a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-blog__article-heading a:hover {
    color: #FCBC45;
}

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

.page-blog__article-readmore {
    display: inline-block;
    background-color: #000000; /* Main color */
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-blog__article-readmore:hover {
    background-color: #333333;
}

/* Categories Section */
.page-blog__categories-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
    background-color: #F8F8F8;
    border-radius: 10px;
}

.page-blog__categories-title {
    font-size: 2.2em;
    color: #000000;
    margin-bottom: 30px;
}

.page-blog__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__category-item {
    display: inline-block;
}

.page-blog__category-link {
    display: block;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-link:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

/* Call to Action Section */
.page-blog__cta-section {
    max-width: 1000px;
    margin: 60px auto 80px auto;
    padding: 40px;
    text-align: center;
    background-color: #000000; /* Dark background */
    color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for bright button */
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 3em;
    }

    .page-blog__hero-description {
        font-size: 1.1em;
    }

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

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

@media (max-width: 768px) {
    .page-blog {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-blog__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

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

    .page-blog__hero-description {
        font-size: 1em;
    }

    .page-blog__hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-blog__articles-section {
        margin: 30px auto;
        padding: 15px;
    }

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

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

    .page-blog__article-image {
        height: 200px;
    }

    .page-blog__article-heading {
        font-size: 1.3em;
    }

    .page-blog__categories-section {
        margin: 40px auto;
        padding: 15px;
    }

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

    .page-blog__category-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-blog__cta-section {
        margin: 40px auto 60px auto;
        padding: 30px;
    }

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

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

    .page-blog__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Enforce image responsiveness for content area images */
    .page-blog__articles-grid img,
    .page-blog__article-card img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px; /* Ensure images are not too small */
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 2em;
    }

    .page-blog__articles-title {
        font-size: 1.8em;
    }

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

    .page-blog__category-list {
        flex-direction: column;
        align-items: center;
    }
}

/* Ensure all content area images are at least 200px */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure no filter is applied to images */
.page-blog img {
    filter: none; /* Absolutely no filter effects */
}

/* Specific image width/height for layout slots */
.page-blog__hero-image {
    width: 1200px;
    height: 675px;
}
.page-blog__article-image {
    width: 400px;
    height: 300px;
}

/* Responsive adjustments for HTML width/height attributes */
@media (max-width: 768px) {
    .page-blog__hero-image {
        width: 768px; /* Example, adjust based on actual mobile hero width */
        height: 432px; /* Maintain aspect ratio */
    }
    .page-blog__article-image {
        width: 100%; /* Take full width of card */
        height: auto;
    }
}