/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color */
    background-color: #0A0A0A; /* Main background color */
}

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

.page-blog__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFD36B; /* Highlight color for titles */
    text-align: center;
    margin-bottom: 20px;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    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%);
    color: #ffffff;
    border: none;
}

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

.page-blog__btn-secondary {
    background: transparent;
    color: #FFD36B;
    border: 2px solid #FFD36B;
}

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

/* Card styles */
.page-blog__card {
    background: #111111;
    border: 1px solid #3A2A12;
    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;
    color: #FFF6D6;
}

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

.page-blog__card img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* HERO Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    background-color: #0A0A0A;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-blog__hero-image {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

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

.page-blog__hero-content {
    text-align: center;
    padding: 0 20px 50px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-blog__main-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    color: #FFD36B;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: clamp(16px, 1.8vw, 20px);
    color: #FFF6D6;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

/* Latest Posts Section */
.page-blog__latest-posts {
    padding: 60px 0;
    background-color: #0A0A0A;
}

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

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

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

.page-blog__post-card .page-blog__card-title {
    font-size: 22px;
    font-weight: 600;
    color: #FFD36B;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-card .page-blog__card-meta {
    font-size: 14px;
    color: #DDA11D;
    margin-bottom: 15px;
}

.page-blog__post-card .page-blog__card-excerpt {
    font-size: 16px;
    color: #FFF6D6;
    margin-bottom: 20px;
}

.page-blog__post-card .page-blog__read-more {
    color: #FFD36B;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

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

/* Categories Section */
.page-blog__categories {
    padding: 60px 0;
    background-color: #0A0A0A;
}

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

.page-blog__category-card {
    text-align: center;
    text-decoration: none;
    display: block;
}

.page-blog__category-card img {
    border-radius: 8px;
    margin-bottom: 15px;
     /* Fixed height for consistent look */
    width: 100%;
    object-fit: cover;
}

.page-blog__category-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFD36B;
    margin: 0;
}

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 0;
    background: #F2C14E; /* Use brand color for dark section */
    text-align: center;
    color: #111111;
}

.page-blog__cta-section .page-blog__section-title {
    color: #111111;
    margin-bottom: 15px;
}

.page-blog__cta-section .page-blog__section-description {
    color: #111111;
    margin-bottom: 40px;
}

.page-blog__cta-section .page-blog__btn-primary {
    background: #111111;
    color: #FFD36B;
    border: 2px solid #111111;
}

.page-blog__cta-section .page-blog__btn-primary:hover {
    background: #3A2A12;
    color: #FFD36B;
}

.page-blog__cta-section .page-blog__btn-secondary {
    background: transparent;
    color: #111111;
    border: 2px solid #111111;
}

.page-blog__cta-section .page-blog__btn-secondary:hover {
    background: #111111;
    color: #FFD36B;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111;
  color: #FFF6D6;
}
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: #1a1a1a;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B;
  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: #1a1a1a;
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}
details.page-blog__faq-item .page-blog__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* Responsive styles for desktop/tablet/mobile */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(30px, 5vw, 48px);
    }
    .page-blog__hero-description {
        font-size: clamp(15px, 2vw, 18px);
    }
    .page-blog__section-title {
        font-size: 32px;
    }
    .page-blog__post-grid,
    .page-blog__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-blog__post-card .page-blog__card-title {
        font-size: 20px;
    }
    .page-blog__category-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-blog__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px; /* Small top padding, assuming body handles header offset */
    }
    .page-blog__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__hero-content {
        padding: 0 15px 30px;
    }
    .page-blog__main-title {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 10px;
    }
    .page-blog__hero-description {
        font-size: clamp(14px, 4vw, 16px);
        margin-bottom: 20px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px;
        font-size: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Latest Posts Section */
    .page-blog__latest-posts {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-blog__section-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__post-card .page-blog__card-title {
        font-size: 18px;
    }
    .page-blog__post-card .page-blog__card-excerpt {
        font-size: 15px;
    }

    /* Categories Section */
    .page-blog__categories {
        padding: 40px 0;
    }
    .page-blog__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__category-card img {
        
    }
    .page-blog__category-title {
        font-size: 17px;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 50px 0;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 40px 0 60px;
    }
    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;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }
    details.page-blog__faq-item .page-blog__faq-answer p {
        font-size: 15px;
    }

    /* General image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-blog__post-thumbnail {
        object-fit: cover !important;
    }
    .page-blog__post-card,
    .page-blog__category-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}