/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
    background-color: #0A0A0A; /* Background from custom colors */
    color: #FFF6D6; /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px;
    background-color: #0A0A0A; /* Ensure consistent background */
    color: #FFF6D6; /* Ensure text is visible on dark background */
}

.page-blog__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 16px;
}

.page-blog__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font-size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Brand primary color for title */
}

.page-blog__subtitle {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: #FFF6D6; /* Main text color */
}

.page-blog__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-blog__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Content Area - General */
.page-blog__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 16px;
    background-color: #0A0A0A; /* Consistent dark background */
    color: #FFF6D6; /* Light text for readability */
}

.page-blog__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F2C14E;
    text-align: center;
    margin-bottom: 20px;
}

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

/* Latest Posts Section */
.page-blog__latest-posts {
    padding-top: 60px;
}

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

.page-blog__post-card {
    background-color: #111111; /* Card BG from custom colors */
    border: 1px solid #3A2A12; /* Border from custom colors */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-blog__post-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__post-content {
    padding: 20px;
    color: #FFF6D6; /* Light text on card */
}

.page-blog__post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD36B; /* Accent color for post titles */
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #F2C14E; /* Primary color for meta info */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #FFF6D6;
}

.page-blog__read-more {
    display: inline-block;
    color: #F2C14E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #FFD36B;
}

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

/* Guides and Tips Section */
.page-blog__guides-tips {
    background-color: #0A0A0A; /* Consistent dark background */
}

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

.page-blog__feature-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog__feature-image {
    width: 100%;
    height: 200px; /* Consistent height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-blog__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD36B;
}

.page-blog__feature-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #FFF6D6;
}

/* Player Stories Section */
.page-blog__player-stories {
    background-color: #0A0A0A; /* Consistent dark background */
}

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

.page-blog__story-card {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 30px;
    text-align: center;
    color: #FFF6D6;
}

.page-blog__story-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid #F2C14E;
}

.page-blog__story-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #FFF6D6;
}

.page-blog__story-author {
    font-weight: 600;
    color: #F2C14E;
}

/* FAQ Section */
.page-blog__faq-section {
    background-color: #0A0A0A; /* Consistent dark background */
}

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

.page-blog__faq-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #FFD36B; /* Accent color for questions */
    list-style: none; /* For <summary> tag */
    -webkit-tap-highlight-color: transparent; /* Prevent blue highlight on mobile */
}

.page-blog__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

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

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #F2C14E;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: "−"; /* Change toggle on open for <details> */
}

.page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF6D6;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #111111; /* Card BG for CTA section */
    padding: 80px 16px;
    text-align: center;
    border-top: 1px solid #3A2A12;
}

.page-blog__cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #FFD36B;
    margin-bottom: 20px;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    color: #FFF6D6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 300px; /* Limit individual button width */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for light button */
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Primary color for text */
    border: 2px solid #F2C14E; /* Primary color for border */
}

.page-blog__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

/* General image responsive styles (for all images not specifically styled like __icon-box-media) */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure content area containers are responsive */
.page-blog__section,
.page-blog__card,
.page-blog__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* General adjustments */
    .page-blog {
        font-size: 15px;
    }

    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 30px;
    }

    .page-blog__hero-container {
        flex-direction: column;
        gap: 20px;
        padding: 30px 15px;
    }

    .page-blog__hero-content {
        text-align: center;
        min-width: unset;
    }

    .page-blog__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-blog__subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-blog__hero-image {
        min-width: unset;
    }

    /* Content Area - General */
    .page-blog__content-area {
        padding: 40px 15px;
    }
}