/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --dark-text-color: #ffffff; /* Adjusted for dark body background */
  --light-text-color: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly visible white on dark bg */
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--dark-text-color); /* Default text color for the page */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Video Section */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #0a0a0a; /* Ensure a consistent dark background for the video 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.4);
}

.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.3);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Allows click event to pass to the parent <a> */
}

.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);
  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.6);
  padding: 10px 20px;
  background: rgba(38, 169, 224, 0.8);
  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: var(--login-color); /* Using login color for primary 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.2);
  border: none;
  cursor: pointer;
  min-width: 180px;
}

.page-index__play-now-button:hover {
  background: #c76600; /* Darker shade for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* Title Section */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Dark background */
  color: var(--dark-text-color);
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-index__title-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--dark-text-color);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 160px;
  text-align: center;
}

.page-index__cta-button--primary {
  background: var(--login-color);
  color: #ffffff;
  border: 2px solid var(--login-color);
}

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

.page-index__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: var(--dark-text-color);
}

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

.page-index__faq-main-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--dark-text-color);
  font-size: 17px;
  font-weight: 600;
}

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.12);
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-index__faq-item[open] .page-index__faq-toggle {
  transform: rotate(45deg);
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  color: var(--dark-text-color);
}

.page-index__faq-answer p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
}

/* Brand Section */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
  color: var(--dark-text-color);
}

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

.page-index__brand-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

.page-index__brand-content-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-index__brand-content-item h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__brand-content-item p {
  font-size: 16px;
  line-height: 1.7;
}

.page-index__brand-image-wrapper {
  grid-column: span 2; /* Make image span across 2 columns on larger screens */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover; /* Ensure image covers the area */
  min-width: 200px;
  min-height: 200px;
}

/* Adjust image grid placement for better flow */
@media (min-width: 1024px) {
  .page-index__brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__brand-image-wrapper {
    grid-column: 2 / 3;
    grid-row: 1 / span 2; /* Position image centrally */
  }
  .page-index__brand-content-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
  .page-index__brand-content-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
  .page-index__brand-content-item:nth-child(4) { grid-column: 3 / 4; grid-row: 1 / 2; }
  .page-index__brand-content-item:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
  .page-index__brand-content-item:nth-child(6) { grid-column: 1 / 4; grid-row: 3 / 4; }
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: var(--dark-text-color);
}

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

.page-index__blog-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

.page-index__blog-item {
  background: var(--card-bg-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__blog-item-content {
  padding: 25px;
}

.page-index__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.4;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: var(--dark-text-color);
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__title-description {
    font-size: 17px;
  }
  .page-index__brand-image-wrapper {
    grid-column: span 1;
    order: -1; /* Place image at the top on smaller screens */
  }
  .page-index__brand-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-index__video-section,
  .page-index__title-section,
  .page-index__faq-section,
  .page-index__brand-section,
  .page-index__blog-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Header offset for mobile */
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-index__main-title {
    font-size: 32px;
  }

  .page-index__title-description {
    font-size: 16px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-button,
  .page-index__play-now-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index__video-container,
  .page-index__video-link,
  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Ensure video fits within bounds */
  }

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

  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
  }

  .page-index__faq-answer p {
    font-size: 15px;
  }

  .page-index__brand-content-item h3 {
    font-size: 20px;
  }

  .page-index__brand-content-item p {
    font-size: 15px;
  }

  .page-index__blog-item-image {
    height: 180px;
  }

  .page-index__blog-item-title {
    font-size: 18px;
  }

  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
  
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index__blog-item-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 28px;
  }
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 24px;
  }
  .page-index__video-click-hint {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}