/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #121212, so use light text */
  background-color: transparent; /* Inherit from body or shared, ensuring dark background */
}

/* 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); /* Ensure space for fixed header */
  background: #1a1a1a; /* Slightly lighter dark background for 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; /* Prevent video controls from blocking click event on 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.5); /* 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(1, 116, 57, 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: #C30808; /* Using custom color for Login/Register */
  color: #FFFF00; /* Using custom color for Login/Register font */
  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;
}

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

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

/* Hero Section */
.page-index__hero-section {
  background-color: #121212; /* Dark background from body */
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__cta-button--register {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
  border: 2px solid #C30808;
}

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

.page-index__cta-button--promo {
  background-color: #017439; /* Primary color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

/* Features Section */
.page-index__features-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__features-title {
  font-size: 38px;
  color: #FFFFFF;
  margin-bottom: 50px;
  font-weight: bold;
}

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

.page-index__feature-item {
  background-color: #222222; /* Darker card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure images behave as block elements for max-width 100% on mobile */
  margin-left: auto; /* Center image */
  margin-right: auto; /* Center image */
}

.page-index__feature-heading {
  font-size: 24px;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__feature-description {
  font-size: 16px;
  color: #cccccc;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #121212; /* Body background */
  padding: 80px 20px;
}

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

.page-index__faq-title {
  font-size: 38px;
  color: #FFFFFF;
  margin-bottom: 50px;
  text-align: center;
  font-weight: bold;
}

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #222222; /* Darker background for question */
  border: 1px solid #333333;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #2a2a2a;
  border-color: #444444;
}

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

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent toggle from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #FFFF00; /* Yellow for active toggle */
  transform: rotate(45deg); /* Optional: rotate for 'x' 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: #1a1a1a; /* Slightly lighter dark background for answer */
  color: #cccccc;
  border-radius: 0 0 8px 8px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #333333;
  border-top: none;
}

/* Brand Section */
.page-index__brand-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  padding: 80px 20px;
}

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

.page-index__brand-title {
  font-size: 38px;
  color: #FFFFFF;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
}

.page-index__brand-content p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-index__brand-subtitle {
  font-size: 28px;
  color: #017439; /* Primary color for subtitle */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__brand-advantages {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__brand-advantages li {
  background-color: #222222;
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 17px;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-index__brand-advantages li strong {
  color: #FFFF00; /* Custom font color for emphasis */
}

/* Blog Section */
.page-index__blog-section {
  background-color: #121212; /* Body background */
  padding: 80px 20px;
}

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

.page-index__blog-title {
  font-size: 38px;
  color: #FFFFFF;
  margin-bottom: 50px;
  text-align: center;
  font-weight: bold;
}

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

.page-index__blog-item {
  background-color: #222222; /* Darker card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  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.6);
}

.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; /* Ensure images behave as block elements for max-width 100% on mobile */
}

.page-index__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFFFFF;
  padding: 15px 20px 10px;
  line-height: 1.4;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  padding: 0 20px 15px;
}

.page-index__blog-item-date {
  display: block;
  font-size: 13px;
  color: #999999;
  padding: 0 20px 20px;
}

/* General image styling for content areas */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure images behave as block elements for max-width 100% on mobile */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__features-title,
  .page-index__faq-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 32px;
  }
  .page-index__feature-heading {
    font-size: 22px;
  }
  .page-index__blog-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .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; /* Ensure video is fully visible */
  }
  
  .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__hero-section,
  .page-index__features-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;
  }

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

  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

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

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

  .page-index__feature-item {
    padding: 20px;
  }

  .page-index__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-index__feature-heading {
    font-size: 20px;
  }

  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px); /* Adjust width for toggle */
  }
  
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  .page-index__brand-subtitle {
    font-size: 24px;
  }

  .page-index__brand-advantages li {
    font-size: 15px;
    padding: 12px 15px;
  }

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

  .page-index__blog-item-title {
    font-size: 18px;
    padding: 12px 15px 8px;
  }

  .page-index__blog-item-excerpt,
  .page-index__blog-item-date {
    font-size: 14px;
    padding: 0 15px 12px;
  }

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

/* Color Contrast & Specific Rules */
/* Body background is #121212 (dark), so main text color is #ffffff */
.page-index h1, .page-index h2, .page-index h3, .page-index h4, .page-index h5, .page-index h6 {
  color: #FFFFFF;
}

.page-index p, .page-index li {
  color: #cccccc; /* Slightly softer white for paragraphs */
}

/* Specific color overrides */
.page-index__cta-button--register {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
}

.page-index__cta-button--promo {
  background-color: #017439; /* Primary color */
  color: #FFFFFF;
}

.page-index__play-now-button {
  background-color: #C30808; /* Login color */
  color: #FFFF00; /* Login font color */
}

.page-index__faq-toggle {
  color: #017439; /* Primary color */
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #FFFF00; /* Yellow for active toggle */
}

.page-index__brand-subtitle {
  color: #017439; /* Primary color */
}

.page-index__brand-advantages li strong {
  color: #FFFF00; /* Yellow for emphasis */
}

/* No CSS filters on images */
.page-index img {
  filter: none; /* Ensure no filters are applied */
}