/* style/download.css */

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

.page-download {
  background-color: var(--jobet-background);
  color: var(--jobet-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--jobet-deep-green);
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image for text contrast */
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Overlap slightly with image for visual flow, but text is below image in DOM */
  color: var(--jobet-text-main);
}

.page-download__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--jobet-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
  font-size: 1.1em;
  color: var(--jobet-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-download__btn-primary {
  background: var(--jobet-button-gradient);
  color: #ffffff;
  border: 2px solid var(--jobet-glow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-download__btn-secondary {
  background-color: transparent;
  color: var(--jobet-glow);
  border: 2px solid var(--jobet-glow);
}

.page-download__btn-secondary:hover {
  background-color: var(--jobet-glow);
  color: var(--jobet-background);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-download__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--jobet-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-download__section-description {
  font-size: 1.05em;
  color: var(--jobet-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-download__why-download-section,
.page-download__guide-section,
.page-download__requirements-section,
.page-download__features-highlight-section,
.page-download__tips-section,
.page-download__faq-section,
.page-download__conclusion-section {
  padding: 60px 0;
  border-top: 1px solid var(--jobet-divider);
}

/* Feature Grid */
.page-download__feature-grid,
.page-download__highlight-grid,
.page-download__requirement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-download__feature-image,
.page-download__highlight-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__card-title,
.page-download__highlight-title,
.page-download__requirement-title {
  font-size: 1.4em;
  color: var(--jobet-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-download__card-text,
.page-download__highlight-text {
  color: var(--jobet-text-secondary);
  font-size: 0.95em;
}

.page-download__cta-center {
  text-align: center;
  margin-top: 50px;
}

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

.page-download__step-item {
  background-color: var(--jobet-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jobet-border);
  position: relative;
  padding-top: 70px; /* Space for step number */
}

.page-download__step-number {
  position: absolute;
  top: 20px;
  left: 30px;
  background: var(--jobet-glow);
  color: var(--jobet-background);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: 700;
}

.page-download__step-title {
  font-size: 1.5em;
  color: var(--jobet-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__step-text {
  color: var(--jobet-text-secondary);
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-download__btn-text {
  color: var(--jobet-glow);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-download__btn-text:hover {
  color: var(--jobet-gold);
}

.page-download__sub-steps {
  margin-top: 20px;
}

.page-download__sub-title {
  font-size: 1.2em;
  color: var(--jobet-text-main);
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
}

.page-download__sub-text {
  color: var(--jobet-text-secondary);
  font-size: 0.9em;
  margin-bottom: 10px;
}

.page-download__step-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-top: 20px;
  border-radius: 8px;
  display: block;
}

/* Requirements Section */
.page-download__requirement-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-download__requirement-list li {
  color: var(--jobet-text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
  font-size: 0.95em;
}

.page-download__requirement-list li::before {
  content: '✓';
  color: var(--jobet-glow);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

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

.page-download__tip-item {
  background-color: var(--jobet-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jobet-border);
  transition: transform 0.3s ease;
}

.page-download__tip-item:hover {
  transform: translateY(-5px);
}

.page-download__tip-title {
  font-size: 1.4em;
  color: var(--jobet-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-download__tip-text {
  color: var(--jobet-text-secondary);
  font-size: 0.95em;
}

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

.page-download__faq-item {
  background-color: var(--jobet-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--jobet-border);
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  color: var(--jobet-text-main);
  font-weight: 600;
  background-color: var(--jobet-deep-green);
  border-bottom: 1px solid var(--jobet-divider);
  list-style: none;
}

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

.page-download__faq-question:hover {
  background-color: var(--jobet-primary);
}

.page-download__faq-qtext {
  flex-grow: 1;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: var(--jobet-glow);
}

.page-download__faq-answer {
  padding: 20px 25px;
  color: var(--jobet-text-secondary);
  font-size: 0.95em;
}

.page-download__faq-item[open] .page-download__faq-question {
  border-bottom: 1px solid var(--jobet-border);
}

/* Conclusion Section */
.page-download__conclusion-section {
  text-align: center;
}

/* All images responsive base styles */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* All content area images CSS size lower bound */
.page-download__why-download-section img,
.page-download__guide-section img,
.page-download__features-highlight-section img,
.page-download__tips-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset, small decorative top padding */
  }

  .page-download__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-download__main-title {
    font-size: 2.2em;
  }

  .page-download__hero-description {
    font-size: 1em;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__container {
    padding: 0 15px;
  }

  .page-download__section-title {
    font-size: 2em;
  }

  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-download__why-download-section,
  .page-download__guide-section,
  .page-download__requirements-section,
  .page-download__features-highlight-section,
  .page-download__tips-section,
  .page-download__faq-section,
  .page-download__conclusion-section {
    padding: 40px 0;
  }

  .page-download__feature-grid,
  .page-download__highlight-grid,
  .page-download__requirement-grid,
  .page-download__steps-grid,
  .page-download__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__feature-image,
  .page-download__highlight-image,
  .page-download__step-image {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-download__feature-card,
  .page-download__highlight-item,
  .page-download__requirement-item,
  .page-download__step-item,
  .page-download__tip-item,
  .page-download__faq-item {
    padding: 25px;
  }

  .page-download__step-item {
    padding-top: 60px;
  }

  .page-download__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    top: 15px;
    left: 25px;
  }

  .page-download__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }

  .page-download__faq-toggle {
    font-size: 1.5em;
  }

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

  /* Enforce max-width for all images and containers to prevent overflow */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__guide-section,
  .page-download__requirements-section,
  .page-download__features-highlight-section,
  .page-download__tips-section,
  .page-download__faq-section,
  .page-download__conclusion-section,
  .page-download__hero-image-wrapper,
  .page-download__cta-buttons,
  .page-download__feature-grid,
  .page-download__steps-grid,
  .page-download__requirement-grid,
  .page-download__highlight-grid,
  .page-download__tips-list,
  .page-download__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-download__hero-section {padding-left: 0; padding-right: 0;}
  .page-download__hero-content {padding-left: 15px; padding-right: 15px;}

}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.6em;
  }
  .page-download__hero-content {
    margin-top: -40px;
  }
}