/* style/index.css */

/* Base styles for the page content, considering the dark body background from shared.css */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: transparent; /* Main content background will be handled by sections */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Headings */
.page-index h1,
.page-index h2,
.page-index h3,
.page-index h4,
.page-index h5,
.page-index h6 {
  color: #ffffff; /* White for headings on dark sections */
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

/* Buttons - Primary */
.page-index__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary brand color */
  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;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background: #1e87bb; /* Darker shade on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Buttons - Secondary (for contrast) */
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: #26A9E0; /* Primary brand color for text */
  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.05);
  border: 2px solid #26A9E0; /* Border with primary brand color */
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: rgba(38, 169, 224, 0.1); /* Light background on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Card styles */
.page-index__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* Light text on card */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

/* Image styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* --- Video Section --- */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #0a0a0a; /* Ensure section background matches body for seamless look */
}

.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 on parent link */
}

.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.3);
  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 brand color */
  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 button color for high visibility 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: #d46c06; /* Darker shade 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);
}

/* --- Hero Section (Module 1) --- */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-index__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #26A9E0; /* Primary color for H1 */
}

.page-index__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.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 {
  min-width: 180px; /* Ensure buttons have a decent minimum width */
}

/* --- Features Section --- */
.page-index__features-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-index__features-title {
  color: #26A9E0; /* Primary color for section title */
  margin-bottom: 50px;
}

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

.page-index__feature-item {
  text-align: left;
}

.page-index__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__feature-heading {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 10px;
}

.page-index__feature-text {
  color: #cccccc;
}

/* --- Brand Section (Module 3) --- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-index__brand-title {
  color: #26A9E0;
  margin-bottom: 50px;
}

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

.page-index__brand-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly more transparent white */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__brand-subtitle {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 15px;
}

.page-index__brand-text {
  color: #cccccc;
}

/* --- FAQ Section (Module 2) --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-index__faq-title {
  color: #26A9E0;
  margin-bottom: 50px;
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Light border on dark background */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Card background for FAQ items */
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #ffffff; /* Light text for question */
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter on hover */
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0; /* Primary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.03); /* Slightly different background for answer */
  border-radius: 0 0 5px 5px;
  color: #cccccc; /* Lighter text for answer */
}

/* --- Blog Section (Module 4) --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-index__blog-title {
  color: #26A9E0;
  margin-bottom: 50px;
}

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

.page-index__blog-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-index__blog-item-image {
  width: 100%;
  height: 220px; /* Consistent image height for blog cards */
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-item-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-index__blog-link:hover .page-index__blog-item-title {
  color: #26A9E0; /* Primary color on hover */
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-item-date {
  font-size: 13px;
  color: #999999;
  text-align: right;
  display: block;
  margin-top: auto; /* Push to bottom */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index h2 {
    font-size: 32px;
  }
  .page-index__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-index__container,
  .page-index__video-section,
  .page-index__video-container,
  .page-index__video-wrapper,
  .page-index__hero-section,
  .page-index__features-section,
  .page-index__brand-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__main-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index h2 {
    font-size: 28px;
  }
  .page-index h3 {
    font-size: 20px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  /* Images and Videos responsive */
  .page-index img,
  .page-index video,
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index__feature-image,
  .page-index__blog-item-image {
    height: auto !important; /* Allow height to adjust for aspect ratio */
  }

  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 15px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 28px;
  }
  .page-index h2 {
    font-size: 24px;
  }
  .page-index__video-click-hint {
    font-size: 16px;
    padding: 8px 15px;
  }
}