/* style/blog-industry-news.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-general: #F5F7FA;
    --border-color: #E0E0E0;
}

.page-blog-industry-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light background */
    background-color: var(--background-general);
}

.page-blog-industry-news__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above content for mobile */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background: var(--primary-color);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-blog-industry-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Max height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-blog-industry-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop */
}

.page-blog-industry-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-blog-industry-news__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-blog-industry-news__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-blog-industry-news__section {
    padding: 60px 0;
}

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

.page-blog-industry-news__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-blog-industry-news__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-blog-industry-news__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-blog-industry-news__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-blog-industry-news__list-item {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-blog-industry-news__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog-industry-news__btn-primary,
.page-blog-industry-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-blog-industry-news__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    margin: 10px;
}

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

.page-blog-industry-news__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin: 10px;
}

.page-blog-industry-news__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-blog-industry-news__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-blog-industry-news__dark-section .page-blog-industry-news__section-title,
.page-blog-industry-news__dark-section .page-blog-industry-news__sub-title {
    color: #ffffff;
}

.page-blog-industry-news__blog-list {
    margin-top: 60px;
}

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

.page-blog-industry-news__blog-card {
    background: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog-industry-news__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog-industry-news__blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-blog-industry-news__blog-card-content {
    padding: 20px;
}

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

.page-blog-industry-news__blog-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-blog-industry-news__blog-card-title a:hover {
    text-decoration: underline;
}

.page-blog-industry-news__blog-card-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.page-blog-industry-news__blog-card-excerpt {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-blog-industry-news__blog-card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.page-blog-industry-news__blog-card-link:hover {
    text-decoration: underline;
}

.page-blog-industry-news__view-all-button-container {
    text-align: center;
    margin-top: 40px;
}

.page-blog-industry-news__faq-section {
    background-color: var(--background-general);
}

.page-blog-industry-news__faq-list {
    margin-top: 30px;
}

.page-blog-industry-news__faq-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog-industry-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
}

.page-blog-industry-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-blog-industry-news__faq-question:hover {
    background-color: #f9f9f9;
}

.page-blog-industry-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-blog-industry-news__faq-item[open] .page-blog-industry-news__faq-toggle {
    transform: rotate(45deg);
}

.page-blog-industry-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main-color);
}

.page-blog-industry-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color) 0%, #D43430 100%);
    color: #ffffff;
}

.page-blog-industry-news__cta-content {
    max-width: 800px;
}

.page-blog-industry-news__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-blog-industry-news__cta-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-blog-industry-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Responsive Styles --- */

/* @media (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-blog-industry-news__main-title {
        font-size: 2.5em;
    }

    .page-blog-industry-news__section-title {
        font-size: 2em;
    }

    .page-blog-industry-news__sub-title {
        font-size: 1.6em;
    }

    .page-blog-industry-news__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-blog-industry-news__cta-title {
        font-size: 2.2em;
    }
}

/* @media (max-width: 768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .page-blog-industry-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-blog-industry-news__hero-image-wrapper {
        max-height: 400px;
    }

    .page-blog-industry-news__hero-image {
        object-fit: contain; /* Important: use contain for mobile hero */
        height: auto !important;
        max-height: none !important; /* Ensure no fixed max-height */
        aspect-ratio: unset !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-blog-industry-news__hero-content {
        padding: 0 15px;
    }

    .page-blog-industry-news__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-blog-industry-news__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* General Sections & Containers */
    .page-blog-industry-news__section {
        padding: 40px 0;
    }

    .page-blog-industry-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog-industry-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog-industry-news__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-blog-industry-news__paragraph,
    .page-blog-industry-news__list-item {
        font-size: 0.95em;
    }

    /* Images */
    .page-blog-industry-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Buttons and Button Containers */
    .page-blog-industry-news__btn-primary,
    .page-blog-industry-news__btn-secondary,
    .page-blog-industry-news a[class*="button"],
    .page-blog-industry-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

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

    /* Blog Card Grid */
    .page-blog-industry-news__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog-industry-news__blog-card-image {
        height: 180px;
    }

    .page-blog-industry-news__blog-card-title {
        font-size: 1.2em;
    }

    /* FAQ Section */
    .page-blog-industry-news__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-blog-industry-news__faq-answer {
        padding: 0 20px 15px;
    }

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

    .page-blog-industry-news__cta-title {
        font-size: 1.8em;
    }

    .page-blog-industry-news__cta-text {
        font-size: 1em;
    }
}