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

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

/* Hero Section */
.page-blog__hero-section {
    background-color: var(--secondary-color); /* White background */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-blog__hero-title {
    font-size: 3.2em;
    color: var(--primary-color); /* Black text */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

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

.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, transform 0.3s ease;
    cursor: pointer;
}

.page-blog__hero-button--register {
    background-color: #000000; /* Primary color as background */
    color: #FFFFFF; /* White text */
    border: 2px solid #000000;
}

.page-blog__hero-button--register:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-blog__hero-button--login {
    background-color: #FCBC45; /* Login specific color */
    color: #000000; /* Black text */
    border: 2px solid #FCBC45;
}

.page-blog__hero-button--login:hover {
    background-color: #e0a53a;
    transform: translateY(-2px);
}

/* Section Titles & Intros */
.page-blog__section-title {
    font-size: 2.5em;
    color: var(--primary-color); /* Black text */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-blog__section-intro {
    font-size: 1.1em;
    color: #666666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Articles */
.page-blog__featured-articles {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.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: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__article-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    min-height: 60px; /* Ensure consistent title height */
}

.page-blog__article-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.page-blog__article-excerpt {
    color: #666666;
    font-size: 0.95em;
    margin-bottom: 20px;
    min-height: 100px; /* Ensure consistent excerpt height */
}

.page-blog__read-more {
    display: inline-block;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Categories Overview */
.page-blog__categories-overview {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

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

.page-blog__category-card {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-card:hover {
    background-color: #e5e5e5;
    transform: translateY(-3px);
}

.page-blog__category-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-blog__category-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-blog__category-title a:hover {
    color: #FCBC45;
}

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

/* Latest Posts */
.page-blog__latest-posts {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-blog__posts-list {
    display: grid;
    gap: 40px;
}

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

.page-blog__post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
    flex: 0 0 350px; /* Fixed width for image */
}

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

.page-blog__post-details {
    flex: 1;
    padding: 25px;
}

.page-blog__post-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-blog__post-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #FCBC45;
}

.page-blog__post-meta {
    font-size: 0.85em;
    color: #999999;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    color: #555555;
    font-size: 1em;
    margin-bottom: 20px;
}

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-blog__pagination-link {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #000000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover {
    background-color: #FCBC45;
    color: #ffffff;
    border-color: #FCBC45;
}

.page-blog__pagination-link--active {
    background-color: #FCBC45;
    color: #ffffff;
    border-color: #FCBC45;
    font-weight: bold;
}

/* Call to Action Sections */
.page-blog__cta-section {
    background-color: var(--primary-color); /* Black background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.page-blog__cta-section--download {
    background-color: #333333;
}

.page-blog__cta-section--join {
    background-color: #FCBC45;
    color: var(--primary-color);
}

.page-blog__cta-section--join .page-blog__cta-title,
.page-blog__cta-section--join .page-blog__cta-description {
    color: var(--primary-color);
}

.page-blog__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 18px 35px;
    background-color: #FCBC45; /* Highlight color */
    color: var(--primary-color); /* Black text */
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent; /* For hover effect */
}

.page-blog__cta-section--join .page-blog__cta-button {
    background-color: var(--primary-color); /* Black background */
    color: #ffffff; /* White text */
}

.page-blog__cta-button:hover {
    background-color: #e0a53a;
    transform: translateY(-3px);
    border-color: #FCBC45; /* Darker border on hover */
}

.page-blog__cta-section--join .page-blog__cta-button:hover {
    background-color: #333333;
    border-color: var(--primary-color);
}

/* About Blog Section */
.page-blog__about-blog {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.page-blog__about-content p {
    font-size: 1.1em;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

.page-blog__highlight {
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__post-image {
        flex: 0 0 300px;
    }
    .page-blog__post-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
    }
    .page-blog__hero-section {
        padding: 60px 15px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__hero-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-blog__articles-grid,
    .page-blog__categories-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__article-thumbnail img {
        height: 200px;
    }
    .page-blog__article-title {
        font-size: 1.3em;
        min-height: auto;
    }
    .page-blog__article-excerpt {
        min-height: auto;
    }
    .page-blog__post-item {
        flex-direction: column;
    }
    .page-blog__post-image {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    .page-blog__post-image img {
        max-width: 100%; /* Ensures images don't overflow */
        height: auto;
    }
    .page-blog__post-details {
        padding: 20px;
    }
    .page-blog__post-title {
        font-size: 1.4em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    /* Ensure all images within .page-blog are responsive */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__post-item img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__article-card img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__hero-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-blog__article-title {
        font-size: 1.2em;
    }
    .page-blog__category-title {
        font-size: 1.2em;
    }
    .page-blog__post-title {
        font-size: 1.3em;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
    .page-blog__cta-button {
        padding: 15px 25px;
        font-size: 1.1em;
    }
    .page-blog__about-content p {
        font-size: 1em;
    }
}