/* style/blog-new-tg88-game-features.css */

/* Color variables based on custom palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-page: #08160F; /* Renamed to avoid conflict with shared --background */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* General page styling */
.page-blog-new-tg88-game-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background-page); /* Use page-specific background */
}

/* Hero Section */
.page-blog-new-tg88-game-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--background-page); /* Dark background */
  color: var(--text-main);
  overflow: hidden; /* Ensure no overflow */
}

.page-blog-new-tg88-game-features__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for image container */
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog-new-tg88-game-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-blog-new-tg88-game-features__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-blog-new-tg88-game-features__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-blog-new-tg88-game-features__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* Buttons */
.page-blog-new-tg88-game-features__btn-primary,
.page-blog-new-tg88-game-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none; /* Reset border */
}

.page-blog-new-tg88-game-features__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for primary button */
  margin-right: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-new-tg88-game-features__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-new-tg88-game-features__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-blog-new-tg88-game-features__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-blog-new-tg88-game-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-new-tg88-game-features__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
}

.page-blog-new-tg88-game-features__section-title--white {
  color: #ffffff;
}

.page-blog-new-tg88-game-features__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-blog-new-tg88-game-features__text-block--white {
  color: #ffffff;
}

/* Introduction Section */
.page-blog-new-tg88-game-features__introduction {
  padding: 80px 0;
  background-color: var(--background-page);
}

/* Features Section */
.page-blog-new-tg88-game-features__features {
  padding: 80px 0;
  background-color: var(--card-bg); /* Card BG color */
}

.page-blog-new-tg88-game-features__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog-new-tg88-game-features__feature-card {
  background-color: var(--background-page); /* Darker background for cards */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog-new-tg88-game-features__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog-new-tg88-game-features__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-blog-new-tg88-game-features__card-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Make description take available space */
}

/* UX Optimization Section */
.page-blog-new-tg88-game-features__ux-optimization {
  padding: 80px 0;
  background-color: var(--background-page);
}

.page-blog-new-tg88-game-features__ux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-blog-new-tg88-game-features__ux-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-new-tg88-game-features__ux-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color); /* Using primary color for subtitles for emphasis */
}

.page-blog-new-tg88-game-features__ux-main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Benefits Section */
.page-blog-new-tg88-game-features__benefits {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-blog-new-tg88-game-features__benefit-list {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog-new-tg88-game-features__benefit-item {
  background-color: var(--background-page);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-new-tg88-game-features__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-blog-new-tg88-game-features__cta-bottom {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* FAQ Section */
.page-blog-new-tg88-game-features__faq-section {
  padding: 80px 0;
  background-color: var(--background-page);
}

.page-blog-new-tg88-game-features__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-new-tg88-game-features__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  overflow: hidden; /* For details tag */
}

.page-blog-new-tg88-game-features__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  transition: background-color 0.3s ease;
}

.page-blog-new-tg88-game-features__faq-item summary:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

.page-blog-new-tg88-game-features__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-blog-new-tg88-game-features__faq-qtext {
  flex-grow: 1;
}

.page-blog-new-tg88-game-features__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-blog-new-tg88-game-features__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-blog-new-tg88-game-features__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-blog-new-tg88-game-features__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section at bottom */
.page-blog-new-tg88-game-features__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* Use deep green for this section */
  text-align: center;
  color: #ffffff;
}

.page-blog-new-tg88-game-features__btn-primary--large {
  font-size: 1.3rem;
  padding: 18px 35px;
  margin-top: 30px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-blog-new-tg88-game-features__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-blog-new-tg88-game-features__section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  /* General mobile padding */
  .page-blog-new-tg88-game-features__hero-section,
  .page-blog-new-tg88-game-features__introduction,
  .page-blog-new-tg88-game-features__features,
  .page-blog-new-tg88-game-features__ux-optimization,
  .page-blog-new-tg88-game-features__benefits,
  .page-blog-new-tg88-game-features__faq-section,
  .page-blog-new-tg88-game-features__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific mobile padding for containers */
  .page-blog-new-tg88-game-features__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Images */
  .page-blog-new-tg88-game-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Image containers */
  .page-blog-new-tg88-game-features__hero-image-wrapper,
  .page-blog-new-tg88-game-features__feature-card,
  .page-blog-new-tg88-game-features__ux-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Feature image specific for mobile */
  .page-blog-new-tg88-game-features__feature-image {
    height: 180px;
    object-fit: cover;
  }

  /* Text adjustments */
  .page-blog-new-tg88-game-features {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-new-tg88-game-features__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog-new-tg88-game-features__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-blog-new-tg88-game-features__hero-description,
  .page-blog-new-tg88-game-features__text-block {
    font-size: 1rem;
  }

  /* Buttons */
  .page-blog-new-tg88-game-features__btn-primary,
  .page-blog-new-tg88-game-features__btn-secondary,
  .page-blog-new-tg88-game-features a[class*="button"],
  .page-blog-new-tg88-game-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;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important; /* Stack buttons vertically */
    padding-left: 15px !important; /* Add padding to text within button */
    padding-right: 15px !important; /* Add padding to text within button */
  }

  .page-blog-new-tg88-game-features__cta-bottom {
    display: flex;
    flex-direction: column; /* Stack buttons */
    align-items: center;
    gap: 10px; /* Ensure gap for stacked buttons */
  }
  
  /* FAQ */
  .page-blog-new-tg88-game-features__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-blog-new-tg88-game-features__faq-answer {
    padding: 0 20px 15px;
  }

  /* Ensure content areas respect padding and overflow */
  .page-blog-new-tg88-game-features__hero-content,
  .page-blog-new-tg88-game-features__feature-card,
  .page-blog-new-tg88-game-features__ux-item,
  .page-blog-new-tg88-game-features__benefit-item,
  .page-blog-new-tg88-game-features__faq-item,
  .page-blog-new-tg88-game-features__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-blog-new-tg88-game-features__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }
}