/* style/news.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --card-bg-color: #FFFFFF;
  --background-color: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Light background #F4F7FB, so dark text #1F2D3D */
  background-color: var(--background-color);
  line-height: 1.6;
}

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

.page-news__section {
  padding: 60px 0;
}

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

.page-news__section-subtitle {
  font-size: 18px;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: 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, main offset handled by body */
  background-color: var(--card-bg-color);
}

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

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

.page-news__main-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

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

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

/* Intro Section */
.page-news__intro-section p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-news__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-news__text-link:hover {
  text-decoration: underline;
}

/* News Grid (Featured News) */
.page-news__featured-news-section {
  background-color: var(--card-bg-color);
}

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

.page-news__news-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  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 30px rgba(0, 0, 0, 0.15);
}

.page-news__news-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-news__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-news__card-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto;
}

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

/* Latest News List */
.page-news__latest-news-section {
  background-color: var(--background-color);
}

.page-news__news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.page-news__news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-news__news-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
}

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

.page-news__item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--text-main-color);
}

.page-news__item-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-news__item-meta {
  font-size: 14px;
  color: #777777;
  margin-bottom: 10px;
}

.page-news__item-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

.page-news__view-all-button {
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 5px;
}

/* Why Choose Us Section */
.page-news__why-choose-us-section {
  background-color: var(--card-bg-color);
}

.page-news__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-news__feature-item {
  padding: 25px;
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-news__feature-item p {
  font-size: 16px;
  color: var(--text-main-color);
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--background-color);
}

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

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

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;
  font-weight: 600;
  color: var(--text-main-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: #f8f8f8;
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  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 20px;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

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

.page-news__cta-bottom-section .page-news__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-news__cta-bottom-section p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-news__cta-bottom-section .page-news__cta-button {
  background: var(--button-gradient);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-bottom-section .page-news__cta-button:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-news__section-title {
    font-size: 30px;
  }
  .page-news__description {
    font-size: 17px;
  }
  .page-news__news-item img {
    width: 200px;
    
  }
  .page-news__item-title {
    font-size: 18px;
  }
  .page-news__card-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-image img {
    border-radius: 4px;
  }
  .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;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-news__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__main-title {
    font-size: clamp(24px, 6vw, 38px);
    margin-bottom: 10px;
  }
  .page-news__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__news-card img {
    
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__news-item {
    flex-direction: column;
  }
  .page-news__news-item img {
    width: 100%;
    
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .page-news__item-content {
    padding: 20px;
  }
  .page-news__item-title {
    font-size: 17px;
  }
  .page-news__features-grid {
    grid-template-columns: 1fr;
  }
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }
  .page-news__cta-bottom-section {
    padding: 50px 15px;
  }
  .page-news__cta-bottom-section p {
    font-size: 16px;
  }

  /* Force responsive images and containers */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-card,
  .page-news__news-item,
  .page-news__feature-item,
  details.page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-button,
  .page-news__view-all-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;
  }
}

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 22px;
  }
  .page-news__hero-image {
    margin-bottom: 20px;
  }
  .page-news__main-title {
    font-size: clamp(20px, 7vw, 32px);
  }
  .page-news__description {
    font-size: 15px;
  }
  .page-news__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-news__news-card img {
    
  }
  .page-news__card-title {
    font-size: 17px;
  }
  .page-news__item-title {
    font-size: 16px;
  }
  .page-news__item-excerpt {
    font-size: 15px;
  }
  .page-news__read-more {
    font-size: 14px;
  }
  .page-news__feature-title {
    font-size: 20px;
  }
  .page-news__feature-item p {
    font-size: 15px;
  }
  .page-news__faq-qtext {
    font-size: 15px;
  }
  details.page-news__faq-item .page-news__faq-answer p {
    font-size: 15px;
  }
}