/* style/news.css */

/* Variables from shared for consistency */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --page-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

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

/* Hero Section */
.page-news__hero-section {
    padding-top: 10px; /* Small padding, body handles --header-offset */
    position: relative;
    overflow: hidden;
    color: #ffffff; /* Ensure white text for contrast on hero */
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Max height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-news__hero-content {
    position: relative; /* Relative to hero section, not absolute over image */
    z-index: 2;
    padding: 40px 20px;
    background: var(--page-bg); /* Dark background for content block below image */
    border-top: 5px solid var(--primary-color);
}

.page-news__main-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.page-news__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

.page-news__description-small {
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

/* General Section Title */
.page-news__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Buttons */
.page-news__cta-button,
.page-news__btn-primary,
.page-news__btn-secondary {
    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%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__cta-button {
    background: var(--button-gradient);
    color: #000000; /* Black text on gold button */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #000000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--page-bg); /* Dark background text on hover */
    transform: translateY(-3px);
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__button-container {
    text-align: center;
    margin-top: 40px;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 60px 0;
}

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

.page-news__article-card {
    background: var(--card-bg); /* Dark card background */
    border: 1px solid var(--border-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;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-news__article-date {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
    display: block;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.5;
    flex-grow: 1;
}

/* Promotions CTA Section */
.page-news__promotions-cta {
    padding: 80px 0;
    text-align: center;
    background: var(--card-bg); /* Use a darker background for this section */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-news__dark-section {
    background: var(--card-bg);
    color: var(--text-main);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--secondary-color); /* Question text color */
}
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: rgba(var(--primary-color), 0.1); /* Slight hover effect */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--primary-color), 0.05); /* Lighter background for answer */
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  color: var(--text-main);
}
.page-news__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 16px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 40px;
    }
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Small padding, body handles --header-offset */
    }
    .page-news__hero-content {
        padding: 30px 15px;
    }
    .page-news__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-news__description,
    .page-news__description-small {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* General Sections */
    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    /* Images */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-news__hero-image-wrapper {
        max-height: 400px;
    }
    .page-news__article-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* Buttons */
    .page-news__cta-button,
    .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: 12px 15px;
        font-size: 16px;
        margin-left: 0 !important; /* Remove margin-left for secondary button */
    }
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news__button-container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Article Grid */
    .page-news__latest-articles {
        padding: 40px 0;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr; /* Single column for articles */
        gap: 20px;
        padding: 0 15px;
    }
    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__article-title {
        font-size: 20px;
    }
    .page-news__article-excerpt {
        font-size: 15px;
    }

    /* Promotions CTA Section */
    .page-news__promotions-cta {
        padding: 60px 0;
    }

    /* FAQ Section */
    .page-news__faq-section {
        padding: 40px 0;
    }
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 16px; }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
    .page-news__faq-answer p {
        font-size: 15px;
    }
}