/* style/resources-platform-overview.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --card-bg-dark-theme: rgba(255, 255, 255, 0.08);
  --card-border-dark-theme: rgba(255, 255, 255, 0.15);
  --section-bg-dark-theme: #1a1a1a;
  --button-hover-dark: #0056b3;
  --button-hover-light: #e0a800;
}

.page-resources-platform-overview {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark-bg); /* Body background is dark, so text is light */
  line-height: 1.6;
}

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

.page-resources-platform-overview__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-color-dark-bg);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-platform-overview__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-resources-platform-overview__dark-bg {
  background-color: var(--section-bg-dark-theme);
  color: var(--text-color-dark-bg);
}

.page-resources-platform-overview__card {
  background-color: var(--card-bg-dark-theme);
  border: 1px solid var(--card-border-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-resources-platform-overview__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-resources-platform-overview__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
  padding: 150px 20px 80px; /* Adjusted padding-top for fixed header */
  text-align: center;
  color: var(--text-color-dark-bg);
}

.page-resources-platform-overview__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-platform-overview__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-resources-platform-overview__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-platform-overview__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-platform-overview__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
}

.page-resources-platform-overview__cta-button--primary:hover {
  background-color: var(--button-hover-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-platform-overview__cta-button--secondary {
  background-color: transparent;
  color: var(--text-color-dark-bg);
  border: 2px solid var(--secondary-color);
}

.page-resources-platform-overview__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* About Section */
.page-resources-platform-overview__about-section {
  padding: 80px 0;
}

.page-resources-platform-overview__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources-platform-overview__content-text p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

.page-resources-platform-overview__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Advantages Section */
.page-resources-platform-overview__advantages-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-resources-platform-overview__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-platform-overview__advantage-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-resources-platform-overview__advantage-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-resources-platform-overview__advantage-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Products Section */
.page-resources-platform-overview__products-section {
  padding: 80px 0;
}

.page-resources-platform-overview__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-platform-overview__product-item {
  text-align: left;
}

.page-resources-platform-overview__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-resources-platform-overview__product-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-resources-platform-overview__product-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.page-resources-platform-overview__product-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-platform-overview__product-link:hover {
  background-color: var(--button-hover-dark);
}

/* How-to-Join Section */
.page-resources-platform-overview__how-to-join-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-resources-platform-overview__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-resources-platform-overview__step-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-resources-platform-overview__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-resources-platform-overview__step-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-platform-overview__step-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-platform-overview__step-button:hover {
  background-color: var(--button-hover-dark);
}

/* FAQ Section */
.page-resources-platform-overview__faq-section {
  padding: 80px 0;
}

.page-resources-platform-overview__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-platform-overview__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-platform-overview__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--card-bg-dark-theme);
  border: 1px solid var(--card-border-dark-theme);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark-bg);
}

.page-resources-platform-overview__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-resources-platform-overview__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--secondary-color);
}

.page-resources-platform-overview__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-color-dark-bg);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources-platform-overview__faq-item.active .page-resources-platform-overview__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(180deg);
}

.page-resources-platform-overview__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.page-resources-platform-overview__faq-item.active .page-resources-platform-overview__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-resources-platform-overview__faq-answer p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Blog Section */
.page-resources-platform-overview__blog-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-resources-platform-overview__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-platform-overview__blog-item {
  text-align: left;
}

.page-resources-platform-overview__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources-platform-overview__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-resources-platform-overview__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-resources-platform-overview__blog-item-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources-platform-overview__blog-item-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
}

.page-resources-platform-overview__view-all-button-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-platform-overview__section-title {
    font-size: 32px;
  }
  .page-resources-platform-overview__hero-title {
    font-size: 40px;
  }
  .page-resources-platform-overview__hero-description {
    font-size: 18px;
  }
  .page-resources-platform-overview__content-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-platform-overview__content-image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-resources-platform-overview__advantages-grid,
  .page-resources-platform-overview__product-grid,
  .page-resources-platform-overview__steps-grid,
  .page-resources-platform-overview__blog-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources-platform-overview__hero-section {
    padding: 100px 15px 60px; /* Mobile padding-top for fixed header */
  }
  .page-resources-platform-overview__section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .page-resources-platform-overview__hero-title {
    font-size: 32px;
  }
  .page-resources-platform-overview__hero-description {
    font-size: 16px;
  }
  .page-resources-platform-overview__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-platform-overview__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources-platform-overview__container {
    padding: 0 15px;
  }
  .page-resources-platform-overview__about-section,
  .page-resources-platform-overview__advantages-section,
  .page-resources-platform-overview__products-section,
  .page-resources-platform-overview__how-to-join-section,
  .page-resources-platform-overview__faq-section,
  .page-resources-platform-overview__blog-section {
    padding: 60px 0;
  }
  
  /* Image responsive */
  .page-resources-platform-overview img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images */
  .page-resources-platform-overview__content-grid,
  .page-resources-platform-overview__advantages-grid,
  .page-resources-platform-overview__product-grid,
  .page-resources-platform-overview__steps-grid,
  .page-resources-platform-overview__blog-list,
  .page-resources-platform-overview__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ specific mobile styles */
  .page-resources-platform-overview__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-resources-platform-overview__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-resources-platform-overview__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }
  .page-resources-platform-overview__faq-answer {
    padding: 0 20px;
  }
  .page-resources-platform-overview__faq-item.active .page-resources-platform-overview__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources-platform-overview__blog-item-title {
    font-size: 18px;
  }
  .page-resources-platform-overview__blog-item-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-resources-platform-overview__hero-title {
    font-size: 28px;
  }
  .page-resources-platform-overview__section-title {
    font-size: 24px;
  }
  .page-resources-platform-overview__advantages-grid,
  .page-resources-platform-overview__product-grid,
  .page-resources-platform-overview__steps-grid,
  .page-resources-platform-overview__blog-list {
    grid-template-columns: 1fr;
  }
  .page-resources-platform-overview__card {
    padding: 20px;
  }
  .page-resources-platform-overview__advantage-title,
  .page-resources-platform-overview__product-title,
  .page-resources-platform-overview__step-title {
    font-size: 20px;
  }
}