/* style/index.css */

/* --- General Page Styling --- */
.page-index {
    background-color: #000000; /* Body background from shared.css is #000000 (dark), so main content should have light text */
    color: #ffffff; /* Default text color for the page */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

.page-index__dark-bg {
    background-color: #003366; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-index__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on light background */
}

/* --- Section Containers --- */
.page-index__video-section,
.page-index__title-section,
.page-index__brand-section,
.page-index__faq-section,
.page-index__blog-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
}

/* Fixed header offset for the first content section */
.page-index__video-section {
    padding-top: var(--header-offset, 120px);
}

.page-index__title-section {
    padding: 80px 20px;
    background-color: #003366; /* Use primary brand color for hero background */
    color: #ffffff;
}

.page-index__brand-section {
    background-color: #000000; /* Match body background */
    color: #ffffff;
    padding: 80px 20px;
}

.page-index__faq-section {
    background-color: #003366; /* Primary brand color for FAQ background */
    color: #ffffff;
    padding: 80px 20px;
}

.page-index__blog-section {
    background-color: #000000; /* Match body background */
    color: #ffffff;
    padding: 80px 20px;
}

/* --- Content Containers --- */
.page-index__video-container,
.page-index__title-container,
.page-index__brand-container,
.page-index__faq-container,
.page-index__blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent inner padding for content */
    box-sizing: border-box;
}

/* --- Typography --- */
.page-index h1, .page-index h2, .page-index h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold for main titles */
}

.page-index__main-title {
    font-size: 48px;
    color: #FFD700; /* Gold for H1 */
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.page-index__brand-title,
.page-index__faq-main-title,
.page-index__blog-title {
    font-size: 38px;
    color: #FFD700; /* Gold for H2s */
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-index__brand-intro-text,
.page-index__blog-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__brand-item-title,
.page-index__blog-item-title {
    font-size: 24px;
    color: #ffffff; /* White for H3s */
    margin-bottom: 15px;
}

.page-index__brand-item p {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.7;
}

.page-index__blog-item-excerpt {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 10px;
}

.page-index__blog-item-date {
    font-size: 14px;
    color: #aaaaaa;
    display: block;
    margin-top: 10px;
}

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

.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.2);
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-index__btn-primary {
    background-color: #FFD700; /* Gold for primary CTA */
    color: #003366; /* Deep blue text for contrast */
}

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

.page-index__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text for secondary CTA */
    border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover {
    background-color: #FFD700;
    color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Video Section --- */
.page-index__video-section {
  padding-bottom: 60px;
}

.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 border-radius to the link as well */
  overflow: hidden; /* Ensure video and overlay respect border-radius */
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4); /* Gold shadow on hover */
}

.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 interfering with 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, 51, 102, 0.6); /* Primary color with transparency */
  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: 20px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8); /* Gold with transparency */
  border-radius: 50px; /* Pill shape */
  white-space: nowrap;
  letter-spacing: 1px;
}

.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: #FFD700; /* Gold button */
  color: #003366; /* Deep blue text */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.page-index__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

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

/* --- Brand Section --- */
.page-index__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__brand-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

.page-index__brand-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-index__brand-item-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; /* Ensure it's block for margin auto to work */
    margin-left: auto;
    margin-right: auto;
}

.page-index__brand-item p {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.7;
}

/* --- FAQ Section --- */
.page-index__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Align FAQ text left */
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

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

.page-index__faq-question:hover {
  background: #0055aa;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for FAQ question text */
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #ffffff; /* White when active */
}

.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: #003366; /* Primary brand color for answer background */
  color: #e0e0e0;
  border-radius: 0 0 10px 10px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-index__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.7;
}

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

.page-index__blog-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: left; /* Blog item text left aligned */
}

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

.page-index__blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 20px; /* Padding for the text content */
}

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

.page-index__blog-item-title {
    padding: 0 20px;
    font-size: 20px;
    color: #FFD700; /* Gold for blog titles */
    margin-bottom: 10px;
}

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

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

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

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

@media (max-width: 768px) {
    .page-index {
        font-size: 16px;
        line-height: 1.6;
        /* 🚨 Mobile content area overflow prevention */
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* 🚨 Fixed header offset for mobile */
    .page-index__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-index__video-container,
    .page-index__title-container,
    .page-index__brand-container,
    .page-index__faq-container,
    .page-index__blog-container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Ensure inner containers also prevent overflow */
    }

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

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

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

    .page-index__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100%; /* Ensure container takes full width */
    }

    /* 🚨 Mobile button responsive adaptation */
    .page-index__cta-button,
    .page-index__play-now-button {
        max-width: 100% !important;
        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;
    }

    /* 🚨 Mobile video responsive adaptation */
    .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; /* Use contain to ensure video fits without cropping */
    }

    .page-index__video-click-hint {
        font-size: 16px;
        padding: 10px 20px;
    }

    .page-index__brand-content {
        grid-template-columns: 1fr; /* Single column for brand items */
        gap: 25px;
    }
    
    .page-index__brand-item-image {
        max-width: 180px; /* Adjust image size for mobile */
    }

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

    .page-index__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .page-index__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }

    .page-index__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 10px;
    }

    .page-index__faq-answer {
        padding: 0 20px;
    }

    .page-index__faq-item.active .page-index__faq-answer {
        padding: 15px 20px !important;
    }

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

    .page-index__blog-list {
        grid-template-columns: 1fr; /* Single column for blog posts */
        gap: 25px;
    }

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

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

@media (max-width: 480px) {
    .page-index__main-title {
        font-size: 28px;
    }

    .page-index__brand-title,
    .page-index__faq-main-title,
    .page-index__blog-title {
        font-size: 24px;
    }

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

    .page-index__play-now-button {
        font-size: 15px !important;
        padding: 10px 25px !important;
    }
}

/* 🚨 Images general styling to ensure min size and no small icons */
.page-index img {
    min-width: 200px;
    min-height: 200px;
    display: block; /* Ensure images are block level for proper sizing */
    max-width: 100%; /* Ensure images are responsive by default */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Default object-fit for content images */
    /* No filter properties to change image colors */
    filter: none; /* Explicitly ensure no filter is applied */
}

/* Ensure images in cards/blog items adhere to min size and responsiveness */
.page-index__brand-item-image,
.page-index__blog-item-image {
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
    width: 100%; /* Take full width of parent container */
    height: auto;
    object-fit: cover; /* Cover the area, cropping if necessary */
}

@media (max-width: 768px) {
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size is still met on mobile */
        min-height: 200px !important;
        object-fit: cover; /* Maintain object-fit for content images */
    }
    /* All content sections and containers that might hold images */
    .page-index__section,
    .page-index__card,
    .page-index__container,
    .page-index__brand-item,
    .page-index__blog-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow of image content */
    }
}