/* style/payment-methods.css */

:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212;
  --background-light: #f5f5f5;
  --border-color: #e0e0e0;
}

.page-payment-methods {
  color: var(--text-color-light); /* Body background is dark, so text should be light */
  background: var(--background-dark);
  padding-top: var(--header-offset, 120px); /* Apply header offset if shared.css doesn't */
}

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

.page-payment-methods__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-payment-methods__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-align: justify;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  padding: 0;
  margin-top: 0; /* Offset handled by main.page-payment-methods */
  overflow: hidden;
}

.page-payment-methods__hero-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.4);
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-color-light);
  max-width: 900px;
  padding: 20px;
}

.page-payment-methods__hero-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* Sử dụng màu vàng cho tiêu đề nổi bật */
}

.page-payment-methods__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

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

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-payment-methods__btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

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

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

/* Dark Section */
.page-payment-methods__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

/* Deposit & Withdrawal Methods Sections */
.page-payment-methods__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-payment-methods__method-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
}

.page-payment-methods__method-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-payment-methods__method-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-payment-methods__method-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-payment-methods__method-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color-light);
}

.page-payment-methods__cta-block {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__cta-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-payment-methods__cta-description {
    font-size: 18px;
    color: var(--text-color-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Security Section */
.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 {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
}

.page-payment-methods__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-payment-methods__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-payment-methods__feature-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color-light);
}

.page-payment-methods__image-full-width {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Fees & Limits Section */
.page-payment-methods__limits-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__limits-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-payment-methods__limits-table th,
.page-payment-methods__limits-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
}

.page-payment-methods__limits-table th {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 18px;
}

.page-payment-methods__limits-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

.page-payment-methods__limits-table tr:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-payment-methods__note {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 20px;
}

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

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-light);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: rgba(0, 51, 102, 0.8);
}

.page-payment-methods__faq-question:hover {
  background: rgba(0, 51, 102, 0.7);
  border-color: var(--secondary-color);
}

.page-payment-methods__faq-question:active {
  background: rgba(0, 51, 102, 0.9);
}

.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-light);
}

.page-payment-methods__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
  background-color: rgba(255, 215, 0, 0.2);
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 10px 10px;
  color: var(--text-color-light);
  font-size: 16px;
  line-height: 1.7;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

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

.page-payment-methods__channel-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
}

.page-payment-methods__channel-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-payment-methods__channel-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-payment-methods__channel-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-payment-methods__channel-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--text-color-light);
}

/* General Image styles for responsiveness */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 44px;
  }
  .page-payment-methods__hero-description {
    font-size: 18px;
  }
  .page-payment-methods__section-title {
    font-size: 32px;
  }
  .page-payment-methods__text-block {
    font-size: 17px;
  }
  .page-payment-methods__methods-grid,
  .page-payment-methods__security-features,
  .page-payment-methods__support-channels {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  /* Main page container */
  .page-payment-methods {
    padding-top: var(--header-offset, 80px) !important; /* Adjust for mobile header offset */
    font-size: 16px;
    line-height: 1.6;
  }

  /* General content containers, images, and buttons */
  .page-payment-methods__container {
    padding: 30px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-payment-methods__hero-section {
    padding: 0 !important;
  }
  .page-payment-methods__hero-container {
    min-height: 300px;
  }
  .page-payment-methods__hero-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-payment-methods__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-payment-methods__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Buttons */
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Section Titles */
  .page-payment-methods__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Deposit & Withdrawal Methods */
  .page-payment-methods__methods-grid,
  .page-payment-methods__security-features,
  .page-payment-methods__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__method-card,
  .page-payment-methods__feature-item,
  .page-payment-methods__channel-card {
    padding: 25px;
  }
  .page-payment-methods__method-title,
  .page-payment-methods__feature-title,
  .page-payment-methods__channel-title {
    font-size: 20px;
  }
  .page-payment-methods__method-description,
  .page-payment-methods__feature-description,
  .page-payment-methods__channel-description {
    font-size: 15px;
  }

  /* Fees & Limits Table */
  .page-payment-methods__limits-table-wrapper {
    margin-top: 30px;
  }
  .page-payment-methods__limits-table th,
  .page-payment-methods__limits-table td {
    padding: 10px;
    font-size: 14px;
  }
  .page-payment-methods__limits-table th {
    font-size: 16px;
  }

  /* FAQ Section */
  .page-payment-methods__faq-item {
    margin-bottom: 10px;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-payment-methods__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-payment-methods__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 20px;
    font-size: 15px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px 20px !important;
  }

  /* CTA Block */
  .page-payment-methods__cta-title {
    font-size: 24px;
  }
  .page-payment-methods__cta-description {
    font-size: 16px;
  }
}