/* style/payment-methods.css */

/* Custom Colors */
:root {
  --page-payment-methods-card-bg: #11271B;
  --page-payment-methods-background: #08160F;
  --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;
  --page-payment-methods-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-payment-methods {
  background-color: var(--page-payment-methods-background); /* Dark background */
  color: var(--page-payment-methods-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  margin-top: -200px; /* Overlap with image slightly for visual effect, but text is not on image */
  padding: 0 20px;
  max-width: 800px;
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size, not fixed large */
  font-weight: 700;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-payment-methods__hero-description {
  font-size: 1.1em;
  color: var(--page-payment-methods-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-payment-methods__btn-primary {
  background: var(--page-payment-methods-button-gradient);
  color: #ffffff;
  border: none;
}

.page-payment-methods__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-payment-methods__btn-secondary:hover {
  background: var(--page-payment-methods-gold);
  color: var(--page-payment-methods-background);
}

/* Sections */
.page-payment-methods__overview-section,
.page-payment-methods__deposit-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__contact-cta-section {
  padding: 60px 0;
  background-color: var(--page-payment-methods-background);
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-payment-methods-text-main);
  text-align: center;
  margin-bottom: 20px;
}

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

/* Features Grid */
.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-card {
  background-color: var(--page-payment-methods-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-payment-methods-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.page-payment-methods__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensuring icon is not too small, but still responsive */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__feature-title {
  font-size: 1.4em;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 10px;
}

.page-payment-methods__feature-text {
  color: var(--page-payment-methods-text-secondary);
  font-size: 0.95em;
}

/* Method Cards */
.page-payment-methods__method-card {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--page-payment-methods-border);
}

.page-payment-methods__method-card:last-child {
  margin-bottom: 0;
}

.page-payment-methods__method-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-payment-methods__method-content {
  width: 60%;
  padding: 30px;
}

.page-payment-methods__method-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-payment-methods__method-text {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-payment-methods__method-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-payment-methods__method-list li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

/* Dark/Light Background variations for method cards */
.page-payment-methods__dark-bg {
  background-color: var(--page-payment-methods-card-bg);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__light-bg .page-payment-methods__method-title {
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__light-bg .page-payment-methods__method-text {
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__light-bg .page-payment-methods__method-list li {
  color: var(--page-payment-methods-text-secondary);
}

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

.page-payment-methods__security-item {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-payment-methods-border);
}

.page-payment-methods__security-icon {
  width: 100%;
  max-width: 250px; /* Ensuring icon is not too small, but still responsive */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__security-title {
  font-size: 1.4em;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 10px;
}

.page-payment-methods__security-text {
  color: var(--page-payment-methods-text-secondary);
  font-size: 0.95em;
}

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

.page-payment-methods__faq-item {
  background-color: var(--page-payment-methods-card-bg);
  border: 1px solid var(--page-payment-methods-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-payment-methods-text-main);
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-item summary:hover {
  background-color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-payment-methods-gold);
}

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

/* Contact CTA Section */
.page-payment-methods__contact-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    margin-top: -150px;
  }

  .page-payment-methods__method-card {
    flex-direction: column;
  }

  .page-payment-methods__method-image,
  .page-payment-methods__method-content {
    width: 100%;
  }

  .page-payment-methods__method-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px !important;
  }

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

  .page-payment-methods__hero-content {
    margin-top: -100px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

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

  .page-payment-methods__method-content {
    padding: 20px;
  }

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

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

  .page-payment-methods__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9em;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column !important; /* Force column layout for buttons */
    gap: 15px;
    padding: 0 15px;
  }

  .page-payment-methods__cta-button {
    width: 100% !important; /* Full width for mobile buttons */
    max-width: 100% !important;
    padding: 12px 20px !important;
  }

  /* Mobile image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__feature-card,
  .page-payment-methods__method-card,
  .page-payment-methods__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* body đã đảm nhận --header-offset */
  }
  
  /* Override specific image widths if they are part of a flex/grid that might shrink them too much */
  .page-payment-methods__feature-icon,
  .page-payment-methods__security-icon {
    max-width: 150px !important; /* Allow small icons in these specific contexts */
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .page-payment-methods__method-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 200px !important; /* Maintain a reasonable height for method images */
    object-fit: cover !important;
  }
}