/* style/payment-methods.css */

.page-payment-methods {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-payment-methods__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero content */
  color: #FFFFFF;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6; /* Slightly dim the background image for text readability */
}

.page-payment-methods__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 3;
}

.page-payment-methods__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-payment-methods__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-payment-methods__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-payment-methods__button--deposit {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-payment-methods__button--deposit:hover {
  background-color: #e0a33a;
  border-color: #e0a33a;
}

.page-payment-methods__button--withdraw {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-payment-methods__button--withdraw:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
}

.page-payment-methods__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
  color: #444444;
}

.page-payment-methods__why-choose-section,
.page-payment-methods__details-section,
.page-payment-methods__security-section,
.page-payment-methods__how-to-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
  padding: 60px 0;
}

.page-payment-methods__why-choose-section {
  background-color: #f8f8f8;
}

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

.page-payment-methods__feature-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 5px solid #FCBC45;
}

.page-payment-methods__feature-item:hover {
  transform: translateY(-5px);
}

.page-payment-methods__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000000;
}

.page-payment-methods__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

.page-payment-methods__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-payment-methods__card:hover {
  transform: translateY(-8px);
}

.page-payment-methods__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-payment-methods__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #000000;
}

.page-payment-methods__card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-payment-methods__card-title a:hover {
  color: #FCBC45;
}

.page-payment-methods__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: #666666;
  flex-grow: 1;
}

.page-payment-methods__button--view-details {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  font-size: 0.95em;
  text-transform: uppercase;
}

.page-payment-methods__button--view-details:hover {
  background-color: #333333;
}

.page-payment-methods__security-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-payment-methods__security-section .page-payment-methods__section-title,
.page-payment-methods__security-section .page-payment-methods__text-content {
  color: #FFFFFF;
}

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

.page-payment-methods__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-payment-methods__security-icon {
  width: 200px; /* Min size for content images */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); /* Allowed drop-shadow, not color filter */
}

.page-payment-methods__security-subtitle {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FCBC45;
}

.page-payment-methods__security-description {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-payment-methods__how-to-section {
  background-color: #f8f8f8;
}

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

.page-payment-methods__step-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-payment-methods__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000000;
}

.page-payment-methods__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-payment-methods__faq-section {
  background-color: #FFFFFF;
}

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

.page-payment-methods__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-question {
  font-size: 1.2em;
  font-weight: 600;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000000;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-payment-methods__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-payment-methods__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: #FFFFFF;
}

.page-payment-methods__faq-answer.active {
  max-height: 200px; /* Adjust based on content */
  padding: 20px;
}

.page-payment-methods__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #555555;
}

.page-payment-methods__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
}

.page-payment-methods__faq-answer a:hover {
  text-decoration: underline;
}

.page-payment-methods__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.page-payment-methods__cta-section .page-payment-methods__section-title,
.page-payment-methods__cta-section .page-payment-methods__text-content {
  color: #FFFFFF;
}

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

.page-payment-methods__button--register {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-payment-methods__button--register:hover {
  background-color: #e0a33a;
  border-color: #e0a33a;
}

.page-payment-methods__button--login {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-payment-methods__button--login:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

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

  .page-payment-methods__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-title {
    font-size: 2.5em;
  }

  .page-payment-methods__hero-description {
    font-size: 1em;
  }

  .page-payment-methods__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__button {
    width: 100%;
    max-width: 300px; /* Constrain button width */
  }

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

  .page-payment-methods__text-content {
    font-size: 0.95em;
  }

  .page-payment-methods__features-grid,
  .page-payment-methods__detail-cards,
  .page-payment-methods__security-features,
  .page-payment-methods__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__card-image,
  .page-payment-methods__security-icon {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Ensure content images are not too small */
    width: auto; /* Allow auto width */
  }

  .page-payment-methods__security-icon {
    width: 100%;
    height: auto;
  }

  .page-payment-methods__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-payment-methods__faq-answer {
    padding: 15px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 2em;
  }

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

  .page-payment-methods__hero-section {
    padding: 50px 15px;
  }

  .page-payment-methods__content-container {
    padding: 30px 15px;
  }

  .page-payment-methods__feature-item,
  .page-payment-methods__card,
  .page-payment-methods__security-item,
  .page-payment-methods__step-item {
    padding: 20px;
  }

  .page-payment-methods__card-title {
    font-size: 1.4em;
  }
}