/* style/payment-methods.css */

/* Base styles for the page */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css, explicitly set for context */
}

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

/* Sections */
.page-payment-methods__hero-section,
.page-payment-methods__overview-section,
.page-payment-methods__detail-section,
.page-payment-methods__how-to-deposit-section,
.page-payment-methods__how-to-withdraw-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

/* Color themes for sections */
.page-payment-methods__dark-bg {
  background-color: #003366; /* Main brand dark blue */
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #f0f2f5; /* Light background for contrast */
  color: #333333;
}

/* Fixed header spacing for the first content section */
.page-payment-methods__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-payment-methods__hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

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

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for prominence */
  line-height: 1.2;
}

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

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

.page-payment-methods__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay */
}

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

/* General Titles and Descriptions */
.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section for contrast */
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Buttons */
.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: #FFD700; /* Gold accent */
  color: #003366; /* Dark blue text for contrast */
  border: 2px solid #FFD700;
}

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

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #FFD700;
  color: #003366;
}

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

/* Method Grid (Overview Section) */
.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: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333; /* Dark text for light background */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-icon {
  width: 100%;
  max-width: 250px; /* Adjust size for cards */
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-payment-methods__method-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 10px;
}

.page-payment-methods__method-text {
  font-size: 1em;
  color: #555555;
}

/* Method Details Section */
.page-payment-methods__method-details {
  text-align: left;
  margin-top: 40px;
}

.page-payment-methods__method-subtitle {
  font-size: 1.8em;
  color: #FFD700; /* Gold for subtitles */
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-payment-methods__method-details p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-payment-methods__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #f0f0f0;
}

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

.page-payment-methods__list li strong {
  color: #FFD700;
}

/* How-To Sections (Deposit/Withdraw) */
.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-payment-methods__step-number {
  background-color: #003366;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-payment-methods__step-title {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 10px;
}

.page-payment-methods__step-text {
  font-size: 1em;
  color: #555555;
}

/* Security Section */
.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-payment-methods__security-list li {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-payment-methods__security-item-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 10px;
}

.page-payment-methods__security-list li p {
  color: #555555;
}

/* FAQ Section */
.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;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  color: #333333;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #003366; /* Dark blue background for questions */
  color: #ffffff; /* White text for contrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: #002244;
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question {
  background-color: #002244;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #f8f8f8;
  color: #333333;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* CTA Section */
.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive adjustments */
@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 {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__hero-section,
  .page-payment-methods__overview-section,
  .page-payment-methods__detail-section,
  .page-payment-methods__how-to-deposit-section,
  .page-payment-methods__how-to-withdraw-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding: 60px 0;
  }

  /* Fixed header spacing for mobile, if not handled by shared.css body padding */
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }

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

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

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

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

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

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

  .page-payment-methods__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* 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-container, 
  .page-payment-methods__method-card, 
  .page-payment-methods__step-card, 
  .page-payment-methods__security-list li, 
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-payment-methods__faq-question,
  .page-payment-methods__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@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__method-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__security-list {
    grid-template-columns: 1fr;
  }
}