/* style/blog.css */
.page-blog {
    color: #333333; /* Dark text for default light body background */
    line-height: 1.6;
}

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

.page-blog__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim image for text readability */
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
    z-index: 1;
}

.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.7);
}

.page-blog__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.1em;
    min-width: 200px;
    text-align: center;
}

.page-blog__button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #8B0000; /* Deep red text for contrast */
    border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
    background-color: #e6c200;
    color: #660000;
}

.page-blog__button--secondary {
    background-color: #8B0000; /* Deep red secondary button */
    color: #FFD700; /* Gold text for contrast */
    border: 2px solid #8B0000;
}

.page-blog__button--secondary:hover {
    background-color: #660000;
    color: #ffe033;
}

.page-blog__intro-section,
.page-blog__featured-articles,
.page-blog__why-choose-us,
.page-blog__call-to-action-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-blog__intro-section {
    background-color: #ffffff;
}

.page-blog__section-heading {
    font-size: 2.5em;
    color: #8B0000; /* Deep red for section headings */
    text-align: center;
    margin-bottom: 40px;
}

.page-blog__intro-heading {
    font-size: 2.5em;
    color: #8B0000; /* Deep red for intro heading */
    text-align: center;
    margin-bottom: 30px;
}

.page-blog__intro-text,
.page-blog__why-choose-text {
    font-size: 1.1em;
    color: #555555;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.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: 8px;
    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 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #8B0000; /* Deep red 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-meta {
    font-size: 0.9em;
    color: #777777;
    margin-bottom: 15px;
}

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

.page-blog__read-more-link {
    display: inline-block;
    color: #FFD700; /* Gold for read more links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-blog__read-more-link:hover {
    color: #8B0000; /* Deep red on hover */
}

.page-blog__why-choose-us {
    text-align: center;
    background-color: #f0f0f0;
}

.page-blog__why-choose-us .page-blog__button--primary {
    margin-top: 30px;
}

.page-blog__call-to-action-section {
    background-color: #8B0000; /* Deep red background for CTA */
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-blog__call-to-action-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-blog__cta-image {
    max-width: 45%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-blog__cta-text-content {
    max-width: 50%;
    text-align: left;
}

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

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

.page-blog__call-to-action-section .page-blog__button--primary {
    background-color: #FFD700;
    color: #8B0000;
    border-color: #FFD700;
}

.page-blog__call-to-action-section .page-blog__button--primary:hover {
    background-color: #e6c200;
    color: #660000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 3em;
    }
    .page-blog__hero-description {
        font-size: 1.2em;
    }
    .page-blog__cta-heading {
        font-size: 2.2em;
    }
    .page-blog__cta-image,
    .page-blog__cta-text-content {
        max-width: 100%;
        text-align: center;
    }
    .page-blog__cta-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: var(--header-offset, 120px);
        padding: 40px 15px;
    }
    .page-blog__hero-content {
        padding: 15px;
    }
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        padding: 12px 25px;
        font-size: 1em;
        min-width: unset;
        width: 100%;
    }
    .page-blog__section-heading,
    .page-blog__intro-heading {
        font-size: 2em;
    }
    .page-blog__intro-section,
    .page-blog__featured-articles,
    .page-blog__why-choose-us,
    .page-blog__call-to-action-section {
        padding: 40px 0;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__cta-heading {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    /* Mobile image constraint for content area */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__article-image {
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__section-heading,
    .page-blog__intro-heading {
        font-size: 1.8em;
    }
    .page-blog__article-title {
        font-size: 1.3em;
    }
    .page-blog__cta-heading {
        font-size: 1.8em;
    }
    .page-blog__cta-image {
        max-width: 100%;
    }
}