/* style/news.css */

/* Variables from shared.css or global context */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --background-color: #0D0E12;
    --card-bg-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
    --header-offset: 120px; /* Default, will be overridden by shared.css if present */
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Light text on dark body background */
    background-color: var(--background-color);
    line-height: 1.6;
}

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

.page-news__section-title,
.page-news__intro-title,
.page-news__cta-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    font-size: clamp(28px, 3.5vw, 42px); /* Responsive H2, H3 */
    line-height: 1.2;
}

.page-news__section-description,
.page-news__intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: var(--text-main-color);
}

/* HERO Section */
.page-news__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Spacing below content */
    background-color: var(--background-color);
    padding-top: 10px; /* Small top padding for first section */
}

.page-news__hero-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-news__hero-content {
    max-width: 1000px;
    margin: 50px auto 0 auto;
    text-align: center;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(36px, 5vw, 56px); /* Responsive H1 */
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.page-news__description {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

.page-news__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

/* Intro Section */
.page-news__intro-section {
    background-color: var(--card-bg-color);
    padding: 80px 0;
    margin-bottom: 50px;
}

/* News Section */
.page-news__news-section {
    padding: 50px 0;
}

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

.page-news__news-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 140, 26, 0.2);
}

.page-news__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    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.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--primary-color);
}

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

.page-news__view-all-button {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__view-all-button:hover {
    background-color: var(--secondary-color);
}

/* Why Choose Section */
.page-news__why-choose-section {
    background-color: var(--background-color);
    padding: 80px 0;
}

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

.page-news__feature-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-news__feature-item:hover {
    transform: translateY(-5px);
}

.page-news__feature-icon {
    width: 200px; /* Min size requirement */
    height: 150px; /* Min size requirement */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-news__feature-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__feature-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg-color);
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--primary-color);
    list-style: none; /* For details/summary */
    user-select: none;
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.7;
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-title {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: clamp(28px, 3.5vw, 40px);
}

.page-news__cta-description {
    font-size: 1.1em;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 40px auto;
}