/* style/blog.css */
.page-blog {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #f0f0f0; /* Light background for contrast with dark text */
    color: #333333; /* Dark text for readability */
    font-family: 'Arial', sans-serif;
    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;
    background-color: #0A2E36; /* Dark background for hero section */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
    filter: brightness(0.7); /* Slightly dim the image for text readability, but no color change */
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-blog__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #0A2E36; /* Dark text on gold button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-blog__hero-button:hover {
    background-color: #e6c200;
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #0A2E36; /* Dark color for section titles */
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

.page-blog__latest-posts-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-blog__post-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;
}

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

.page-blog__post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.page-blog__post-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    min-height: 70px; /* Ensure consistent card height */
}

.page-blog__post-title a {
    color: #0A2E36; /* Dark color for post titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    min-height: 120px; /* Ensure consistent card height */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limit to 5 lines */
    -webkit-box-orient: vertical;
}

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

.page-blog__read-more:hover {
    color: #0A2E36;
}

.page-blog__categories-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-blog__category-card {
    background-color: #0A2E36; /* Dark background for category cards */
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-card:hover {
    background-color: #1a4a58;
    transform: translateY(-5px);
}

.page-blog__category-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #FFD700; /* Gold color for category titles */
}

.page-blog__category-description {
    font-size: 0.9em;
    color: #e0e0e0;
}

.page-blog__cta-section {
    background-color: #0A2E36; /* Dark background for CTA section */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

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

.page-blog__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-blog__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #0A2E36; /* Dark text on gold button */
    padding: 18px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-blog__cta-button:hover {
    background-color: #e6c200;
}

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

.page-blog__text-content {
    font-size: 1em;
    margin-bottom: 20px;
    color: #333333;
}

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

@media (max-width: 768px) {
    .page-blog {
        padding-top: var(--header-offset, 80px);
    }
    .page-blog__hero-content {
        padding: 15px;
        width: 90%;
    }
    .page-blog__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-blog__posts-grid, .page-blog__categories-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-image {
        height: 200px;
    }
    .page-blog__post-title {
        font-size: 1.3em;
        min-height: auto;
    }
    .page-blog__post-excerpt {
        font-size: 0.9em;
        min-height: auto;
        -webkit-line-clamp: 4; /* Adjust lines for mobile */
    }
    .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;
    }
    /* Ensure content images don't overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__post-card img,
    .page-blog__post-card .page-blog__post-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__category-title {
        font-size: 1.5em;
    }
}