/* style/blog.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-color-dark: #0D0E12;
    --card-bg-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
    --btn-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

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

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

.page-blog__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-blog__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-blog__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-blog__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-blog__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-color-dark);
    transform: translateY(-3px);
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 15px 15px;
    opacity: 0.8;
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    background: rgba(13, 14, 18, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 140, 26, 0.5);
}

.page-blog__hero-title {
    font-size: clamp(32px, 5vw, 54px);
    color: var(--text-main-color);
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* Intro Section */
.page-blog__intro-section {
    padding: 60px 0;
    background: var(--card-bg-color);
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__intro-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

/* Topics Section */
.page-blog__topics-section {
    padding: 60px 0;
}

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

.page-blog__topic-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-blog__topic-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-blog__topic-card p {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Featured Articles Section */
.page-blog__featured-articles {
    padding: 60px 0;
    background: var(--card-bg-color);
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

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

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

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

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

.page-blog__article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.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(--primary-color);
}

.page-blog__article-date {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 15px;
}

.page-blog__article-excerpt {
    font-size: 15px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-blog__read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: var(--secondary-color);
}

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

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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);
  font-weight: 600;
  font-size: 18px;
}

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: rgba(255, 140, 26, 0.1);
}

.page-blog__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: var(--bg-color-dark);
  border-radius: 0 0 10px 10px;
}

details.page-blog__faq-item .page-blog__faq-answer p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.7;
}

.page-blog__faq-image {
    margin-top: 50px;
}

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--card-bg-color);
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-description {
    font-size: 18px;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        max-width: 700px;
        width: 85%;
    }
    .page-blog__hero-title {
        font-size: clamp(30px, 4.5vw, 48px);
    }
    .page-blog__hero-description {
        font-size: clamp(15px, 1.8vw, 18px);
    }
    .page-blog__article-image {
        height: 200px;
    }
    .page-blog__faq-list {
        max-width: 700px;
    }
}

@media (max-width: 849px) {
    .page-blog__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        position: static;
        height: auto;
    }
    .page-blog__hero-image-wrapper {
        padding-bottom: 0;
        height: auto;
    }
    .page-blog__hero-content {
        position: static;
        transform: none;
        padding: 20px 0;
        width: auto;
        max-width: 100%;
        background: none;
        box-shadow: none;
    }
    .page-blog__hero-section {
        text-align: center;
    }
}

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

    .page-blog__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }

    .page-blog__hero-section {
        padding-top: 10px !important;
        margin-bottom: 30px;
    }

    .page-blog__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 0;
    }

    .page-blog__hero-title {
        font-size: clamp(28px, 7vw, 42px);
        line-height: 1.3;
    }

    .page-blog__hero-description {
        font-size: clamp(15px, 3.5vw, 18px);
        margin-bottom: 25px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        font-size: 16px;
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-blog__intro-section,
    .page-blog__topics-section,
    .page-blog__featured-articles,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 40px 0;
        margin-top: 20px;
        border-radius: 0;
    }

    .page-blog__topic-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__article-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-blog__intro-content p,
    .page-blog__topic-card p,
    .page-blog__article-excerpt,
    .page-blog__cta-description,
    details.page-blog__faq-item .page-blog__faq-answer p {
        font-size: 15px;
    }

    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    .page-blog__faq-qtext {
        font-size: 16px;
    }
    .page-blog__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }

    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }

    .page-blog__content-image, .page-blog__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__faq-section { overflow-x: hidden; }
    .page-blog__intro-section, .page-blog__topics-section, .page-blog__featured-articles, .page-blog__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-blog__topic-card, .page-blog__article-card {
        margin-left: 15px;
        margin-right: 15px;
    }
}