/* style/blog.css */
/* Body padding-top is handled by shared.css: body { padding-top: var(--header-offset); } */
/* This page should not re-apply --header-offset to its top-most section. */

.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
}

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

.page-blog__dark-bg {
    background-color: #0A0A0A;
    color: #FFF6D6;
}

.page-blog__light-bg {
    background-color: #111111; /* Card BG */
    color: #FFF6D6;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 2.5em); /* Responsive font size for H1 */
    font-weight: bold;
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
    line-height: 1.2;
}

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

/* Section Titles and Descriptions */
.page-blog__section-title {
    font-size: 2.2em;
    color: #FFD36B; /* Glow */
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__section-description {
    font-size: 1.05em;
    color: #FFF6D6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* CTA Button Styles */
.page-blog__cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-blog__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

/* Latest Posts Section */
.page-blog__latest-posts {
    padding: 60px 0;
}

.page-blog__post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__post-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #FFF6D6;
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, will be responsive */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #FFD36B; /* Glow */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__post-date {
    font-size: 0.85em;
    color: #FFD36B;
    opacity: 0.7;
}

.page-blog__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Categories Section */
.page-blog__categories {
    padding: 60px 0;
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-blog__category-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #FFF6D6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-blog__category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size - will be scaled down by width/height in HTML */
    min-height: 200px; /* Ensure minimum size - will be scaled down by width/height in HTML */
}

.page-blog__category-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #FFD36B; /* Glow */
}

/* Join Us Section */
.page-blog__join-us {
    padding: 80px 0;
    text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em);
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__hero-section,
    .page-blog__latest-posts,
    .page-blog__categories,
    .page-blog__join-us {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__hero-section {
        padding-top: 10px !important;
    }

    .page-blog__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-blog__section-title {
        font-size: 1.6em;
    }

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

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

    .page-blog__post-image,
    .page-blog__category-icon,
    .page-blog__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even when scaled down */
        min-height: 200px !important; /* Enforce min size even when scaled down */
    }

    .page-blog__post-card,
    .page-blog__category-card,
    .page-blog__hero-image-wrapper,
    .page-blog__cta-button,
    .page-blog__cta-button--large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-blog__cta-button,
    .page-blog__cta-button--large {
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure all containing elements for images/buttons/videos are responsive */
    .page-blog__hero-section,
    .page-blog__latest-posts,
    .page-blog__categories,
    .page-blog__join-us,
    .page-blog__post-grid,
    .page-blog__category-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
    .page-blog__main-title {
        font-size: clamp(1.2em, 7vw, 1.8em);
    }
    .page-blog__section-title {
        font-size: 1.4em;
    }
    .page-blog__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-blog__cta-button--large {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__category-grid {
        grid-template-columns: 1fr;
    }
}