/* style/payment-methods.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #017439;
  --border-color: #e0e0e0;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-yellow: #FFFF00;
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light); /* Default light background for body-like sections */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Aligned with fixed header requirement */
  overflow: hidden;
}

.page-payment-methods__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-color-dark); /* Ensure contrast on light background */
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Max 2.8em on desktop */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-register);
  color: var(--button-text-yellow);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__cta-button:hover {
  background: darken(var(--button-register), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Titles and Descriptions */
.page-payment-methods__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

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

/* Overview Section */
.page-payment-methods__overview-section {
  padding: 60px 20px;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-payment-methods__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Methods Section */
.page-payment-methods__methods-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.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: var(--background-light);
  color: var(--text-color-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-payment-methods__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-payment-methods__card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
}

/* How-To Sections */
.page-payment-methods__how-to-deposit,
.page-payment-methods__how-to-withdraw {
  padding: 60px 20px;
}

.page-payment-methods__how-to-deposit {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-payment-methods__how-to-withdraw {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

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

.page-payment-methods__step-card {
  background-color: var(--background-light);
  color: var(--text-color-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-payment-methods__how-to-withdraw .page-payment-methods__step-card {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-payment-methods__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-payment-methods__cta-button--centered {
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* Security Info Section */
.page-payment-methods__security-info {
  padding: 60px 20px;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

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

.page-payment-methods__security-item {
  background-color: #ffffff;
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__security-item-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* FAQ Section */
.page-payment-methods__faq-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-payment-methods__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-light);
  color: var(--text-color-dark);
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #f5f5f5;
}

.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

/* CTA Section */
.page-payment-methods__cta-section {
  padding: 80px 20px;
  background-color: var(--background-light);
  color: var(--text-color-dark);
  text-align: center;
}

.page-payment-methods__cta-content {
  max-width: 900px;
}

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

.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: clamp(2em, 4.5vw, 2.5em);
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-payment-methods__hero-image {
    border-radius: 4px;
    margin-bottom: 20px;
  }
  
  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }
  
  .page-payment-methods__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-payment-methods__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    margin-top: 20px;
  }

  .page-payment-methods__section-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }

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

  .page-payment-methods__overview-section,
  .page-payment-methods__methods-section,
  .page-payment-methods__how-to-deposit,
  .page-payment-methods__how-to-withdraw,
  .page-payment-methods__security-info,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding: 40px 15px;
  }

  .page-payment-methods__methods-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__security-details {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }

  .page-payment-methods__card-image {
    height: 180px;
    min-width: 200px;
    min-height: 200px;
  }

  .page-payment-methods__card-title {
    font-size: 1.3em;
  }

  .page-payment-methods__card-text {
    font-size: 0.95em;
  }

  .page-payment-methods__step-title,
  .page-payment-methods__security-item-title {
    font-size: 1.1em;
  }

  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 15px;
  }
  .page-payment-methods__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
  }

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

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

  /* Ensure all images are responsive */
  .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;
  }
  
  .page-payment-methods__hero-section {
    padding-top: 10px !important;
  }
}