.page-g {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

.page-g__dark-section {
  background: var(--deep-red-color, #7A0E0E);
  color: var(--text-main-color, #FFF5E1);
}

.page-g__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-g__background-color {
  background: var(--background-color, #B71C1C);
  color: var(--text-main-color, #FFF5E1);
}

.page-g__text-main {
  color: var(--text-main-color, #FFF5E1);
}

.page-g__card-bg {
  background: var(--card-bg-color, #D32F2F);
  color: var(--text-main-color, #FFF5E1);
}

.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px 20px; /* Small top padding */
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-g__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-g__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-g__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main-color, #FFF5E1);
  max-width: 700px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-g__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color, #FFF5E1);
  max-width: 800px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-g__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  justify-content: center;
}

.page-g__btn-primary,
.page-g__btn-secondary,
.page-g__btn-card-action {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__btn-primary {
  background: var(--button-color, linear-gradient(180deg, #FFD86A 0%, #E6B800 100%));
  color: #333333; /* Dark text for gold button */
  border: 2px solid var(--border-color, #F2B544);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-g__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-g__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #FFF5E1);
  border: 2px solid var(--border-color, #F2B544);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-g__btn-secondary:hover {
  background: var(--border-color, #F2B544);
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-g__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit from section for contrast */
}

.page-g__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

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

.page-g__card {
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-g__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-g__card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-g__card-text {
  font-size: 1em;
  padding: 0 20px;
  margin-bottom: 25px;
}

.page-g__btn-card-action {
  background: var(--button-color, linear-gradient(180deg, #FFD86A 0%, #E6B800 100%));
  color: #333333; /* Dark text for gold button */
  border: 2px solid var(--border-color, #F2B544);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-g__btn-card-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.page-g__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Small top padding */
  text-align: center;
}

.page-g__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-g__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-g__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-g__video-caption {
  font-size: 1em;
  margin-top: 20px;
}

.page-g__list-items {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-g__list-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-g__list-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--main-color, #C91F17);
  margin-bottom: 15px;
}

.page-g__list-description {
  font-size: 1.1em;
  color: #555555;
}

.page-g__feature-card {
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  transition: transform 0.3s ease;
}

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

.page-g__feature-icon {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-g__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-g__promotion-card {
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-g__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-g__promotion-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-g__promotion-description {
  font-size: 1em;
  padding: 0 20px;
  margin-bottom: 25px;
}

.page-g__cta-full-width {
  text-align: center;
  margin-top: 40px;
}

.page-g__text-link {
  color: var(--gold-color, #F4D34D);
  text-decoration: underline;
}

.page-g__text-link:hover {
  color: var(--glow-color, #FFCC66);
}

.page-g__faq-list {
  margin-top: 40px;
}

.page-g__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--main-color, #C91F17);
  cursor: pointer;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-g__faq-item[open] .page-g__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-g__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: #555555;
  border-top: 1px solid #eee;
}

.page-g__conclusion-section {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__main-title {
    font-size: 2.8em;
  }
  .page-g__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-g__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-g__hero-content {
    padding: 15px;
  }

  .page-g__main-title {
    font-size: 2em;
    max-width: 90%;
  }

  .page-g__hero-description {
    font-size: 1em;
    max-width: 90%;
  }

  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 90%;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g a[class*="button"],
  .page-g a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-g__cta-buttons,
  .page-g__button-group,
  .page-g__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-g__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-g__text-block {
    font-size: 1em;
  }

  .page-g__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-g__card,
  .page-g__feature-card,
  .page-g__promotion-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .page-g__card-image,
  .page-g__promotion-image {
    height: 180px;
  }

  .page-g__feature-icon {
    height: 150px;
  }

  .page-g__list-item {
    padding: 20px;
  }

  .page-g__list-title {
    font-size: 1.5em;
  }

  .page-g__list-description {
    font-size: 1em;
  }
  
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-g__section,
  .page-g__card,
  .page-g__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-g__video-section {
    padding-top: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g video,
  .page-g__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-g__video-section,
  .page-g__video-container,
  .page-g__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Video wrapper itself doesn't need padding, container above does */
    padding-right: 0px;
    overflow: hidden !important;
  }

  .page-g__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }

  .page-g__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-g__faq-answer {
    padding: 15px;
    font-size: 0.95em;
  }
}