/* style/news.css */

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Inherited from body via shared.css */
}

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

.page-news__section {
    padding: 60px 0;
    text-align: center;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-news__hero-title {
    font-size: 3.5em;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
}

.page-news__hero-cta {
    font-size: 1.2em;
    padding: 15px 30px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

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

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

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

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b3;
    border-color: #1e87b3;
}

/* Specific button colors for login/register type actions */
.page-news__btn-login-register {
    background-color: #EA7C07;
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-news__btn-login-register:hover {
    background-color: #c76706;
    border-color: #c76706;
}

/* News Grid */
.page-news__news-grid,
.page-news__insights-grid,
.page-news__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__news-card,
.page-news__insight-card,
.page-news__guide-card {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for cards on dark sections */
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
    line-height: 1.3;
}

.page-news__card-title a.page-news__card-link {
    color: #26A9E0;
    text-decoration: none;
}

.page-news__card-title a.page-news__card-link:hover {
    text-decoration: underline;
}

.page-news__card-date {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.page-news__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__light-bg .page-news__card-description {
    color: #333333;
}

.page-news__card-readmore {
    align-self: flex-start;
    padding: 8px 15px;
    font-size: 0.9em;
}

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

/* Industry Insights Section - Dark background */
.page-news__industry-insights {
    background-color: #111111;
    color: #ffffff;
}

.page-news__industry-insights .page-news__section-title {
    color: #26A9E0;
}

.page-news__industry-insights .page-news__section-subtitle {
    color: #f0f0f0;
}

/* Video styles */
.page-news__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1000px; /* Max width for video */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-news__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* FAQ Section */
.page-news__faq {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    list-style: none;
    user-select: none;
}

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

.page-news__faq-qtext {
    flex-grow: 1;
    color: #26A9E0;
}

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

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

.page-news__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-news__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-news__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 0;
}

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

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

.page-news__cta-button {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
    font-size: 1.1em;
    padding: 15px 30px;
}

.page-news__cta-button:hover {
    background-color: #f0f0f0;
    color: #1e87b3;
    border-color: #f0f0f0;
}

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

    .page-news__hero-description {
        font-size: 1.1em;
    }

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

    .page-news__section-subtitle {
        font-size: 1em;
    }

    .page-news__news-grid,
    .page-news__insights-grid,
    .page-news__guides-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        height: 500px;
    }

    .page-news__hero-title {
        font-size: 2.2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__hero-cta {
        font-size: 1em;
        padding: 12px 25px;
    }

    .page-news__section {
        padding: 40px 0;
    }

    .page-news__section-title {
        font-size: 1.8em;
    }

    .page-news__section-subtitle {
        font-size: 0.9em;
    }

    .page-news__news-card,
    .page-news__insight-card,
    .page-news__guide-card {
        margin: 0 15px;
    }

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

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

    .page-news__card-description {
        font-size: 0.9em;
    }

    .page-news__cta-title {
        font-size: 2em;
    }

    .page-news__cta-description {
        font-size: 1em;
    }

    .page-news__cta-button {
        font-size: 1em;
        padding: 12px 25px;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important;
    }

    .page-news__view-all-button-container {
        padding: 0 15px;
    }

    .page-news__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
    }

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

    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }

    .page-news__cta-bottom .page-news__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-news__faq-list {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        height: 400px;
    }

    .page-news__hero-title {
        font-size: 1.8em;
    }

    .page-news__hero-description {
        font-size: 0.9em;
    }

    .page-news__section-title {
        font-size: 1.5em;
    }

    .page-news__cta-title {
        font-size: 1.6em;
    }
}

/* Ensure content area images are not too small */
.page-news__news-card img,
.page-news__insight-card img,
.page-news__guide-card img {
    min-width: 200px;
    min-height: 200px;
}