/* style/g.css */

/* Root variables for colors based on theme */
:root {
    --primary-color: #F2C14E; /* Main color from Black Gold theme */
    --secondary-color: #FFD36B; /* Auxiliary color from Black Gold theme */
    --card-bg: #111111; /* Card Background */
    --body-bg: #0A0A0A; /* Background */
    --text-main: #FFF6D6; /* Main Text */
    --border-color: #3A2A12; /* Border */
    --glow-color: #FFD36B; /* Glow */

    /* Button gradient */
    --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the page content */
.page-g {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body bg */
    background-color: var(--body-bg); /* Ensure body background is dark */
}

/* Global container and section styles */
.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;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.page-g__content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-g__content-wrapper p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-main);
}

.page-g__image-full {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.page-g__image-small {
    width: 100%;
    height: auto;
    max-width: 800px; /* Example smaller max-width */
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* 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;
    /* Adhering to the rule: only 10px padding-top for hero section */
    padding-top: 10px;
    background-color: var(--body-bg); /* Ensure it matches body background */
}

.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 it takes full width within max-width */
}

.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;
    border: 1px solid var(--border-color);
}

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

.page-g__hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font size */
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Soft glow */
}

.page-g__hero-content p {
    font-size: 1.15rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

.page-g__cta-button:hover {
    filter: brightness(1.1); /* Slightly brighter on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-g__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

.page-g__cta-button--secondary {
    background: #444; /* Darker background for secondary button */
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 20px;
    box-shadow: none;
}

.page-g__cta-button--secondary:hover {
    background: #555;
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(255, 211, 107, 0.3);
}

.page-g__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    margin-top: 40px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Light background section (for contrast) */
.page-g__light-bg {
    background-color: var(--body-bg); /* Using dark body background for all sections as per theme */
    color: var(--text-main);
}
.page-g__light-bg .page-g__section-title {
    color: var(--primary-color);
}
.page-g__light-bg p, .page-g__light-bg li {
    color: var(--text-main);
}

/* Dark background section (for contrast) */
.page-g__dark-bg {
    background-color: var(--card-bg); /* Using card background for dark sections */
    color: var(--text-main);
}
.page-g__dark-bg .page-g__section-title {
    color: var(--primary-color);
}
.page-g__dark-bg p, .page-g__dark-bg li {
    color: var(--text-main);
}


/* Grid for types section */
.page-g__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card styles */
.page-g__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-g__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

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

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

/* Step-by-step guide */
.page-g__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-g__step-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-g__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

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

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

.page-g__btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--btn-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* Advantages section */
.page-g__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__advantage-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-g__advantage-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

/* Tips section list */
.page-g__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-g__list li {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: var(--text-main);
}

.page-g__list li::before {
    content: "\2713"; /* Checkmark icon */
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
}

/* FAQ Section */
.page-g__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

details.page-g__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Increased border-radius for aesthetic */
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-g__faq-item summary.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color); /* Question color */
  font-weight: bold;
}
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); /* Subtle hover effect */
}
.page-g__faq-qtext {
  flex: 1;
  font-size: 18px; /* Larger font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-g__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-g__faq-item .page-g__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: rgba(255, 255, 255, 0.03); /* Slightly lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
  font-size: 16px;
  text-align: left;
}
details.page-g__faq-item .page-g__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-g__section-title {
        font-size: 32px;
    }
    .page-g__hero-content h1 {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-g__hero-content p {
        font-size: 1rem;
    }
    .page-g__grid-2-cols {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-g__section {
        padding: 40px 0;
    }
    .page-g__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-g__container {
        padding: 0 15px;
    }
    .page-g__hero-section {
        padding-top: 10px !important; /* Ensure 10px padding-top */
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-g__hero-content p {
        font-size: 0.95rem;
    }
    .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-top: 20px;
    }
    .page-g__cta-button--secondary {
        margin-left: 0; /* Remove margin for stacking */
    }
    .page-g__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-g__grid-3-cols,
    .page-g__step-by-step,
    .page-g__grid-2-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-g__card-image {
        height: 180px;
    }
    .page-g__card-title {
        font-size: 20px;
    }
    .page-g__advantage-title,
    .page-g__step-title {
        font-size: 20px;
    }
    .page-g__list li {
        font-size: 15px;
        padding: 12px 15px;
    }
    details.page-g__faq-item summary.page-g__faq-question { padding: 15px; }
    .page-g__faq-qtext { font-size: 16px; }
    .page-g__faq-toggle { font-size: 24px; width: 25px; }
    details.page-g__faq-item .page-g__faq-answer { padding: 0 15px 15px; }

    /* Mobile image responsive optimization */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
    /* Specific override for .page-g__hero-section padding to avoid double */
    .page-g__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-g__hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}