/* blog.css */

.page-blog {
    background-color: #0D0E12; /* Background */
    color: #FFF3E6; /* Text Main */
    font-family: Arial, sans-serif;
}

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

.page-blog__hero-section {
    display: flex;
    flex-direction: column; /* Stacks image wrapper and content vertically */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body padding-top for overall offset */
    background-color: #0D0E12; /* Background color */
    padding-bottom: 40px; /* Space below content */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image container */
    margin-bottom: 20px; /* Space between image and content */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
    border-radius: 8px; /* Optional: slightly rounded corners */
}

.page-blog__hero-content {
    max-width: 800px;
    padding: 0 20px;
    /* No position absolute or z-index to avoid overlap */
}

.page-blog__hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF3E6; /* Text Main */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #FFF3E6; /* Text Main */
    opacity: 0.9;
}

.page-blog__hero-cta {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
    min-width: 200px;
    max-width: 100%; /* For mobile */
    box-sizing: border-box;
}

.page-blog__hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-blog__articles-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.page-blog__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: bold;
    color: #FF8C1A; /* Primary color */
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.page-blog__article-card {
    background-color: #17191F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
}

.page-blog__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 140, 26, 0.3);
}

.page-blog__card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.page-blog__card-content {
    padding: 20px;
}

.page-blog__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FF8C1A; /* Primary color */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__card-meta {
    font-size: 0.9rem;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-blog__card-excerpt {
    font-size: 1rem;
    color: #FFF3E6; /* Text Main */
    line-height: 1.5;
    opacity: 0.8;
}

.page-blog__button-wrapper {
    text-align: center;
}

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-blog__view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-blog__cta-section {
    background-color: #17191F; /* Card BG */
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #A84F0C; /* Border */
}

.page-blog__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: bold;
    color: #FF8C1A; /* Primary color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    color: #FFF3E6; /* Text Main */
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.5);
    min-width: 250px;
    max-width: 100%;
    box-sizing: border-box;
}

.page-blog__cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 165, 58, 0.7);
}


/* Responsive styles */
@media (min-width: 850px) {
    .page-blog__hero-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }
    .page-blog__hero-image-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 849px) {
    .page-blog__hero-image {
        max-height: 400px; /* Adjust height for smaller screens */
        width: 100%;
        height: auto;
        display: block;
    }

    .page-blog__hero-content {
        padding: 20px;
    }

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

@media (max-width: 768px) {
    /* Ensure all images are responsive and don't overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-blog__hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .page-blog__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

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

    .page-blog__hero-cta {
        width: 100%;
        padding: 10px 20px;
    }

    .page-blog__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .page-blog__article-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .page-blog__article-card {
        margin: 0 10px;
    }

    .page-blog__card-title {
        font-size: 1.2rem;
    }

    .page-blog__card-meta,
    .page-blog__card-excerpt {
        font-size: 0.85rem;
    }

    .page-blog__view-all-button {
        width: 100%;
        margin: 0 10px;
        box-sizing: border-box;
    }

    .page-blog__cta-section {
        padding: 50px 10px;
    }

    .page-blog__cta-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

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

    .page-blog__cta-button {
        width: 100%;
        padding: 12px 20px;
    }
}