:root {
    --primary-color: #FF8C1A; /* Main Orange */
    --secondary-color: #FFA53A; /* Auxiliary Orange */
    --card-bg: #17191F; /* Card Background */
    --body-bg: #0D0E12; /* Body Background */
    --text-main: #FFF3E6; /* Main Text Color */
    --border-color: #A84F0C; /* Border Color */
    --glow-color: #FFB04D; /* Glow Color */
    --deep-orange: #D96800; /* Deep Orange */
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--body-bg); /* Default background for the page content */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as per requirement */
    background-color: var(--body-bg); /* Ensure background is consistent */
}

.page-blog__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure width is 100% for flex item */
}

.page-blog__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-blog__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-blog__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive H1 */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Sections */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-blog__section-title {
    font-size: clamp(24px, 3vw, 40px);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main);
}

.page-blog__image-wrapper {
    text-align: center;
    margin: 30px 0;
}

.page-blog__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-blog__introduction-section {
    background-color: var(--body-bg); /* Use body background for main sections */
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
    background-color: var(--card-bg); /* Darker background for contrast */
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-blog__article-card {
    background-color: var(--body-bg); /* Card background darker than section */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px 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.4);
}

.page-blog__article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.page-blog__card-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: bold;
}

.page-blog__card-description {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__view-all-button:hover {
    background: var(--deep-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-blog__cta-section {
    background-color: var(--primary-color); /* Using primary color for CTA background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.page-blog__cta-section .page-blog__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0; /* Remove container padding as section already has it */
}

.page-blog__cta-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-blog__cta-content .page-blog__section-title {
    color: #ffffff;
    text-align: left;
    margin-bottom: 20px;
}

.page-blog__cta-content .page-blog__text-block {
    color: #ffffff;
    text-align: left;
    margin-bottom: 30px;
}

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

.page-blog__cta-buttons .page-blog__cta-button {
    margin-top: 0;
}

.page-blog__cta-button--secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--deep-orange);
    box-shadow: none;
}

.page-blog__cta-button--secondary:hover {
    background: #f0f0f0;
    color: var(--deep-orange);
    border-color: var(--deep-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-blog__cta-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg); /* FAQ background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
details.page-blog__faq-item:hover {
    box-shadow: 0 4px 15px 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 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    background-color: var(--card-bg);
    color: var(--secondary-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: #1f222b; /* Slightly lighter than card-bg on hover */
}
.page-blog__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--secondary-color);
}
.page-blog__faq-toggle {
    font-size: 28px; /* Larger for better visibility */
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px; /* Adjusted width */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
details.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or diamond for minus */
    color: var(--deep-orange);
    border-color: var(--deep-orange);
}

details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
    background: var(--body-bg); /* Answer background */
    border-radius: 0 0 8px 8px;
    color: var(--text-main);
    font-size: 16px;
}
details.page-blog__faq-item .page-blog__faq-answer p {
    margin: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        padding: 0 15px;
    }
    .page-blog__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-blog__cta-section .page-blog__container {
        flex-direction: column;
        text-align: center;
    }
    .page-blog__cta-content {
        text-align: center;
        max-width: 100%;
    }
    .page-blog__cta-content .page-blog__section-title,
    .page-blog__cta-content .page-blog__text-block {
        text-align: center;
    }
    .page-blog__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__hero-image img {
        border-radius: 4px;
    }
    .page-blog__main-title {
        font-size: clamp(24px, 6vw, 36px);
    }
    .page-blog__hero-description {
        font-size: clamp(15px, 3vw, 18px);
    }
    .page-blog__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        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;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__container {
        padding: 30px 15px;
    }
    .page-blog__section-title {
        font-size: clamp(20px, 5vw, 32px);
        margin-bottom: 30px;
    }
    .page-blog__text-block {
        font-size: 15px;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__article-card img {
        
    }
    .page-blog__card-title {
        font-size: 18px;
    }
    .page-blog__card-description {
        font-size: 14px;
    }
    .page-blog__view-all-button {
        padding: 10px 25px;
        font-size: 15px;
    }
    .page-blog__cta-section {
        padding: 50px 15px;
    }
    .page-blog__cta-content {
        min-width: unset;
    }
    .page-blog__cta-image {
        min-width: unset;
    }
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }
    .page-blog__faq-qtext {
        font-size: 15px;
    }
    .page-blog__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
        margin-left: 10px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* Enforce image responsiveness */
    .page-blog img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-blog__hero-section {
      padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-image img {
        border-radius: 2px;
    }
    .page-blog__main-title {
        font-size: clamp(20px, 8vw, 30px);
    }
    .page-blog__hero-description {
        font-size: clamp(14px, 4vw, 16px);
    }
    .page-blog__cta-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    .page-blog__section-title {
        font-size: clamp(18px, 6vw, 28px);
    }
    .page-blog__article-card img {
        
    }
    .page-blog__card-title {
        font-size: 16px;
    }
    .page-blog__card-description {
        font-size: 13px;
    }
    .page-blog__faq-qtext {
        font-size: 14px;
    }
    .page-blog__faq-toggle {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        font-size: 14px;
    }
}