/* style/resources-latest-updates-jun88-city.css */

:root {
  --jun88-city-primary-color: #FFD700;
  --jun88-city-secondary-color: #8B0000;
  --jun88-city-text-light: #ffffff;
  --jun88-city-text-dark: #333333;
  --jun88-city-bg-dark: #121212; /* From shared.css body background */
}

.page-resources-latest-updates-jun88-city {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--jun88-city-text-light); /* Default text color for dark body background */
  background-color: var(--jun88-city-bg-dark);
}

.page-resources-latest-updates-jun88-city__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--jun88-city-secondary-color) 0%, #a00000 100%);
  color: var(--jun88-city-text-light);
  overflow: hidden;
}

.page-resources-latest-updates-jun88-city__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-resources-latest-updates-jun88-city__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--jun88-city-primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-resources-latest-updates-jun88-city__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--jun88-city-text-light);
}

.page-resources-latest-updates-jun88-city__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-latest-updates-jun88-city__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources-latest-updates-jun88-city__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(50%);
}

.page-resources-latest-updates-jun88-city__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--jun88-city-text-light); /* Light background for content */
  color: var(--jun88-city-text-dark); /* Dark text for light background */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transform: translateY(-40px);
  position: relative;
  z-index: 1;
}

.page-resources-latest-updates-jun88-city__section-title {
  font-size: 2.2em;
  color: var(--jun88-city-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-latest-updates-jun88-city__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--jun88-city-primary-color);
  border-radius: 2px;
}

.page-resources-latest-updates-jun88-city__paragraph {
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
}

.page-resources-latest-updates-jun88-city__paragraph a {
  color: var(--jun88-city-secondary-color);
  text-decoration: underline;
}

.page-resources-latest-updates-jun88-city__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-latest-updates-jun88-city__card {
  background-color: var(--jun88-city-text-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--jun88-city-text-dark);
  display: flex;
  flex-direction: column;
}

.page-resources-latest-updates-jun88-city__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-updates-jun88-city__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources-latest-updates-jun88-city__card-title {
  font-size: 1.5em;
  color: var(--jun88-city-secondary-color);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-resources-latest-updates-jun88-city__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources-latest-updates-jun88-city__card-title a:hover {
  text-decoration: underline;
}

.page-resources-latest-updates-jun88-city__card-text {
  font-size: 1em;
  color: #555;
  padding: 0 20px;
  flex-grow: 1;
}

.page-resources-latest-updates-jun88-city__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-resources-latest-updates-jun88-city__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid var(--jun88-city-primary-color);
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--jun88-city-text-dark);
}

.page-resources-latest-updates-jun88-city__list-title {
  font-size: 1.6em;
  color: var(--jun88-city-secondary-color);
  margin-bottom: 10px;
}

.page-resources-latest-updates-jun88-city__faq-container {
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.page-resources-latest-updates-jun88-city__faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.page-resources-latest-updates-jun88-city__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--jun88-city-secondary-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-resources-latest-updates-jun88-city__faq-question:hover {
  color: var(--jun88-city-primary-color);
}

.page-resources-latest-updates-jun88-city__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-latest-updates-jun88-city__faq-item.active .page-resources-latest-updates-jun88-city__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-latest-updates-jun88-city__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--jun88-city-text-dark);
}

.page-resources-latest-updates-jun88-city__faq-item.active .page-resources-latest-updates-jun88-city__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px;
}

.page-resources-latest-updates-jun88-city__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-resources-latest-updates-jun88-city__btn-primary,
.page-resources-latest-updates-jun88-city__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources-latest-updates-jun88-city__btn-primary {
  background-color: var(--jun88-city-primary-color);
  color: var(--jun88-city-text-light);
  border: 2px solid var(--jun88-city-primary-color);
}

.page-resources-latest-updates-jun88-city__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources-latest-updates-jun88-city__btn-secondary {
  background-color: transparent;
  color: var(--jun88-city-secondary-color);
  border: 2px solid var(--jun88-city-secondary-color);
}

.page-resources-latest-updates-jun88-city__btn-secondary:hover {
  background-color: var(--jun88-city-secondary-color);
  color: var(--jun88-city-text-light);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-latest-updates-jun88-city__hero-title {
    font-size: 2.8em;
  }
  .page-resources-latest-updates-jun88-city__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-updates-jun88-city__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

  .page-resources-latest-updates-jun88-city__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources-latest-updates-jun88-city__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources-latest-updates-jun88-city__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-latest-updates-jun88-city__content-area {
    padding: 30px 15px;
    transform: translateY(-20px);
  }

  .page-resources-latest-updates-jun88-city__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-latest-updates-jun88-city__paragraph,
  .page-resources-latest-updates-jun88-city__card-text,
  .page-resources-latest-updates-jun88-city__list-item p,
  .page-resources-latest-updates-jun88-city__faq-answer p {
    font-size: 1em;
  }

  .page-resources-latest-updates-jun88-city__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-latest-updates-jun88-city__card-image {
    height: 180px;
  }

  .page-resources-latest-updates-jun88-city__list-title {
    font-size: 1.4em;
  }

  .page-resources-latest-updates-jun88-city__faq-question {
    font-size: 1.1em;
  }

  .page-resources-latest-updates-jun88-city__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Force responsive for all images */
  .page-resources-latest-updates-jun88-city img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all video elements */
  .page-resources-latest-updates-jun88-city video,
  .page-resources-latest-updates-jun88-city__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all button elements */
  .page-resources-latest-updates-jun88-city__btn-primary,
  .page-resources-latest-updates-jun88-city__btn-secondary,
  .page-resources-latest-updates-jun88-city a[class*="button"],
  .page-resources-latest-updates-jun88-city a[class*="btn"] {
    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;
  }

  /* Container specific mobile adjustments */
  .page-resources-latest-updates-jun88-city__section,
  .page-resources-latest-updates-jun88-city__card,
  .page-resources-latest-updates-jun88-city__container,
  .page-resources-latest-updates-jun88-city__video-section,
  .page-resources-latest-updates-jun88-city__video-container,
  .page-resources-latest-updates-jun88-city__video-wrapper,
  .page-resources-latest-updates-jun88-city__cta-buttons,
  .page-resources-latest-updates-jun88-city__button-group,
  .page-resources-latest-updates-jun88-city__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-resources-latest-updates-jun88-city__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

@media (max-width: 480px) {
  .page-resources-latest-updates-jun88-city__hero-title {
    font-size: 1.8em;
  }
  .page-resources-latest-updates-jun88-city__section-title {
    font-size: 1.5em;
  }
  .page-resources-latest-updates-jun88-city__btn-primary,
  .page-resources-latest-updates-jun88-city__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}