/* style/blog.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --bg-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-blog {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2em, 3.2vw, 3.2em); /* Using clamp for H1 */
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-blog__description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

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

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

.page-blog__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(255, 211, 107, 0.2);
}

.page-blog__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

/* Articles Section */
.page-blog__articles-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

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

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

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

.page-blog__article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

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

.page-blog__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-blog__article-title a {
    color: var(--text-main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: var(--secondary-color);
}

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

.page-blog__article-excerpt {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-blog__read-more-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

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

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}
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; /* Slightly lighter dark for hover */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #1a1a1a; /* Slightly lighter dark for answer background */
  border-radius: 0 0 10px 10px;
  color: #ccc;
}

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

.page-blog__container,
.page-blog__hero-section,
.page-blog__articles-section,
.page-blog__faq-section,
.page-blog__cta-buttons {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        max-width: 768px;
    }

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

    .page-blog__articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-blog__article-image {
        height: 200px;
    }

    .page-blog__article-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__main-title {
        font-size: 2em !important;
        margin-bottom: 15px;
    }

    .page-blog__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

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

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Articles Section */
    .page-blog__articles-section {
        padding: 40px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-blog__articles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .page-blog__article-card {
        margin: 0;
    }

    .page-blog__article-image {
        height: 180px !important; /* Adjusted for mobile */
    }

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

    .page-blog__article-title {
        font-size: 1.2em !important;
    }

    .page-blog__article-meta,
    .page-blog__article-excerpt {
        font-size: 0.85em;
    }

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

    .page-blog__view-all-wrapper {
        margin-top: 30px;
        padding: 0;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 40px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__faq-list {
        margin: 0;
    }
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }
    .page-blog__faq-qtext {
        font-size: 1em !important;
    }
    .page-blog__faq-toggle {
        font-size: 24px !important;
        width: 24px;
        margin-left: 10px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }

    /* Universal image and container responsive styles */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__container,
    .page-blog__hero-section,
    .page-blog__articles-section,
    .page-blog__faq-section,
    .page-blog__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}