/* style/resources-keo-nha-cai-6-deep-dive.css */

/* Base styles for the page content */
.page-resources-keo-nha-cai-6-deep-dive {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensures light background */
}

.page-resources-keo-nha-cai-6-deep-dive__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-keo-nha-cai-6-deep-dive__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-keo-nha-cai-6-deep-dive__text-block {
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.7;
  text-align: justify;
}

.page-resources-keo-nha-cai-6-deep-dive__text-block h3 {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-keo-nha-cai-6-deep-dive__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-resources-keo-nha-cai-6-deep-dive__list li {
  margin-bottom: 10px;
}

/* Hero Section */
.page-resources-keo-nha-cai-6-deep-dive__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
  color: #FFFFFF; /* White text for dark background */
}

.page-resources-keo-nha-cai-6-deep-dive__dark-bg {
  background-color: #017439; /* Brand main color */
  color: #FFFFFF;
}

.page-resources-keo-nha-cai-6-deep-dive__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources-keo-nha-cai-6-deep-dive__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.page-resources-keo-nha-cai-6-deep-dive__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-keo-nha-cai-6-deep-dive__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-keo-nha-cai-6-deep-dive__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources-keo-nha-cai-6-deep-dive__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-resources-keo-nha-cai-6-deep-dive__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-keo-nha-cai-6-deep-dive__btn-primary,
.page-resources-keo-nha-cai-6-deep-dive__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-keo-nha-cai-6-deep-dive__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFFFF; /* White text for contrast on red */
  border: 2px solid #C30808;
}

.page-resources-keo-nha-cai-6-deep-dive__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-keo-nha-cai-6-deep-dive__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-resources-keo-nha-cai-6-deep-dive__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

/* Content Sections */
.page-resources-keo-nha-cai-6-deep-dive__content-section {
  padding: 80px 0;
}

.page-resources-keo-nha-cai-6-deep-dive__content-section.page-resources-keo-nha-cai-6-deep-dive__dark-bg .page-resources-keo-nha-cai-6-deep-dive__section-title,
.page-resources-keo-nha-cai-6-deep-dive__content-section.page-resources-keo-nha-cai-6-deep-dive__dark-bg .page-resources-keo-nha-cai-6-deep-dive__text-block,
.page-resources-keo-nha-cai-6-deep-dive__content-section.page-resources-keo-nha-cai-6-deep-dive__dark-bg .page-resources-keo-nha-cai-6-deep-dive__text-block h3,
.page-resources-keo-nha-cai-6-deep-dive__content-section.page-resources-keo-nha-cai-6-deep-dive__dark-bg .page-resources-keo-nha-cai-6-deep-dive__list li {
  color: #FFFFFF;
}

.page-resources-keo-nha-cai-6-deep-dive__image-wrapper {
  margin: 40px auto;
  text-align: center;
}

.page-resources-keo-nha-cai-6-deep-dive__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Product Grid */
.page-resources-keo-nha-cai-6-deep-dive__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-keo-nha-cai-6-deep-dive__product-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.page-resources-keo-nha-cai-6-deep-dive__product-card:hover {
  transform: translateY(-5px);
}

.page-resources-keo-nha-cai-6-deep-dive__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-resources-keo-nha-cai-6-deep-dive__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-keo-nha-cai-6-deep-dive__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Steps */
.page-resources-keo-nha-cai-6-deep-dive__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-keo-nha-cai-6-deep-dive__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-resources-keo-nha-cai-6-deep-dive__step-card .page-resources-keo-nha-cai-6-deep-dive__card-title {
  color: #FFFFFF;
}

.page-resources-keo-nha-cai-6-deep-dive__step-card .page-resources-keo-nha-cai-6-deep-dive__btn-primary,
.page-resources-keo-nha-cai-6-deep-dive__step-card .page-resources-keo-nha-cai-6-deep-dive__btn-secondary {
  margin-top: 15px;
}

.page-resources-keo-nha-cai-6-deep-dive__app-cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #FFFFFF;
}

.page-resources-keo-nha-cai-6-deep-dive__app-cta p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Video Section */
.page-resources-keo-nha-cai-6-deep-dive__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-keo-nha-cai-6-deep-dive__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-keo-nha-cai-6-deep-dive__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources-keo-nha-cai-6-deep-dive__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* FAQ Section */
.page-resources-keo-nha-cai-6-deep-dive__faq-section {
  padding: 80px 0;
}

.page-resources-keo-nha-cai-6-deep-dive__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-keo-nha-cai-6-deep-dive__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-resources-keo-nha-cai-6-deep-dive__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-resources-keo-nha-cai-6-deep-dive__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-keo-nha-cai-6-deep-dive__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-keo-nha-cai-6-deep-dive__faq-item.active .page-resources-keo-nha-cai-6-deep-dive__faq-toggle {
  transform: rotate(45deg); /* Change to X or - */
}

.page-resources-keo-nha-cai-6-deep-dive__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-resources-keo-nha-cai-6-deep-dive__faq-item.active .page-resources-keo-nha-cai-6-deep-dive__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

/* Final CTA */
.page-resources-keo-nha-cai-6-deep-dive__final-cta {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-keo-nha-cai-6-deep-dive__main-title {
    font-size: 3em;
  }

  .page-resources-keo-nha-cai-6-deep-dive__hero-description {
    font-size: 1.15em;
  }

  .page-resources-keo-nha-cai-6-deep-dive__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-keo-nha-cai-6-deep-dive {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-keo-nha-cai-6-deep-dive__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-resources-keo-nha-cai-6-deep-dive__hero-content {
    padding: 0 15px;
  }

  .page-resources-keo-nha-cai-6-deep-dive__main-title {
    font-size: 2.2em;
  }

  .page-resources-keo-nha-cai-6-deep-dive__hero-description {
    font-size: 1em;
  }

  .page-resources-keo-nha-cai-6-deep-dive__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-keo-nha-cai-6-deep-dive__btn-primary,
  .page-resources-keo-nha-cai-6-deep-dive__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-keo-nha-cai-6-deep-dive__content-section {
    padding: 40px 0;
  }

  .page-resources-keo-nha-cai-6-deep-dive__container {
    padding: 0 15px;
  }

  .page-resources-keo-nha-cai-6-deep-dive__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-keo-nha-cai-6-deep-dive__text-block {
    font-size: 1em;
  }

  .page-resources-keo-nha-cai-6-deep-dive__text-block h3 {
    font-size: 1.5em;
  }

  /* Image responsive */
  .page-resources-keo-nha-cai-6-deep-dive img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
  }
  .page-resources-keo-nha-cai-6-deep-dive__image-wrapper,
  .page-resources-keo-nha-cai-6-deep-dive__product-card,
  .page-resources-keo-nha-cai-6-deep-dive__step-card,
  .page-resources-keo-nha-cai-6-deep-dive__app-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Video responsive */
  .page-resources-keo-nha-cai-6-deep-dive__video-section {
    padding: 40px 0;
  }
  .page-resources-keo-nha-cai-6-deep-dive__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources-keo-nha-cai-6-deep-dive__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-keo-nha-cai-6-deep-dive__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources-keo-nha-cai-6-deep-dive__faq-answer {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-resources-keo-nha-cai-6-deep-dive__faq-item.active .page-resources-keo-nha-cai-6-deep-dive__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-keo-nha-cai-6-deep-dive__main-title {
    font-size: 1.8em;
  }

  .page-resources-keo-nha-cai-6-deep-dive__section-title {
    font-size: 1.5em;
  }
}