/* style/index-latest-updates.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --button-login-color: #EA7C07;
  --background-color: #0a0a0a; /* body background from shared.css */
}

.page-index-latest-updates {
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-color);
}

.page-index-latest-updates__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-index-latest-updates__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  background: var(--background-color);
}

.page-index-latest-updates__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-index-latest-updates__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-latest-updates__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-index-latest-updates__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
}

.page-index-latest-updates__hero-description {
  font-size: 1.15em;
  line-height: 1.6;
  color: var(--text-color-dark-bg);
  margin-bottom: 30px;
}

.page-index-latest-updates__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Section Styling */
.page-index-latest-updates__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--text-color-dark-bg);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-index-latest-updates__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-color-dark-bg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* News Grid */
.page-index-latest-updates__news-section,
.page-index-latest-updates__promotions-section,
.page-index-latest-updates__guide-section,
.page-index-latest-updates__faq-section,
.page-index-latest-updates__cta-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

.page-index-latest-updates__news-card,
.page-index-latest-updates__promo-card,
.page-index-latest-updates__guide-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-index-latest-updates__news-card:hover,
.page-index-latest-updates__promo-card:hover,
.page-index-latest-updates__guide-item:hover {
  transform: translateY(-5px);
}

.page-index-latest-updates__news-card-image,
.page-index-latest-updates__promo-card-image,
.page-index-latest-updates__guide-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index-latest-updates__news-card-content,
.page-index-latest-updates__promo-card-content,
.page-index-latest-updates__guide-item {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-latest-updates__news-card-title,
.page-index-latest-updates__promo-card-title,
.page-index-latest-updates__guide-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index-latest-updates__news-card-title a,
.page-index-latest-updates__promo-card-title a,
.page-index-latest-updates__guide-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-latest-updates__news-card-title a:hover,
.page-index-latest-updates__promo-card-title a:hover,
.page-index-latest-updates__guide-title a:hover {
  color: var(--secondary-color);
}

.page-index-latest-updates__news-card-meta {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.page-index-latest-updates__news-card-text,
.page-index-latest-updates__promo-card-text,
.page-index-latest-updates__guide-text {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-latest-updates__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-index-latest-updates__read-more:hover {
  color: var(--secondary-color);
}

.page-index-latest-updates__view-all {
  text-align: center;
  margin-top: 50px;
}

/* Buttons */
.page-index-latest-updates__btn-primary,
.page-index-latest-updates__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* For responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow word break */
}

.page-index-latest-updates__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.page-index-latest-updates__btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-index-latest-updates__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-index-latest-updates__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* FAQ Section */
.page-index-latest-updates__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
}

.page-index-latest-updates__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-latest-updates__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index-latest-updates__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index-latest-updates__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index-latest-updates__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.page-index-latest-updates__faq-item[open] .page-index-latest-updates__faq-toggle {
  transform: rotate(45deg);
}

.page-index-latest-updates__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Section */
.page-index-latest-updates__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-index-latest-updates__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
}

.page-index-latest-updates__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--text-color-dark-bg);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-latest-updates__hero-title {
    font-size: 2.5em;
  }

  .page-index-latest-updates__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-index-latest-updates__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-index-latest-updates__hero-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }

  .page-index-latest-updates__hero-description {
    font-size: 1em;
  }

  .page-index-latest-updates__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-latest-updates__btn-primary,
  .page-index-latest-updates__btn-secondary {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto;
    padding: 15px 20px;
  }

  .page-index-latest-updates__news-section,
  .page-index-latest-updates__promotions-section,
  .page-index-latest-updates__guide-section,
  .page-index-latest-updates__faq-section,
  .page-index-latest-updates__cta-section {
    padding: 40px 0;
  }

  .page-index-latest-updates__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    padding-top: 20px;
  }

  .page-index-latest-updates__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index-latest-updates__news-grid,
  .page-index-latest-updates__promotions-grid,
  .page-index-latest-updates__guide-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index-latest-updates__news-card-title,
  .page-index-latest-updates__promo-card-title,
  .page-index-latest-updates__guide-title {
    font-size: 1.2em;
  }

  .page-index-latest-updates__news-card-image,
  .page-index-latest-updates__promo-card-image,
  .page-index-latest-updates__guide-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-index-latest-updates__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-index-latest-updates__faq-answer {
    padding: 0 15px 15px 15px;
  }

  .page-index-latest-updates__cta-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }

  .page-index-latest-updates__cta-description {
    font-size: 1em;
  }

  /* Mobile image and container responsiveness */
  .page-index-latest-updates img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-latest-updates__section,
  .page-index-latest-updates__card,
  .page-index-latest-updates__container,
  .page-index-latest-updates__hero-section,
  .page-index-latest-updates__news-section,
  .page-index-latest-updates__promotions-section,
  .page-index-latest-updates__guide-section,
  .page-index-latest-updates__faq-section,
  .page-index-latest-updates__cta-section,
  .page-index-latest-updates__hero-cta-buttons,
  .page-index-latest-updates__news-grid,
  .page-index-latest-updates__promotions-grid,
  .page-index-latest-updates__guide-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-latest-updates__hero-section {
    padding-top: 10px !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-index-latest-updates__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-latest-updates__view-all {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-latest-updates__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure content area images are not smaller than 200px (desktop rule, but confirm no mobile overrides make it smaller) */
  .page-index-latest-updates__news-card-image,
  .page-index-latest-updates__promo-card-image,
  .page-index-latest-updates__guide-image {
    min-width: 200px;
    min-height: 150px; /* Adjusted minimum height for mobile cards to meet 200px min area */
  }

  .page-index-latest-updates__news-card-image,
  .page-index-latest-updates__promo-card-image,
  .page-index-latest-updates__guide-image {
    height: auto;
    max-height: 250px; /* Cap height to prevent overly tall images on small screens */
  }
}