/* style/blog-q99-app-beginner-guide.css */

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

/* Base styles for the page content, ensuring contrast with body background */
.page-blog-q99-app-beginner-guide {
  font-family: 'Arial', sans-serif;
  color: var(--q99-text-main); /* Light text for dark background */
  background-color: var(--q99-background); /* Explicit background for page content */
  line-height: 1.6;
}

.page-blog-q99-app-beginner-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-blog-q99-app-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--q99-background);
  overflow: hidden;
}

.page-blog-q99-app-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog-q99-app-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast, but not changing color */
}

.page-blog-q99-app-beginner-guide__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px 80px;
  max-width: 900px;
  color: var(--q99-text-main);
}

.page-blog-q99-app-beginner-guide__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--q99-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-blog-q99-app-beginner-guide__description {
  font-size: 1.1rem;
  color: var(--q99-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-q99-app-beginner-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-q99-app-beginner-guide__btn-primary,
.page-blog-q99-app-beginner-guide__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog-q99-app-beginner-guide__btn-primary {
  background: var(--q99-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-q99-app-beginner-guide__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog-q99-app-beginner-guide__btn-secondary {
  background: transparent;
  color: var(--q99-gold-color);
  border: 2px solid var(--q99-gold-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-q99-app-beginner-guide__btn-secondary:hover {
  background: var(--q99-gold-color);
  color: var(--q99-background);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.page-blog-q99-app-beginner-guide__content-section {
  padding: 60px 0;
  background-color: var(--q99-background);
}

.page-blog-q99-app-beginner-guide__dark-section {
  background-color: var(--q99-deep-green);
  color: var(--q99-text-main);
}

.page-blog-q99-app-beginner-guide__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--q99-gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog-q99-app-beginner-guide__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--q99-primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-blog-q99-app-beginner-guide__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--q99-primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-blog-q99-app-beginner-guide__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--q99-text-secondary);
}

.page-blog-q99-app-beginner-guide__text-block strong {
  color: var(--q99-text-main);
}

.page-blog-q99-app-beginner-guide__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.page-blog-q99-app-beginner-guide__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-blog-q99-app-beginner-guide__image-text-block .page-blog-q99-app-beginner-guide__content-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-q99-app-beginner-guide__image-text-block .page-blog-q99-app-beginner-guide__text-content {
  flex: 1;
}

.page-blog-q99-app-beginner-guide__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--q99-text-secondary);
}

.page-blog-q99-app-beginner-guide__list li {
  margin-bottom: 10px;
  color: var(--q99-text-secondary);
}

.page-blog-q99-app-beginner-guide__list li strong {
  color: var(--q99-text-main);
}

.page-blog-q99-app-beginner-guide__sub-list {
  list-style: circle;
  margin-left: 20px;
  margin-top: 5px;
  color: var(--q99-text-secondary);
}

.page-blog-q99-app-beginner-guide__download-btn {
  margin-top: 20px;
}

.page-blog-q99-app-beginner-guide__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Contact Grid */
.page-blog-q99-app-beginner-guide__contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-q99-app-beginner-guide__contact-card {
  background-color: var(--q99-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 200px;
}

.page-blog-q99-app-beginner-guide__contact-title {
  font-size: 1.5rem;
  color: var(--q99-primary-color);
  margin-bottom: 15px;
}

.page-blog-q99-app-beginner-guide__contact-description {
  font-size: 0.95rem;
  color: var(--q99-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* FAQ Section */
.page-blog-q99-app-beginner-guide__faq-section {
  padding: 60px 0;
  background-color: var(--q99-background);
}

.page-blog-q99-app-beginner-guide__faq-list {
  margin-top: 40px;
}

.page-blog-q99-app-beginner-guide__faq-item {
  background-color: var(--q99-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-q99-app-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--q99-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog-q99-app-beginner-guide__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-q99-app-beginner-guide__faq-question:hover {
  background-color: var(--q99-deep-green);
}

.page-blog-q99-app-beginner-guide__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--q99-primary-color);
}

.page-blog-q99-app-beginner-guide__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--q99-text-secondary);
  line-height: 1.7;
}

.page-blog-q99-app-beginner-guide__faq-answer p {
  margin-bottom: 0;
}

.page-blog-q99-app-beginner-guide__inline-link {
  color: var(--q99-primary-color);
  text-decoration: underline;
}

.page-blog-q99-app-beginner-guide__inline-link:hover {
  color: var(--q99-gold-color);
}

/* Conclusion Section */
.page-blog-q99-app-beginner-guide__conclusion-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--q99-deep-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-q99-app-beginner-guide__hero-image-wrapper {
    max-height: 500px;
  }

  .page-blog-q99-app-beginner-guide__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-blog-q99-app-beginner-guide__image-text-block--reverse {
    flex-direction: column;
  }

  .page-blog-q99-app-beginner-guide__image-text-block .page-blog-q99-app-beginner-guide__text-content {
    order: 2; /* Ensure text comes after image on mobile for reverse layout */
  }

  .page-blog-q99-app-beginner-guide__image-text-block .page-blog-q99-app-beginner-guide__content-image {
    order: 1;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-blog-q99-app-beginner-guide__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-q99-app-beginner-guide__hero-section {
    padding: 10px 0 40px;
  }

  .page-blog-q99-app-beginner-guide__hero-image-wrapper {
    max-height: 300px;
  }

  .page-blog-q99-app-beginner-guide__hero-content {
    padding: 20px 15px 40px;
  }

  .page-blog-q99-app-beginner-guide__main-title {
    font-size: 2rem;
  }

  .page-blog-q99-app-beginner-guide__description {
    font-size: 1rem;
  }

  .page-blog-q99-app-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-q99-app-beginner-guide__btn-primary,
  .page-blog-q99-app-beginner-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-blog-q99-app-beginner-guide__content-section {
    padding: 40px 0;
  }

  .page-blog-q99-app-beginner-guide__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-blog-q99-app-beginner-guide__sub-title {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-blog-q99-app-beginner-guide__text-block,
  .page-blog-q99-app-beginner-guide__list li,
  .page-blog-q99-app-beginner-guide__sub-list li,
  .page-blog-q99-app-beginner-guide__contact-description,
  .page-blog-q99-app-beginner-guide__faq-answer {
    font-size: 0.95rem;
  }

  .page-blog-q99-app-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-q99-app-beginner-guide__image-text-block .page-blog-q99-app-beginner-guide__content-image {
    min-width: unset;
  }

  .page-blog-q99-app-beginner-guide__contact-grid {
    grid-template-columns: 1fr;
  }

  .page-blog-q99-app-beginner-guide__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog-q99-app-beginner-guide__faq-answer {
    padding: 0 20px 15px;
  }

  .page-blog-q99-app-beginner-guide__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }
  .page-blog-q99-app-beginner-guide__video-container,
  .page-blog-q99-app-beginner-guide__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-blog-q99-app-beginner-guide__main-title {
    font-size: 1.8rem;
  }

  .page-blog-q99-app-beginner-guide__section-title {
    font-size: 1.6rem;
  }

  .page-blog-q99-app-beginner-guide__sub-title {
    font-size: 1.2rem;
  }

  .page-blog-q99-app-beginner-guide__hero-image-wrapper {
    max-height: 250px;
  }
}