:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --page-bg: #B71C1C;
    --text-main: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red: #7A0E0E;
    --dark-text: #333333; /* For light backgrounds */
    --light-text: #ffffff; /* For dark backgrounds */
}

.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Main text color for the page */
    background-color: var(--page-bg); /* Page background from custom palette */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-red); /* A slightly different red for hero background */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for visual appeal */
}

.page-blog__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin-top: 20px; /* Space below image */
}

.page-blog__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--gold-color); /* Gold color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* CTA Buttons */
.page-blog__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-blog__cta-button--primary {
    background: var(--button-gradient);
    color: var(--light-text); /* White text as per instruction */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-button--secondary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-left: 15px; /* Spacing for multiple buttons */
}

.page-blog__cta-button--secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* General Sections */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-blog__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main);
}

/* Latest News Section */
.page-blog__latest-news-section {
    padding: 60px 0;
    background-color: var(--deep-red); /* Darker background for contrast */
}

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

.page-blog__news-card {
    background-color: var(--card-bg); /* Card background from custom palette */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main); /* Text on card */
}

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

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

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

.page-blog__news-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__news-title a:hover {
    color: var(--glow-color);
}

.page-blog__news-excerpt {
    font-size: 0.95em;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-blog__news-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 15px;
}

.page-blog__read-more {
    color: var(--border-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-blog__button-container {
    text-align: center;
    margin-top: 20px;
}

/* Guides and Strategies Section */
.page-blog__guides-strategies-section {
    padding: 60px 0;
    background-color: var(--page-bg);
}

.page-blog__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.page-blog__content-block {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-blog__content-subtitle {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__content-block p {
    margin-bottom: 15px;
    font-size: 1em;
}

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

/* Live Casino Section */
.page-blog__live-casino-section {
    padding: 60px 0;
    background-color: var(--deep-red);
}

.page-blog__live-casino-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Responsible Gaming Section */
.page-blog__responsible-gaming-section {
    padding: 60px 0;
    background-color: var(--page-bg);
}

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

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--deep-red);
}

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* For animation */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold-color);
    background-color: var(--deep-red); /* Darker background for summary */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-blog__faq-qtext {
    flex-grow: 1;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--border-color);
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-blog__faq-item summary {
    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-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-main);
    background-color: var(--card-bg);
}

/* Bottom CTA Section */
.page-blog__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

.page-blog__cta-bottom-section .page-blog__container {
    background-color: var(--primary-color); /* Use primary brand color for this section */
    border-radius: 10px;
    padding: 40px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-bottom-section .page-blog__section-title {
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-blog__cta-bottom-section .page-blog__section-description {
    color: var(--light-text);
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(2em, 6vw, 3em);
    }
    .page-blog__section-title {
        font-size: 2em;
    }
}

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

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

    .page-blog__hero-content {
        padding: 15px;
        margin-top: 15px;
    }

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

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

    .page-blog__cta-button {
        padding: 10px 20px;
        font-size: 0.95em;
        margin-left: 0;
        width: 100%;
        display: block;
        margin-bottom: 15px;
    }
    .page-blog__cta-button:last-child {
        margin-bottom: 0;
    }
    .page-blog__button-container {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

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

    .page-blog__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-blog__news-grid,
    .page-blog__content-grid,
    .page-blog__live-casino-content,
    .page-blog__security-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__news-image {
        height: 200px;
    }

    .page-blog__news-content,
    .page-blog__content-block,
    .page-blog__faq-question,
    .page-blog__faq-answer {
        padding: 15px 20px;
    }

    .page-blog__faq-question {
        font-size: 1.1em;
    }

    .page-blog__cta-bottom-section .page-blog__container {
        padding: 30px 15px;
    }

    /* Mobile image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__news-card,
    .page-blog__content-block,
    .page-blog__cta-bottom-section .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure hero image container does not add extra padding */
    .page-blog__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-blog__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Video responsiveness (though no video in this page, still good to have the rule) */
    .page-blog video,
    .page-blog__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-blog__video-section {
      padding-top: 10px !important;
    }
    
    .page-blog__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

/* Specific contrast fixes if needed */
.page-blog__dark-bg {
  background-color: var(--primary-color); /* Example usage for a dark section */
  color: var(--light-text);
}
.page-blog__text-main {
  color: var(--text-main);
}