/* style/faq-account-security.css */

/* Base styles for the page, ensuring text color contrast with the dark background */
.page-faq-account-security {
  background-color: #08160F; /* Custom Background color */
  color: #F2FFF6; /* Custom Text Main color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

/* Hero Section */
.page-faq-account-security__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetics */
  overflow: hidden;
}

.page-faq-account-security__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq-account-security__hero-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  object-fit: cover;
}

.page-faq-account-security__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-faq-account-security__main-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem); /* H1 font size controlled with clamp */
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-faq-account-security__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-faq-account-security__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq-account-security__btn-primary,
.page-faq-account-security__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-faq-account-security__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-faq-account-security__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq-account-security__btn-secondary {
  background: transparent;
  color: #2AD16F; /* A lighter shade of primary for contrast */
  border: 2px solid #2AD16F;
}

.page-faq-account-security__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

/* FAQ Section */
.page-faq-account-security__faq-section {
  padding: 60px 20px;
  background-color: #08160F; /* Custom Background */
}

.page-faq-account-security__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq-account-security__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq-account-security__section-intro {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq-account-security__faq-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-faq-account-security__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  user-select: none;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-faq-account-security__faq-question::-webkit-details-marker { /* Hide marker for Webkit browsers */
  display: none;
}

.page-faq-account-security__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-faq-account-security__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #57E38D; /* Glow */
  margin-left: 15px;
}

.page-faq-account-security__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-faq-account-security__faq-item[open] .page-faq-account-security__faq-answer {
  max-height: 2000px; /* Sufficiently large to show all content */
  padding-top: 15px;
  transition: max-height 0.5s ease-in, padding-top 0.5s ease-in;
}

.page-faq-account-security__faq-answer p {
  margin-bottom: 15px;
  color: #A7D9B8;
}

.page-faq-account-security__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq-account-security__faq-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-faq-account-security__btn-bottom {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq-account-security__hero-image-wrapper {
    max-height: 400px;
  }
  .page-faq-account-security__main-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-faq-account-security__hero-description {
    font-size: 1rem;
  }
  .page-faq-account-security__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }
  .page-faq-account-security__faq-answer {
    padding: 0 20px 18px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq-account-security__hero-section {
    padding: 10px 15px 40px 15px;
  }
  .page-faq-account-security__hero-image-wrapper {
    max-height: 300px;
  }
  .page-faq-account-security__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-faq-account-security__main-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .page-faq-account-security__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .page-faq-account-security__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-faq-account-security__btn-primary,
  .page-faq-account-security__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq-account-security__faq-section {
    padding: 40px 15px;
  }
  .page-faq-account-security__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq-account-security__section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .page-faq-account-security__section-intro {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  .page-faq-account-security__faq-item {
    margin-bottom: 15px;
  }
  .page-faq-account-security__faq-question {
    font-size: 1rem;
    padding: 15px 18px;
  }
  .page-faq-account-security__faq-toggle {
    font-size: 1.5rem;
  }
  .page-faq-account-security__faq-answer {
    padding: 0 18px 15px 18px;
    font-size: 0.9rem;
  }
  /* Mobile image responsiveness */
  .page-faq-account-security img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq-account-security__section,
  .page-faq-account-security__card,
  .page-faq-account-security__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq-account-security__faq-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-faq-account-security__main-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-faq-account-security__section-title {
    font-size: 1.8rem;
  }
  .page-faq-account-security__btn-primary,
  .page-faq-account-security__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}