/* style/g.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-g {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-g__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-g__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.page-g__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-g__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-g__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-g__btn-primary:hover {
  background-color: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-g__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-g__text-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: 600;
}

.page-g__text-link:hover {
  color: #1a7bb0;
}

/* General Section Styles */
.page-g__section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-g__section:last-of-type {
  margin-bottom: 0;
}

.page-g__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-g__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-g__paragraph strong {
  color: #26A9E0;
}

.page-g__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-g__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #26A9E0;
}

.page-g__feature-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-g__feature-description {
  font-size: 1rem;
  color: #e0e0e0;
}

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

.page-g__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-g__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-g__card-title {
  font-size: 1.4rem;
  color: #26A9E0;
  padding: 20px;
  margin-bottom: 0;
  font-weight: 600;
}

.page-g__card-description {
  font-size: 1rem;
  color: #e0e0e0;
  padding: 0 20px 20px;
}

/* Ordered/Unordered Lists */
.page-g__ordered-list,
.page-g__unordered-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-g__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #26A9E0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-g__list-item:last-child {
  margin-bottom: 0;
}

.page-g__list-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-g__list-description {
  font-size: 1rem;
  color: #e0e0e0;
}

.page-g__btn-inline {
  display: inline-block;
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-g__btn-inline:hover {
  background-color: #c76500;
}

/* Promotions List */
.page-g__promo-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-top: 30px;
  color: #f0f0f0;
}

.page-g__promo-list .page-g__list-item {
  background-color: transparent;
  border-left: none;
  padding: 5px 0;
  margin-bottom: 10px;
  box-shadow: none;
  color: #f0f0f0;
}

.page-g__promo-list .page-g__list-item::marker {
  color: #26A9E0;
}

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

.page-g__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-g__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}

.page-g__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-g__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-g__faq-qtext {
  flex-grow: 1;
  color: #ffffff; /* Ensure question text is white */
}

.page-g__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #26A9E0;
  line-height: 1;
}

.page-g__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #e0e0e0;
}

/* Conclusion Section */
.page-g__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-g__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
  .page-g__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }
  .page-g__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-g__hero-content {
    padding: 0 15px;
  }
  .page-g__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-g__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__section {
    padding: 40px 0;
    margin-bottom: 15px;
  }
  .page-g__container {
    padding: 0 15px;
  }
  .page-g__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-g__paragraph {
    font-size: 1rem;
  }
  .page-g__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }
  .page-g__feature-list,
  .page-g__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-g__feature-item,
  .page-g__card {
    padding: 20px;
  }
  .page-g__card-image {
    height: 200px;
  }
  .page-g__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-g__faq-answer {
    padding: 0 15px 15px;
  }
  /* Ensure all image containers are responsive */
  .page-g__hero-image-wrapper,
  .page-g__section,
  .page-g__card,
  .page-g__feature-item,
  .page-g__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-g__hero-section {
    padding-bottom: 30px;
  }
  .page-g__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-g__hero-description {
    font-size: 0.9rem;
  }
  .page-g__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-g__feature-item,
  .page-g__card {
    padding: 15px;
  }
  .page-g__list-item {
    padding: 15px;
  }
}