.page-blog {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
}

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

.page-blog__hero-section {
    padding-top: 10px; /* Fixed header spacing */
    padding-bottom: 40px;
    text-align: center;
}

.page-blog__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #FFF6D6;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__description,
.page-blog__section-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #FFF6D6;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-blog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-blog__btn-secondary {
    background-color: #111111; /* Card BG */
    color: #F2C14E;
    border: 2px solid #3A2A12; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary:hover {
    background-color: #1a1a1a;
    border-color: #FFD36B; /* Glow */
    transform: translateY(-2px);
}

.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__cta-bottom-section {
    padding: 60px 0;
}

.page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #F2C14E;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.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: #111111; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3A2A12; /* Border */
}

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

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

.page-blog__article-figure {
    margin: 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.page-blog__article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.page-blog__article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px); /* Adjust based on image height */
}

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

.page-blog__article-meta {
    font-size: 0.9rem;
    color: #FFD36B;
    margin-bottom: 15px;
    opacity: 0.8;
}

.page-blog__article-excerpt {
    font-size: 1rem;
    color: #FFF6D6;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    font-size: 1rem;
    font-weight: 600;
    color: #FFD36B;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-right: 15px;
}

.page-blog__read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.3s ease;
}

.page-blog__article-card:hover .page-blog__read-more::after {
    right: -5px;
}

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

.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.page-blog__category-card {
    background-color: #111111; /* Card BG */
    color: #FFF6D6;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #3A2A12; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__category-card:hover {
    background-color: #F2C14E;
    color: #0A0A0A;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.3);
    border-color: #FFD36B;
}

/* Image responsiveness for all images */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-blog__container {
        padding: 0 15px;
    }

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

    .page-blog__main-title {
        font-size: 2rem;
    }

    .page-blog__description,
    .page-blog__section-intro {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-blog__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog__latest-articles-section,
    .page-blog__categories-section,
    .page-blog__cta-bottom-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-blog__articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-blog__article-title {
        font-size: 1.2rem;
    }

    .page-blog__article-excerpt {
        font-size: 0.95rem;
    }

    .page-blog__category-card {
        font-size: 1rem;
        padding: 15px;
    }

    /* Universal image responsiveness for content area */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__section, 
    .page-blog__card, 
    .page-blog__container,
    .page-blog__article-card,
    .page-blog__category-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */
        /* padding-right: 15px; */
    }

    .page-blog__view-all-button-container {
        padding: 0 15px;
    }

    .page-blog__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .page-blog__categories-grid {
        grid-template-columns: 1fr;
    }
}