.page-blog {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background-color: #000000; /* Fallback background for hero */
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7; /* Slightly dim the image for text readability */
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

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

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

.page-blog__hero-button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #FCBC45;
}

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

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

.page-blog__hero-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-blog__introduction-section, .page-blog__latest-posts-section, .page-blog__category-section, .page-blog__cta-section, .page-blog__about-ll777-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
}

.page-blog__introduction-section {
    background-color: #f8f8f8;
}

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

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

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

/* Latest Posts Grid */
.page-blog__posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__post-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    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 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__post-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-blog__post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

.page-blog__read-more-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

/* Categories Grid */
.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-blog__category-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__category-title {
    font-size: 1.4em;
    color: #000000;
    margin: 15px 15px 5px 15px;
    font-weight: bold;
}

.page-blog__category-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 15px 15px 15px;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.page-blog__cta-section .page-blog__section-title {
    color: #FFFFFF;
    font-size: 3em;
}

.page-blog__cta-section .page-blog__section-subtitle {
    color: #f0f0f0;
    font-size: 1.4em;
    margin-bottom: 50px;
}

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

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

.page-blog__cta-button--primary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-blog__cta-button--primary:hover {
    background-color: #e0a53a;
    transform: translateY(-3px);
    border-color: #e0a53a;
}

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

.page-blog__cta-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-section .page-blog__section-title {
        font-size: 2.5em;
    }
    .page-blog__posts-grid, .page-blog__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px);
    }
    .page-blog__hero-content {
        padding: 30px 20px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__section-subtitle {
        font-size: 1em;
    }
    .page-blog__text-content {
        font-size: 1em;
    }
    .page-blog__post-image, .page-blog__category-image {
        height: 200px;
    }
    .page-blog__post-card, .page-blog__category-card {
        margin-bottom: 20px;
    }
    .page-blog__cta-section .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-section .page-blog__section-subtitle {
        font-size: 1.2em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-blog__cta-button {
        width: 80%;
        max-width: 300px;
    }

    /* Ensure images in content area don't overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__post-image,
    .page-blog__category-image {
        max-width: 100%;
        height: auto; /* Override fixed height for responsiveness */
        min-height: 200px; /* Ensure minimum height */
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__hero-content {
        padding: 20px 15px;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__posts-grid, .page-blog__categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure content images are not smaller than 200px */
.page-blog__post-image, .page-blog__category-image {
    min-width: 200px;
    min-height: 200px;
}

/* Global image rules for content area: must be >= 200px */
.page-blog img:not(.page-blog__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* No filter properties for images */
.page-blog img {
    filter: none; /* Ensure no filters are applied */
}