.page-news {
  color: var(--text-main, #F3F8FF);
  background-color: var(--card-bg, #10233F);
  font-family: 'Arial', sans-serif;
}

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

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1920px; /* Ensure image doesn't overflow */
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text contrast */
}

.page-news__hero-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-news__hero-title {
  color: var(--text-main, #F3F8FF);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  color: var(--text-secondary, #AFC4E8);
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button, linear-gradient(180deg, #2B73F6 0%, #1144A6 100%));
  color: var(--text-main, #F3F8FF);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-news__hero-cta-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #3A83FF 0%, #1A52B8 100%);
}

/* News List Section */
.page-news__news-list-section {
  padding: 60px 0;
  background-color: var(--card-bg, #10233F);
  color: var(--text-main, #F3F8FF);
}

.page-news__section-title {
  color: var(--text-main, #F3F8FF);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-news__news-card {
  background-color: var(--deep-navy, #08162B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #244D84);
}

.page-news__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-news__card-image-wrapper {
  height: 220px;
  overflow: hidden;
}

.page-news__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image {
  transform: scale(1.05);
}

.page-news__card-content {
  padding: 25px;
}

.page-news__card-date {
  color: var(--text-secondary, #AFC4E8);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.page-news__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

.page-news__card-excerpt {
  color: var(--text-secondary, #AFC4E8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--glow, #4FA8FF);
  color: var(--deep-navy, #08162B);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-news__read-more-btn:hover {
  background: #3A9AFF;
  transform: translateY(-1px);
}

.page-news__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--button, linear-gradient(180deg, #2B73F6 0%, #1144A6 100%));
  color: var(--text-main, #F3F8FF);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-news__view-all-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #3A83FF 0%, #1A52B8 100%);
}

/* Register CTA Section */
.page-news__register-cta-section {
  background-color: var(--deep-navy, #08162B);
  padding: 80px 0;
  text-align: center;
  color: var(--text-main, #F3F8FF);
  border-top: 1px solid var(--divider, #1B3357);
}

.page-news__register-cta-content {
  max-width: 800px;
}

.page-news__register-cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__register-cta-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 18px 40px;
  background: var(--button, linear-gradient(180deg, #2B73F6 0%, #1144A6 100%));
  color: var(--text-main, #F3F8FF);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #3A83FF 0%, #1A52B8 100%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }
  .page-news__hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  }
  .page-news__card-title {
    font-size: 1.3rem;
  }
  .page-news__register-cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 0; /* Small top padding for mobile */
  }
  .page-news__hero-content-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 20px;
  }
  .page-news__hero-image {
    filter: brightness(0.4); /* Darker filter for better mobile contrast */
  }
  .page-news__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-top: 20px;
  }
  .page-news__hero-description {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
  .page-news__hero-cta-button,
  .page-news__btn-primary,
  .page-news__view-all-button,
  .page-news__read-more-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px !important;
  }
  
  .page-news__container,
  .page-news__news-list-section,
  .page-news__register-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-news__card-image-wrapper {
    height: 180px;
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 1.2rem;
  }
  .page-news__register-cta-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-news__register-cta-description {
    font-size: clamp(0.9rem, 4vw, 1rem);
  }
  .page-news__btn-primary {
    font-size: 1rem;
    padding: 15px 30px;
  }

  /* Image responsive rules */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-news__hero-description {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }
  .page-news__hero-cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .page-news__section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .page-news__card-title {
    font-size: 1.1rem;
  }
  .page-news__read-more-btn {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
  .page-news__view-all-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .page-news__register-cta-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-news__register-cta-description {
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  }
  .page-news__btn-primary {
    font-size: 1rem;
    padding: 15px 30px;
  }
}