/* style/blog-zbet88-latest-news.css */

/* Base styles for the page content wrapper */
.page-blog-zbet88-latest-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color, #ffffff); /* Assuming shared.css defines --secondary-color as light */
}

/* Hero Section */
.page-blog-zbet88-latest-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Stacks image above content */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #f5f5f5; /* Light background for hero section */
}

.page-blog-zbet88-latest-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px; /* Space between image and content */
}

.page-blog-zbet88-latest-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog-zbet88-latest-news__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog-zbet88-latest-news__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    color: #017439; /* Brand color for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-blog-zbet88-latest-news__hero-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-blog-zbet88-latest-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

.page-blog-zbet88-latest-news__btn-primary,
.page-blog-zbet88-latest-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensures buttons don't overflow */
    white-space: normal; /* Allows text to wrap */
    word-wrap: break-word; /* Allows text to break words */
}

.page-blog-zbet88-latest-news__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-blog-zbet88-latest-news__btn-primary:hover {
    background-color: #005f2c; /* Darker shade on hover */
    border-color: #005f2c;
}

.page-blog-zbet88-latest-news__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-blog-zbet88-latest-news__btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Posts Section */
.page-blog-zbet88-latest-news__posts-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.page-blog-zbet88-latest-news__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-blog-zbet88-latest-news__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.page-blog-zbet88-latest-news__posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog-zbet88-latest-news__post-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog-zbet88-latest-news__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog-zbet88-latest-news__post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog-zbet88-latest-news__post-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be overridden by aspect-ratio on mobile if needed */
    object-fit: cover;
    display: block;
}

.page-blog-zbet88-latest-news__post-content {
    padding: 25px;
    flex-grow: 1; /* Ensures content area takes available space */
    display: flex;
    flex-direction: column;
}

.page-blog-zbet88-latest-news__post-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.page-blog-zbet88-latest-news__post-meta {
    font-size: 0.9em;
    color: #888888;
    margin-bottom: 15px;
}

.page-blog-zbet88-latest-news__post-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes read more to bottom */
}

.page-blog-zbet88-latest-news__read-more {
    display: inline-block;
    color: #017439;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #017439;
    padding-bottom: 3px;
    transition: border-color 0.3s ease;
}

.page-blog-zbet88-latest-news__read-more:hover {
    border-color: #005f2c;
}

.page-blog-zbet88-latest-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* CTA Section */
.page-blog-zbet88-latest-news__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-blog-zbet88-latest-news__dark-bg {
    background-color: #017439; /* Brand color as dark background */
    color: #ffffff; /* White text for contrast */
}

.page-blog-zbet88-latest-news__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: inherit; /* Inherits white from parent */
}

.page-blog-zbet88-latest-news__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherits white from parent */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog-zbet88-latest-news__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-blog-zbet88-latest-news__section-title,
    .page-blog-zbet88-latest-news__cta-title {
        font-size: 2em;
    }

    .page-blog-zbet88-latest-news__post-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-blog-zbet88-latest-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-blog-zbet88-latest-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-blog-zbet88-latest-news__btn-primary,
    .page-blog-zbet88-latest-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px;
        font-size: 1.1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons if flex-direction is column */
    }

    .page-blog-zbet88-latest-news__posts-section,
    .page-blog-zbet88-latest-news__cta-section {
        padding: 40px 15px;
    }

    .page-blog-zbet88-latest-news__section-title,
    .page-blog-zbet88-latest-news__cta-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog-zbet88-latest-news__post-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }
    
    .page-blog-zbet88-latest-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}