/* style/index.css */

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #003366; /* Primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Secondary color for accent */
  border-radius: 2px;
}

.page-index__section-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  margin: 10px;
  font-size: 1.1em;
  cursor: pointer;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Secondary color */
  color: #003366; /* Primary color */
  border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #003366;
  transform: translateY(-2px);
}

.page-index__btn--tertiary {
  background-color: #003366;
  color: #ffffff;
  border: 2px solid #003366;
}

.page-index__btn--tertiary:hover {
  background-color: #002244;
  border-color: #002244;
  transform: translateY(-2px);
}

.page-index__btn--download {
  background-color: #003366;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__btn--download:hover {
  background-color: #002244;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
  margin: 5px;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #003366 0%, #0a4d8c 100%); /* Dark blue gradient background */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Gold color for hero title */
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%; /* Adjust as needed */
  max-width: 800px;
  height: auto;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

/* Features Section */
.page-index__features-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__feature-card {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon {
  width: 250px;
  height: 167px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 15px;
}

.page-index__feature-title a {
  color: #003366;
  text-decoration: none;
}

.page-index__feature-title a:hover {
  color: #FFD700;
}

.page-index__feature-description {
  font-size: 1em;
  color: #555;
}

/* Download Section */
.page-index__download-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #003366 0%, #0a4d8c 100%);
  color: #ffffff;
}

.page-index__download-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.page-index__download-content {
  flex: 1;
  padding-right: 40px;
}

.page-index__download-content .page-index__section-title {
  color: #FFD700;
  text-align: left;
}

.page-index__download-content .page-index__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-index__download-content .page-index__section-text {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.page-index__download-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
}

.page-index__download-guide-link {
  margin-top: 20px;
  font-size: 0.9em;
}

.page-index__download-guide-link a {
  color: #FFD700;
  text-decoration: none;
}

.page-index__download-guide-link a:hover {
  text-decoration: underline;
}

.page-index__download-image-wrapper {
  flex: 0 0 400px;
  text-align: center;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-index__security-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__security-item-title {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 10px;
}

.page-index__security-item-description {
  font-size: 0.95em;
  color: #555;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__promo-card {
  background-color: #003366;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__promo-image {
  width: 250px;
  height: 167px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-index__promo-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__promo-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Testimonials Section */
.page-index__testimonials-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__testimonial-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index__testimonial-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid #FFD700;
}

.page-index__testimonial-quote {
  font-style: italic;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 15px;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #003366;
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0a4d8c 0%, #003366 100%);
  color: #ffffff;
  text-align: center;
}

.page-index__cta-section .page-index__section-title {
  color: #FFD700;
}

.page-index__cta-section .page-index__section-title::after {
  background-color: #FFD700;
}

.page-index__cta-section .page-index__section-text {
  color: #f0f0f0;
}

.page-index__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__download-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__download-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  .page-index__download-content .page-index__section-title,
  .page-index__download-content .page-index__section-text {
    text-align: center;
  }
  .page-index__download-content .page-index__section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .page-index__download-image-wrapper {
    flex: none;
    width: 80%;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-image-wrapper {
    width: 80%;
    position: relative;
    opacity: 0.5;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-text {
    font-size: 1em;
  }
  .page-index__features-grid,
  .page-index__security-features,
  .page-index__promotions-grid,
  .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-index__btn {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-index__hero-actions,
  .page-index__download-buttons,
  .page-index__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-index__hero-image-wrapper {
    display: none; /* Hide hero image on smaller mobiles to simplify layout */
  }

  /* Critical: Prevent content overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
  .page-index__download-image {
    width: 100%; /* Ensure download image fits */
    height: auto;
  }
  /* Content area images must be >= 200px. These are already large and responsive. */
  .page-index__feature-icon,
  .page-index__promo-image {
    width: 250px; /* Maintain minimum width for content images */
    height: auto; /* Allow height to adjust */
  }
  .page-index__security-icon,
  .page-index__testimonial-avatar {
    width: 80px; /* Small icons are allowed in this context (not content images) */
    height: 80px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__btn {
    width: 100%;
    margin: 5px 0;
  }
}