/* style/g.css */
.page-g {
  font-family: 'Arial', sans-serif;
  background-color: #08160F; /* Nền tối */
  color: #F2FFF6; /* Chữ sáng */
  line-height: 1.6;
}

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

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

.page-g__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Màu vàng Gold cho tiêu đề */
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-g__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8;
}

.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body đã xử lý padding-top */
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-g__hero-content-wrapper {
  max-width: 900px;
  margin-top: 40px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-g__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Sử dụng clamp để giới hạn kích thước */
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-g__intro-text {
  font-size: 1.3em;
  color: #A7D9B8;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-g__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Chữ trắng trên nền xanh */
  border: 2px solid transparent;
}

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

.page-g__btn-secondary {
  background: #11271B; /* Nền tối */
  color: #2AD16F; /* Chữ xanh */
  border: 2px solid #2AD16F;
}

.page-g__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #2AD16F;
  color: #F2FFF6;
}

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

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

.page-g__card {
  background-color: #11271B; /* Nền Card */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #2E7A4E; /* Viền Card */
}

.page-g__card-image {
  width: 100%;
  height: 250px; /* Chiều cao cố định cho ảnh card */
  object-fit: cover;
  display: block;
}

.page-g__card-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin: 20px 20px 10px 20px;
  font-weight: 600;
}

.page-g__card-text {
  font-size: 1em;
  color: #A7D9B8;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-g__how-to-bet .page-g__text-block {
  margin-bottom: 40px;
}

.page-g__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-g__step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background-color: #11271B;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

.page-g__step-icon {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-g__step-title {
  font-size: 1.8em;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-g__step-text {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-g__btn-small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-g__link-text {
  color: #2AD16F;
  text-decoration: none;
  font-weight: 600;
}

.page-g__link-text:hover {
  text-decoration: underline;
}

.page-g__list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-g__list-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #A7D9B8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-g__list-item strong {
  color: #F2FFF6;
  font-weight: 700;
}

.page-g__content-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-g__cta-center {
  margin-top: 40px;
}

.page-g__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-g__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-g__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6;
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
}

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

.page-g__faq-item summary:hover {
  background-color: #13994A;
}

.page-g__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  content: '−';
}

.page-g__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: #A7D9B8;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-g__conclusion .page-g__text-block {
  margin-bottom: 40px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-g__section-title {
    font-size: 2em;
  }
  .page-g__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-g__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-g__section {
    padding: 40px 0;
  }
  .page-g__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-g__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-g__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    max-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__text-block,
  .page-g__list-item,
  .page-g__faq-answer {
    font-size: 0.95em;
  }
  .page-g__step-by-step {
    gap: 30px;
    padding: 0 15px;
  }
  .page-g__step-item {
    padding: 20px;
  }
  .page-g__step-title {
    font-size: 1.5em;
  }
  .page-g__hero-section {
    padding-bottom: 40px;
  }
  .page-g__hero-content-wrapper {
    margin-top: 30px;
  }
  .page-g__grid-2-col,
  .page-g__grid-3-col {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-g__card-image {
    height: 200px;
  }
  .page-g__card-title {
    font-size: 1.3em;
  }
  .page-g__card-text {
    font-size: 0.9em;
  }
  .page-g img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__hero-image-wrapper,
  .page-g__cta-buttons,
  .page-g__step-by-step,
  .page-g__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-g__hero-section {
    padding-top: 10px !important;
  }
  .page-g__cta-center {
    padding: 0 15px;
  }
}