/* General Styles */
.page-payment-methods {
  background-color: #0D0E12; /* Body background from shared.css */
  color: #FFF3E6; /* Text Main from custom palette */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-payment-methods__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-payment-methods__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__cta-button:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-payment-methods__cta-button--secondary {
  background: transparent;
  border: 2px solid #FF8C1A;
  color: #FF8C1A;
}

.page-payment-methods__cta-button--secondary:hover {
  background: #FF8C1A;
  color: #FFF3E6;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: 52px;
  font-weight: 800;
  color: #FFF3E6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-payment-methods__description {
  font-size: 22px;
  color: #FFF3E6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Overview Section */
.page-payment-methods__overview-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

/* Detail Section */
.page-payment-methods__detail-section {
  padding: 60px 0;
}

.page-payment-methods__methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(255, 140, 26, 0.5);
}

.page-payment-methods__method-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__method-title {
  font-size: 24px;
  font-weight: 700;
  color: #FF8C1A;
  margin-bottom: 15px;
}

.page-payment-methods__method-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-payment-methods__method-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-payment-methods__method-features li {
  color: #FFF3E6;
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-payment-methods__icon-check {
  color: #FFA53A;
  margin-right: 10px;
  font-size: 18px;
}
.page-payment-methods__icon-check::before {
  content: '✔';
}

/* Withdraw Section */
.page-payment-methods__withdraw-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-payment-methods__step-card {
  background-color: #0D0E12; /* Background color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FF8C1A;
  color: #FFF3E6;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-payment-methods__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFF3E6;
  margin-bottom: 10px;
}

.page-payment-methods__step-description {
  font-size: 15px;
  color: #FFF3E6;
}

.page-payment-methods__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Benefits Section */
.page-payment-methods__benefits-section {
  padding: 60px 0;
}

.page-payment-methods__benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__benefit-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__benefit-item i {
  font-size: 48px;
  color: #FF8C1A;
  margin-bottom: 20px;
  display: block;
}

/* Simple icons for demonstration, in a real scenario these would be SVG/Font Awesome */
.page-payment-methods__icon-shield::before { content: '🛡️'; }
.page-payment-methods__icon-clock::before { content: '⏱️'; }
.page-payment-methods__icon-wallet::before { content: '💳'; }
.page-payment-methods__icon-support::before { content: '💬'; }

.page-payment-methods__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFF3E6;
  margin-bottom: 15px;
}

.page-payment-methods__benefit-description {
  font-size: 16px;
  color: #FFF3E6;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

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

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #0D0E12; /* Background color */
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: rgba(255, 140, 26, 0.1); /* Slight hover effect with main color */
}

.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C1A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__container {
    padding: 20px 30px;
  }

  .page-payment-methods__hero-image-wrapper {
    max-height: 500px;
  }

  .page-payment-methods__main-title {
    font-size: 42px;
  }

  .page-payment-methods__description {
    font-size: 20px;
  }

  .page-payment-methods__section-title {
    font-size: 30px;
  }

  .page-payment-methods__methods-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__benefit-item {
    padding: 25px;
  }

  .page-payment-methods__method-title {
    font-size: 22px;
  }

  .page-payment-methods__step-title {
    font-size: 18px;
  }

  .page-payment-methods__benefit-title {
    font-size: 20px;
  }
}

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

  .page-payment-methods__hero-section {
    padding-bottom: 40px;
  }

  .page-payment-methods__hero-image-wrapper {
    max-height: 400px;
  }

  .page-payment-methods__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .page-payment-methods__hero-content {
    padding: 0 15px;
  }

  .page-payment-methods__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-payment-methods__description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-payment-methods__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-payment-methods__text-block {
    font-size: 16px;
  }

  .page-payment-methods__cta-button {
    padding: 12px 25px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-payment-methods__cta-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-payment-methods__methods-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__benefit-item {
    padding: 20px;
  }

  .page-payment-methods__method-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-payment-methods__method-title {
    font-size: 20px;
  }

  .page-payment-methods__step-number {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .page-payment-methods__step-title {
    font-size: 18px;
  }

  .page-payment-methods__benefit-item i {
    font-size: 40px;
  }

  .page-payment-methods__benefit-title {
    font-size: 20px;
  }

  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
  }

  .page-payment-methods__faq-qtext {
    font-size: 16px;
  }

  .page-payment-methods__faq-toggle {
    font-size: 20px;
  }

  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Ensure all images inside page-payment-methods are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__methods-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__benefits-grid,
  .page-payment-methods__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__section-title, .page-payment-methods__text-block {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 28px;
  }
  .page-payment-methods__description {
    font-size: 16px;
  }
  .page-payment-methods__section-title {
    font-size: 22px;
  }
  .page-payment-methods__cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-payment-methods__method-title {
    font-size: 18px;
  }
  .page-payment-methods__step-title {
    font-size: 16px;
  }
  .page-payment-methods__benefit-title {
    font-size: 18px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 15px;
  }
  .page-payment-methods__faq-toggle {
    font-size: 18px;
  }
}