/* style/payment-methods.css */

/* Base styles for page-payment-methods */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: var(--secondary-color, #FFFFFF);
}

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

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-payment-methods__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: justify;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #f0f8ff; /* Light blue background for contrast */
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-payment-methods__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-payment-methods__description {
  font-size: 1.15rem;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-payment-methods__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-payment-methods__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Intro Section */
.page-payment-methods__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

/* Categories Section */
.page-payment-methods__categories-section {
  padding: 60px 0;
  background-color: #f7f7f7;
}

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

.page-payment-methods__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

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

.page-payment-methods__card-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__card-text {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
}

/* Guide Sections */
.page-payment-methods__guide-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-payment-methods__guide-section--reverse .page-payment-methods__guide-content {
  flex-direction: row-reverse;
}

.page-payment-methods__guide-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-payment-methods__guide-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  flex-grow: 1;
  object-fit: cover;
}

.page-payment-methods__guide-list {
  list-style-type: decimal;
  padding-left: 20px;
  font-size: 1.1rem;
  color: #333333;
  flex-grow: 1;
}

.page-payment-methods__guide-list li {
  margin-bottom: 15px;
}

.page-payment-methods__guide-list li strong {
  color: #26A9E0;
}

/* Security Section */
.page-payment-methods__security-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF; /* Forced white text */
  text-align: center;
}

.page-payment-methods__security-section .page-payment-methods__section-title {
  color: #FFFFFF;
}

.page-payment-methods__security-section .page-payment-methods__text-block {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 20px auto;
  font-size: 1.1rem;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: #f7f7f7;
}

.page-payment-methods__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.page-payment-methods__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  color: #333333;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #eee;
  user-select: none;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  border-bottom: none;
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  text-align: justify;
  border-top: 1px solid #eee; /* for details: content under summary */
}

.page-payment-methods__faq-item:not([open]) .page-payment-methods__faq-answer {
  border-top: none; /* remove border when closed */
}

.page-payment-methods__faq-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Bottom CTA Section */
.page-payment-methods__cta-bottom {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-payment-methods__cta-bottom .page-payment-methods__section-title {
  color: #FFFFFF;
}

.page-payment-methods__cta-bottom .page-payment-methods__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__hero-image {
    max-height: 500px;
  }
  .page-payment-methods__guide-content {
    flex-direction: column;
    text-align: center;
  }
  .page-payment-methods__guide-section--reverse .page-payment-methods__guide-content {
    flex-direction: column;
  }
  .page-payment-methods__guide-image {
    order: -1; /* Image always on top for guides on smaller screens */
  }
  .page-payment-methods__guide-list {
    padding-left: 0;
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container,
  .page-payment-methods__hero-content,
  .page-payment-methods__cta-buttons,
  .page-payment-methods__card,
  .page-payment-methods__guide-content,
  .page-payment-methods__faq-list,
  .page-payment-methods__faq-item,
  .page-payment-methods__hero-section,
  .page-payment-methods__intro-section,
  .page-payment-methods__categories-section,
  .page-payment-methods__guide-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom {
    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; /* body handles header offset */
    padding-bottom: 40px !important;
  }

  .page-payment-methods__main-title {
    font-size: 2rem !important;
  }

  .page-payment-methods__description {
    font-size: 1rem !important;
  }

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  .page-payment-methods__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }

  .page-payment-methods__text-block {
    font-size: 0.95rem !important;
  }

  .page-payment-methods__card-image,
  .page-payment-methods__guide-image,
  .page-payment-methods__faq-image,
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__card,
  .page-payment-methods__faq-item {
    padding: 20px 15px !important;
  }

  .page-payment-methods__faq-question {
    font-size: 1rem !important;
    padding: 15px 15px !important;
  }

  .page-payment-methods__faq-answer {
    padding: 10px 15px 15px !important;
  }

  .page-payment-methods__guide-list {
    font-size: 1rem !important;
  }

  .page-payment-methods__security-section,
  .page-payment-methods__cta-bottom {
    padding: 50px 0 !important;
  }
}