/* style/g.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-g {
    color: var(--text-main-color);
    background-color: var(--background-color);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-g__section {
    padding: 60px 0;
    position: relative;
}

.page-g__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* HERO Section */
.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 as body handles header offset */
    background-color: var(--background-color);
}

.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%;
}

.page-g__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

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

.page-g__hero-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.page-g__hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 25px auto;
    line-height: 1.5;
}

.page-g__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
    border: none;
    cursor: pointer;
}

.page-g__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

/* General Text & Image Content */
.page-g p {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-g__image-content {
    text-align: center;
    margin: 40px 0;
}

.page-g__image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
    display: block; /* Ensure it behaves like a block element for max-width */
    margin: 0 auto;
}

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

.page-g__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-g__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-g__feature-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* How-to-Play Steps */
.page-g__step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-g__step-item {
    background-color: var(--card-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.08);
}

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

/* Betting Types */
.page-g__betting-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.page-g__betting-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 12px rgba(255, 211, 107, 0.1);
}

.page-g__betting-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Security List */
.page-g__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-g__security-item {
    background-color: var(--card-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.08);
}

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

/* CTA Buttons Group */
.page-g__cta-buttons {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-g__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-g__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-g__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-g__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

/* FAQ Section */
details.page-g__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}
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;
}
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: rgba(255, 211, 107, 0.05);
}
.page-g__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-g__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  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: rgba(255, 211, 107, 0.02);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-g__section-title {
        font-size: 30px;
    }
    .page-g__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .page-g__betting-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .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(24px, 7vw, 36px);
    }
    .page-g__hero-content p {
        font-size: clamp(15px, 3vw, 18px);
    }
    .page-g__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-g__section {
        padding: 40px 0;
    }
    .page-g__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-g p {
        font-size: 16px;
    }
    .page-g__image-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-g__feature-item, .page-g__step-item, .page-g__betting-item, .page-g__security-item {
        padding: 20px;
    }
    .page-g__feature-title, .page-g__step-title, .page-g__betting-title, .page-g__security-title {
        font-size: 20px;
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-g__btn-primary, .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-left: 15px;
        padding-right: 15px;
    }
    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;
    }
    .page-g__container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-g__section-title {
        font-size: 24px;
    }
    .page-g__hero-content h1 {
        font-size: clamp(22px, 8vw, 30px);
    }
    .page-g__hero-content p {
        font-size: clamp(14px, 4vw, 16px);
    }
    .page-g__feature-title, .page-g__step-title, .page-g__betting-title, .page-g__security-title {
        font-size: 18px;
    }
    .page-g__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-g__btn-primary, .page-g__btn-secondary {
        font-size: 15px;
        padding: 10px 25px;
    }
}