:root {
  --primary-color: #A52A2A;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #A52A2A;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff; /* Default light background */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-news__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(165, 42, 42, 0.8) 100%), url('[GALLERY:blog:suncity 8888,news,banner]') no-repeat center center/cover;
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.page-news__cta-button:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-news__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-news__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

.page-news__latest-updates-section,
.page-news__guides-section,
.page-news__newsletter-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-news__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news__dark-bg .page-news__section-title {
  color: var(--secondary-color);
}

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

.page-news__article-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-link:hover {
  color: var(--secondary-color);
}

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

.page-news__article-date {
  font-size: 0.85em;
  color: #888888;
  text-align: right;
  display: block;
}

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

.page-news__review-analysis-section {
  padding: 80px 0;
}

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

.page-news__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: var(--text-light);
}

.page-news__feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.page-news__feature-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-news__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-news__feature-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-news__feature-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.page-news__feature-link:hover {
  color: var(--text-light);
  border-color: var(--text-light);
}

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

.page-news__guide-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__guide-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-news__guide-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555555;
}

.page-news__guide-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.page-news__guide-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-news__why-choose-section {
  padding: 80px 0;
}

.page-news__advantage-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1000px;
}

.page-news__advantage-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__advantage-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-news__advantage-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-light);
}

.page-news__newsletter-section {
  text-align: center;
}

.page-news__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.page-news__newsletter-input {
  padding: 12px 20px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  flex-grow: 1;
  min-width: 250px;
}

.page-news__newsletter-button {
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__newsletter-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }

  .page-news__section-title {
    font-size: 2.2em;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-news__hero-section {
    padding: 60px 0;
  }

  .page-news__main-title {
    font-size: 2.2em;
  }

  .page-news__description {
    font-size: 1em;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }

  .page-news__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__latest-updates-section,
  .page-news__guides-section,
  .page-news__newsletter-section,
  .page-news__review-analysis-section,
  .page-news__why-choose-section {
    padding: 50px 0;
  }

  .page-news__article-grid,
  .page-news__features-grid,
  .page-news__guide-list,
  .page-news__advantage-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image,
  .page-news__feature-image {
    height: 180px;
  }

  .page-news__article-title,
  .page-news__feature-title,
  .page-news__guide-title,
  .page-news__advantage-title {
    font-size: 1.2em;
  }

  .page-news__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .page-news__newsletter-input,
  .page-news__newsletter-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Image responsive adjustments */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__article-card,
  .page-news__feature-item,
  .page-news__guide-item,
  .page-news__advantage-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}