:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --border-color: #e0e0e0;
}

.page-payment-methods-deposit-guide {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color); /* Default white background */
}

/* Hero Section */
.page-payment-methods-deposit-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #a8e0f9 100%);
    color: var(--secondary-color);
    overflow: hidden;
}

.page-payment-methods-deposit-guide__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row; /* Desktop: image and content side-by-side */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-payment-methods-deposit-guide__hero-content {
    flex: 1;
    text-align: left;
    z-index: 2;
}

.page-payment-methods-deposit-guide__hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-payment-methods-deposit-guide__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-payment-methods-deposit-guide__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.page-payment-methods-deposit-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    object-fit: cover;
}

.page-payment-methods-deposit-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--login-button-color); /* Using login color for CTA */
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.page-payment-methods-deposit-guide__cta-button:hover {
    background: #c76706; /* Darken on hover, calculated from #EA7C07 */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-payment-methods-deposit-guide__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-payment-methods-deposit-guide__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* General Section Styling */
.page-payment-methods-deposit-guide__section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
}

.page-payment-methods-deposit-guide__section:nth-of-type(odd) {
    background-color: var(--light-bg);
}

.page-payment-methods-deposit-guide__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-payment-methods-deposit-guide h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-payment-methods-deposit-guide h3 {
    font-size: 1.6em;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-payment-methods-deposit-guide p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Payment Methods Grid */
.page-payment-methods-deposit-guide__payment-methods p {
    text-align: left;
}

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

.page-payment-methods-deposit-guide__method-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-payment-methods-deposit-guide__method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.page-payment-methods-deposit-guide__method-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: contain; /* Use contain to show full image without cropping */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-payment-methods-deposit-guide__method-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-payment-methods-deposit-guide__method-card p {
    font-size: 1em;
    color: #555555;
    text-align: center;
}

/* Step-by-Step Guide */
.page-payment-methods-deposit-guide__step-by-step > .page-payment-methods-deposit-guide__container > p {
    text-align: center;
}

.page-payment-methods-deposit-guide__steps-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.page-payment-methods-deposit-guide__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.page-payment-methods-deposit-guide__step-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.page-payment-methods-deposit-guide__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.page-payment-methods-deposit-guide__step-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-color);
    text-align: left;
}

.page-payment-methods-deposit-guide__step-item p {
    margin-bottom: 0;
    font-size: 1em;
    color: #555555;
    text-align: left;
}

.page-payment-methods-deposit-guide__step-item p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-payment-methods-deposit-guide__step-item p a:hover {
    text-decoration: underline;
}

.page-payment-methods-deposit-guide__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

.page-payment-methods-deposit-guide__cta-button--small {
    padding: 12px 30px;
    font-size: 1em;
}

/* Tips Section */
.page-payment-methods-deposit-guide__tips > .page-payment-methods-deposit-guide__container > p {
    text-align: center;
}

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

.page-payment-methods-deposit-guide__tip-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods-deposit-guide__tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.page-payment-methods-deposit-guide__tip-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

.page-payment-methods-deposit-guide__tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-payment-methods-deposit-guide__tip-card p {
    font-size: 1em;
    color: #555555;
    text-align: center;
    margin-bottom: 0;
}

.page-payment-methods-deposit-guide__support-cta {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-payment-methods-deposit-guide__faq {
    padding-bottom: 80px;
}

.page-payment-methods-deposit-guide__faq-list {
    margin-top: 40px;
}

.page-payment-methods-deposit-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

/* FAQ default state - answer hidden */
.page-payment-methods-deposit-guide__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.3s ease;
  padding: 0 20px; /* Adjusted padding for desktop */
  opacity: 0;
  background-color: var(--light-bg);
  color: var(--text-color);
}

/* FAQ expanded state - ☠️ Use !important and sufficiently large max-height */
.page-payment-methods-deposit-guide__faq-item.active .page-payment-methods-deposit-guide__faq-answer {
  max-height: 2000px !important; /* ☠️ Ensure priority, value large enough for any content */
  padding: 20px !important; /* Adjusted padding for desktop */
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-payment-methods-deposit-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border-radius: 5px; /* Only top corners if active */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid transparent; /* To prevent double border when active */
}

.page-payment-methods-deposit-guide__faq-item.active .page-payment-methods-deposit-guide__faq-question {
    border-bottom: 1px solid var(--border-color);
    border-radius: 5px 5px 0 0;
}

.page-payment-methods-deposit-guide__faq-question:hover {
  background: var(--light-bg);
}

.page-payment-methods-deposit-guide__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-payment-methods-deposit-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-color);
  text-align: left;
}

/* Toggle icon */
.page-payment-methods-deposit-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-payment-methods-deposit-guide__faq-item.active .page-payment-methods-deposit-guide__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: var(--login-button-color); /* Change color when active */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods-deposit-guide__hero-content h1 {
        font-size: 2.5em;
    }
    .page-payment-methods-deposit-guide h2 {
        font-size: 2em;
    }
    .page-payment-methods-deposit-guide h3 {
        font-size: 1.4em;
    }
    .page-payment-methods-deposit-guide p, .page-payment-methods-deposit-guide__intro-text {
        font-size: 1em;
    }
    .page-payment-methods-deposit-guide__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-payment-methods-deposit-guide__hero-content {
        text-align: center;
    }
    .page-payment-methods-deposit-guide__hero-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods-deposit-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods-deposit-guide__hero-content h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-payment-methods-deposit-guide__intro-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-payment-methods-deposit-guide__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-payment-methods-deposit-guide__cta-bottom .page-payment-methods-deposit-guide__cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    .page-payment-methods-deposit-guide__section {
        padding: 50px 15px;
    }
    .page-payment-methods-deposit-guide h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-payment-methods-deposit-guide h3 {
        font-size: 1.2em;
    }
    .page-payment-methods-deposit-guide p {
        font-size: 0.95em;
    }

    .page-payment-methods-deposit-guide__methods-grid,
    .page-payment-methods-deposit-guide__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-payment-methods-deposit-guide__method-card,
    .page-payment-methods-deposit-guide__tip-card,
    .page-payment-methods-deposit-guide__step-item {
        padding: 20px;
    }

    .page-payment-methods-deposit-guide__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .page-payment-methods-deposit-guide__step-number {
        margin-bottom: 10px;
    }
    .page-payment-methods-deposit-guide__step-item h3,
    .page-payment-methods-deposit-guide__step-item p {
        text-align: center;
    }

    .page-payment-methods-deposit-guide__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-payment-methods-deposit-guide__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-payment-methods-deposit-guide__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-payment-methods-deposit-guide__faq-answer {
        padding: 0 15px;
    }
    .page-payment-methods-deposit-guide__faq-item.active .page-payment-methods-deposit-guide__faq-answer {
        padding: 15px !important;
    }

    /* Images responsive */
    .page-payment-methods-deposit-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-payment-methods-deposit-guide__section,
    .page-payment-methods-deposit-guide__card,
    .page-payment-methods-deposit-guide__container,
    .page-payment-methods-deposit-guide__methods-grid,
    .page-payment-methods-deposit-guide__tips-grid,
    .page-payment-methods-deposit-guide__steps-list,
    .page-payment-methods-deposit-guide__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-payment-methods-deposit-guide__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods-deposit-guide__hero-image img {
        border-radius: 8px;
    }

    /* Buttons responsive */
    .page-payment-methods-deposit-guide__cta-button,
    .page-payment-methods-deposit-guide__btn-primary,
    .page-payment-methods-deposit-guide__btn-secondary,
    .page-payment-methods-deposit-guide a[class*="button"],
    .page-payment-methods-deposit-guide 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-left: 15px;
      padding-right: 15px;
    }
    
    .page-payment-methods-deposit-guide__cta-buttons,
    .page-payment-methods-deposit-guide__button-group,
    .page-payment-methods-deposit-guide__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;
    }
    .page-payment-methods-deposit-guide__cta-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }
}