.page-blog {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main from custom palette */
    background-color: #0A0A0A; /* Background from custom palette */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* HERO Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: #0A0A0A; /* Background from custom palette */
}

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

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

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

.page-blog__description {
    font-size: 1.2em;
    color: #FFF6D6;
    margin-bottom: 30px;
    max-width: 600px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For mobile */
    white-space: normal; /* For mobile button text wrap */
    word-wrap: break-word; /* For mobile button text wrap */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color from custom palette */
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
}

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

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

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

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

.page-blog__content-item {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__content-subtitle {
    font-size: 1.3em;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__content-item p {
    font-size: 0.95em;
    color: #FFF6D6;
    line-height: 1.6;
}

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

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

.page-blog__article-card {
    background: #111111; /* Card B G from custom palette */
    border: 1px solid #3A2A12; /* Border color from custom palette */
    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;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

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

.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;
    display: block;
}

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

.page-blog__article-title {
    font-size: 1.4em;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: bold;
}

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 15px;
    line-height: 1.5;
}

.page-blog__article-date {
    font-size: 0.85em;
    color: #FFD36B; /* Auxiliary color */
    display: block;
    margin-bottom: 10px;
}

.page-blog__read-more {
    display: inline-block;
    color: #FFD36B; /* Auxiliary color */
    font-weight: bold;
    text-decoration: underline;
}

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

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

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

.page-blog__faq-item {
    background: #111111; /* Card B G from custom palette */
    border: 1px solid #3A2A12; /* Border color from custom palette */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-item[open] {
    box-shadow: 0 4px 20px rgba(242, 193, 78, 0.15);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: #F2C14E; /* Main color */
    cursor: pointer;
    list-style: none; /* Hide default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFD36B; /* Auxiliary color */
    transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #FFF6D6;
}

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

/* Generic image responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-blog__hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .page-blog__hero-content {
        text-align: center;
    }
    .page-blog__cta-buttons {
        justify-content: center;
    }
    .page-blog__main-title,
    .page-blog__description {
        margin-left: auto;
        margin-right: auto;
    }
    .page-blog__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }
    .page-blog__hero-container {
        padding: 20px 15px;
        gap: 30px;
    }
    .page-blog__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 15px;
    }
    .page-blog__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog__hero-image {
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-blog__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* About Blog Section */
    .page-blog__about-blog-section {
        padding: 40px 0;
    }
    .page-blog__content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .page-blog__content-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__content-subtitle {
        font-size: 1.2em;
    }
    .page-blog__content-item p {
        font-size: 0.9em;
    }

    /* Articles Section */
    .page-blog__articles-section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-blog__section-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column for articles */
        gap: 20px;
        padding: 0 15px;
    }
    .page-blog__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__article-media {
        height: 180px;
    }
    .page-blog__article-media img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__article-title {
        font-size: 1.2em;
    }
    .page-blog__article-excerpt {
        font-size: 0.9em;
    }
    .page-blog__view-all-posts {
        margin-top: 40px;
        padding: 0 15px;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 40px 0;
    }
    .page-blog__faq-list {
        padding: 0 15px;
    }
    .page-blog__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-blog__faq-toggle {
        font-size: 1.2em;
    }
    .page-blog__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95em;
    }

    /* General image and container rules for mobile */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-blog__container,
    .page-blog__section,
    .page-blog__articles-section,
    .page-blog__faq-section,
    .page-blog__about-blog-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are handled by specific sections to avoid double padding */
    }
}