/* General Styling */
.page-blog__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #E53935; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__section-intro {
    font-size: 18px;
    color: #333333; /* Main text color */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    overflow: hidden;
}

.page-blog__hero-content {
    background: #ffffff; /* Card BG */
    color: #333333; /* Text Main */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__hero-title {
    font-size: clamp(28px, 3.5vw, 48px); /* Responsive H1 font size */
    font-weight: 800;
    color: #E53935;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 80%; /* To control length for H1 title */
    margin-left: auto;
    margin-right: auto;
}

.page-blog__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333333;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.page-blog__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-blog__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.2);
}

/* Latest Articles */
.page-blog__latest-articles {
    background: #F5F7FA; /* Background color */
}

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

.page-blog__article-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__article-card a {
    text-decoration: none;
    color: inherit;
}

.page-blog__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-blog__article-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__article-title a:hover {
    color: #E53935;
}

.page-blog__article-meta {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

.page-blog__article-excerpt {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    color: #E53935;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

.page-blog__read-more span {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.page-blog__read-more:hover span {
    transform: translateX(3px);
}

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

/* CTA Section */
.page-blog__cta-section {
    background: #E53935; /* Main brand color */
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-blog__cta-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-blog__cta-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text main color */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure text main color */
}
.page-blog__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive Styling */
@media (max-width: 1023px) {
    .page-blog__hero-section {
        padding-top: 0; /* No specific top padding for blog page hero, rely on body */
    }
    .page-blog__hero-content {
        margin-top: -50px; /* Overlap slightly with image */
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 768px) {
    .page-blog__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__section-title {
        font-size: 28px;
    }

    .page-blog__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-blog__hero-title {
        font-size: 32px;
        max-width: 90%;
    }

    .page-blog__hero-description {
        font-size: 16px;
    }

    /* Articles Grid */
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__article-image {
        height: 180px;
    }

    .page-blog__article-title {
        font-size: 18px;
    }

    .page-blog__article-excerpt {
        font-size: 15px;
    }

    /* CTA Section */
    .page-blog__cta-title {
        font-size: 28px;
    }

    .page-blog__cta-description {
        font-size: 16px;
    }

    .page-blog__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;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-blog__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__article-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section */
    details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
    .page-blog__faq-qtext { font-size: 15px; }
    details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
}

/* Ensure no filter on images */
.page-blog img {
    filter: none !important;
}

/* Color contrast fixes if needed, though designed to be compliant */
.page-blog__dark-bg {
  color: #ffffff; /* Deep Red background, white text */
  background: #E53935;
}

.page-blog__light-bg {
  color: #333333; /* White/Light Gray background, dark text */
  background: #ffffff;
}

.page-blog__medium-bg {
  color: #000000; /* Orange-Red background, black text */
  background: #FF5A4F;
}

.page-blog__text-block {
  color: #333333; /* Ensure in most backgrounds readable */
  background: #ffffff;
}

.page-blog p,
.page-blog li {
  color: #333333;
}

/* The following CSS blocks are specific to the homepage (index.html) and are NOT included here as this is a blog page. */
/* @media (max-width: 1023px) { ... } (for homepage hero/game trial reset) */
/* @media (min-width: 1024px) { ... } (for homepage PC three-column layout) */
/* @media (max-width: 768px) { ... } (for homepage promo/hot-games) */
/* .page-blog__game-trial-overlay, .page-blog__game-trial-start, etc. are for homepage game trial and omitted. */
/* .page-blog__reward-modal, .page-blog__reward-modal-close are for homepage game trial and omitted. */