/* Base styles for the blog page */
.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Text Main */
    background: #140C0C; /* Background */
}

.page-blog__section-spacing {
    padding: 60px 0;
}

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

.page-blog__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F3C54D; /* Gold */
}

.page-blog__section-title--light {
    color: #FFF1E8; /* Text Main */
}

.page-blog__dark-section {
    background: #2A1212; /* Card BG */
    color: #FFF1E8;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__hero-cta-button,
.page-blog__read-more-btn,
.page-blog__view-all-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary,
.page-blog__hero-cta-button,
.page-blog__view-all-btn {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C; /* Dark text for contrast */
    border: none;
}

.page-blog__btn-primary:hover,
.page-blog__hero-cta-button:hover,
.page-blog__view-all-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #F3C54D; /* Gold */
    border: 1px solid #F3C54D; /* Gold */
}

.page-blog__btn-secondary:hover {
    background: #F3C54D;
    color: #140C0C; /* Dark text for contrast */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding-top: 10px; /* Small top padding */
    overflow: hidden;
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-blog__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(20, 12, 12, 0.7); /* Background with transparency */
    border-radius: 10px;
}

.page-blog__hero-title {
    font-size: clamp(28px, 4vw, 48px);
    color: #FFF1E8;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-blog__hero-description {
    font-size: 18px;
    color: #FFF1E8;
    margin-bottom: 30px;
}

/* About Section */
.page-blog__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-blog__about-text {
    flex: 1;
}

.page-blog__about-text p {
    margin-bottom: 20px;
    font-size: 17px;
}

.page-blog__about-image {
    flex: 0 0 400px;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Latest Articles Section */
.page-blog__articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__article-card {
    background: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    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(0, 0, 0, 0.3);
}

.page-blog__article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

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

.page-blog__article-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-blog__article-title a {
    color: #FFF1E8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #F3C54D; /* Gold */
}

.page-blog__article-excerpt {
    font-size: 15px;
    color: rgba(255, 241, 232, 0.8);
    margin-bottom: 20px;
}

.page-blog__read-more-btn {
    font-size: 14px;
    padding: 8px 15px;
}

.page-blog__view-all-wrapper {
    text-align: center;
}

/* Guides Section */
.page-blog__guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-blog__guide-item {
    background: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__guide-title {
    font-size: 22px;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog__guide-item p {
    font-size: 16px;
    margin-bottom: 25px;
    color: rgba(255, 241, 232, 0.9);
}

/* Promotions Section */
.page-blog__promotions-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-blog__promotions-text {
    flex: 1;
}

.page-blog__promotions-text p {
    font-size: 17px;
    margin-bottom: 25px;
    color: rgba(255, 241, 232, 0.9);
}

.page-blog__promotions-image {
    flex: 0 0 500px;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__promotions-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Why Choose Section */
.page-blog__why-choose-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-blog__why-choose-item {
    background: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__why-choose-heading {
    font-size: 22px;
    color: #F3C54D; /* Gold */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-blog__why-choose-item p {
    font-size: 16px;
    color: rgba(255, 241, 232, 0.9);
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
}
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;
}
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: #3a1e1e; /* Slightly lighter Card BG on hover */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  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: #1e1010; /* Darker than Card BG */
  border-radius: 0 0 5px 5px;
  color: rgba(255, 241, 232, 0.8);
}

/* CTA Bottom Section */
.page-blog__cta-content {
    text-align: center;
    background: #2A1212; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #6A1E1E; /* Border */
}

.page-blog__cta-title {
    font-size: 32px;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
}

.page-blog__cta-description {
    font-size: 18px;
    color: rgba(255, 241, 232, 0.9);
    margin-bottom: 30px;
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-blog__articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-blog__guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-blog__why-choose-list {
        grid-template-columns: 1fr;
    }
    .page-blog__about-image,
    .page-blog__promotions-image {
        flex: 0 0 350px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .page-blog__section-spacing {
        padding: 40px 0;
    }

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

    /* HERO Section */
    .page-blog__hero-section {
        min-height: 400px;
        padding-top: 10px; /* Specific 10px for mobile */
    }
    .page-blog__hero-image img {
        object-fit: contain !important; /* HERO mobile: contain */
        aspect-ratio: unset !important;
    }
    .page-blog__hero-content {
        padding: 15px;
        max-width: 95%;
    }
    .page-blog__hero-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 10px;
    }
    .page-blog__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-blog__hero-cta-button {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* About Section */
    .page-blog__about-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-blog__about-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .page-blog__about-text p {
        font-size: 16px;
    }
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Latest Articles Section */
    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Mobile 1 column */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-blog__article-card img {
        
    }
    .page-blog__card-content {
        padding: 15px;
    }
    .page-blog__article-title {
        font-size: 18px;
    }
    .page-blog__article-excerpt {
        font-size: 14px;
    }
    .page-blog__read-more-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog__view-all-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog__view-all-wrapper {
        padding: 0 15px;
    }

    /* Guides Section */
    .page-blog__guides-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__guide-item {
        padding: 25px;
    }
    .page-blog__guide-title {
        font-size: 20px;
    }
    .page-blog__guide-item p {
        font-size: 15px;
    }
    .page-blog__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Promotions Section */
    .page-blog__promotions-content {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .page-blog__promotions-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .page-blog__promotions-text p {
        font-size: 16px;
    }

    /* Why Choose Section */
    .page-blog__why-choose-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__why-choose-item {
        padding: 25px;
    }
    .page-blog__why-choose-heading {
        font-size: 20px;
    }
    .page-blog__why-choose-item p {
        font-size: 15px;
    }

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

    /* CTA Bottom Section */
    .page-blog__cta-content {
        padding: 30px;
    }
    .page-blog__cta-title {
        font-size: 26px;
    }
    .page-blog__cta-description {
        font-size: 16px;
    }

    /* Generic image and container responsiveness for mobile */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__container,
    .page-blog__about-image,
    .page-blog__promotions-image,
    .page-blog__articles-grid,
    .page-blog__guides-grid,
    .page-blog__why-choose-list,
    .page-blog__cta-content,
    .page-blog__article-card,
    .page-blog__guide-item,
    .page-blog__why-choose-item,
    details.page-blog__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__container { padding: 0 15px; }
    .page-blog__about-image, .page-blog__promotions-image { padding: 0; } /* Remove extra padding for images within their own wrappers */

    /* Button group specific for mobile */
    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}