/* style/news.css */

/* Base styles for the page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Assuming body background is black from shared.css */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero section */
}

.page-news__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-news__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.page-news__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 1;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-news__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* General Container */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-news__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Default for dark sections */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-news__latest-articles .page-news__section-title {
    color: #ffffff;
}

.page-news__latest-articles .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__article-card {
    background: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards on dark background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0; /* Brand color for titles */
}

.page-news__article-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #5ac4f5; /* Lighter shade on hover */
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
}

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

.page-news__read-more {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #5ac4f5;
    text-decoration: underline;
}

/* Categories Section */
.page-news__categories-section {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

.page-news__categories-section .page-news__section-title {
    color: #ffffff;
}

.page-news__categories-section .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__category-card {
    background: rgba(38, 169, 224, 0.1); /* Light transparent brand blue for category cards */
    border: 1px solid rgba(38, 169, 224, 0.3);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    background-color: rgba(38, 169, 224, 0.2);
}

.page-news__category-icon {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
}

.page-news__category-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-news__category-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__category-title a:hover {
    color: #26A9E0;
}

.page-news__category-text {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-news__read-more--light {
    color: #ffffff;
}

.page-news__read-more--light:hover {
    color: #26A9E0;
}

/* Featured Article Section */
.page-news__featured-article {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

.page-news__flex-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.page-news__featured-image-wrapper {
    flex: 1;
    min-width: 40%;
}

.page-news__featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-news__featured-content {
    flex: 1.5;
    color: #e0e0e0;
}

.page-news__featured-content .page-news__section-title {
    text-align: left;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-news__featured-content .page-news__section-description {
    text-align: left;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-news__featured-content p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

/* Newsletter CTA Section */
.page-news__newsletter-cta {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand blue background */
    color: #ffffff;
    text-align: center;
}

.page-news__newsletter-cta .page-news__section-title {
    color: #ffffff;
}

.page-news__newsletter-cta .page-news__section-description {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-news__newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

.page-news__newsletter-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
}

.page-news__newsletter-input::placeholder {
    color: #888888;
}

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

.page-news__faq-section .page-news__section-title {
    color: #ffffff;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

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

.page-news__faq-heading {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotates the '+' to 'x' or use '-' */
}

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

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0;
}

.page-news__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-news__btn-primary:hover {
    background-color: #1e87b3; /* Darker shade of blue */
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #26A9E0;
    cursor: pointer;
    box-sizing: border-box;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b3;
    transform: translateY(-2px);
}

/* Image responsiveness base */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Video responsiveness base */
.page-news video,
.page-news__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-news__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__flex-container {
        flex-direction: column;
    }
    .page-news__featured-image-wrapper {
        min-width: 100%;
    }
    .page-news__featured-content .page-news__section-title {
        text-align: center;
    }
    .page-news__featured-content .page-news__section-description {
        text-align: center;
    }
}

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

    .page-news__hero-section {
        min-height: 400px;
    }

    .page-news__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-news__latest-articles,
    .page-news__categories-section,
    .page-news__featured-article,
    .page-news__newsletter-cta,
    .page-news__faq-section {
        padding: 50px 0;
    }

    .page-news__articles-grid,
    .page-news__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-card,
    .page-news__category-card {
        margin: 0 15px;
    }

    .page-news__article-thumbnail {
        height: 180px;
    }

    .page-news__article-title {
        font-size: 1.2em;
    }

    .page-news__category-icon {
        height: 120px;
    }

    .page-news__featured-content .page-news__section-title,
    .page-news__featured-content .page-news__section-description,
    .page-news__sub-title {
        text-align: center;
    }
    .page-news__newsletter-form {
        flex-direction: column;
        padding: 0 15px;
    }
    .page-news__newsletter-input,
    .page-news__btn-primary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__newsletter-input {
        margin-bottom: 15px;
    }

    .page-news__faq-item {
        margin: 0 15px 15px 15px;
    }
    .page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-heading {
        font-size: 1.1em;
    }
    .page-news__faq-toggle {
        font-size: 1.5em;
    }
    .page-news__faq-answer {
        padding: 0 15px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px;
        padding-top: 0;
    }

    /* Mobile image responsiveness (mandatory) */
    .page-news img {
        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-wrapper,
    .page-news__newsletter-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Mobile video responsiveness (mandatory) */
    .page-news video,
    .page-news__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
    }

    /* Mobile button responsiveness (mandatory) */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-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;
      padding-left: 15px;
      padding-right: 15px;
      margin-bottom: 10px; /* Add some spacing for stacked buttons */
    }
    
    .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;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-news__hero-content .page-news__btn-primary {
        width: auto !important; /* Override full width for hero button to be centered */
        max-width: 250px !important;
        margin-left: auto;
        margin-right: auto;
    }
}