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

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

.page-blog__hero-section {
    position: relative;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 80px 0;
    background-color: #0A2342;
}

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

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

.page-blog__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-blog__hero-cta-button {
    display: inline-block;
    background-color: #DC143C; /* Deep Red for CTA */
    color: #ffffff;
    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-cta-button:hover {
    background-color: #c00c30;
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #0A2342;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-blog__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 60px;
}

.page-blog__latest-articles,
.page-blog__categories-section,
.page-blog__featured-guides,
.page-blog__cta-section,
.page-blog__about-us-section {
    padding: 60px 0;
}

.page-blog__latest-articles {
    background-color: #f9f9f9;
}

.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-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block; /* Ensure no extra space below image */
}

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0A2342;
}

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

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

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

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

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

.page-blog__categories-section {
    background-color: #eeeeee;
}

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

.page-blog__category-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 20px;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__category-image {
    width: 100%;
    height: 120px; /* Consistent height for category images */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.page-blog__category-title {
    font-size: 1.3em;
    color: #0A2342;
    margin: 0;
}

.page-blog__featured-guides {
    background-color: #f9f9f9;
}

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

.page-blog__guide-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.page-blog__guide-title {
    font-size: 1.4em;
    color: #0A2342;
    margin-top: 0;
    margin-bottom: 15px;
}

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

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

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

.page-blog__cta-section {
    background: linear-gradient(135deg, #0A2342, #1a3a60);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

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

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

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

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__cta-button--primary {
    background-color: #FFD700;
    color: #0A2342;
}

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

.page-blog__cta-button--secondary {
    background-color: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.page-blog__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #0A2342;
}

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

.page-blog__about-text {
    font-size: 1.05em;
    color: #444444;
    text-align: justify;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__articles-grid,
    .page-blog__categories-grid,
    .page-blog__guides-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 60px 20px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__section-subtitle {
        margin-bottom: 40px;
    }
    .page-blog__articles-grid,
    .page-blog__categories-grid,
    .page-blog__guides-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__cta-button {
        width: 100%;
    }
    /* Ensure images do not overflow on mobile */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__article-image,
    .page-blog__category-image {
        height: auto; /* Allow height to adjust naturally */
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__article-title {
        font-size: 1.3em;
    }
    .page-blog__category-title {
        font-size: 1.1em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
}