/* style/news.css */

/* Base styles for the news page content */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #26A9E0, #0056b3); /* Brand colors */
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.page-news__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-news__intro-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background-color: #EA7C07;
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-news__btn-primary:hover {
    background-color: #c96700;
    border-color: #c96700;
}

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

.page-news__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.page-news__sub-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-news__article-card a {
    text-decoration: none;
    color: inherit;
}

.page-news__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__article-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: #26A9E0;
}

.page-news__article-excerpt {
    font-size: 0.95em;
    margin: 0 20px 15px 20px;
    flex-grow: 1;
    color: #e0e0e0;
}

.page-news__read-more-link {
    display: inline-block;
    margin: 0 20px 20px 20px;
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
}

.page-news__read-more-link:hover {
    text-decoration: underline;
}

/* Industry Insights Section */
.page-news__industry-insights {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

.page-news__industry-insights p {
    margin-bottom: 1em;
    color: #f0f0f0;
}

/* CTA Banner Section */
.page-news__cta-banner {
    padding: 60px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-news__cta-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.2;
}

.page-news__cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-news__cta-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

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

.page-news__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

.page-news__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-title {
    margin: 0;
    color: #26A9E0;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 20px 25px;
}

.page-news__faq-answer p {
    margin: 0;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__intro-description {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__sub-title {
        font-size: 1.5em;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-image {
        height: 200px;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
    .page-news__article-excerpt {
        font-size: 0.9em;
    }

    .page-news__cta-banner {
        padding: 40px 0;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-text {
        font-size: 1em;
    }
    .page-news__btn-large {
        padding: 15px 25px;
        font-size: 1em;
    }

    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-title {
        font-size: 1em;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-news img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-articles,
    .page-news__industry-insights,
    .page-news__cta-banner,
    .page-news__faq-section,
    .page-news__article-card,
    .page-news__faq-item,
    .page-news__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      overflow: hidden !important;
    }
    .page-news__cta-buttons {
        gap: 10px;
    }
    .page-news__cta-banner .page-news__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__cta-banner .page-news__cta-content {
        padding: 0 15px;
    }
}