.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Main text color for dark body background */
    background-color: transparent; /* body background is handled by shared.css */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px; /* Small padding-top, larger padding-bottom */
    box-sizing: border-box;
    overflow: hidden; /* Ensure video doesn't overflow */
}

.page-blog__hero-video-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 * 100) */
    height: 0;
    margin-bottom: 40px; /* Space between video and content */
}

.page-blog__hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 50ch; /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
}

.page-blog__hero-description {
    font-size: 1.15rem;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 70ch; /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F2FFF6;
    text-align: center;
    margin-bottom: 20px;
}

.page-blog__section-description {
    font-size: 1.1rem;
    color: #A7D9B8;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button Styling */
.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap; /* Prevent text wrapping by default */
}

.page-blog__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

.page-blog__cta-button--secondary:hover {
    background: #2AD16F;
    color: #F2FFF6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green from custom palette, slightly darker than card 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-color: #11271B; /* Card B G */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    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.4);
}

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

.page-blog__post-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid #2E7A4E; /* Border color */
}

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

.page-blog__post-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F2FFF6;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-excerpt {
    font-size: 0.95rem;
    color: #A7D9B8;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-blog__post-date {
    font-size: 0.85rem;
    color: #2AD16F;
    align-self: flex-end; /* Push date to bottom right */
}

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

/* Guides Section */
.page-blog__guides-section {
    padding: 80px 0;
    background-color: #08160F; /* Background color */
}

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

.page-blog__guide-item {
    background-color: #11271B; /* Card B G */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #F2FFF6;
    margin-bottom: 15px;
}

.page-blog__guide-text {
    font-size: 0.95rem;
    color: #A7D9B8;
    margin-bottom: 20px;
}

.page-blog__guide-link {
    color: #2AD16F;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.page-blog__guide-link:hover {
    color: #57E38D; /* Glow */
}

.page-blog__guide-link span {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.page-blog__guide-link:hover span {
    transform: translateX(5px);
}

/* Promotions CTA Section */
.page-blog__promotions-cta {
    padding: 80px 0;
    background-color: #22C768; /* Auxiliary color */
    color: #000000; /* Dark text for light background */
}

.page-blog__promotions-cta .page-blog__section-title,
.page-blog__promotions-cta .page-blog__section-description {
    color: #000000; /* Ensure dark text on light background */
}

.page-blog__promotions-cta .page-blog__cta-button {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    color: #F2FFF6;
}

.page-blog__promotions-cta .page-blog__cta-button:hover {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__faq-item {
    background-color: #11271B; /* Card B G */
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #2AD16F;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg);
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8;
}

.page-blog__faq-answer p {
    margin: 0;
}

.page-blog__faq-answer a {
    color: #2AD16F;
    text-decoration: underline;
}

/* Responsible Gaming Section */
.page-blog__responsible-gaming-section {
    padding: 80px 0;
    background-color: #22C768; /* Auxiliary color */
    color: #000000; /* Dark text for light background */
}

.page-blog__responsible-gaming-section .page-blog__section-title,
.page-blog__responsible-gaming-section .page-blog__section-description {
    color: #000000; /* Ensure dark text on light background */
}

.page-blog__responsible-gaming-section .page-blog__cta-button {
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
}

.page-blog__responsible-gaming-section .page-blog__cta-button:hover {
    background: #000000;
    color: #F2FFF6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-blog__section-title {
        font-size: 2rem;
    }
    .page-blog__post-thumbnail {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 10px 0 40px;
    }
    .page-blog__hero-content {
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        max-width: 100% !important;
    }
    .page-blog__hero-description {
        font-size: 1rem;
        max-width: 100% !important;
    }
    .page-blog__section-title {
        font-size: 1.8rem;
    }
    .page-blog__section-description {
        font-size: 0.95rem;
    }
    .page-blog__latest-posts-section,
    .page-blog__guides-section,
    .page-blog__promotions-cta,
    .page-blog__faq-section,
    .page-blog__responsible-gaming-section {
        padding: 60px 0;
    }
    .page-blog__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-blog img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-blog__post-thumbnail {
        height: auto !important; /* Allow height to adjust naturally */
        min-height: 200px; /* Ensure minimum size */
    }
    .page-blog__post-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr;
    }

    /* Video responsiveness */
    .page-blog video,
    .page-blog__hero-video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-blog__hero-video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      padding-left: 15px;
      padding-right: 15px;
      padding-bottom: 0 !important; /* Remove aspect ratio padding on mobile */
      height: auto !important; /* Allow height to be determined by content */
    }
    .page-blog__hero-video {
        position: static !important; /* Make it static on mobile */
        height: auto !important; /* Allow height to adjust */
    }

    /* Buttons responsiveness */
    .page-blog__cta-button,
    .page-blog a[class*="button"],
    .page-blog a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-blog__view-all-button-wrapper {
        padding: 0 15px;
    }
    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-blog__cta-buttons {
      display: flex;
      flex-direction: column;
    }

    /* FAQ responsiveness */
    .page-blog__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-blog__section-title {
        font-size: 1.5rem;
    }
    .page-blog__faq-item summary {
        font-size: 1rem;
    }
}