/* style/app-advantages.css */

/* Base styles for the page */
.page-app-advantages {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color);
}

/* Containers for content alignment */
.page-app-advantages__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section spacing */
.page-app-advantages__hero-section,
.page-app-advantages__why-choose-section,
.page-app-advantages__features-section,
.page-app-advantages__download-section,
.page-app-advantages__promotions-section,
.page-app-advantages__support-section,
.page-app-advantages__faq-section,
.page-app-advantages__cta-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-app-advantages__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hero Image and Content */
.page-app-advantages__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-app-advantages__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-app-advantages__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-app-advantages__description,
.page-app-advantages__text-block {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.page-app-advantages__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-app-advantages__cta-buttons--center {
  margin-top: 40px;
}

.page-app-advantages__btn-primary,
.page-app-advantages__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-app-advantages__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-app-advantages__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(var(--glow-rgb), 0.4);
}

.page-app-advantages__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.page-app-advantages__btn-secondary:hover {
  background: var(--border-color);
  color: #ffffff;
}

/* Section Titles */
.page-app-advantages__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-app-advantages__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow);
  border-radius: 2px;
}

/* Why Choose Section */
.page-app-advantages__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-app-advantages__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-app-advantages__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-app-advantages__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-app-advantages__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-app-advantages__card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Features Section */
.page-app-advantages__feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 40px;
}

.page-app-advantages__feature-item {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-app-advantages__feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-app-advantages__feature-image {
  width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  min-width: 200px;
  min-height: 200px;
}

.page-app-advantages__feature-item > div {
  flex: 1;
}

.page-app-advantages__feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-app-advantages__feature-item p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Download Section */
.page-app-advantages__download-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-app-advantages__download-platform {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-app-advantages__platform-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 25px;
  text-align: center;
}

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

.page-app-advantages__step-list li {
  color: var(--text-secondary);
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
}

.page-app-advantages__step-list li strong {
  color: var(--text-main);
}

.page-app-advantages__step-list li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--glow);
  color: #08160F;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.page-app-advantages__step-list li:nth-child(1)::before { content: '1'; }
.page-app-advantages__step-list li:nth-child(2)::before { content: '2'; }
.page-app-advantages__step-list li:nth-child(3)::before { content: '3'; }
.page-app-advantages__step-list li:nth-child(4)::before { content: '4'; }
.page-app-advantages__step-list li:nth-child(5)::before { content: '5'; }

.page-app-advantages__download-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-app-advantages__promotion-item {
  text-align: left;
}

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

.page-app-advantages__method-item {
  text-align: center;
}

.page-app-advantages__method-item .page-app-advantages__btn-secondary {
  margin-top: 20px;
}

/* FAQ Section */
.page-app-advantages__faq-list {
  margin-top: 40px;
}

.page-app-advantages__faq-item {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.page-app-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: var(--deep-green);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-app-advantages__faq-question::-webkit-details-marker {
  display: none;
}

.page-app-advantages__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-app-advantages__faq-item[open] .page-app-advantages__faq-toggle {
  transform: rotate(45deg);
}

.page-app-advantages__faq-answer {
  padding: 20px 30px;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Final CTA Section */
.page-app-advantages__cta-final {
  text-align: center;
}

/* Color Contrast Adjustments (if needed, based on body background) */
.page-app-advantages__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-app-advantages__card {
  background-color: var(--card-bg);
  color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-app-advantages__feature-item {
    flex-direction: column;
    text-align: center;
  }
  .page-app-advantages__feature-item:nth-child(even) {
    flex-direction: column;
  }
  .page-app-advantages__feature-image {
    width: 80%;
    margin-bottom: 30px;
  }
  .page-app-advantages__download-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-app-advantages__hero-section,
  .page-app-advantages__why-choose-section,
  .page-app-advantages__features-section,
  .page-app-advantages__download-section,
  .page-app-advantages__promotions-section,
  .page-app-advantages__support-section,
  .page-app-advantages__faq-section,
  .page-app-advantages__cta-section {
    padding: 40px 0;
  }

  .page-app-advantages__container {
    padding: 0 15px;
  }

  .page-app-advantages__main-title {
    font-size: 2rem;
  }

  .page-app-advantages__description,
  .page-app-advantages__text-block,
  .page-app-advantages p,
  .page-app-advantages li {
    font-size: 1rem;
  }

  .page-app-advantages__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-app-advantages__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-app-advantages__btn-primary,
  .page-app-advantages__btn-secondary {
    width: 100% !important;
    max-width: 300px !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-app-advantages__grid-layout,
  .page-app-advantages__promotion-list,
  .page-app-advantages__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-app-advantages__card-image,
  .page-app-advantages__feature-image,
  .page-app-advantages__download-image,
  .page-app-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-app-advantages__section,
  .page-app-advantages__card,
  .page-app-advantages__container,
  .page-app-advantages__download-platform,
  .page-app-advantages__feature-item,
  .page-app-advantages__promotion-item,
  .page-app-advantages__method-item,
  .page-app-advantages__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-app-advantages__hero-section {
    padding-top: 10px !important;
  }

  .page-app-advantages__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-app-advantages__faq-answer {
    padding: 15px 20px;
  }
}

/* Custom Colors as CSS Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
  --glow-rgb: 87, 227, 141; /* RGB for glow color for rgba usage */
}