:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-primary: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --primary-color-rgb: 17, 168, 78; /* For rgba usage */
}

.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-primary); /* Default background color for the page */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: var(--bg-primary); /* Ensure background for hero */
}

.page-news__hero-image {
  width: 100%;
  max-width: 1920px; /* Match placeholder size */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-news__hero-content {
  max-width: 900px;
  z-index: 1;
  color: var(--text-main); /* Ensure text color contrasts with hero background */
}

.page-news__main-title {
  font-size: clamp(1.8em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-news__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
  cursor: pointer;
}

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

.page-news__cta-button--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

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

.page-news__section-title {
  font-size: 2.2em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-news__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-news__latest-articles-section,
.page-news__industry-updates-section,
.page-news__exclusive-content-section,
.page-news__faq-section,
.page-news__explore-more-section,
.page-news__introduction-section {
  padding: 60px 0;
  background-color: var(--bg-primary); /* Use primary background for sections */
}

/* Articles Grid */
.page-news__articles-grid,
.page-news__feature-grid,
.page-news__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-news__article-card,
.page-news__feature-item,
.page-news__content-item {
  background-color: var(--card-bg); /* Card background color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-news__article-card:hover,
.page-news__feature-item:hover,
.page-news__content-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-news__article-image,
.page-news__feature-image,
.page-news__content-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency in grid */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-news__article-content,
.page-news__feature-content,
.page-news__content-description-wrapper {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title,
.page-news__feature-title,
.page-news__content-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-main);
}

.page-news__article-title a,
.page-news__content-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__article-title a:hover,
.page-news__content-title a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}


.page-news__article-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-news__article-excerpt,
.page-news__feature-description,
.page-news__content-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background-color: var(--secondary-color);
}

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

.page-news__view-all-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__view-all-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


/* Feature Items specific styling */
.page-news__feature-item {
    padding-bottom: 25px; /* Add padding to bottom for consistency */
}
.page-news__feature-item .page-news__feature-title {
    padding: 0 25px; /* Match padding of other content */
    margin-top: 20px;
}
.page-news__feature-item .page-news__feature-description {
    padding: 0 25px;
}

/* CTA Block */
.page-news__cta-block {
    background-color: var(--deep-green); /* Use Deep Green for CTA background */
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    margin-top: 60px;
    color: var(--text-main);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__cta-title {
    font-size: 2em;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-news__cta-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Explore Links */
.page-news__explore-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.page-news__explore-button {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
    background-color: transparent;
}

.page-news__explore-button:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.4);
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-news__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-item summary:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Lighter hover for contrast */
}

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

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

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(1.6em, 5vw, 2.5em);
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
}

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

    .page-news__hero-section {
        padding: 10px 15px 40px;
    }

    .page-news__hero-image {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
    }

    .page-news__main-title {
        font-size: 1.8em;
        line-height: 1.3;
    }

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

    .page-news__cta-button,
    .page-news__cta-button--large,
    .page-news__view-all-button,
    .page-news__read-more-button,
    .page-news__explore-button {
        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;
        text-align: center;
    }

    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container,
    .page-news__explore-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-news__container {
        padding: 0 15px;
    }

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

    .page-news__latest-articles-section,
    .page-news__industry-updates-section,
    .page-news__exclusive-content-section,
    .page-news__faq-section,
.page-news__explore-more-section,
    .page-news__introduction-section {
        padding: 40px 0;
    }

    .page-news__articles-grid,
    .page-news__feature-grid,
    .page-news__content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__article-image,
    .page-news__feature-image,
    .page-news__content-image {
        height: auto !important; /* Allow image height to adjust */
        min-height: 200px !important; /* Minimum height for content images */
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-news__article-card,
    .page-news__feature-item,
    .page-news__content-item {
        margin: 0 10px; /* Add some side margin for cards */
    }

    .page-news__cta-block {
        padding: 40px 20px;
    }

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

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

    /* Ensure minimum image sizes are met even in CSS */
    .page-news img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      min-width: 200px !important; /* Enforce min size */
      min-height: 200px !important; /* Enforce min size */
    }
}