/* style/index.css */

/* --- General Page Styling --- */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0d1117; /* Inherit from body or set explicitly if needed */
}

/* --- Section Base Styles --- */
.page-index__video-section,
.page-index__hero-section,
.page-index__brand-section,
.page-index__services-section,
.page-index__faq-section,
.page-index__blog-section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure no overflow issues */
}

/* Topmost section padding for fixed header */
.page-index__video-section {
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #2C3E50 0%, #0d1117 100%);
}

.page-index__hero-section {
  background: linear-gradient(90deg, #2C3E50 0%, #FFD700 100%);
  color: #ffffff;
  padding: 100px 20px;
}

.page-index__brand-section {
  background-color: #0d1117;
  color: #f0f0f0;
}

.page-index__services-section {
    background: linear-gradient(135deg, #0d1117 0%, #2C3E50 100%);
    color: #f0f0f0;
}

.page-index__faq-section {
  background-color: #1a202c; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
}

.page-index__blog-section {
  background: linear-gradient(90deg, #FFD700 0%, #2C3E50 100%);
  color: #ffffff;
}

/* --- Container Styles --- */
.page-index__video-container,
.page-index__hero-container,
.page-index__brand-container,
.page-index__services-container,
.page-index__faq-container,
.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* --- Titles & Descriptions --- */
.page-index__main-title,
.page-index__brand-title,
.page-index__services-title,
.page-index__faq-main-title,
.page-index__blog-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Main brand color for titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-description,
.page-index__faq-description,
.page-index__blog-description,
.page-index__services-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #cccccc;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__play-now-button,
.page-index__service-card-button,
.page-index__view-all-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box; /* Include padding/border in width */
}

.page-index__btn-primary,
.page-index__play-now-button {
  background: #FFD700; /* Primary brand color */
  color: #2C3E50; /* Dark text for contrast */
}

.page-index__btn-primary:hover,
.page-index__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary,
.page-index__view-all-button {
  background: #2C3E50; /* Auxiliary brand color */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover,
.page-index__view-all-button:hover {
  background: #1a202c; /* Slightly darker dark blue */
  color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Video Section --- */
.page-index__video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.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;
  max-width: 1000px; /* Max width for video */
}

.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: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with 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.4);
  border-radius: 12px;
  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 4px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8); /* Gold with transparency */
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
}

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

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

.page-index__brand-item {
  background-color: #2C3E50;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #f0f0f0;
}

.page-index__brand-item-title {
  color: #FFD700;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-index__brand-item-text {
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
}

.page-index__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__brand-advantages-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    text-align: left;
    color: #cccccc;
}

.page-index__brand-advantages-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1em;
}

.page-index__brand-advantages-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-size: 1.1em;
    line-height: 1;
}

/* --- Services Section --- */
.page-index__services-section h2 {
    color: #FFD700;
}
.page-index__services-section p {
    color: #cccccc;
}
.page-index__service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__service-card {
    background-color: #0d1117; /* Dark background for cards */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f0f0f0;
}

.page-index__service-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    aspect-ratio: 4/3; /* Maintain aspect ratio */
}

.page-index__service-card-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    min-height: 2em; /* Ensure consistent height for titles */
}

.page-index__service-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__service-card-title a:hover {
    color: #e6c200;
}

.page-index__service-card-text {
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow */
}

.page-index__service-card-button {
    margin-top: auto; /* Push button to bottom */
}

/* --- FAQ Section --- */
.page-index__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2C3E50; /* Dark blue background for questions */
  border: 1px solid #3d5066;
  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: #3d5066;
  border-color: #4a607a;
}

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