.page-blog {
    background-color: #0A0A0A; /* Custom background color */
    color: #FFF6D6; /* Custom text color */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, as body handles header offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px;
    background: rgba(17, 17, 17, 0.9); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #3A2A12; /* Custom border color */
}

.page-blog__main-title {
    font-size: 3.2em;
    color: #F2C14E; /* Main color */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__description {
    font-size: 1.1em;
    color: #FFF6D6; /* Custom text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

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

.page-blog__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
    transform: translateY(-3px);
}

/* Section Titles */
.page-blog__section-title {
    font-size: 2.5em;
    color: #FFD36B; /* Glow color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color */
}

.page-blog__blog-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    max-width: 100%;
}

.page-blog__blog-slider-track {
    display: flex;
    gap: 20px;
    padding: 10px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-blog__blog-slider-track::-webkit-scrollbar {
    display: none;
}

.page-blog__post-item {
    flex: 0 0 auto;
    width: calc(33.333% - 14px);
    scroll-snap-align: start;
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3A2A12; /* Custom border color */
}

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

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

.page-blog__post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

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

.page-blog__post-meta {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-blog__read-more {
    color: #FFD36B; /* Glow color */
    font-weight: 600;
    text-decoration: underline;
}

.page-blog__blog-slider-prev,
.page-blog__blog-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(242, 193, 78, 0.8); /* Main color with transparency */
    color: #111111;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.page-blog__blog-slider-prev:hover,
.page-blog__blog-slider-next:hover {
    background-color: #FFD36B; /* Glow color */
}

.page-blog__blog-slider-prev {
    left: 0;
}

.page-blog__blog-slider-next {
    right: 0;
}

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

/* Featured Categories Section */
.page-blog__featured-categories-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG */
}

.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.page-blog__category-card {
    background-color: #0A0A0A; /* Background color */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3A2A12; /* Custom border color */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-blog__category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.page-blog__category-title {
    font-size: 1.3em;
    color: #FFD36B; /* Glow color */
    margin: 20px 15px;
    font-weight: 600;
}

/* Why Choose Section */
.page-blog__why-choose-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color */
}

.page-blog__benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.page-blog__benefit-item {
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Custom border color */
    transition: transform 0.3s ease;
}

.page-blog__benefit-item:hover {
    transform: translateY(-5px);
}

.page-blog__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-blog__benefit-title {
    font-size: 1.2em;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-blog__benefit-description {
    font-size: 0.95em;
    color: #FFF6D6; /* Text Main */
}

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

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #3A2A12; /* Custom border color */
    overflow: hidden;
    background: #0A0A0A; /* Background 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: #FFF6D6; /* Text Main */
}
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: #0A0A0A; /* Slight hover effect on dark background */
}
.page-blog__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #F2C14E; /* Main color */
}
.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFD36B; /* Glow color */
    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 */
    border-radius: 0 0 5px 5px;
    color: #FFF6D6; /* Text Main */
}

/* Call to Action Section */
.page-blog__cta-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color */
    text-align: center;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__container {
        padding: 15px;
    }

    .page-blog__main-title {
        font-size: 2.8em;
    }

    .page-blog__description {
        font-size: 1em;
    }

    .page-blog__section-title {
        font-size: 2em;
    }

    .page-blog__blog-slider-prev,
    .page-blog__blog-slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.8em;
    }

    .page-blog__post-item {
        width: calc(50% - 15px);
    }

    .page-blog__categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-blog__benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Global image and container responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-blog__hero-section,
    .page-blog__latest-articles-section,
    .page-blog__featured-categories-section,
    .page-blog__why-choose-section,
    .page-blog__faq-section,
    .page-blog__cta-section,
    .page-blog__container,
    .page-blog__post-item,
    .page-blog__category-card,
    .page-blog__benefit-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px;
        margin-bottom: 30px;
    }

    .page-blog__hero-image-wrapper {
        max-height: 400px;
    }

    .page-blog__hero-image {
        object-fit: cover;
    }

    .page-blog__hero-content {
        padding: 30px 15px;
        margin-top: -80px;
    }

    .page-blog__main-title {
        font-size: 2.2em;
        line-height: 1.3;
    }

    .page-blog__description {
        font-size: 0.95em;
    }

    .page-blog__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Section Titles */
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Latest Articles Section */
    .page-blog__blog-slider-track {
        gap: 15px;
        padding: 5px;
    }

    .page-blog__post-item {
        width: calc(100% - 10px);
        max-width: 320px;
        margin: 0 auto;
    }

    .page-blog__blog-slider-prev,
    .page-blog__blog-slider-next {
        width: 35px;
        height: 35px;
        font-size: 1.5em;
    }
    .page-blog__blog-slider-prev {
        left: 5px;
    }
    .page-blog__blog-slider-next {
        right: 5px;
    }

    .page-blog__post-image {
        height: 180px;
    }

    .page-blog__post-title {
        font-size: 1.2em;
    }

    .page-blog__post-excerpt {
        font-size: 0.9em;
    }

    /* Featured Categories Section */
    .page-blog__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__category-image {
        height: 150px;
    }

    /* Why Choose Section */
    .page-blog__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__benefit-icon {
        width: 80px;
        height: 80px;
    }
    .page-blog__benefit-title {
        font-size: 1.1em;
    }
    .page-blog__benefit-description {
        font-size: 0.9em;
    }

    /* FAQ Section */
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }
    .page-blog__faq-qtext {
        font-size: 1em;
    }
    .page-blog__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }
}