/* style/user-community-latest-posts.css */
.page-user-community-latest-posts {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #f8f8f8;
  line-height: 1.6;
}

.page-user-community-latest-posts__hero {
  background-color: #1A2A4A;
  color: #FFFFFF;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.page-user-community-latest-posts__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 42, 74, 0.9), rgba(255, 215, 0, 0.2));
  z-index: 1;
}

.page-user-community-latest-posts__hero-content {
  max-width: 900px;
  z-index: 2;
}

.page-user-community-latest-posts__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
  line-height: 1.2;
}

.page-user-community-latest-posts__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-user-community-latest-posts__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-user-community-latest-posts__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-user-community-latest-posts__cta-button--primary {
  background-color: #FFD700;
  color: #1A2A4A;
  border: 2px solid #FFD700;
}

.page-user-community-latest-posts__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-user-community-latest-posts__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-user-community-latest-posts__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A2A4A;
  transform: translateY(-2px);
}

.page-user-community-latest-posts__hero-image-container {
  width: 100%;
  max-width: 700px;
  margin-top: 40px;
  z-index: 2;
}

.page-user-community-latest-posts__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-user-community-latest-posts__content-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-user-community-latest-posts__article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-user-community-latest-posts__article {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-user-community-latest-posts__article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-user-community-latest-posts__article-title {
  font-size: 1.8em;
  color: #1A2A4A;
  margin-bottom: 20px;
  border-bottom: 3px solid #FFD700;
  padding-bottom: 10px;
}

.page-user-community-latest-posts__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-user-community-latest-posts__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-user-community-latest-posts__article-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-user-community-latest-posts__read-more-button {
  display: inline-block;
  background-color: #1A2A4A;
  color: #FFD700;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-user-community-latest-posts__read-more-button:hover {
  background-color: #FFD700;
  color: #1A2A4A;
}

.page-user-community-latest-posts__promo-banner {
  background-color: #FFD700;
  padding: 60px 20px;
  margin: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  border-radius: 12px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-user-community-latest-posts__promo-title {
  font-size: 2.2em;
  color: #1A2A4A;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-user-community-latest-posts__promo-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
}

.page-user-community-latest-posts__promo-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-user-community-latest-posts__hero {
    flex-direction: row;
    text-align: left;
    padding: 100px 40px;
  }

  .page-user-community-latest-posts__hero-content {
    flex: 1;
    text-align: left;
  }

  .page-user-community-latest-posts__cta-group {
    justify-content: flex-start;
  }

  .page-user-community-latest-posts__hero-image-container {
    flex: 1;
    margin-top: 0;
    margin-left: 40px;
  }

  .page-user-community-latest-posts__main-title {
    font-size: 3.5em;
  }

  .page-user-community-latest-posts__promo-banner {
    flex-direction: row;
    text-align: left;
    padding: 80px 40px;
    gap: 50px;
  }

  .page-user-community-latest-posts__promo-content {
    flex: 2;
  }

  .page-user-community-latest-posts__promo-image {
    flex: 1;
    max-width: 350px;
  }
}

@media (min-width: 1024px) {
  .page-user-community-latest-posts__article-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .page-user-community-latest-posts__main-title {
    font-size: 2em;
  }
  .page-user-community-latest-posts__intro-text {
    font-size: 0.95em;
  }
  .page-user-community-latest-posts__cta-button {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-user-community-latest-posts__article-title {
    font-size: 1.5em;
  }
  .page-user-community-latest-posts__promo-title {
    font-size: 1.8em;
  }
  .page-user-community-latest-posts__promo-description {
    font-size: 0.95em;
  }
}