/* style/payment-methods.css */

/* Base styles for the payment methods page */
.page-payment-methods {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for main content, though body is handled by shared */
  line-height: 1.6;
}

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

.page-payment-methods__section {
  padding: 60px 0;
  text-align: center;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand primary color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

/* H1 specific styling for the hero section */
.page-payment-methods__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000000; /* Darker for better contrast on hero */
  max-width: 900px; /* Constrain H1 width */
  margin: 0 auto 20px auto;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background-color: #f8f8f8;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and text */
}

.page-payment-methods__hero-content {
  max-width: 1000px;
  padding: 0 20px;
  text-align: center;
}

.page-payment-methods__description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit max width for button group */
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__cta-buttons--center {
    margin-top: 40px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-payment-methods__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-payment-methods__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-payment-methods__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Info Section */
.page-payment-methods__info-section {
  background-color: #ffffff;
}

.page-payment-methods__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block; /* Ensure it's a block element for margin auto */
}

/* Deposit & Withdrawal Methods */
.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods {
  padding: 80px 0;
}

.page-payment-methods__dark-section {
  background-color: #26A9E0; /* Brand primary color as background */
  color: #ffffff; /* White text for dark background */
}

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

.page-payment-methods__dark-section .page-payment-methods__text-block {
    color: #f0f0f0;
}

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

.page-payment-methods__method-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
  color: #333333; /* Dark text for light card background */
  transition: transform 0.3s ease;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
}

.page-payment-methods__card-icon {
  width: 100%; /* Occupy main visual area */
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-payment-methods__card-description {
  font-size: 1em;
  color: #666666;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  background-color: #f0f0f0; /* Light gray background for FAQ */
  padding: 80px 0;
}

.page-payment-methods__dark-bg {
  background-color: #26A9E0; /* Brand primary for dark background */
  color: #ffffff; /* White text for dark background */
}

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

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

.page-payment-methods__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  color: #333333; /* Dark text for light background */
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    border-bottom: none;
}

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

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-payment-methods__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
}

.page-payment-methods__faq-answer p {
  margin-bottom: 0;
}

/* Security Section */
.page-payment-methods__security-section {
  background-color: #f8f8f8;
  padding-bottom: 80px;
}

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

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__container {
    padding: 0 15px !important; /* Force padding for all containers */
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }
  .page-payment-methods__description,
  .page-payment-methods__text-block,
  .page-payment-methods__card-description {
    font-size: 1em;
  }

  /* Image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__hero-image,
  .page-payment-methods__image-content,
  .page-payment-methods__card-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Button responsiveness */
  .page-payment-methods__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Method cards grid */
  .page-payment-methods__methods-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  /* FAQ */
  .page-payment-methods__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Video section top padding */
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
}

/* Ensure no filter is used on images */
.page-payment-methods img {
  filter: none !important; /* Explicitly ensure no filters */
}