:root {
  --primary-color: #C91F17; /* Main color */
  --secondary-color: #E53935; /* Accent color */
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  --card-bg: #D32F2F; /* Card background */
  --section-bg: #B71C1C; /* Section background */
  --text-main: #FFF5E1; /* Main text color */
  --border-color: #F2B544; /* Border color */
  --glow-color: #FFCC66; /* Glow color */
  --gold-color: #F4D34D; /* Gold color */
  --deep-red-color: #7A0E0E; /* Deep Red color */
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --light-bg-color: #ffffff;
  --dark-bg-color: #0d0d0d; /* Assuming a dark background for general body if not specified */
}

/* Assume body background is light by default if not overridden by shared.css */
.page-g {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark-text-color); /* Default text color for light backgrounds */
  background-color: var(--light-bg-color); /* Default light background */
}

/* Override for dark sections */
.page-g__dark-section {
  background-color: var(--section-bg); /* Use specified background color */
  color: var(--text-main); /* Use specified text main color for dark backgrounds */
}

.page-g__light-bg {
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
}

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

.page-g__section {
  padding: 60px 0;
  text-align: center;
}

.page-g__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--primary-color); /* Use primary color for titles */
  line-height: 1.2;
}

.page-g__dark-section .page-g__section-title {
  color: var(--gold-color); /* Gold for titles on dark background */
}

.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-red-color); /* Hero section background */
  overflow: hidden;
}

.page-g__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-g__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Image below content */
}

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

.page-g__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-g__hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem); /* Use clamp for H1 font-size */
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-g__hero-content p {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-g__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #000000; /* Text color for gradient button */
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

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

.page-g__card {
  background: var(--card-bg); /* Use specified card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color); /* Use specified border color */
  color: var(--text-main); /* Text main color for cards */
}

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

.page-g__card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-g__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color); /* Gold for card titles */
}

.page-g__card p {
  font-size: 16px;
  color: var(--text-main);
}

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

.page-g__content-card {
  background: var(--light-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: var(--dark-text-color);
}

.page-g__content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-g__content-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-g__content-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-g__content-card p {
  font-size: 15px;
  color: var(--dark-text-color);
}

.page-g__steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-g__step-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
}

.page-g__step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--light-text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-g__step-content h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-g__step-content p {
  font-size: 16px;
  color: var(--dark-text-color);
}

.page-g__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient);
  color: #000000;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-g__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-g__list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-g__list li img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--deep-red-color);
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-g__list-content h3 {
  font-size: 22px;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-g__list-content p {
  font-size: 16px;
  color: var(--text-main);
}

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

.page-g__promo-card {
  background: var(--light-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: var(--dark-text-color);
}

.page-g__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-g__promo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-g__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-g__promo-card p {
  font-size: 15px;
  color: var(--dark-text-color);
}

.page-g__cta-group {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-g__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--light-bg-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

details.page-g__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color); /* Use border color */
  overflow: hidden;
  background: var(--card-bg); /* Use card background for FAQ items */
}
details.page-g__faq-item summary.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background-color: var(--card-bg);
  color: var(--gold-color); /* Gold color for FAQ questions */
}
details.page-g__faq-item summary.page-g__faq-question::-webkit-details-marker {
  display: none;
}
details.page-g__faq-item summary.page-g__faq-question:hover {
  background: var(--deep-red-color); /* Deep red on hover */
}
.page-g__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-g__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color); /* Gold color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-g__faq-item .page-g__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-red-color); /* Deep red for answer background */
  border-radius: 0 0 5px 5px;
  color: var(--text-main); /* Text main color for answers */
  text-align: left;
}

.page-g__section--conclusion {
  padding-bottom: 80px;
}

.page-g__section--conclusion p {
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.highlight-keyword {
  color: var(--gold-color);
  font-weight: bold;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-g__section-title {
    font-size: 32px;
  }
  .page-g__hero-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }
  .page-g__hero-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-g__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-g__hero-image img {
    border-radius: 4px;
  }
  .page-g__hero-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-g__hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-g__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-g__section {
    padding: 40px 0;
  }
  .page-g__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-g__grid, .page-g__content-grid, .page-g__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-g__card, .page-g__content-card, .page-g__promo-card {
    padding: 20px;
    text-align: center;
  }
  .page-g__card img, .page-g__content-card img, .page-g__promo-card img {
    height: auto; /* Allow height to adjust */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-g__card-title, .page-g__content-card-title, .page-g__promo-title {
    font-size: 20px;
  }
  .page-g__steps {
    gap: 20px;
  }
  .page-g__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-g__step-number {
    margin-bottom: 15px;
  }
  .page-g__step-content h3 {
    font-size: 20px;
  }
  .page-g__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-g__list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }
  .page-g__list li img {
    margin-bottom: 15px;
  }
  .page-g__list-content h3 {
    font-size: 20px;
  }
  .page-g__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-g__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
  }
  details.page-g__faq-item summary.page-g__faq-question { padding: 15px; }
  .page-g__faq-qtext { font-size: 15px; }
  details.page-g__faq-item .page-g__faq-answer { padding: 0 15px 15px; }

  /* Ensure all images are responsive */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__cta-group,
  .page-g__promo-card,
  .page-g__content-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}