/* style/user-community-latest-posts.css */

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

.page-user-community-latest-posts__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-user-community-latest-posts__hero-section {
  background: linear-gradient(135deg, #FFD700 0%, #00BFFF 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-user-community-latest-posts__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #fff; /* Ensure high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-user-community-latest-posts__hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly lighter for contrast */
}

.page-user-community-latest-posts__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold */
  color: #1a1a1a; /* Dark text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-user-community-latest-posts__cta-button--secondary {
  background-color: #00BFFF; /* Deep Sky Blue */
  color: #fff;
}

.page-user-community-latest-posts__cta-button--secondary:hover {
  background-color: #0099cc; /* Darker blue */
}

.page-user-community-latest-posts__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

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

.page-user-community-latest-posts__cta-button--outline:hover {
  background-color: #FFD700;
  color: #1a1a1a;
}

.page-user-community-latest-posts__intro-section,
.page-user-community-latest-posts__why-follow-section,
.page-user-community-latest-posts__latest-articles-section,
.page-user-community-latest-posts__quality-assurance-section,
.page-user-community-latest-posts__maximize-posts-section,
.page-user-community-latest-posts__commitment-section,
.page-user-community-latest-posts__final-cta-section {
  padding: 60px 0;
}

.page-user-community-latest-posts__section-heading {
  font-size: 2.5em;
  color: #00BFFF; /* Deep Sky Blue for headings */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-user-community-latest-posts__section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold underline */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-user-community-latest-posts__section-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  color: #555;
}

.page-user-community-latest-posts__intro-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-user-community-latest-posts__intro-content p {
  font-size: 1.1em;
  color: #444;
  text-align: justify;
}

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

.page-user-community-latest-posts__image--large {
  width: 80%;
}

.page-user-community-latest-posts__dark-bg {
  background-color: #1a2a3a; /* Dark background for contrast */
  color: #f0f0f0;
}

.page-user-community-latest-posts__dark-bg .page-user-community-latest-posts__section-heading {
  color: #FFD700; /* Gold heading on dark background */
}

.page-user-community-latest-posts__dark-bg .page-user-community-latest-posts__section-heading::after {
  background-color: #00BFFF; /* Blue underline on dark background */
}

.page-user-community-latest-posts__dark-bg p {
  color: #e0e0e0;
}

.page-user-community-latest-posts__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-user-community-latest-posts__feature-item {
  background-color: #2a3b4c; /* Slightly lighter dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-user-community-latest-posts__feature-item:hover {
  transform: translateY(-5px);
}

.page-user-community-latest-posts__feature-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
}

.page-user-community-latest-posts__feature-item p {
  color: #c0c0c0;
  font-size: 1em;
}

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

.page-user-community-latest-posts__article-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-user-community-latest-posts__article-card:hover {
  transform: translateY(-5px);
}

.page-user-community-latest-posts__article-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-user-community-latest-posts__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-user-community-latest-posts__article-title {
  font-size: 1.4em;
  color: #00BFFF; /* Deep Sky Blue */
  margin-bottom: 10px;
}

.page-user-community-latest-posts__article-excerpt {
  color: #666;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-user-community-latest-posts__read-more-link {
  color: #FFD700; /* Gold link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-user-community-latest-posts__read-more-link:hover {
  color: #00BFFF; /* Deep Sky Blue on hover */
}

.page-user-community-latest-posts__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-user-community-latest-posts__list li {
  background-color: #fff;
  padding: 20px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #444;
}

.page-user-community-latest-posts__list li strong {
  color: #00BFFF;
}

.page-user-community-latest-posts__cta-banner {
  text-align: center;
  padding: 80px 0;
}

.page-user-community-latest-posts__banner-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold */
  margin-bottom: 20px;
}

.page-user-community-latest-posts__banner-subtitle {
  font-size: 1.3em;
  color: #e0e0e0;
  margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-user-community-latest-posts__hero-title {
    font-size: 2.8em;
  }
  .page-user-community-latest-posts__hero-subtitle {
    font-size: 1.2em;
  }
  .page-user-community-latest-posts__section-heading {
    font-size: 2em;
  }
  .page-user-community-latest-posts__banner-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-user-community-latest-posts__hero-section {
    padding: 80px 0;
  }
  .page-user-community-latest-posts__hero-title {
    font-size: 2.2em;
  }
  .page-user-community-latest-posts__hero-subtitle {
    font-size: 1em;
  }
  .page-user-community-latest-posts__intro-section,
  .page-user-community-latest-posts__why-follow-section,
  .page-user-community-latest-posts__latest-articles-section,
  .page-user-community-latest-posts__quality-assurance-section,
  .page-user-community-latest-posts__maximize-posts-section,
  .page-user-community-latest-posts__commitment-section,
  .page-user-community-latest-posts__final-cta-section {
    padding: 40px 0;
  }
  .page-user-community-latest-posts__section-heading {
    font-size: 1.8em;
  }
  .page-user-community-latest-posts__feature-grid,
  .page-user-community-latest-posts__article-grid,
  .page-user-community-latest-posts__list {
    grid-template-columns: 1fr;
  }
  .page-user-community-latest-posts__image--large {
    width: 100%;
  }
  .page-user-community-latest-posts__cta-button--outline {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-user-community-latest-posts__button-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-user-community-latest-posts__hero-title {
    font-size: 1.8em;
  }
  .page-user-community-latest-posts__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-user-community-latest-posts__banner-title {
    font-size: 1.8em;
  }
  .page-user-community-latest-posts__banner-subtitle {
    font-size: 1em;
  }
  .page-user-community-latest-posts__article-title {
    font-size: 1.2em;
  }
}