/* style/resources-tk88-app-features-overview.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFFFF; /* Adjusted for WCAG AA contrast */
  --background-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
}

.page-resources-tk88-app-features-overview {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color);
}

.page-resources-tk88-app-features-overview__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: var(--primary-color);
  color: var(--text-color-light);
  overflow: hidden;
}

.page-resources-tk88-app-features-overview__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-resources-tk88-app-features-overview__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-resources-tk88-app-features-overview__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-tk88-app-features-overview__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--text-color-light);
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-tk88-app-features-overview__cta-button:hover {
  background: var(--text-color-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-tk88-app-features-overview__hero-image {
  width: 100%;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.page-resources-tk88-app-features-overview__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-tk88-app-features-overview__section {
  padding: 80px 20px;
}

.page-resources-tk88-app-features-overview__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-resources-tk88-app-features-overview__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-resources-tk88-app-features-overview__dark-bg .page-resources-tk88-app-features-overview__section-title {
  color: var(--text-color-light);
}

.page-resources-tk88-app-features-overview__dark-bg .page-resources-tk88-app-features-overview__text-block {
  color: var(--text-color-light);
}

.page-resources-tk88-app-features-overview__light-bg {
  background-color: var(--background-color);
  color: var(--text-color-dark);
}

.page-resources-tk88-app-features-overview__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

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

.page-resources-tk88-app-features-overview__feature-card.page-resources-tk88-app-features-overview__card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
  border: 1px solid #e0e0e0;
}

.page-resources-tk88-app-features-overview__feature-card.page-resources-tk88-app-features-overview__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-tk88-app-features-overview__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-tk88-app-features-overview__feature-card.page-resources-tk88-app-features-overview__card p {
  font-size: 1em;
  color: #555;
}

.page-resources-tk88-app-features-overview__image-content-block {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
}

.page-resources-tk88-app-features-overview__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-resources-tk88-app-features-overview__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tk88-app-features-overview__content-wrapper {
  flex: 2;
  min-width: 300px;
}

.page-resources-tk88-app-features-overview__content-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-resources-tk88-app-features-overview__content-wrapper p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-resources-tk88-app-features-overview__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.page-resources-tk88-app-features-overview__step-card.page-resources-tk88-app-features-overview__card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  padding-top: 60px;
  color: var(--text-color-dark);
  border: 1px solid #e0e0e0;
}

.page-resources-tk88-app-features-overview__step-number {
  position: absolute;
  top: 20px;
  left: 30px;
  background: var(--primary-color);
  color: var(--text-color-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-resources-tk88-app-features-overview__step-card .page-resources-tk88-app-features-overview__card-title {
  color: var(--primary-color);
  margin-top: 0;
}

.page-resources-tk88-app-features-overview__step-card p {
  color: #555;
}

.page-resources-tk88-app-features-overview__image-wrapper--center {
  text-align: center;
  margin-top: 60px;
}

.page-resources-tk88-app-features-overview__image-wrapper--center img {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-tk88-app-features-overview__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-resources-tk88-app-features-overview__btn-custom-register,
.page-resources-tk88-app-features-overview__btn-custom-login {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-tk88-app-features-overview__btn-custom-register {
  background-color: var(--register-button-bg);
  color: var(--button-text-color);
  border-color: var(--register-button-bg);
}

.page-resources-tk88-app-features-overview__btn-custom-register:hover {
  background-color: darken(var(--register-button-bg), 10%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.page-resources-tk88-app-features-overview__btn-custom-login {
  background-color: var(--login-button-bg);
  color: var(--button-text-color);
  border-color: var(--login-button-bg);
}

.page-resources-tk88-app-features-overview__btn-custom-login:hover {
  background-color: darken(var(--login-button-bg), 10%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.page-resources-tk88-app-features-overview__two-column-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-top: 60px;
}

.page-resources-tk88-app-features-overview__column-text {
  flex: 2;
  min-width: 300px;
}

.page-resources-tk88-app-features-overview__column-text p {
  color: var(--text-color-light);
  margin-bottom: 20px;
}

.page-resources-tk88-app-features-overview__column-image {
  flex: 1;
  min-width: 300px;
}

.page-resources-tk88-app-features-overview__column-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tk88-app-features-overview__faq-list {
  margin-top: 60px;
}

.page-resources-tk88-app-features-overview__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-resources-tk88-app-features-overview__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-tk88-app-features-overview__faq-question:hover {
  background: #f5f5f5;
}

.page-resources-tk88-app-features-overview__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-resources-tk88-app-features-overview__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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-tk88-app-features-overview__faq-item.active .page-resources-tk88-app-features-overview__faq-toggle {
  transform: rotate(45deg);
  color: #C30808;
}

.page-resources-tk88-app-features-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;
}

.page-resources-tk88-app-features-overview__faq-item.active .page-resources-tk88-app-features-overview__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: var(--text-color-dark);
}

.page-resources-tk88-app-features-overview__faq-item.active .page-resources-tk88-app-features-overview__faq-answer p {
  color: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-tk88-app-features-overview__main-title {
    font-size: 2.8em;
  }
  .page-resources-tk88-app-features-overview__section-title {
    font-size: 2em;
  }
  .page-resources-tk88-app-features-overview__content-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-tk88-app-features-overview__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-tk88-app-features-overview__main-title {
    font-size: 2em;
  }
  .page-resources-tk88-app-features-overview__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources-tk88-app-features-overview__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-resources-tk88-app-features-overview__hero-image img {
    border-radius: 8px;
  }
  .page-resources-tk88-app-features-overview__section {
    padding: 40px 15px;
  }
  .page-resources-tk88-app-features-overview__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-tk88-app-features-overview__text-block {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-resources-tk88-app-features-overview__features-grid,
  .page-resources-tk88-app-features-overview__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-tk88-app-features-overview__feature-card.page-resources-tk88-app-features-overview__card,
  .page-resources-tk88-app-features-overview__step-card.page-resources-tk88-app-features-overview__card {
    padding: 25px;
    padding-top: 50px;
    border-radius: 8px;
  }
  .page-resources-tk88-app-features-overview__card-title {
    font-size: 1.3em;
  }
  .page-resources-tk88-app-features-overview__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    top: 15px;
    left: 25px;
  }
  .page-resources-tk88-app-features-overview__image-content-block,
  .page-resources-tk88-app-features-overview__two-column-layout {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources-tk88-app-features-overview__image-wrapper,
  .page-resources-tk88-app-features-overview__content-wrapper,
  .page-resources-tk88-app-features-overview__column-text,
  .page-resources-tk88-app-features-overview__column-image {
    min-width: unset;
    width: 100%;
  }
  .page-resources-tk88-app-features-overview__image-wrapper img,
  .page-resources-tk88-app-features-overview__column-image img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }
  .page-resources-tk88-app-features-overview__content-title {
    font-size: 1.4em;
    margin-top: 20px;
  }
  .page-resources-tk88-app-features-overview__content-wrapper p,
  .page-resources-tk88-app-features-overview__column-text p {
    font-size: 1em;
  }
  .page-resources-tk88-app-features-overview__button-group {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources-tk88-app-features-overview__btn-custom-register,
  .page-resources-tk88-app-features-overview__btn-custom-login {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-tk88-app-features-overview__faq-question {
    padding: 15px 20px;
  }
  .page-resources-tk88-app-features-overview__faq-question h3 {
    font-size: 1.1em;
  }
  .page-resources-tk88-app-features-overview__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-resources-tk88-app-features-overview__faq-item.active .page-resources-tk88-app-features-overview__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Global image reset for responsiveness */
.page-resources-tk88-app-features-overview img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure content containers are responsive */
.page-resources-tk88-app-features-overview__container,
.page-resources-tk88-app-features-overview__section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-resources-tk88-app-features-overview img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-tk88-app-features-overview__section,
  .page-resources-tk88-app-features-overview__card,
  .page-resources-tk88-app-features-overview__container,
  .page-resources-tk88-app-features-overview__image-content-block,
  .page-resources-tk88-app-features-overview__two-column-layout,
  .page-resources-tk88-app-features-overview__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources-tk88-app-features-overview__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}