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

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding as per rules */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Enforce min size for images */
    min-height: 200px;
}

.page-blog__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: 0;
    background-color: #17191F; /* Card BG color for separation */
    position: relative;
    z-index: 1;
    border-radius: 8px;
    border: 1px solid #A84F0C;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem); /* Using clamp for responsive H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #FFA53A 0%, #FF8C1A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding: 0 10px;
}

.page-blog__subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF3E6;
    padding: 0 10px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 132, 0, 0.4);
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 132, 0, 0.6);
}

/* Articles Section */
.page-blog__articles-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #0D0E12;
}

.page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #FFB04D 0%, #FFA53A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

.page-blog__article-card {
    background-color: #17191F;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 132, 0, 0.3);
}

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

.page-blog__article-thumbnail {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
}

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

.page-blog__article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFF3E6;
}

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

.page-blog__article-date {
    font-size: 0.85rem;
    color: #FFB04D;
    display: block;
}

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 132, 0, 0.4);
}

.page-blog__view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 132, 0, 0.6);
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #0D0E12;
}

.page-blog__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-blog__faq-item {
    background-color: #17191F;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #A84F0C;
}

.page-blog__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFB04D;
    margin-bottom: 10px;
}

.page-blog__faq-answer {
    font-size: 1rem;
    color: #FFF3E6;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-blog__hero-content {
        padding: 20px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-blog__subtitle {
        font-size: 1rem;
    }
    .page-blog__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog__articles-section, .page-blog__faq-section {
        padding: 40px 15px;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Stack articles on small screens */
    }
    .page-blog__article-thumbnail {
        height: 200px; /* Adjust height for smaller screens */
    }
    /* Ensure images in content area are responsive */
    .page-blog__articles-grid img,
    .page-blog__faq-item img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__hero-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-blog__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-blog__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-blog__article-title {
        font-size: 1.1rem;
    }
    .page-blog__article-excerpt {
        font-size: 0.9rem;
    }
    .page-blog__faq-question {
        font-size: 1.1rem;
    }
    .page-blog__faq-answer {
        font-size: 0.95rem;
    }
    .page-blog__hero-image-wrapper {
        max-height: 400px; /* Further restrict hero image height on very small screens */
    }
    .page-blog__cta-button, .page-blog__view-all-button {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}