/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color-body: #FFFFFF; /* Assuming shared.css defines --background-color for body */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color-light: #e0e0e0;
}

/* Base styles for the page content, assuming body has padding-top from shared.css */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light background */
  background: var(--background-color-body);
}

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

/* --- 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: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(135deg, #e0f2f7, #c1e4f2); /* Light gradient background */
}

.page-index__video-container {
  position: relative;
  width: 100%; /* Important for desktop flex alignment */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.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; /* Apply to link wrapper */
  overflow: hidden; /* Ensure shadow and border-radius work */
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.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;
  object-fit: cover;
  pointer-events: none; /* Prevents video controls from interfering with click event on <a> */
  border-radius: 8px;
}

.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: var(--text-color-light);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(38, 169, 224, 0.85); /* Primary color with opacity */
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.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: 16px 45px;
  background: var(--login-color); /* Use login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px; /* More rounded button */
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.page-index__play-now-button:hover {
  background: #c56800; /* Darker #EA7C07 */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* --- H1 Title + CTA Section --- */
.page-index__title-section {
  background: var(--secondary-color); /* White background */
  padding: 60px 20px;
  text-align: center;
}

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

.page-index__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-index__title-description {
  font-size: 18px;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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: 14px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

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

.page-index__cta-button--primary:hover {
  background: #1f87b3; /* Darker #26A9E0 */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- Brand Introduction Section --- */
.page-index__brand-section {
  background: #f8f8f8; /* Light gray background */
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__brand-title {
  font-size: clamp(24px, 3vw, 40px);
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 700;
}

.page-index__brand-intro-text {
  font-size: 18px;
  color: var(--text-color-dark);
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

.page-index__brand-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-index__brand-item {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__brand-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

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

.page-index__brand-item p {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* --- Blog List Section --- */
.page-index__blog-section {
  background: var(--secondary-color); /* White background */
  padding: 80px 20px;
}

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

.page-index__blog-title {
  font-size: clamp(24px, 3vw, 40px);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

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

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

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

.page-index__blog-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-index__blog-item-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
  min-height: 60px; /* Ensure consistent height for titles */
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  min-height: 75px; /* Ensure consistent height for excerpts */
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #999;
  display: block;
}

.page-index__view-all-button-wrapper {
  text-align: center;
}

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

.page-index__view-all-button:hover {
  background: #1f87b3; /* Darker #26A9E0 */
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-index__faq-section {
  background: #eaf6fa; /* Light blue background for FAQ */
  padding: 80px 20px;
}

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

.page-index__faq-main-title {
  font-size: clamp(24px, 3vw, 40px);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #d0e8f2; /* Lighter border */
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
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;
}
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: #f0faff; /* Very light blue on hover */
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-index__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1; /* Center the +/- symbol */
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #fcfdff; /* Even lighter background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-color-dark);
  font-size: 16px;
  line-height: 1.7;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-index__container,
  .page-index__video-section,
  .page-index__title-section,
  .page-index__brand-section,
  .page-index__blog-section,
  .page-index__faq-section,
  .page-index__video-container,
  .page-index__title-container,
  .page-index__brand-container,
  .page-index__blog-container,
  .page-index__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-index__video-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 40px !important;
  }

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

  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px; /* Smaller radius for mobile */
  }
  
  .page-index__video {
    object-fit: contain !important; /* Ensure full video is visible */
    border-radius: 4px;
  }

  .page-index__play-now-button,
  .page-index__cta-button,
  .page-index__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  
  .page-index__video-cta,
  .page-index__cta-buttons,
  .page-index__view-all-button-wrapper {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    margin-top: 20px !important;
  }

  /* Adjust font sizes for mobile */
  .page-index__main-title {
    font-size: 28px !important;
  }
  .page-index__title-description {
    font-size: 16px !important;
  }
  .page-index__brand-title,
  .page-index__blog-title,
  .page-index__faq-main-title {
    font-size: 28px !important;
  }
  .page-index__brand-intro-text {
    font-size: 16px !important;
  }
  .page-index__brand-item-title {
    font-size: 20px !important;
  }
  .page-index__brand-item p {
    font-size: 15px !important;
  }
  .page-index__blog-item-title {
    font-size: 18px !important;
    min-height: auto;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px !important;
    min-height: auto;
  }
  .page-index__blog-item img {
     /* Adjust image height for mobile cards */
  }
  
  .page-index__faq-qtext {
    font-size: 16px !important;
  }
  .page-index__faq-toggle {
    font-size: 22px !important;
    width: 25px !important;
  }
  details.page-index__faq-item .page-index__faq-answer {
    font-size: 15px !important;
    padding: 0 15px 15px !important;
  }
  
  .page-index__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }
}