/* style/community.css */

/* Biến màu */
:root {
  --page-community-primary-color: #0A2463;
  --page-community-secondary-color: #FFD700;
  --page-community-dark-text: #1a1a1a;
  --page-community-light-text: #ffffff;
  --page-community-bg-light: #f4f7fa;
  --page-community-bg-dark: #071a47;
  --page-community-border-color: #e0e0e0;
}

.page-community {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-community-dark-text);
}

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

.page-community__grid {
  display: grid;
  gap: 30px;
}

.page-community__grid--2-cols {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .page-community__grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-community__grid--3-cols {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .page-community__grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .page-community__grid--3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-community__img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-community__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  color: #555;
}

/* Hero Section */
.page-community__hero-section {
  background: linear-gradient(135deg, var(--page-community-primary-color), #2a4c8c);
  color: var(--page-community-light-text);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-community__hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: page-community-pulse 10s infinite alternate;
}

@keyframes page-community-pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

.page-community__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.page-community__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* Buttons */
.page-community__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  font-size: 1em;
}

.page-community__btn--primary {
  background-color: var(--page-community-primary-color);
  color: var(--page-community-light-text);
  border: 2px solid var(--page-community-primary-color);
}

.page-community__btn--primary:hover {
  background-color: #071a47;
  border-color: #071a47;
}

.page-community__btn--secondary {
  background-color: transparent;
  color: var(--page-community-primary-color);
  border: 2px solid var(--page-community-primary-color);
}

.page-community__btn--secondary:hover {
  background-color: var(--page-community-primary-color);
  color: var(--page-community-light-text);
}

.page-community__btn--gold {
  background-color: var(--page-community-secondary-color);
  color: var(--page-community-primary-color);
  border: 2px solid var(--page-community-secondary-color);
}

.page-community__btn--gold:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-community__btn--large {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* Intro Section */
.page-community__intro-section {
  padding: 80px 0;
  background-color: var(--page-community-light-text);
}

.page-community__intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-community__intro-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

@media (min-width: 768px) {
  .page-community__intro-image {
    order: 2;
  }
  .page-community__intro-content {
    order: 1;
  }
}

/* Features Section */
.page-community__features-section {
  padding: 80px 0;
  background-color: var(--page-community-bg-light);
}

.page-community__feature-card {
  background-color: var(--page-community-light-text);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-community__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.1));
}

.page-community__feature-title {
  font-size: 1.3em;
  color: var(--page-community-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-community__feature-card p {
  color: #666;
}

/* Content List Section (Details Pages) */
.page-community__content-list-section {
  padding: 80px 0;
  background-color: var(--page-community-light-text);
}

.page-community__card {
  background-color: var(--page-community-light-text);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-community__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-community__card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-community__card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-community__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-community__card-title a {
  color: var(--page-community-primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-community__card-title a:hover {
  color: var(--page-community-secondary-color);
}

.page-community__card-text {
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-community__card .page-community__btn {
  margin-top: auto;
  align-self: flex-start;
}

/* How to Join Section */
.page-community__how-to-join-section {
  padding: 80px 0;
  background-color: var(--page-community-bg-dark);
  color: var(--page-community-light-text);
}

.page-community__how-to-join-content h2,
.page-community__how-to-join-content h3 {
  color: var(--page-community-light-text);
}

.page-community__how-to-join-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-community__how-to-join-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonials Section */
.page-community__testimonials-section {
  padding: 80px 0;
  background-color: var(--page-community-bg-light);
}

.page-community__testimonial-card {
  background-color: var(--page-community-light-text);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-community__testimonial-text {
  font-style: italic;
  color: #444;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-community__testimonial-author {
  font-weight: bold;
  color: var(--page-community-primary-color);
}

/* FAQ Section */
.page-community__faq-section {
  padding: 80px 0;
  background-color: var(--page-community-light-text);
}

.page-community__faq-item {
  background-color: var(--page-community-bg-light);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-community__faq-question {
  font-size: 1.2em;
  color: var(--page-community-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-community__faq-answer {
  color: #555;
}

/* Call to Action Section */
.page-community__cta-section {
  padding: 80px 0;
  background: linear-gradient(90deg, var(--page-community-primary-color), #2a4c8c);
  color: var(--page-community-light-text);
  text-align: center;
}

.page-community__cta-section .page-community__section-title,
.page-community__cta-section .page-community__section-description {
  color: var(--page-community-light-text);
}

.page-community__cta-section .page-community__btn {
  margin-top: 20px;
}

/* SEO Content */
.page-community__seo-content {
  padding: 60px 0;
  background-color: var(--page-community-bg-light);
}

.page-community__seo-content h2,
.page-community__seo-content h3 {
  color: var(--page-community-primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-community__seo-content h2 {
  font-size: 2em;
}

.page-community__seo-content h3 {
  font-size: 1.6em;
}

.page-community__seo-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #333;
}

.page-community__seo-content ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #333;
}

.page-community__seo-content ul li {
  margin-bottom: 8px;
}

.page-community__seo-content a {
  color: var(--page-community-primary-color);
  text-decoration: underline;
}

.page-community__seo-content a:hover {
  color: var(--page-community-secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .page-community__hero-title {
    font-size: 2.5em;
  }
  .page-community__hero-subtitle {
    font-size: 1.2em;
  }
  .page-community__section-title {
    font-size: 2em;
  }
  .page-community__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-community__btn--large {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-community__intro-section .page-community__grid,
  .page-community__how-to-join-section .page-community__grid {
    grid-template-columns: 1fr;
  }
  .page-community__intro-image, .page-community__how-to-join-image {
    margin-top: 30px;
  }
  .page-community__features-section .page-community__grid,
  .page-community__content-list-section .page-community__grid,
  .page-community__testimonials-section .page-community__grid {
    grid-template-columns: 1fr;
  }
}