/* style/news.css */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --card-bg: #10233F;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--deep-navy); /* Ensure consistency with body background */
}

.page-news__section {
  padding: 60px 20px;
  background-color: var(--deep-navy);
}

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__section-description {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* HERO Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-navy);
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5);
}

.page-news__description {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.page-news__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-news__article-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(242, 193, 78, 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: 220px;
  object-fit: cover;
  display: block;
}

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

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-news__article-meta {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: auto;
}

/* Button Group */
.page-news__button-group {
  text-align: center;
  margin-top: 50px;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--gold-color);
  text-decoration: none;
  border: 2px solid var(--gold-color);
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-left: 20px;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

/* Featured Guides Section */
.page-news__featured-guides-section {
  background-color: var(--card-bg);
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__featured-guides-section .page-news__section-title,
.page-news__featured-guides-section .page-news__section-description {
  color: var(--text-main);
}

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

.page-news__guide-card {
  background-color: rgba(17, 59, 122, 0.3); /* Primary color with transparency */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__guide-card:hover {
  transform: translateY(-8px);
  background-color: rgba(17, 59, 122, 0.5);
}

.page-news__guide-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__guide-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-news__guide-link {
  display: inline-block;
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__guide-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Industry Insights Section */
.page-news__industry-insights-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__insights-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__insight-item {
  background-color: var(--card-bg);
  border: 1px solid var(--divider-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__insight-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__insight-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Banner Section */
.page-news__cta-banner-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__cta-banner-content {
  position: relative;
  z-index: 1;
}

.page-news__cta-banner-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-news__cta-banner-title {
  font-size: 40px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-news__cta-banner-description {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* FAQ Section */
.page-news__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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.2);
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--primary-color), 0.1);
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
}

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

.page-news__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-news__description,
  .page-news__section-description,
  .page-news__cta-banner-description {
    font-size: 17px;
  }
  .page-news__section-title {
    font-size: 30px;
  }
  .page-news__article-title,
  .page-news__guide-title,
  .page-news__insight-title {
    font-size: 20px;
  }
  .page-news__cta-banner-title {
    font-size: 34px;
  }
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 14px 35px;
    font-size: 17px;
  }
  .page-news__faq-qtext {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 15px;
  }
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-image img {
    border-radius: 8px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-news__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid,
  .page-news__guides-grid,
  .page-news__insights-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card,
  .page-news__guide-card,
  .page-news__insight-item {
    border-radius: 8px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-content,
  .page-news__guide-card,
  .page-news__insight-item {
    padding: 20px;
  }
  .page-news__article-title,
  .page-news__guide-title,
  .page-news__insight-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .page-news__article-excerpt,
  .page-news__guide-text,
  .page-news__insight-text {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .page-news__button-group {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
  }
  .page-news__cta-banner-section {
    padding: 50px 15px;
  }
  .page-news__cta-banner-title {
    font-size: 28px;
  }
  .page-news__cta-banner-description {
    font-size: 16px;
  }
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    margin-left: 15px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
  }

  /* Mobile image and container overflow prevention */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__container,
  .page-news__article-card,
  .page-news__guide-card,
  .page-news__insight-item,
  .page-news__cta-banner-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-banner-content {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }
  .page-news__cta-banner-title {
    font-size: 24px;
  }
  .page-news__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 14px;
    padding: 10px 20px;
  }
}