/* style/payment-methods.css */

/* Variables from custom palette */
:root {
  --page-payment-methods-primary-color: #11A84E;
  --page-payment-methods-secondary-color: #22C768;
  --page-payment-methods-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-payment-methods-card-bg: #11271B;
  --page-payment-methods-background: #08160F; /* This is the body bg */
  --page-payment-methods-text-main: #F2FFF6;
  --page-payment-methods-text-secondary: #A7D9B8;
  --page-payment-methods-border: #2E7A4E;
  --page-payment-methods-glow: #57E38D;
  --page-payment-methods-gold: #F2C14E;
  --page-payment-methods-divider: #1E3A2A;
  --page-payment-methods-deep-green: #0A4B2C;

  /* Default text color for the page, based on dark body background */
  --page-payment-methods-default-text-color: var(--page-payment-methods-text-main);
}

/* Base styles for the page content */
.page-payment-methods {
  background-color: var(--page-payment-methods-background); /* Dark background */
  color: var(--page-payment-methods-default-text-color); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure some space before footer */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above, text below */
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-payment-methods-deep-green); /* A darker shade for hero bg */
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size */
  min-width: 200px; /* Minimum size */
}

.page-payment-methods__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above image if any overlap */
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  color: var(--page-payment-methods-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.15rem;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 30px;
}

/* Section Titles */
.page-payment-methods__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--page-payment-methods-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-payment-methods__section-description {
  font-size: 1.1rem;
  color: var(--page-payment-methods-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-payment-methods__card {
  background-color: var(--page-payment-methods-card-bg); /* Dark background for cards */
  border: 1px solid var(--page-payment-methods-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-payment-methods-text-main); /* Light text on dark card */
  display: flex;
  flex-direction: column;
}

.page-payment-methods__card-title,
.page-payment-methods__step-title,
.page-payment-methods__feature-title {
  font-size: 1.6rem;
  color: var(--page-payment-methods-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__card-text {
  font-size: 1rem;
  color: var(--page-payment-methods-text-secondary);
  flex-grow: 1; /* Allow text to grow and fill space */
}

.page-payment-methods__card-image,
.page-payment-methods__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

/* Step Cards for Guides */
.page-payment-methods__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-card {
  /* Inherits styles from .page-payment-methods__card */
}

.page-payment-methods__step-list {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--page-payment-methods-text-secondary);
  margin-top: 15px;
  padding-left: 0;
}

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

.page-payment-methods__step-list li strong {
  color: var(--page-payment-methods-text-main);
}

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

.page-payment-methods__feature-item {
  /* Inherits styles from .page-payment-methods__card */
}

/* Call to Action Buttons */
.page-payment-methods__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure button responsiveness */
}

.page-payment-methods__cta-button--primary {
  background: var(--page-payment-methods-button-gradient);
  color: #ffffff; /* White text for contrast on gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-payment-methods__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-payment-methods__cta-button--secondary {
  background-color: transparent;
  color: var(--page-payment-methods-primary-color);
  border: 2px solid var(--page-payment-methods-primary-color);
}

.page-payment-methods__cta-button--secondary:hover {
  background-color: var(--page-payment-methods-primary-color);
  color: #ffffff;
}

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

.page-payment-methods__faq-item {
  background-color: var(--page-payment-methods-card-bg); /* Dark background for FAQ items */
  border: 1px solid var(--page-payment-methods-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-payment-methods-text-main); /* Light text */
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-payment-methods-primary-color);
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -khtml-user-select: none; /* Disable text selection on Konqueror */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-payment-methods-gold);
}

.page-payment-methods__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--page-payment-methods-text-secondary);
  line-height: 1.7;
}

/* Conclusion Section */
.page-payment-methods__conclusion-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* General Section Spacing */
.page-payment-methods__section {
  padding: 60px 0;
}
.page-payment-methods__overview-section {
  padding-top: 40px;
}
.page-payment-methods__deposit-guide,
.page-payment-methods__withdrawal-guide,
.page-payment-methods__security-section,
.page-payment-methods__faq-section {
  padding-top: 60px;
}


/* Responsive styles for mobile */
@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__hero-section {
    padding-bottom: 40px;
  }

  .page-payment-methods__hero-image-wrapper {
    margin-bottom: 20px;
    max-height: 300px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-payment-methods__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-payment-methods__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-payment-methods__card-grid,
  .page-payment-methods__steps-container,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

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

  .page-payment-methods__card-title,
  .page-payment-methods__step-title,
  .page-payment-methods__feature-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .page-payment-methods__card-text,
  .page-payment-methods__step-list li,
  .page-payment-methods__faq-answer p {
    font-size: 0.9rem;
  }

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

  .page-payment-methods__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-payment-methods__faq-toggle {
    font-size: 1.3rem;
  }

  .page-payment-methods__faq-answer {
    padding: 0 20px 15px 20px;
  }
  
  /* Mobile image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content from touching edges */
    padding-right: 15px; /* Add padding to prevent content from touching edges */
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-payment-methods__hero-section {
    padding-left: 0 !important; /* Hero section padding handled by its content container */
    padding-right: 0 !important;
    padding-top: 10px !important; /* Small top padding for hero section */
  }

  .page-payment-methods__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Specific fix for hero image wrapper not having horizontal padding */
  .page-payment-methods__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  /* If multiple buttons are in a row, stack them on mobile */
  .page-payment-methods__cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between stacked buttons */
  }
}