/* style/index.css */

/* Base styles for the page content, ensuring text contrast against body background */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Assuming --dark-bg-1 is dark, using light text */
  background-color: transparent; /* Inherit from body or shared.css */
}

/* General container for content sections */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section padding */
.page-index__section {
  padding: 60px 20px;
  text-align: center;
}

/* Headings */
.page-index h1,
.page-index h2,
.page-index h3 {
  color: #ffffff; /* Light color for headings on potentially dark background */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index h1 {
  font-size: 48px;
  font-weight: bold;
}

.page-index h2 {
  font-size: 36px;
  font-weight: bold;
}

.page-index h3 {
  font-size: 24px;
  font-weight: 600;
}

/* Paragraphs */
.page-index p {
  font-size: 18px;
  margin-bottom: 15px;
  color: #f0f0f0; /* Light color for paragraphs */
}

/* Anchor tags (general) */
.page-index a {
  color: #26A9E0; /* Primary brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index a:hover {
  color: #1a7fb8; /* Darker shade on hover */
}

/* --- Video Section --- */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* Fixed header offset */
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #26A9E0, #1a7fb8); /* Gradient background for hero section */
}

.page-index__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4); /* Darker overlay for better text visibility */
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(38, 169, 224, 0.8); /* Using primary color with transparency */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login orange color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #d46f06; /* Darker orange on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Module 1: H1 Title + Promotion Buttons --- */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f8f8f8; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-index__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #000000; /* Black for H1 on light background */
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #555555; /* Darker grey for description */
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index__cta-button--primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index__cta-button--primary:hover {
  background-color: #1a7fb8;
  border-color: #1a7fb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-index__cta-button--secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color for text */
  border: 2px solid #26A9E0;
}

.page-index__cta-button--secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb8;
  border-color: #1a7fb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* --- Module 3: Brand Introduction --- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #eef7fc; /* Light blue background */
  color: #333333;
  text-align: center;
}

.page-index__brand-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-index__brand-title {
  color: #26A9E0; /* Primary brand color for title */
  margin-bottom: 40px;
  font-size: 38px;
}

.page-index__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-index__brand-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__brand-item-title {
  color: #26A9E0;
  font-size: 22px;
  margin-bottom: 15px;
}

.page-index__brand-item-description {
  color: #555555;
  font-size: 16px;
  margin-bottom: 10px;
}

.page-index__brand-item-list {
  list-style: disc inside;
  color: #555555;
  font-size: 16px;
  padding-left: 0;
  margin-top: 15px;
}

.page-index__brand-item-list li {
  margin-bottom: 8px;
}

.page-index__brand-highlight {
  color: #000000; /* Ensure highlight text is very visible */
  font-weight: bold;
}

/* --- Module 2: FAQ Section --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #ffffff; /* White background for FAQ */
  color: #333333;
  text-align: center;
}

.page-index__faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-index__faq-main-title {
  color: #000000;
  margin-bottom: 40px;
  font-size: 38px;
}

.page-index__faq-list {
  width: 100%;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #26A9E0; /* Primary brand color for question background */
  color: #ffffff; /* White text for contrast */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
  position: relative;
}

.page-index__faq-item.active .page-index__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-index__faq-question:hover {
  background: #1a7fb8; /* Darker primary color on hover */
}

.page-index__faq-question-title {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff; /* White toggle icon */
  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: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-index__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.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9; /* Light grey background for answer */
  color: #555555;
  font-size: 16px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* --- Module 4: Blog List Display --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #f0f0f0; /* Light grey background */
  color: #333333;
  text-align: center;
}

.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__blog-title {
  color: #000000;
  margin-bottom: 40px;
  font-size: 38px;
}

.page-index__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__blog-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-index__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__blog-item-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-index__blog-item-title {
  font-size: 20px;
  color: #26A9E0; /* Primary brand color for blog titles */
  margin: 0 20px 10px;
  line-height: 1.3;
}

.page-index__blog-item-excerpt {
  font-size: 16px;
  color: #555555;
  margin: 0 20px 15px;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #888888;
  display: block;
  margin: 0 20px 20px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: 40px;
  }
  .page-index h2 {
    font-size: 32px;
  }
  .page-index h3 {
    font-size: 22px;
  }
  .page-index__main-title,
  .page-index__brand-title,
  .page-index__faq-main-title,
  .page-index__blog-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile */
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-index__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }

  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Use contain for mobile to ensure video fits */
  }

  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  /* Module 1 */
  .page-index__hero-section {
    padding: 60px 15px;
  }
  .page-index__main-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Module 3 */
  .page-index__brand-section {
    padding: 60px 15px;
  }
  .page-index__brand-title {
    font-size: 30px;
  }
  .page-index__brand-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__brand-item {
    padding: 25px;
  }
  .page-index__brand-item-title {
    font-size: 20px;
  }
  .page-index__brand-item-description,
  .page-index__brand-item-list {
    font-size: 15px;
  }

  /* Module 2 */
  .page-index__faq-section {
    padding: 60px 15px;
  }
  .page-index__faq-main-title {
    font-size: 30px;
  }
  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question-title {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-index__faq-answer {
    padding: 0 20px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }

  /* Module 4 */
  .page-index__blog-section {
    padding: 60px 15px;
  }
  .page-index__blog-title {
    font-size: 30px;
  }
  .page-index__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__blog-item-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-index__blog-item-title {
    font-size: 18px;
    margin: 0 15px 10px;
  }
  .page-index__blog-item-excerpt,
  .page-index__blog-item-date {
    font-size: 14px;
    margin: 0 15px 15px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__blog-item,
  .page-index__brand-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific override for elements that already have padding */
  .page-index__faq-section .page-index__faq-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__hero-section .page-index__hero-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__brand-section .page-index__brand-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__blog-section .page-index__blog-container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure no filter is used on images */
.page-index img {
  filter: none !important;
}