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

.page-news {
  background-color: var(--deep-navy-color); /* Matches body background from shared.css */
  color: var(--text-main-color); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* 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, header offset handled by body */
  background-color: var(--deep-navy-color);
  overflow: hidden;
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure width is 100% for flex item */
}

.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: 8px;
  object-fit: cover;
}

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

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-news__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__btn-secondary {
  background: var(--primary-color);
  color: var(--text-main-color);
  border: 1px solid var(--secondary-color);
}

.page-news__btn-secondary:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
}

/* General Section Styling */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

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

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-news__article-card,
.page-news__promo-card {
  background-color: var(--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;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.page-news__article-card img,
.page-news__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-news__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--gold-color);
}

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

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

.page-news__read-more-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

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

/* Guide Section */
.page-news__guide-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-news__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__guide-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__guide-title a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
  color: var(--gold-color);
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--deep-navy-color);
  color: var(--text-main-color);
  padding-bottom: 60px;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
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: var(--text-main-color);
  font-weight: 600;
  font-size: 1.1rem;
}
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.5); /* Slightly lighter hover */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--card-bg-color), 0.8); /* Slightly transparent background */
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary-color);
  font-size: 1rem;
}
.page-news__faq-answer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-image img {
    border-radius: 6px;
  }
  .page-news__article-card img,
  .page-news__promo-card img {
    
  }
  .page-news__card-title {
    font-size: 1.2rem;
  }
  .page-news__guide-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-image {
    margin-bottom: 20px;
  }
  .page-news__hero-image img {
    border-radius: 4px;
  }
  .page-news__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-news__description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 25px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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;
  }
  .page-news__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    margin-bottom: 30px;
  }
  .page-news__articles-grid,
  .page-news__promo-grid,
  .page-news__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card img,
  .page-news__promo-card img {
    
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 1.1rem;
  }
  .page-news__card-meta {
    font-size: 0.8rem;
  }
  .page-news__card-excerpt {
    font-size: 0.9rem;
  }
  .page-news__guide-item {
    padding: 20px;
  }
  .page-news__guide-title {
    font-size: 1.05rem;
  }
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
    font-size: 1rem;
  }
  .page-news__faq-qtext {
    font-size: 1rem;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  /* Force image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button containers */
  .page-news__view-all {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__view-all .page-news__cta-button {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    padding-bottom: 30px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
  .page-news__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-news__article-card img,
  .page-news__promo-card img {
    
  }
  .page-news__card-title {
    font-size: 1rem;
  }
  .page-news__faq-qtext {
    font-size: 0.95rem;
  }
  .page-news__faq-toggle {
    font-size: 18px;
  }
}