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

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

.page-index-security-guarantee {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--co88-text-main);
  background-color: var(--co88-background);
  overflow-x: hidden;
}

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

.page-index-security-guarantee__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--co88-background);
  overflow: hidden;
}

.page-index-security-guarantee__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-security-guarantee__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-index-security-guarantee__hero-content {
  position: relative; /* Ensure content is above any background elements but not overlapping image */
  z-index: 1;
  padding: 20px;
  max-width: 800px;
  margin-top: 40px; /* Space between image and text */
}

.page-index-security-guarantee__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--co88-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-index-security-guarantee__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--co88-text-main);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-index-security-guarantee__text-block {
  font-size: 1rem;
  color: var(--co88-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-index-security-guarantee__highlight {
  color: var(--co88-primary-color);
  font-weight: bold;
}

.page-index-security-guarantee__introduction-section,
.page-index-security-guarantee__conclusion-section {
  padding: 60px 0;
  background-color: var(--co88-deep-green);
}

.page-index-security-guarantee__pillars-section {
  padding: 60px 0;
  background-color: var(--co88-background);
}

.page-index-security-guarantee__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-top: 20px;
}

.page-index-security-guarantee__card {
  background-color: var(--co88-card-bg);
  border: 1px solid var(--co88-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index-security-guarantee__card-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index-security-guarantee__card-text {
  font-size: 0.95rem;
  color: var(--co88-text-secondary);
  text-align: justify;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index-security-guarantee__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index-security-guarantee__btn-primary {
  background: var(--co88-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-index-security-guarantee__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index-security-guarantee__btn-secondary {
  background: var(--co88-card-bg);
  color: var(--co88-primary-color);
  border: 2px solid var(--co88-primary-color);
}

.page-index-security-guarantee__btn-secondary:hover {
  background-color: var(--co88-primary-color);
  color: #ffffff;
}

.page-index-security-guarantee__faq-section {
  padding: 60px 0;
  background-color: var(--co88-deep-green);
}

.page-index-security-guarantee__faq-list {
  margin-top: 30px;
}

.page-index-security-guarantee__faq-item {
  background-color: var(--co88-card-bg);
  border: 1px solid var(--co88-border);
  border-radius: 12px;
  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 30px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--co88-text-main);
  cursor: pointer;
  background-color: var(--co88-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-index-security-guarantee__faq-question:hover {
  background-color: var(--co88-deep-green);
}

.page-index-security-guarantee__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--co88-primary-color);
}

.page-index-security-guarantee__faq-answer {
  padding: 0 30px 20px;
  font-size: 1rem;
  color: var(--co88-text-secondary);
  line-height: 1.7;
  text-align: justify;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-index-security-guarantee__container {
    padding: 0 15px !important;
  }

  .page-index-security-guarantee__hero-title {
    font-size: 2rem;
  }

  .page-index-security-guarantee__section-title {
    font-size: 1.8rem;
  }

  .page-index-security-guarantee__hero-section {
    padding-bottom: 40px;
  }

  .page-index-security-guarantee__introduction-section,
  .page-index-security-guarantee__pillars-section,
  .page-index-security-guarantee__faq-section,
  .page-index-security-guarantee__conclusion-section {
    padding: 40px 0;
  }

  .page-index-security-guarantee__grid {
    grid-template-columns: 1fr;
  }

  .page-index-security-guarantee__card {
    padding: 20px;
  }

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

  .page-index-security-guarantee__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-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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-index-security-guarantee__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
  
  /* Ensure all images inside content sections are responsive */
  .page-index-security-guarantee img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-security-guarantee__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all video containers are responsive (if video were present) */
  .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__video-section,
  .page-index-security-guarantee__video-container,
  .page-index-security-guarantee__video-wrapper {
    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;
  }
}