/* style/blog.css */
/* Core styles from shared.css will handle body padding-top */

.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds, adjusted for contrast */
    background-color: #f5f5f5; /* A light background for contrast */
}

/* Specific background and text colors based on palette */
.page-blog__hero-section,
.page-blog__cta-final,
.page-blog__guides-strategies,
.page-blog__security-responsible-gaming {
    background: #B71C1C; /* Background */
    color: #FFF5E1; /* Text Main */
}

.page-blog__section-title,
.page-blog__main-title {
    color: #FFF5E1; /* Main text color for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__section-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #FFF5E1; /* Text Main */
}

.page-blog__highlight {
    color: #F4D34D; /* Gold color for highlights */
    font-weight: bold;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding: 10px 20px 60px 20px; /* Small top padding, larger bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-blog__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin-bottom: 20px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.page-blog__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary:hover {
    background: #7A0E0E; /* Deep Red */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Sections */
.page-blog__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Latest Posts */
.page-blog__latest-posts {
    background-color: #f5f5f5; /* Light background for article cards */
    color: #333333;
}

.page-blog__latest-posts .page-blog__section-title,
.page-blog__latest-posts .page-blog__section-description {
    color: #333333; /* Dark text for light background */
}

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

.page-blog__post-card {
    background: #D32F2F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #FFF5E1; /* Text Main for card content */
}

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

.page-blog__post-image {
    width: 100%;
    height: 250px; /* 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.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-title a {
    color: #F4D34D; /* Gold for link titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #FFCC66; /* Glow on hover */
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: rgba(255, 245, 225, 0.7); /* Lighter Text Main */
    margin-bottom: 15px;
}

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

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

.page-blog__read-more:hover {
    color: #FFCC66; /* Glow on hover */
    text-decoration: underline;
}

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

/* Guides and Strategies */
.page-blog__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__feature-item {
    background: #D32F2F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding-bottom: 25px; /* Add padding at the bottom */
    text-align: center;
    color: #FFF5E1; /* Text Main */
}

.page-blog__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-blog__feature-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    padding: 0 20px;
    color: #F4D34D; /* Gold */
}

.page-blog__feature-text {
    font-size: 1em;
    padding: 0 20px;
}

.page-blog__cta-area {
    text-align: center;
    margin-top: 50px;
}

/* Casino Tips */
.page-blog__casino-tips {
    background-color: #f5f5f5; /* Light background */
    color: #333333;
}

.page-blog__casino-tips .page-blog__section-title,
.page-blog__casino-tips .page-blog__section-description {
    color: #333333; /* Dark text for light background */
}

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

.page-blog__game-card {
    background: #D32F2F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF5E1; /* Text Main */
}

.page-blog__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-blog__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-blog__game-title {
    font-size: 1.3em;
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
}

.page-blog__game-title a {
    color: #F4D34D; /* Gold for link titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__game-title a:hover {
    color: #FFCC66; /* Glow on hover */
}

.page-blog__game-text {
    font-size: 1em;
    padding: 0 20px 20px 20px;
}

/* Security and Responsible Gaming */
.page-blog__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__info-item {
    background: #D32F2F; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    color: #FFF5E1; /* Text Main */
}

.page-blog__info-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #F4D34D; /* Gold */
}

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

/* FAQ Section */
.page-blog__faq {
    background-color: #f5f5f5; /* Light background */
    color: #333333;
}

.page-blog__faq .page-blog__section-title {
    color: #333333; /* Dark text for light background */
}

.page-blog__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__faq-item {
    background: #D32F2F; /* Card BG */
    border: 1px solid #F2B544; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF5E1; /* Text Main */
}

.page-blog__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #F4D34D; /* Gold */
    list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFCC66; /* Glow */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or use '-' */
}

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__hero-section {
        padding: 10px 15px 40px 15px;
    }

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

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

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-blog__cta-area {
        padding: 0 15px;
    }

    .page-blog__section {
        padding: 40px 15px;
    }

    .page-blog__section-description {
        margin-bottom: 30px;
    }

    .page-blog__post-grid,
    .page-blog__feature-list,
    .page-blog__game-showcase,
    .page-blog__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__hero-image,
    .page-blog__post-image,
    .page-blog__feature-image,
    .page-blog__game-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__post-card,
    .page-blog__feature-item,
    .page-blog__game-card,
    .page-blog__info-item,
    .page-blog__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-blog__post-content,
    .page-blog__feature-item .page-blog__feature-title,
    .page-blog__feature-item .page-blog__feature-text,
    .page-blog__game-title,
    .page-blog__game-text,
    .page-blog__info-item .page-blog__info-title,
    .page-blog__info-item .page-blog__info-text,
    .page-blog__faq-item summary,
    .page-blog__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-blog__latest-posts,
    .page-blog__casino-tips,
    .page-blog__faq {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}