/* style/index.css */

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Matching body background for consistency */
  overflow-x: hidden; /* Prevent horizontal scroll on wider elements */
}

.page-index__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-index__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Common button styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  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; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index__cta-button--primary {
  background: var(--primary-color, #26A9E0);
  color: #ffffff;
}

.page-index__cta-button--primary:hover {
  background: #1e87b8; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

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

/* Module: Video Area */
.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); /* Account for fixed header */
  box-sizing: border-box;
  overflow: hidden;
}

.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;
  box-sizing: border-box;
  overflow: hidden;
}

.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;
  box-sizing: border-box;
}

.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);
  box-sizing: border-box;
}

.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 interfering with click event on parent link */
  max-width: 100%; /* Ensure video is responsive */
}

.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 color with opacity */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color, #26A9E0);
  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__play-now-button:hover {
  background: #1e87b8;
  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);
}

/* Module 1: H1 Title + CTA Buttons */
.page-index__hero-content {
    text-align: center;
    padding: 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-index__main-title {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.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;
    box-sizing: border-box;
    overflow: hidden;
}

/* Module 3: Brand Introduction */
.page-index__brand-section {
    padding: 80px 20px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-index__brand-title {
    font-size: 38px;
    color: #ffffff;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-index__brand-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color, #26A9E0);
    border-radius: 2px;
}

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

.page-index__brand-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly visible card on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-index__brand-item-icon {
    width: 200px; /* Minimum size 200x200 */
    height: 150px; /* Adjust height for aspect ratio */
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px;
    max-width: 100%; /* Responsive image */
    height: auto;
}

.page-index__brand-item-title {
    font-size: 24px;
    color: var(--primary-color, #26A9E0);
    margin-bottom: 15px;
}

.page-index__brand-item-description {
    font-size: 16px;
    color: #e0e0e0;
}

.page-index__brand-commitment {
    background: rgba(38, 169, 224, 0.2); /* Primary color with transparency */
    border-radius: 10px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__brand-commitment-title {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-index__brand-commitment-description {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* Module 2: FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-index__faq-main-title {
  font-size: 38px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__faq-main-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color, #26A9E0);
    border-radius: 2px;
}

.page-index__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly visible background on dark */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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 20px;
  opacity: 0;
  color: #e0e0e0; /* Light text for dark background */
  background: rgba(255, 255, 255, 0.02); /* Very subtle background for answer */
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.02); /* Maintain subtle background */
  border-radius: 0 0 5px 5px;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08); /* Card-like background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-index__faq-question:active {
  background: rgba(255, 255, 255, 0.1);
}

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color, #26A9E0);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Plus to X for close, or simply change to minus */
}

/* Module 4: Blog List Display */
.page-index__blog-section {
    padding: 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-index__blog-title {
    font-size: 38px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-index__blog-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color, #26A9E0);
    border-radius: 2px;
}

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

.page-index__blog-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    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 25px rgba(0, 0, 0, 0.3);
}

.page-index__blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-index__blog-item-title {
    font-size: 22px;
    color: #ffffff;
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
}

.page-index__blog-item-excerpt {
    font-size: 16px;
    color: #e0e0e0;
    margin: 0 20px 15px 20px;
    flex-grow: 1; /* Pushes date to bottom */
}

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

.page-index__view-all-blogs {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: 42px;
    }
    .page-index__brand-title,
    .page-index__faq-main-title,
    .page-index__blog-title {
        font-size: 34px;
    }
    .page-index__brand-item-title {
        font-size: 22px;
    }
    .page-index__blog-item-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-index {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-index__container {
        padding: 20px 15px;
    }

    /* Video Section */
    .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,
    .page-index__video-link,
    .page-index__video-wrapper,
    .page-index__video {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important; /* Ensure video scales correctly */
        border-radius: 4px;
    }
    .page-index__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
    .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;
    }

    /* Hero Content */
    .page-index__hero-content {
        padding: 40px 15px;
    }
    .page-index__main-title {
        font-size: 32px;
    }
    .page-index__hero-description {
        font-size: 16px;
    }
    .page-index__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
    }
    .page-index__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Brand Section */
    .page-index__brand-section {
        padding: 40px 15px;
    }
    .page-index__brand-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-index__brand-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index__brand-item-icon {
        width: 200px; /* Match HTML attribute */
        height: 150px; /* Match HTML attribute */
    }
    .page-index__brand-item-title {
        font-size: 20px;
    }
    .page-index__brand-commitment {
        padding: 30px 20px;
    }
    .page-index__brand-commitment-title {
        font-size: 26px;
    }
    .page-index__brand-commitment-description {
        font-size: 16px;
    }

    /* FAQ Section */
    .page-index__faq-section {
        padding: 40px 15px;
    }
    .page-index__faq-main-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-index__faq-question {
        padding: 15px;
    }
    .page-index__faq-question h3 {
        font-size: 16px;
    }
    .page-index__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-index__faq-item.active .page-index__faq-answer {
        padding: 15px !important;
    }

    /* Blog Section */
    .page-index__blog-section {
        padding: 40px 15px;
    }
    .page-index__blog-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-index__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index__blog-item-thumbnail {
        height: 180px; /* Adjust for smaller screens */
    }
    .page-index__blog-item-title {
        font-size: 18px;
        margin: 15px 15px 8px 15px;
    }
    .page-index__blog-item-excerpt {
        font-size: 15px;
        margin: 0 15px 10px 15px;
    }
    .page-index__blog-item-date {
        margin: 0 15px 15px 15px;
    }

    /* General image responsiveness */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index__section,
    .page-index__card,
    .page-index__container,
    .page-index__hero-container,
    .page-index__brand-container,
    .page-index__faq-container,
    .page-index__blog-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

/* Ensure no filter on images */
.page-index img {
    filter: none; /* Explicitly disable any potential filters */
}