/* style/resources-new88-platform-advantages.css */

/* Variables for brand colors (optional, but good practice) */
:root {
  --page-primary-color: #CC0000;
  --page-secondary-color: #FFD700;
  --page-text-color-light: #ffffff;
  --page-text-color-dark: #333333;
  --page-background-dark: #1a1a1a;
  --page-card-background: rgba(255, 255, 255, 0.08);
  --page-border-color: rgba(255, 255, 255, 0.15);
}

.page-resources-new88-platform-advantages {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-text-color-light); /* Default text color for dark body background */
  background-color: #121212; /* Inherit from body or slightly different for subtle contrast */
  padding-top: 120px; /* Desktop: Ensures content is not hidden by fixed header */
}

/* General container styling */
.page-resources-new88-platform-advantages__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section styling */
.page-resources-new88-platform-advantages__hero-section,
.page-resources-new88-platform-advantages__content-section,
.page-resources-new88-platform-advantages__commitment-section,
.page-resources-new88-platform-advantages__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-new88-platform-advantages__dark-bg {
  background-color: var(--page-background-dark);
}

.page-resources-new88-platform-advantages__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--page-secondary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-new88-platform-advantages__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--page-text-color-light);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-resources-new88-platform-advantages__description {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* CTA Buttons */
.page-resources-new88-platform-advantages__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources-new88-platform-advantages__cta-button {
  display: inline-block;
  padding: 15px 35px;
  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.2);
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding/border included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-resources-new88-platform-advantages__btn-primary {
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
}

.page-resources-new88-platform-advantages__btn-primary:hover {
  background-color: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-new88-platform-advantages__btn-secondary {
  background-color: transparent;
  color: var(--page-secondary-color);
  border: 2px solid var(--page-secondary-color);
}

.page-resources-new88-platform-advantages__btn-secondary:hover {
  background-color: var(--page-secondary-color);
  color: var(--page-text-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Feature Grid */
.page-resources-new88-platform-advantages__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-new88-platform-advantages__feature-card.page-resources-new88-platform-advantages__card {
  background-color: var(--page-card-background);
  border: 1px solid var(--page-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--page-text-color-light);
}

.page-resources-new88-platform-advantages__feature-card.page-resources-new88-platform-advantages__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.page-resources-new88-platform-advantages__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%; /* Ensure image responsiveness */
  height: auto;
  display: block;
}

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

.page-resources-new88-platform-advantages__card-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #e0e0e0;
}

.page-resources-new88-platform-advantages__game-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-resources-new88-platform-advantages__game-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-resources-new88-platform-advantages__game-list li::before {
  content: '✔';
  color: var(--page-secondary-color);
  position: absolute;
  left: 0;
  top: 0;
}

.page-resources-new88-platform-advantages__text-link {
  color: var(--page-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-resources-new88-platform-advantages__text-link:hover {
  color: var(--page-secondary-color);
  text-decoration: underline;
}

/* Commitment Section */
.page-resources-new88-platform-advantages__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-new88-platform-advantages__commitment-item {
  background-color: var(--page-card-background);
  border: 1px solid var(--page-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-text-color-light);
}

.page-resources-new88-platform-advantages__commitment-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%; /* Ensure image responsiveness */
  height: auto;
  display: block;
}

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

.page-resources-new88-platform-advantages__commitment-text {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-new88-platform-advantages__main-title {
    font-size: 40px;
  }

  .page-resources-new88-platform-advantages__section-title {
    font-size: 30px;
  }

  .page-resources-new88-platform-advantages__description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-resources-new88-platform-advantages {
    padding-top: 100px !important; /* Mobile: Ensures content is not hidden by fixed header */
  }

  .page-resources-new88-platform-advantages__hero-section,
  .page-resources-new88-platform-advantages__content-section,
  .page-resources-new88-platform-advantages__commitment-section,
  .page-resources-new88-platform-advantages__cta-bottom-section {
    padding: 40px 0;
  }

  .page-resources-new88-platform-advantages__main-title {
    font-size: 32px;
    line-height: 1.3;
  }

  .page-resources-new88-platform-advantages__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-resources-new88-platform-advantages__description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-resources-new88-platform-advantages__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons from touching screen edges */
  }

  .page-resources-new88-platform-advantages__cta-button {
    width: 100% !important; /* Force full width on mobile */
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-new88-platform-advantages__feature-grid,
  .page-resources-new88-platform-advantages__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-resources-new88-platform-advantages__feature-card.page-resources-new88-platform-advantages__card,
  .page-resources-new88-platform-advantages__commitment-item {
    padding: 25px;
  }

  .page-resources-new88-platform-advantages__card-title {
    font-size: 20px;
  }

  .page-resources-new88-platform-advantages__card-text,
  .page-resources-new88-platform-advantages__commitment-text {
    font-size: 15px;
  }

  .page-resources-new88-platform-advantages__feature-icon,
  .page-resources-new88-platform-advantages__commitment-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  
  /* Mobile responsive for all images */
  .page-resources-new88-platform-advantages img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content must be responsive */
  .page-resources-new88-platform-advantages__container,
  .page-resources-new88-platform-advantages__hero-section,
  .page-resources-new88-platform-advantages__content-section,
  .page-resources-new88-platform-advantages__commitment-section,
  .page-resources-new88-platform-advantages__cta-bottom-section,
  .page-resources-new88-platform-advantages__feature-card,
  .page-resources-new88-platform-advantages__commitment-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }
  
  /* Adjust padding for feature-card to ensure inner content is not too wide */
  .page-resources-new88-platform-advantages__feature-card.page-resources-new88-platform-advantages__card,
  .page-resources-new88-platform-advantages__commitment-item {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .page-resources-new88-platform-advantages__game-list {
    padding-left: 0;
    text-align: left;
  }
  .page-resources-new88-platform-advantages__game-list li {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-new88-platform-advantages__main-title {
    font-size: 28px;
  }

  .page-resources-new88-platform-advantages__section-title {
    font-size: 22px;
  }

  .page-resources-new88-platform-advantages__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
}