/* style/blog.css */
/* BEM naming convention: page-blog__element-name */

/* Base styles for the blog page content */
.page-blog {
    background-color: #0A0A0A; /* Custom background color */
    color: #FFF6D6; /* Text Main color for contrast with dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-blog__section {
    padding: 60px 0;
}

.page-blog__section-title {
    font-size: 36px;
    color: #F2C14E; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__card {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF6D6; /* Text Main color for contrast */
}

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

.page-blog__card-title {
    font-size: 22px;
    color: #F2C14E; /* Primary color for card titles */
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__card-title a {
    color: #F2C14E; /* Primary color for card title links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
    color: #FFD36B; /* Auxiliary color on hover */
}

.page-blog p {
    color: #FFF6D6; /* Text Main color */
    margin-bottom: 15px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast on bright button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-blog__cta-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4); /* Glow color for shadow */
}

/* HERO Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    overflow: hidden; /* Ensure no overflow */
}

.page-blog__hero-container {
    position: relative;
    max-width: 1200px;
    width: 100%; /* Ensure it takes full width within max-width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-blog__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-blog__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255, 211, 107, 0.6); /* Glow effect */
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-blog__main-title {
    color: #F2C14E; /* Primary color for H1 */
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    /* No fixed font-size for H1, relying on clamp if needed, but prefer flexible */
}

.page-blog__hero-description {
    font-size: 18px;
    color: #FFF6D6; /* Text Main color */
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Intro Section */
.page-blog__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-blog__intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 211, 107, 0.4);
}

/* Categories Section */
.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Latest Articles Section */
.page-blog__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__article-card {
    display: flex;
    flex-direction: column;
}

.page-blog__article-image {
    margin-bottom: 20px;
}

.page-blog__article-image img {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

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

.page-blog__article-title {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-blog__article-title a {
    color: #F2C14E;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-blog__article-meta {
    font-size: 14px;
    color: #FFD36B; /* Auxiliary color for meta info */
    margin-bottom: 15px;
}

.page-blog__article-summary {
    font-size: 16px;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow summary to take available space */
}

.page-blog__read-more {
    color: #FFD36B;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start; /* Align to the start of the flex container */
}

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

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

.page-blog__view-all-button {
    min-width: 200px;
}

/* Why Read Section */
.page-blog__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-blog__benefit-item .page-blog__card-title {
    color: #FFD36B;
}

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

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #3A2A12; /* Border color */
    overflow: hidden;
    background: #111111; /* Card BG color */
}

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;
    color: #F2C14E; /* Primary color for question text */
    font-weight: bold;
}

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: rgba(242, 193, 78, 0.1); /* Light hover effect with primary color */
}

.page-blog__faq-qtext {
    flex: 1;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    color: #F2C14E; /* Primary color for question text */
}

.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFD36B; /* Auxiliary color for toggle icon */
    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: #0A0A0A; /* Background color for answer */
    border-radius: 0 0 5px 5px;
    color: #FFF6D6; /* Text Main color for answer content */
}

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

.page-blog__faq-answer a {
    color: #FFD36B; /* Auxiliary color for links in answers */
    text-decoration: underline;
}

.page-blog__faq-answer a:hover {
    color: #F2C14E;
}


/* CTA Bottom Section */
.page-blog__cta-bottom-section .page-blog__card {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(242, 193, 78, 0.1)); /* Mix card BG with a hint of primary */
    border: 1px solid #3A2A12;
}

.page-blog__cta-bottom-section .page-blog__section-title {
    color: #F2C14E;
    margin-bottom: 20px;
}

.page-blog__cta-bottom-section p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__section-title {
        font-size: 32px;
    }
    .page-blog__card-title {
        font-size: 20px;
    }
    .page-blog__article-title {
        font-size: 18px;
    }
    .page-blog__article-image img {
        
    }
    .page-blog__hero-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: 10px !important; /* Important for mobile override */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__hero-image img {
        border-radius: 4px;
    }
    .page-blog__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-blog__main-title {
        font-size: 32px;
    }
    .page-blog__intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-blog__intro-image {
        order: -1; /* Move image above text on mobile */
    }
    .page-blog__categories-grid,
    .page-blog__articles-grid,
    .page-blog__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__article-image img {
        
    }
    .page-blog__card {
        padding: 20px;
    }
    .page-blog__faq-qtext {
        font-size: 16px;
    }
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }

    /* All images must be responsive */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 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-button,
    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .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;
    }
}