/* style/payment-methods.css */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for clarity */
}

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

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  text-align: center;
  overflow: hidden;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-payment-methods__section {
  padding: 80px 0;
}

.page-payment-methods__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__dark-bg .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__light-bg .page-payment-methods__section-title {
  color: #26A9E0;
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #ccc;
}

.page-payment-methods__light-bg .page-payment-methods__section-description {
  color: #555;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__btn-primary:hover {
  background-color: #1e86b5;
  transform: translateY(-2px);
}

.page-payment-methods__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__light-bg .page-payment-methods__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-payment-methods__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-payment-methods__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__feature-text {
  font-size: 1em;
  color: #ccc;
}

.page-payment-methods__light-bg .page-payment-methods__feature-text {
  color: #555;
}

/* Deposit & Withdrawal Methods */
.page-payment-methods__method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-payment-methods__method-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__method-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__method-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #ccc;
}

.page-payment-methods__light-bg .page-payment-methods__method-text {
  color: #555;
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.page-payment-methods__method-details li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: #f0f0f0;
}

.page-payment-methods__light-bg .page-payment-methods__method-details li {
  color: #333;
}

.page-payment-methods__method-details li::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
}

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

.page-payment-methods__note {
  background-color: rgba(38, 169, 224, 0.1);
  border-left: 5px solid #26A9E0;
  padding: 25px;
  margin-top: 40px;
  border-radius: 8px;
  text-align: left;
  color: #ffffff;
}

.page-payment-methods__light-bg .page-payment-methods__note {
  background-color: rgba(38, 169, 224, 0.05);
  color: #333333;
}

.page-payment-methods__note-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-payment-methods__note-list {
  list-style: disc;
  margin-left: 20px;
  color: #f0f0f0;
}

.page-payment-methods__light-bg .page-payment-methods__note-list {
  color: #555;
}

.page-payment-methods__note-list li {
  margin-bottom: 10px;
}

/* Security Section */
.page-payment-methods__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-payment-methods__security-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-payment-methods__security-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__security-text {
  font-size: 1em;
  color: #ccc;
}

/* Limits & Fees Table */
.page-payment-methods__table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}

.page-payment-methods__transaction-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  min-width: 700px; /* Ensure table is readable on smaller screens before full responsiveness */
}

.page-payment-methods__transaction-table th,
.page-payment-methods__transaction-table td {
  border: 1px solid #333; /* Darker border for dark background */
  padding: 15px;
  text-align: left;
  color: #ffffff;
}

.page-payment-methods__light-bg .page-payment-methods__transaction-table th,
.page-payment-methods__light-bg .page-payment-methods__transaction-table td {
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-payment-methods__transaction-table th {
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: bold;
}

.page-payment-methods__transaction-table tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter row for dark background */
}

.page-payment-methods__light-bg .page-payment-methods__transaction-table tbody tr:nth-child(odd) {
  background-color: #f5f5f5;
}

.page-payment-methods__table-note {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #aaa;
}

.page-payment-methods__light-bg .page-payment-methods__table-note {
  color: #666;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 40px;
}

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  text-align: left;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.15); /* Slightly darker for question */
  border-radius: 10px;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-payment-methods__light-bg .page-payment-methods__faq-question {
  background-color: #e0f2f7; /* Lighter for light background */
  color: #26A9E0;
}

.page-payment-methods__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.25);
}

.page-payment-methods__light-bg .page-payment-methods__faq-question:hover {
  background-color: #ccecf4;
}

.page-payment-methods__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: inherit;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Plus to X / Minus */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: #f0f0f0;
}

.page-payment-methods__light-bg .page-payment-methods__faq-answer {
  background-color: #ffffff;
  color: #333333;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 20px 25px;
}

.page-payment-methods__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-payment-methods__cta-final {
  padding: 100px 0;
  text-align: center;
}

.page-payment-methods__cta-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    flex-direction: column;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
    min-height: 500px;
  }
  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__section {
    padding: 60px 0;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-description {
    font-size: 0.95em;
  }
  .page-payment-methods__features-grid,
  .page-payment-methods__method-cards,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__card {
    padding: 20px;
  }
  .page-payment-methods__transaction-table {
    min-width: 100%; /* Allow table to shrink but ensure responsiveness */
  }
  .page-payment-methods__transaction-table th,
  .page-payment-methods__transaction-table td {
    padding: 10px;
    font-size: 0.9em;
  }

  /* Mobile image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__hero-image {
    width: 100% !important;
    height: 100% !important;
  }
  .page-payment-methods__feature-icon,
  .page-payment-methods__security-icon {
    width: 60px;
    height: 60px;
  }

  /* Mobile button responsiveness */
  .page-payment-methods__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-payment-methods__cta-wrapper,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 20px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-title {
    font-size: 1.5em;
  }
  .page-payment-methods__hero-section {
    min-height: 400px;
  }
  .page-payment-methods__card {
    padding: 15px;
  }
  .page-payment-methods__faq-title {
    font-size: 1em;
  }
  .page-payment-methods__faq-toggle {
    font-size: 1.2em;
  }
}