/* style/index.css */

/* Root variables for colors */
:root {
  --primary-color: #26A9E0; /* Light blue */
  --secondary-color: #FFFFFF; /* White */
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login-color: #EA7C07;
  --background-color: #FFFFFF; /* This is for elements on the dark body background */
  --dark-background-color: #1a1a1a; /* Actual body background from shared.css */
}

.page-index {
  color: var(--text-light); /* Main text color for content on dark body background */
  background-color: var(--dark-background-color); /* Ensure consistency, though body handles it */
  padding-bottom: 60px; /* Add some padding to the bottom of the main content */
}

.page-index__intro-paragraph {
  max-width: 900px;
  margin: 40px auto 60px auto; /* Adjust margin as needed */
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
  text-align: center;
  padding: 0 20px;
  opacity: 0.9;
}

/* 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); /* Fixed header spacing */
  background-color: var(--dark-background-color);
}

.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;
  border-radius: 8px; /* Added for consistency */
  overflow: hidden; /* Added for consistency */
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); /* Darker shadow for dark background */
}

.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.25); /* Darker shadow for dark background */
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevents 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.5); /* Darker overlay for dark background */
  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: var(--text-light);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  background: rgba(38, 169, 224, 0.8); /* Using primary 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: var(--button-login-color); /* Using login color for CTA */
  color: var(--text-light);
  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.3); /* Darker shadow */
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #c26100; /* Darkened version of #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

/* H1 Title Section */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--dark-background-color); /* Ensure consistency */
}

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

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

.page-index__title-description {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  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.25);
  border: none;
  cursor: pointer;
  min-width: 180px; /* Ensure buttons have a minimum width */
}

.page-index__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index__cta-button--primary:hover {
  background: #1e87b7; /* Darkened version of #26A9E0 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.page-index__cta-button--secondary {
  background: var(--button-login-color); /* Using login color for secondary CTA */
  color: var(--text-light);
}

.page-index__cta-button--secondary:hover {
  background: #c26100; /* Darkened version of #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #222222; /* Slightly lighter dark background for contrast */
}

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

.page-index__faq-main-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Light border on dark background */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
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: var(--text-light);
  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.1); /* Slightly more transparent white on hover */
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: var(--text-light);
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Use 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(0, 0, 0, 0.2); /* Darker background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-light);
  line-height: 1.6;
}
.page-index__faq-answer p {
  margin: 0;
  color: var(--text-light); /* Ensure paragraph text is light */
}

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

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

.page-index__brand-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.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.05); /* Slightly transparent white on dark */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__brand-item-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index__brand-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  opacity: 0.9;
  margin-bottom: 20px;
}

.page-index__brand-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 15px;
  object-fit: cover;
}

/* Blog List Section */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #222222; /* Slightly lighter dark background */
}

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

.page-index__blog-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.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.05);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for blog thumbnails */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__blog-link {
  padding: 20px;
  text-decoration: none;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.page-index__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.6;
  text-align: right;
}

.page-index__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
  background: #1e87b7; /* Darkened version of #26A9E0 */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__title-description {
    font-size: 17px;
  }
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 32px;
  }
  .page-index__brand-item-title {
    font-size: 22px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .page-index__intro-paragraph {
    font-size: 16px;
    margin: 30px auto 40px auto;
    padding: 0 15px;
  }

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