/* style/index-security-guarantee.css */

:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-index-security-guarantee {
  background-color: var(--page-bg-color); /* Body background from shared.css, this is for main content area */
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index-security-guarantee__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index-security-guarantee__section {
  padding: 60px 0;
}

.page-index-security-guarantee__dark-section {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-index-security-guarantee__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index-security-guarantee__section-text,
.page-index-security-guarantee__paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-index-security-guarantee__section-text strong,
.page-index-security-guarantee__paragraph strong {
  color: var(--text-main-color);
}

.page-index-security-guarantee__section-text a,
.page-index-security-guarantee__paragraph a {
  color: var(--glow-color);
  text-decoration: none;
}

.page-index-security-guarantee__section-text a:hover,
.page-index-security-guarantee__paragraph a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-index-security-guarantee__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-index-security-guarantee__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-index-security-guarantee__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-index-security-guarantee__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* Ensure text is above image */
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-index-security-guarantee__hero-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--text-main-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index-security-guarantee__hero-description {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.page-index-security-guarantee__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-index-security-guarantee__btn-primary,
.page-index-security-guarantee__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-security-guarantee__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index-security-guarantee__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-index-security-guarantee__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-index-security-guarantee__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--page-bg-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-index-security-guarantee__btn-contact,
.page-index-security-guarantee__btn-final-cta {
  margin-top: 30px;
}

/* Content Grid */
.page-index-security-guarantee__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-index-security-guarantee__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-index-security-guarantee__text-block,
.page-index-security-guarantee__image-block {
  flex: 1;
}

.page-index-security-guarantee__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index-security-guarantee__sub-title {
  font-size: 24px;
  color: var(--text-main-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Features Grid */
.page-index-security-guarantee__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-security-guarantee__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.page-index-security-guarantee__card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size for icons as well */
  min-height: 200px;
}

.page-index-security-guarantee__card-title {
  font-size: 22px;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-security-guarantee__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-index-security-guarantee__anti-fraud-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--divider-color);
}

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

/* FAQ Section */
.page-index-security-guarantee__faq-list {
  margin-top: 40px;
}

.page-index-security-guarantee__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-security-guarantee__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page-index-security-guarantee__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-security-guarantee__faq-question .page-index-security-guarantee__faq-qtext {
  flex-grow: 1;
}

.page-index-security-guarantee__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-index-security-guarantee__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary-color);
  background-color: var(--card-bg-color);
}

.page-index-security-guarantee__faq-item[open] .page-index-security-guarantee__faq-question {
  border-bottom: 1px solid transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-security-guarantee__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-index-security-guarantee__section {
    padding: 40px 0;
  }

  .page-index-security-guarantee__hero-section {
    min-height: 500px;
    padding-top: 10px !important;
  }

  .page-index-security-guarantee__hero-content {
    padding: 15px;
    max-width: 90%;
  }

  .page-index-security-guarantee__hero-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-index-security-guarantee__hero-description {
    font-size: 16px;
  }

  .page-index-security-guarantee__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-security-guarantee__btn-primary,
  .page-index-security-guarantee__btn-secondary,
  .page-index-security-guarantee a[class*="button"],
  .page-index-security-guarantee a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-security-guarantee__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

  .page-index-security-guarantee__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-index-security-guarantee__content-grid:nth-child(even) {
    flex-direction: column;
  }

  .page-index-security-guarantee__features-grid,
  .page-index-security-guarantee__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-security-guarantee__card-icon {
    width: 60px;
    height: 60px;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
  }

  .page-index-security-guarantee img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-security-guarantee__section,
  .page-index-security-guarantee__card,
  .page-index-security-guarantee__container,
  .page-index-security-guarantee__video-section,
  .page-index-security-guarantee__video-container,
  .page-index-security-guarantee__video-wrapper,
  .page-index-security-guarantee__cta-buttons,
  .page-index-security-guarantee__button-group,
  .page-index-security-guarantee__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-security-guarantee__video-section {
    padding-top: 10px !important;
  }

  .page-index-security-guarantee video,
  .page-index-security-guarantee__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-security-guarantee__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-index-security-guarantee__faq-answer {
    font-size: 15px;
    padding: 15px 20px;
  }

  .page-index-security-guarantee {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .page-index-security-guarantee__hero-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-index-security-guarantee__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-index-security-guarantee__hero-section {
    min-height: 400px;
  }
}