:root {
    --five88-primary: #11A84E;
    --five88-secondary: #22C768;
    --five88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --five88-card-bg: #11271B;
    --five88-background: #08160F;
    --five88-text-main: #F2FFF6;
    --five88-text-secondary: #A7D9B8;
    --five88-border: #2E7A4E;
    --five88-glow: #57E38D;
    --five88-gold: #F2C14E;
    --five88-divider: #1E3A2A;
    --five88-deep-green: #0A4B2C;
}

.page-payment-methods {
  background-color: var(--five88-background);
  color: var(--five88-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-payment-methods__hero-content {
  max-width: 800px;
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--five88-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.1em;
  color: var(--five88-text-secondary);
  margin-bottom: 30px;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--five88-primary);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-payment-methods__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--five88-text-main);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-payment-methods__text-block {
  font-size: 1.05em;
  color: var(--five88-text-main);
  margin-bottom: 20px;
}

.page-payment-methods__text-block--note {
  color: var(--five88-text-secondary);
  font-style: italic;
  margin-top: 30px;
}

.page-payment-methods__feature-list,
.page-payment-methods__note-list,
.page-payment-methods__step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-payment-methods__feature-item,
.page-payment-methods__note-item,
.page-payment-methods__step-item {
  background-color: var(--five88-card-bg);
  border-left: 4px solid var(--five88-primary);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: var(--five88-text-main);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__feature-item strong,
.page-payment-methods__note-item strong {
  color: var(--five88-gold);
}

.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods {
  padding: 60px 0;
}

.page-payment-methods__method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-cards--single {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__method-card {
  background-color: var(--five88-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__method-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--five88-border);
}

.page-payment-methods__card-title {
  font-size: 1.6em;
  color: var(--five88-primary);
  margin-bottom: 15px;
}

.page-payment-methods__card-description {
  color: var(--five88-text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__card-features {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
  margin-bottom: 20px;
}

.page-payment-methods__card-features li {
  color: var(--five88-text-main);
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-payment-methods__card-features li::before {
  content: '✔';
  color: var(--five88-secondary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-payment-methods__cta-button {
  display: inline-block;
  background: var(--five88-button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(34, 199, 104, 0.4);
}

.page-payment-methods__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.6);
}

.page-payment-methods__cta-button--secondary {
  background: none;
  color: var(--five88-primary);
  border: 2px solid var(--five88-primary);
  box-shadow: none;
}

.page-payment-methods__cta-button--secondary:hover {
  background-color: var(--five88-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-payment-methods__step-by-step {
  padding: 60px 0;
  background-color: var(--five88-deep-green);
}

.page-payment-methods__steps-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-payment-methods__steps-content {
  flex: 1;
}

.page-payment-methods__step-list {
  counter-reset: step-counter;
}

.page-payment-methods__step-item {
  counter-increment: step-counter;
  background-color: var(--five88-card-bg);
  border-left: 4px solid var(--five88-gold);
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
  padding-left: 60px;
  text-align: left;
}

.page-payment-methods__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 15px;
  background-color: var(--five88-gold);
  color: var(--five88-background);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-payment-methods__step-item a {
  color: var(--five88-secondary);
  text-decoration: underline;
}

.page-payment-methods__process-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--five88-border);
}

.page-payment-methods__important-notes {
  padding: 60px 0;
}

.page-payment-methods__notes-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 40px auto;
  display: block;
  border: 1px solid var(--five88-border);
}

.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: var(--five88-deep-green);
}

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-payment-methods__faq-item {
  background-color: var(--five88-card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-item summary {
  display: block;
  padding: 20px;
  background-color: var(--five88-border);
  color: var(--five88-text-main);
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  padding: 20px;
  color: var(--five88-text-secondary);
  font-size: 0.95em;
  border-top: 1px solid var(--five88-divider);
}

.page-payment-methods__faq-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 40px auto;
  display: block;
  border: 1px solid var(--five88-border);
}

.page-payment-methods__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(to right, var(--five88-deep-green), var(--five88-background));
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-payment-methods__cta-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 50px;
  border: 1px solid var(--five88-border);
}

/* General image styling to prevent small icons and ensure minimum size */
.page-payment-methods img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__steps-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .page-payment-methods__process-image {
    max-width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-payment-methods__section-title {
    font-size: 2em;
  }

  .page-payment-methods__sub-title {
    font-size: 1.5em;
  }

  .page-payment-methods__method-cards {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__method-cards--single {
    grid-template-columns: 1fr;
  }

  /* Images responsive adaptation */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important; /* Added for all images */
  }

  /* Video responsive adaptation (if any video elements were added) */
  .page-payment-methods video,
  .page-payment-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__video-section,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-payment-methods__video-section {
    padding-top: 10px !important;
  }

  /* Button responsive adaptation */
  .page-payment-methods__cta-button,
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods 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-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Ensure content containers also adapt */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__intro-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__step-by-step,
  .page-payment-methods__important-notes,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__process-image {
    max-width: 100%;
    width: 100%;
  }

  .page-payment-methods__hero-image,
  .page-payment-methods__notes-image,
  .page-payment-methods__faq-image,
  .page-payment-methods__cta-image {
    max-width: 100%;
    width: 100%;
  }
}