/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
    color: #FFFFFF; /* Light text for dark body background */
    background-color: #000000; /* Ensure consistency with body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #FCBC45; /* Highlight with accent color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-blog__paragraph {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.8;
    color: #E0E0E0;
}

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
    position: relative;
    overflow: hidden;
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    color: #FCBC45;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-blog__hero-description {
    font-size: 1.3em;
    color: #FFFFFF;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

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

.page-blog__hero-button--register {
    background-color: #FFFFFF; /* White button for Register */
    color: #000000;
}

.page-blog__hero-button--register:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-blog__hero-button--login {
    background-color: #FCBC45; /* Gold button for Login */
    color: #000000;
}

.page-blog__hero-button--login:hover {
    background-color: #FFFFFF;
    color: #000000;
}

.page-blog__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    display: block;
}

/* Featured Posts Grid */
.page-blog__featured-posts,
.page-blog__latest-posts,
.page-blog__categories,
.page-blog__about-blog-section,
.page-blog__why-pub777-section {
    padding: 60px 0;
}

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

.page-blog__post-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-blog__post-title {
    font-size: 1.5em;
    color: #FCBC45;
    margin: 20px;
    line-height: 1.3;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #E0E0E0;
    margin: 0 20px 20px 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-blog__read-more-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    margin: 0 20px 20px 20px;
    align-self: flex-start; /* Align button to start */
    transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
    background-color: #FFFFFF;
}

/* Latest Posts List */
.page-blog__posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.page-blog__list-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-blog__list-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.page-blog__list-image {
    width: 150px; /* Fixed width for list image */
    height: 100px; /* Fixed height for list image */
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.page-blog__list-content {
    flex-grow: 1;
}

.page-blog__list-title {
    font-size: 1.2em;
    color: #FCBC45;
    margin-bottom: 5px;
    line-height: 1.3;
}

.page-blog__list-excerpt {
    font-size: 0.9em;
    color: #E0E0E0;
    margin-bottom: 10px;
}

.page-blog__list-date {
    font-size: 0.8em;
    color: #A0A0A0;
}

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

.page-blog__view-all-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.page-blog__view-all-button:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Categories Grid */
.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__category-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #FFFFFF;
    text-align: center;
    padding-bottom: 20px; /* Space for text below image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-blog__category-image {
    width: 100%;
    height: 180px; /* Fixed height for category image */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-blog__category-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #FCBC45;
    padding: 0 15px;
}

/* Call to Action Section */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a1a; /* Dark background for CTA */
    margin-top: 60px;
}

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

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

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

.page-blog__cta-button--register {
    background-color: #FFFFFF;
    color: #000000;
}

.page-blog__cta-button--register:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-blog__cta-button--login {
    background-color: #FCBC45;
    color: #000000;
}

.page-blog__cta-button--login:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 3em;
    }

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

    .page-blog__posts-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.5em;
    }

    .page-blog__hero-description {
        font-size: 1.1em;
    }

    .page-blog__hero-buttons,
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog__hero-button,
    .page-blog__cta-button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

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

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

    .page-blog__list-link {
        flex-direction: column;
        text-align: center;
    }

    .page-blog__list-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        height: 200px; /* Adjust for better mobile display */
    }

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

    /* Ensure content area images do not overflow on mobile */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 2em;
    }

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

    .page-blog__post-title {
        font-size: 1.3em;
    }

    .page-blog__list-title {
        font-size: 1.1em;
    }

    .page-blog__hero-button,
    .page-blog__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
}