/* General styles for .page-blog */
.page-blog {
    font-family: 'Arial', sans-serif;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
    line-height: 1.6;
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    padding-bottom: 60px;
    background-color: #0D0E12; /* Ensure dark background */
}

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

.page-blog__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.1rem;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
    max-width: 600px;
}

.page-blog__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-blog__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* For mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 6px 15px rgba(255, 140, 26, 0.6);
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: #FFA53A; /* Auxiliary color */
    border: 2px solid #FFA53A; /* Border color */
}

.page-blog__btn-secondary:hover {
    background-color: #FFA53A; /* Auxiliary color */
    color: #0D0E12; /* Dark text for contrast */
}

/* Articles Section */
.page-blog__articles-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.page-blog__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFF3E6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
}

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

.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-color: #17191F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF3E6; /* Text Main */
}

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

.page-blog__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.page-blog__article-media {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-media img {
    transform: scale(1.05);
}

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

.page-blog__article-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__article-excerpt {
    font-size: 0.95rem;
    color: #CCC;
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #FFA53A; /* Auxiliary color */
}

.page-blog__read-more .page-blog__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__read-more .page-blog__arrow {
    transform: translateX(5px);
}

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

/* About Blog Section */
.page-blog__about-blog-section {
    padding: 60px 0;
    background-color: #17191F; /* Card BG */
}

.page-blog__about-blog-section .page-blog__section-title {
    color: #FFF3E6;
    margin-bottom: 30px;
}

.page-blog__text-block {
    font-size: 1.05rem;
    color: #FFF3E6;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-blog__highlight {
    color: #FFA53A; /* Auxiliary color */
    font-weight: 700;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

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

.page-blog__faq-item {
    background-color: #17191F; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF3E6;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFF3E6;
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

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

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

.page-blog__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #FFA53A; /* Auxiliary color */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

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

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

/* CTA Bottom Section */
.page-blog__cta-bottom-section {
    padding: 80px 0;
    background-color: #FF8C1A; /* Main color */
    text-align: center;
}

.page-blog__cta-bottom-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: #0D0E12; /* Dark text for contrast */
}

.page-blog__cta-bottom-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #0D0E12; /* Dark text for contrast */
}

.page-blog__cta-bottom-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #0D0E12; /* Dark text for contrast */
}

.page-blog__cta-bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Override button colors for CTA bottom section for contrast */
.page-blog__cta-bottom-buttons .page-blog__btn-primary {
    background: #0D0E12; /* Dark background */
    color: #FFA53A; /* Auxiliary color text */
    box-shadow: none;
}

.page-blog__cta-bottom-buttons .page-blog__btn-primary:hover {
    background: #17191F; /* Slightly lighter dark background */
    color: #FFF3E6;
}

.page-blog__cta-bottom-buttons .page-blog__btn-secondary {
    background-color: #0D0E12; /* Dark background */
    color: #FFA53A; /* Auxiliary color text */
    border-color: #FFA53A;
}

.page-blog__cta-bottom-buttons .page-blog__btn-secondary:hover {
    background-color: #17191F; /* Slightly lighter dark background */
    color: #FFF3E6;
    border-color: #FFF3E6;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-blog__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-blog__hero-content,
    .page-blog__hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-blog__hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-blog__content-area {
        padding: 0 15px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px !important;
    }
    .page-blog__main-title {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }
    .page-blog__hero-description {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }
    .page-blog__hero-cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .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 !important;
        padding-right: 15px !important;
    }

    /* Articles Section */
    .page-blog__articles-section {
        padding: 40px 0 !important;
    }
    .page-blog__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }
    .page-blog__section-description {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-blog__article-media {
        height: 180px !important;
    }
    .page-blog__article-title {
        font-size: 1.2rem !important;
    }
    .page-blog__article-excerpt {
        font-size: 0.9rem !important;
    }

    /* About Blog Section */
    .page-blog__about-blog-section {
        padding: 40px 0 !important;
    }
    .page-blog__text-block {
        font-size: 1rem !important;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 40px 0 !important;
    }
    .page-blog__faq-question {
        font-size: 1rem !important;
        padding: 15px 20px !important;
    }
    .page-blog__faq-toggle {
        font-size: 1.5rem !important;
    }
    .page-blog__faq-answer {
        font-size: 0.95rem !important;
        padding: 0 20px 15px !important;
    }

    /* CTA Bottom Section */
    .page-blog__cta-bottom-section {
        padding: 60px 0 !important;
    }
    .page-blog__cta-bottom-title {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    .page-blog__cta-bottom-description {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    .page-blog__cta-bottom-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Universal image responsive rule for content area */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Button containers mobile adaptation */
    .page-blog__hero-cta-buttons,
    .page-blog__cta-bottom-buttons,
    .page-blog__view-all-button-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important; /* Ensure buttons wrap if they are horizontal */
        gap: 10px; /* Adjust gap for mobile buttons */
    }
}