/* style/resources-platform-features.css */

/* Base Styles */
.page-resources-platform-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

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

.page-resources-platform-features h2,
.page-resources-platform-features h3 {
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources-platform-features p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-resources-platform-features__btn-primary,
.page-resources-platform-features__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-platform-features__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-resources-platform-features__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-platform-features__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #017439; /* Primary color border */
}

.page-resources-platform-features__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-resources-platform-features__btn-text {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-platform-features__btn-text:hover {
  color: #005a2d;
}

/* Image Base Styles */
.page-resources-platform-features img {
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter properties to change image color */
}

/* Section Backgrounds */
.page-resources-platform-features__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
  color: #ffffff;
}

.page-resources-platform-features__light-bg {
  background-color: #2a2a2a; /* Light background for sections, but still dark for contrast */
  color: #f0f0f0;
}

/* HERO Section */
.page-resources-platform-features__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared.css handles body padding-top, so this section starts at 0 */
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-resources-platform-features__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.page-resources-platform-features__hero-image {
  width: 100%;
  margin: 0;
}

.page-resources-platform-features__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Products Section */
.page-resources-platform-features__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #0a0a0a; /* Same as body for seamless integration */
}

.page-resources-platform-features__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Desktop: 6 columns */
  gap: 20px;
}

.page-resources-platform-features__products-grid--small {
  grid-column: span 4; /* Occupies 4 columns */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.page-resources-platform-features__products-grid--large {
  grid-column: span 2; /* Occupies 2 columns */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-resources-platform-features__product-card {
  width: 100%;
  max-width: 300px; /* Max width for each card */
  border-radius: 0; /* No border-radius */
  overflow: hidden;
  background: transparent;
  box-shadow: none; /* No box-shadow */
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in their grid cell */
}

.page-resources-platform-features__product-card:hover {
  transform: translateY(-3px); /* Light hover effect */
}

.page-resources-platform-features__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-resources-platform-features__product-card-image {
  width: 100%;
  max-width: 300px; /* Max width for image container */
  overflow: hidden;
}

.page-resources-platform-features__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain original aspect ratio */
  display: block;
}

/* Intro Section */
.page-resources-platform-features__intro-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-platform-features__intro-title {
  font-size: 36px;
  margin-bottom: 30px;
}

.page-resources-platform-features__intro-description {
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 18px;
  color: #e0e0e0;
}

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

.page-resources-platform-features__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card background */
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-platform-features__feature-title {
  font-size: 24px;
  color: #FFFF00; /* Register/Login font color for titles */
  margin-bottom: 15px;
  text-align: left;
}

.page-resources-platform-features__feature-item p {
  font-size: 15px;
  color: #cccccc;
}

/* Quick Links Section */
.page-resources-platform-features__quick-links-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Primary color background */
  color: #FFFFFF;
}

.page-resources-platform-features__quick-links-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-resources-platform-features__quick-links-description {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 16px;
  color: #e0e0e0;
}

.page-resources-platform-features__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Games Overview Section */
.page-resources-platform-features__games-overview-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-platform-features__games-overview-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.page-resources-platform-features__games-overview-description {
  max-width: 800px;
  margin: 0 auto 60px auto;
  font-size: 18px;
}

.page-resources-platform-features__game-category {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-platform-features__game-category--reverse {
  flex-direction: row-reverse;
}

.page-resources-platform-features__game-image-wrapper {
  flex: 1;
  min-width: 40%;
}

.page-resources-platform-features__game-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-resources-platform-features__game-details {
  flex: 1;
  padding: 40px;
}

.page-resources-platform-features__game-title {
  font-size: 28px;
  color: #FFFF00; /* Register/Login font color for titles */
  text-align: left;
}

.page-resources-platform-features__game-details p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #cccccc;
}

/* Promotions Section */
.page-resources-platform-features__promotions-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-platform-features__promotions-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.page-resources-platform-features__promotions-description {
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 18px;
}

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

.page-resources-platform-features__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources-platform-features__promotion-card-title {
  font-size: 22px;
  color: #FFFF00; /* Register/Login font color for titles */
  margin-bottom: 15px;
  text-align: left;
}

.page-resources-platform-features__promotion-card p {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #cccccc;
}

/* Security & Support Section */
.page-resources-platform-features__security-support-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-platform-features__security-support-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.page-resources-platform-features__security-support-description {
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 18px;
}

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

.page-resources-platform-features__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-platform-features__security-item img {
  
  
  margin: 0 auto 20px auto;
}

.page-resources-platform-features__security-item-title {
  font-size: 22px;
  color: #FFFF00; /* Register/Login font color for titles */
  margin-bottom: 10px;
}

.page-resources-platform-features__security-item p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #cccccc;
}

/* FAQ Section */
.page-resources-platform-features__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-platform-features__faq-title {
  font-size: 36px;
  margin-bottom: 40px;
}

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

.page-resources-platform-features__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-platform-features__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 15px;
  opacity: 0;
}

.page-resources-platform-features__faq-item.active .page-resources-platform-features__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

.page-resources-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter background for question */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-platform-features__faq-question:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-resources-platform-features__faq-question:active {
  background: rgba(255, 255, 255, 0.25);
}

.page-resources-platform-features__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  text-align: left;
  color: #ffffff;
}

.page-resources-platform-features__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFFF00; /* Register/Login font color for toggle */
  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: 28px;
  height: 28px;
}

.page-resources-platform-features__faq-item.active .page-resources-platform-features__faq-toggle {
  color: #C30808; /* Register/Login color for active toggle */
  transform: rotate(45deg); /* Plus to X */
}

/* Blog Section */
.page-resources-platform-features__blog-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-platform-features__blog-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.page-resources-platform-features__blog-description {
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 18px;
}

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

.page-resources-platform-features__blog-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-resources-platform-features__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
}

.page-resources-platform-features__blog-card-content {
  padding: 20px;
}

.page-resources-platform-features__blog-card-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #FFFF00; /* Register/Login font color for titles */
  text-align: left;
}

.page-resources-platform-features__blog-card-title a {
  color: #FFFF00;
  text-decoration: none;
}

.page-resources-platform-features__blog-card-title a:hover {
  text-decoration: underline;
}

.page-resources-platform-features__blog-card-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-resources-platform-features__blog-card-date {
  font-size: 13px;
  color: #999999;
}

.page-resources-platform-features__view-all-button {
  margin-top: 50px;
}

/* Responsive Design */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-resources-platform-features__container {
    padding: 0 15px;
  }

  .page-resources-platform-features h2 {
    font-size: 32px;
  }

  .page-resources-platform-features__intro-title,
  .page-resources-platform-features__games-overview-title,
  .page-resources-platform-features__promotions-title,
  .page-resources-platform-features__security-support-title,
  .page-resources-platform-features__faq-title,
  .page-resources-platform-features__blog-title {
    font-size: 30px;
  }

  .page-resources-platform-features__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
    gap: 15px;
  }

  .page-resources-platform-features__products-grid--small {
    grid-column: span 1; /* Occupies full width */
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout for small cards */
    gap: 15px;
  }

  .page-resources-platform-features__products-grid--large {
    grid-column: span 1; /* Occupies full width */
    grid-template-columns: repeat(2, 1fr); /* 1x2 layout for large cards */
    gap: 15px;
  }

  .page-resources-platform-features__game-category {
    flex-direction: column;
    text-align: center;
  }

  .page-resources-platform-features__game-category--reverse {
    flex-direction: column;
  }

  .page-resources-platform-features__game-details {
    padding: 30px;
  }

  .page-resources-platform-features__game-title {
    text-align: center;
  }

  .page-resources-platform-features__game-details p {
    text-align: center;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-resources-platform-features {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-platform-features__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* HERO Section Mobile */
  .page-resources-platform-features__hero-section {
    padding-top: 0 !important; /* shared.css handles body padding-top */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .page-resources-platform-features__hero-image img {
    width: 100%;
    height: auto;
  }

  /* Products Section Mobile */
  .page-resources-platform-features__products-section {
    padding: 40px 15px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .page-resources-platform-features__products-container {
    grid-template-columns: 1fr; /* Stack grids vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .page-resources-platform-features__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout for small cards */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  .page-resources-platform-features__products-grid--small .page-resources-platform-features__product-card,
  .page-resources-platform-features__products-grid--small .page-resources-platform-features__product-card-image {
    max-width: 100%; /* Adjust to fit 2 columns */
  }
  
  .page-resources-platform-features__products-grid--large {
    grid-template-columns: 1fr; /* 1x1 layout for large cards */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  .page-resources-platform-features__products-grid--large .page-resources-platform-features__product-card,
  .page-resources-platform-features__products-grid--large .page-resources-platform-features__product-card-image {
    max-width: 100%; /* Adjust to fit 1 column */
  }

  /* General content sections */
  .page-resources-platform-features__intro-section,
  .page-resources-platform-features__quick-links-section,
  .page-resources-platform-features__games-overview-section,
  .page-resources-platform-features__promotions-section,
  .page-resources-platform-features__security-support-section,
  .page-resources-platform-features__faq-section,
  .page-resources-platform-features__blog-section {
    padding: 40px 0;
  }

  .page-resources-platform-features__intro-title,
  .page-resources-platform-features__games-overview-title,
  .page-resources-platform-features__promotions-title,
  .page-resources-platform-features__security-support-title,
  .page-resources-platform-features__faq-title,
  .page-resources-platform-features__blog-title {
    font-size: 24px;
  }

  .page-resources-platform-features__intro-description,
  .page-resources-platform-features__games-overview-description,
  .page-resources-platform-features__promotions-description,
  .page-resources-platform-features__security-support-description,
  .page-resources-platform-features__blog-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-resources-platform-features__feature-item,
  .page-resources-platform-features__promotion-card,
  .page-resources-platform-features__security-item,
  .page-resources-platform-features__blog-card {
    padding: 20px;
  }

  .page-resources-platform-features__feature-title,
  .page-resources-platform-features__promotion-card-title,
  .page-resources-platform-features__security-item-title,
  .page-resources-platform-features__blog-card-title {
    font-size: 20px;
  }

  .page-resources-platform-features__button-group {
    flex-direction: column !important;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .page-resources-platform-features__btn-primary,
  .page-resources-platform-features__btn-secondary,
  .page-resources-platform-features a[class*="button"],
  .page-resources-platform-features 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;
  }

  .page-resources-platform-features__game-category {
    flex-direction: column;
  }

  .page-resources-platform-features__game-category--reverse {
    flex-direction: column;
  }

  .page-resources-platform-features__game-details {
    padding: 20px;
  }

  .page-resources-platform-features__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-platform-features__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-platform-features__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-platform-features__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-platform-features__faq-item.active .page-resources-platform-features__faq-answer {
    padding: 15px !important;
  }

  .page-resources-platform-features__blog-card img {
    
  }
}