.page-payment-methods {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--deep-navy);
    line-height: 1.6;
}

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

.page-payment-methods__section {
    padding: 40px 0;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-payment-methods__hero-section {
    position: relative;
    padding-top: 10px; /* Adjusted for shared header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--deep-navy);
}

.page-payment-methods__hero-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default to cover for desktop */
    display: block;
    border-radius: 8px;
}

.page-payment-methods__hero-content {
    max-width: 900px;
    padding: 0 15px;
    z-index: 1;
}

.page-payment-methods__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-payment-methods__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-payment-methods__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-payment-methods__btn-secondary:hover {
    background: var(--border);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-payment-methods__section-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-payment-methods__intro-section, .page-payment-methods__deposit-guide, .page-payment-methods__withdrawal-guide, .page-payment-methods__important-notes, .page-payment-methods__faq-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
}

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

.page-payment-methods__method-card {
    background-color: var(--deep-navy);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-payment-methods__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__method-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-payment-methods__method-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-payment-methods__method-description {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-payment-methods__guide-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-payment-methods__guide-list li {
    background-color: var(--deep-navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__guide-list li strong {
    color: var(--text-main);
    font-weight: 700;
}

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

.page-payment-methods__notes-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-payment-methods__notes-list li {
    background-color: var(--deep-navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.page-payment-methods__notes-list li strong {
    color: var(--text-main);
    font-weight: 700;
}

/* FAQ Section */
details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--deep-navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
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: rgba(var(--border), 0.5);
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  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: var(--card-bg);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
  font-size: 1rem;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer p {
  margin: 0;
  padding-top: 10px; /* Add some padding for text within the answer */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .page-payment-methods__hero-description {
        font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.6rem, 3vw, 2.4rem);
    }
    .page-payment-methods__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-payment-methods__method-card {
        padding: 20px;
    }
    .page-payment-methods__method-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-payment-methods__section {
        padding: 30px 0;
    }

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

    .page-payment-methods__hero-image {
        max-height: 300px;
    }

    .page-payment-methods__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio if any */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-payment-methods__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

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

    .page-payment-methods__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-payment-methods__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 20px;
    }

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

    .page-payment-methods__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

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

    .page-payment-methods__method-image {
        height: 160px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-payment-methods__method-title {
        font-size: 1.3rem;
    }

    .page-payment-methods__method-description {
        font-size: 0.9rem;
    }

    .page-payment-methods__guide-list,
    .page-payment-methods__notes-list {
        margin: 20px auto;
        padding: 0 10px;
    }

    .page-payment-methods__guide-list li,
    .page-payment-methods__notes-list li {
        padding: 15px;
        font-size: 0.95rem;
    }

    .page-payment-methods__cta-wrapper {
        margin-top: 30px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
        padding: 15px;
    }

    .page-payment-methods__faq-qtext {
        font-size: 1rem;
    }

    .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 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;
    }
}