.page-blog {
    font-family: Arial, sans-serif;
    color: #FFFFFF; /* White text on dark background */
    background-color: #100224; /* Dark background, as per WOW88 style, or #FFFFFF if background is white */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for first section */
}

/* Ensure no double padding-top from body */
.page-blog__hero-section {
    padding-top: 0; /* Handled by main.page-blog padding-top */
}


/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column; /* Forced top-image-bottom-text */
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #26A9E0; /* Primary color as background for hero section */
    color: #FFFFFF;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

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

.page-blog__hero-content {
    max-width: 900px;
    padding: 0 15px;
}

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

.page-blog__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-blog__cta-button {
    display: inline-block;
    background: linear-gradient(to right, #EA7C07, #FF5E3A); /* Login color gradient for CTA */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 40px; /* Ensure button is not too small */
    line-height: 1; /* Center text vertically */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Latest Posts Section */
.page-blog__latest-posts-section,
.page-blog__categories-section,
.page-blog__newsletter-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
    background-color: #1a1a2e; /* Slightly lighter dark background for sections */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #26A9E0; /* Primary color for section titles */
    /* text-gradient if desired, but not explicitly requested for H2 */
}

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

.page-blog__post-card {
    background-color: #2a2a4a; /* Card background color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* Ensure link covers entire card */
}

.page-blog__post-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px; /* Ensure image is not too small */
}

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

.page-blog__post-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #CCCCCC;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.page-blog__view-all-wrapper {
    text-align: center;
}

.page-blog__view-all-button {
    display: inline-block;
    background-color: #26A9E0; /* Primary color for view all button */
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 150px;
    min-height: 35px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-blog__view-all-button:hover {
    background-color: #1a8cc7;
}

/* Categories Section */
.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjusted for smaller cards */
    gap: 20px;
    justify-content: center;
}

.page-blog__category-card {
    background-color: #2a2a4a;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    color: #FFFFFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Ensure category cards are not too small */
}

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

.page-blog__category-thumbnail {
    width: 100%;
    max-width: 150px; /* Smaller thumbnail for categories */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    min-width: 150px; /* Ensure image is not too small */
    min-height: 112px; /* Maintain aspect ratio for 400x300, 150*300/400 = 112.5 */
}

.page-blog__category-name {
    font-size: 1.1em;
    font-weight: bold;
}

/* Newsletter Section */
.page-blog__newsletter-section {
    text-align: center;
    background-color: #26A9E0; /* Primary color for newsletter background */
    color: #FFFFFF;
    padding: 50px 20px;
    border-radius: 10px;
}

.page-blog__newsletter-description {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.page-blog__newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-blog__newsletter-input {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    color: #333333; /* Dark text for input */
    background-color: #FFFFFF; /* White background for input */
    min-height: 40px; /* Ensure input is not too small */
}

.page-blog__newsletter-input::placeholder {
    color: #888888;
}

.page-blog__newsletter-button {
    background: linear-gradient(to right, #EA7C07, #FF5E3A); /* Login color gradient for button */
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 150px; /* Ensure button is not too small */
    min-height: 40px; /* Ensure button is not too small */
}

.page-blog__newsletter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 15px;
    }

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

    .page-blog__intro-text {
        font-size: 1em;
    }

    .page-blog__latest-posts-section,
    .page-blog__categories-section,
    .page-blog__newsletter-section {
        padding: 30px 15px;
    }

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

    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-blog__post-thumbnail {
        height: 180px; /* Slightly smaller height on mobile */
    }

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

    .page-blog__category-thumbnail {
        max-width: 120px;
        min-width: 120px;
        min-height: 90px; /* 120*300/400 = 90 */
    }

    .page-blog__newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__newsletter-input {
        max-width: 90%;
    }

    /* Mobile image overflow prevention */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }

    .page-blog__cta-button {
        width: 100%;
        max-width: 250px;
    }

    .page-blog__newsletter-input,
    .page-blog__newsletter-button {
        width: 100%;
        max-width: 280px;
    }
}