/* style/payment-methods.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --background-color: #B71C1C; /* This is the body background */
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;

  /* Text colors based on body background-color: #B71C1C (dark) */
  --content-text-color: #FFF5E1; /* Light text for dark background */
  --heading-text-color: #FFF5E1; /* Light text for dark background */
}

.page-payment-methods {
  font-family: 'Arial', sans-serif;
  color: var(--content-text-color);
  background-color: var(--background-color);
}

.page-payment-methods__section {
  padding: 60px 0;
  position: relative;
}

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

.page-payment-methods__main-title,
.page-payment-methods__section-title {
  color: var(--heading-text-color);
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.3;
}

.page-payment-methods__sub-title {
  color: var(--heading-text-color);
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-payment-methods__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom */
  overflow: hidden;
}

.page-payment-methods__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-payment-methods__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-payment-methods__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-payment-methods__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color);
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #000000; /* Ensure high contrast for button text */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-payment-methods__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-payment-methods__introduction-section {
  background-color: var(--background-color);
}

.page-payment-methods__deposit-methods-section {
  background-color: var(--deep-red-color);
}

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

.page-payment-methods__method-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__method-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjusted to be larger than 200px */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__method-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-payment-methods__method-description {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

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

.page-payment-methods__method-features li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
  font-size: 14px;
}

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

.page-payment-methods__withdrawal-guide-section {
  background-color: var(--background-color);
}

.page-payment-methods__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-payment-methods__numbered-list li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--content-text-color);
}

.page-payment-methods__numbered-list li strong {
  color: var(--gold-color);
}

.page-payment-methods__bullet-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-payment-methods__bullet-list li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--content-text-color);
}

.page-payment-methods__security-section {
  background-color: var(--primary-color);
  color: #ffffff; /* Ensure white text on primary color background */
}

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

.page-payment-methods__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-payment-methods__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjusted to be larger than 200px */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-payment-methods__feature-description {
  font-size: 15px;
  line-height: 1.7;
}

.page-payment-methods__tips-section {
  background-color: var(--background-color);
}

.page-payment-methods__faq-section {
  background-color: var(--deep-red-color);
}

.page-payment-methods__faq-list {
  margin-top: 40px;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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, 255, 255, 0.05);
}

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

.page-payment-methods__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 25px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 10px 10px;
  color: var(--text-main-color);
}

.page-payment-methods__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 32px;
  }
  .page-payment-methods__hero-description {
    font-size: 17px;
  }
  .page-payment-methods__section-title {
    font-size: 30px;
  }
  .page-payment-methods__method-card,
  .page-payment-methods__feature-item {
    padding: 25px;
  }
  .page-payment-methods__method-icon,
  .page-payment-methods__feature-icon {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 10px 15px 40px;
  }
  .page-payment-methods__hero-image img {
    border-radius: 8px;
  }
  .page-payment-methods__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-payment-methods__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-payment-methods__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-payment-methods__sub-title {
    font-size: 20px;
  }
  .page-payment-methods__text-block,
  .page-payment-methods__numbered-list li,
  .page-payment-methods__bullet-list li,
  .page-payment-methods__method-description,
  .page-payment-methods__feature-description,
  .page-payment-methods__faq-answer p {
    font-size: 15px;
    line-height: 1.7;
  }
  .page-payment-methods__method-title,
  .page-payment-methods__feature-title {
    font-size: 20px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 16px;
  }
  .page-payment-methods__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px 20px;
  }

  /* Mobile image and button responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__cta-button,
  .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-wrap: wrap !important;
    gap: 10px;
  }
  .page-payment-methods__method-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 24px;
  }
  .page-payment-methods__section-title {
    font-size: 22px;
  }
  .page-payment-methods__cta-button {
    font-size: 16px;
    padding: 10px 25px;
  }
  .page-payment-methods__method-title,
  .page-payment-methods__feature-title {
    font-size: 18px;
  }
}

/* Contrast Fixes (if needed) */
.page-payment-methods__dark-section .page-payment-methods__section-title,
.page-payment-methods__dark-section .page-payment-methods__text-block {
  color: #ffffff; /* Ensure white text on primary color background */
}

.page-payment-methods__faq-section .page-payment-methods__section-title {
  color: var(--heading-text-color);
}