/* style/news.css */

/* General styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main color for dark background */
    background: #B71C1C; /* Background color */
}

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

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

.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main color */
}

.page-news__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF5E1; /* Text Main color */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(180deg, #C91F17 0%, #E53935 100%);
}

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

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim image for text readability */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
}

.page-news__main-title {
    font-size: 48px;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__description {
    font-size: 20px;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Responsive button */
    white-space: normal; /* Responsive button */
    word-wrap: break-word; /* Responsive button */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #333333; /* Dark text for gold button */
    border: none;
    margin: 0 10px;
}

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

.page-news__btn-secondary {
    background: #D32F2F; /* Card BG color */
    color: #FFF5E1; /* Text Main color */
    border: 2px solid #F2B544; /* Border color */
    margin: 0 10px;
}

.page-news__btn-secondary:hover {
    background: #7A0E0E; /* Deep Red */
    border-color: #FFCC66; /* Glow color */
    transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles {
    background: #B71C1C; /* Background color */
}

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

.page-news__article-card {
    background: #D32F2F; /* Card BG color */
    border-radius: 12px;
    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 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__article-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.page-news__article-title {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1;
}

.page-news__article-title a {
    color: #FFD86A; /* Gold color for titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #F4D34D; /* Lighter Gold */
}

.page-news__article-meta {
    font-size: 14px;
    color: #FFCC66; /* Glow color */
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #F2B544; /* Border color */
    color: #333333; /* Dark text */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more-btn:hover {
    background: #FFCC66; /* Glow color */
    transform: translateY(-2px);
}

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

/* Categories Section */
.page-news__categories {
    background: #7A0E0E; /* Deep Red */
}

.page-news__category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-news__category-card {
    background: #D32F2F; /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #FFF5E1; /* Text Main color */
    text-align: center;
    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__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news__category-title {
    font-size: 20px;
    font-weight: bold;
    padding: 20px;
    color: #FFD86A; /* Gold color */
    flex-grow: 1;
}

/* About News Section */
.page-news__about-news {
    background: #B71C1C; /* Background color */
}

.page-news__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-news__text-block {
    flex: 1;
    font-size: 18px;
    color: #FFF5E1; /* Text Main color */
}

.page-news__text-block p {
    margin-bottom: 15px;
}

.page-news__image-block {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__feature-image {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ Section */
.page-news__faq-section {
    background: #D32F2F; /* Card BG color */
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #B71C1C; /* Background color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD86A; /* Gold color for questions */
  font-size: 20px;
  font-weight: bold;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #7A0E0E; /* Deep Red */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold color for text */
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F4D34D; /* Gold color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: #D32F2F; /* Card BG color */
  border-radius: 0 0 12px 12px;
  color: #FFF5E1; /* Text Main color */
  font-size: 16px;
}
details.page-news__faq-item .page-news__faq-answer p {
    margin: 0;
}

/* CTA Banner Section */
.page-news__cta-banner {
    background: linear-gradient(90deg, #C91F17 0%, #E53935 100%);
    text-align: center;
}

.page-news__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__cta-title {
    font-size: 38px;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__cta-description {
    font-size: 20px;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 30px;
    max-width: 700px;
}

/* Multiple button container */
.page-news__cta-content .page-news__cta-button {
    margin: 0 15px 15px; /* Adjust margin for multiple buttons */
}


/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__hero-content {
        padding: 30px 20px;
    }
    .page-news__main-title {
        font-size: 40px;
    }
    .page-news__description {
        font-size: 18px;
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-news__category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-news__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-news__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }
    .page-news__cta-title {
        font-size: 32px;
    }
    .page-news__cta-description {
        font-size: 18px;
    }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    /* General responsive for content areas */
    .page-news__section-padding {
        padding: 40px 0;
    }
    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important; /* Ensure full width */
        width: 100% !important; /* Ensure full width */
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-news__hero-section {
        min-height: 400px;
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    }
    .page-news__hero-content {
        padding: 20px 15px;
    }
    .page-news__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-news__cta-button {
        padding: 12px 20px;
        font-size: 16px;
        margin: 10px 0; /* Stack buttons vertically */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__hero-content .page-news__cta-button {
        margin: 10px 0;
    }


    /* Latest Articles Section */
    .page-news__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-card {
        margin-bottom: 0;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-excerpt {
        font-size: 15px;
    }
    .page-news__read-more-btn {
        font-size: 14px;
        padding: 8px 15px;
    }
    .page-news__view-all-btn-wrapper {
        margin-top: 30px;
    }

    /* Categories Section */
    .page-news__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-news__category-image {
        height: 180px;
    }
    .page-news__category-title {
        font-size: 18px;
        padding: 15px;
    }

    /* About News Section */
    .page-news__content-wrapper {
        gap: 20px;
        flex-direction: column; /* Stack vertically */
    }
    .page-news__text-block {
        font-size: 16px;
    }
    .page-news__image-block {
        order: -1; /* Image on top */
    }

    /* FAQ Section */
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    .page-news__faq-qtext {
        font-size: 16px;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* CTA Banner Section */
    .page-news__cta-title {
        font-size: 28px;
    }
    .page-news__cta-description {
        font-size: 16px;
    }
    .page-news__cta-content .page-news__cta-button {
        margin: 10px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Universal image responsive styles */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    /* All image containers */
    .page-news__hero-image-wrapper,
    .page-news__article-image-wrapper,
    .page-news__category-card,
    .page-news__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* Button container specific for multiple buttons */
    .page-news__cta-content {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
}