/* style/guides.css */

/* Custom Colors */
:root {
    --page-guides-primary-color: #F2C14E;
    --page-guides-secondary-color: #FFD36B;
    --page-guides-card-bg: #111111;
    --page-guides-background: #0A0A0A;
    --page-guides-text-main: #FFF6D6;
    --page-guides-border: #3A2A12;
    --page-guides-glow: #FFD36B;
    --page-guides-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --page-guides-text-dark: #333333; /* For contrast on light backgrounds */
}

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

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

.page-guides__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-guides__hero-image {
    position: relative;
    width: 100%;
    height: 675px; /* Fixed height for hero image, adjust as needed */
    object-fit: cover;
    display: block;
    margin-bottom: 40px;
    z-index: 1;
}

.page-guides__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-guides__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--page-guides-secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-guides__hero-description {
    font-size: 1.2em;
    color: var(--page-guides-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-guides__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-guides-border);
}

.page-guides__section:last-of-type {
    border-bottom: none;
}

.page-guides__section-title {
    font-size: 2.5em;
    color: var(--page-guides-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-guides__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--page-guides-text-main);
}

.page-guides__btn-primary,
.page-guides__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;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-guides__btn-primary {
    background: var(--page-guides-button-gradient);
    color: #ffffff; /* White text for contrast on gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-guides__btn-secondary {
    background-color: transparent;
    color: var(--page-guides-primary-color);
    border: 2px solid var(--page-guides-primary-color);
}

.page-guides__btn-secondary:hover {
    background-color: var(--page-guides-primary-color);
    color: var(--page-guides-background);
}

/* Grid Layouts */
.page-guides__grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-guides__card {
    background-color: var(--page-guides-card-bg);
    border: 1px solid var(--page-guides-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-guides-text-main);
}

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

.page-guides__card-title {
    font-size: 1.5em;
    color: var(--page-guides-secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-guides__game-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-guides__game-category-item {
    background-color: var(--page-guides-card-bg);
    border: 1px solid var(--page-guides-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: var(--page-guides-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-guides__game-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.3);
}

.page-guides__game-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    object-fit: contain;
}

.page-guides__game-category-title {
    font-size: 1.4em;
    color: var(--page-guides-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-guides__game-category-item .page-guides__btn-secondary {
    margin-top: auto; /* Pushes button to the bottom */
    width: fit-content;
}

/* Strategy Section */
.page-guides__strategy-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-guides__strategy-item:last-of-type {
    margin-bottom: 0;
}

.page-guides__strategy-item--reverse {
    flex-direction: row-reverse;
}

.page-guides__strategy-image {
    flex: 1;
    min-width: 400px; /* Minimum width for image in desktop */
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-guides__strategy-content {
    flex: 1;
    color: var(--page-guides-text-main);
}

.page-guides__strategy-title {
    font-size: 2em;
    color: var(--page-guides-secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Access Section */
.page-guides__access-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-guides__access-card {
    background-color: var(--page-guides-card-bg);
    border: 1px solid var(--page-guides-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--page-guides-text-main);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-guides__access-title {
    font-size: 1.5em;
    color: var(--page-guides-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-guides__access-card .page-guides__btn-primary,
.page-guides__access-card .page-guides__btn-secondary {
    margin-top: 20px;
    width: 100%;
}

/* FAQ Section */
.page-guides__faq-list {
    margin-top: 40px;
}

.page-guides__faq-item {
    background-color: var(--page-guides-card-bg);
    border: 1px solid var(--page-guides-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-guides-text-main);
}

.page-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-guides-secondary-color);
    transition: background-color 0.3s ease;
}

.page-guides__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

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

.page-guides__faq-item.active .page-guides__faq-toggle {
    transform: rotate(45deg);
}

.page-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-guides-text-main);
}

.page-guides__faq-item.active .page-guides__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px;
}

.page-guides__faq-answer p {
    margin-bottom: 0;
}

.page-guides__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width for responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-guides__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Adjust for mobile header */
        padding-bottom: 40px;
    }

    .page-guides__hero-image {
        height: 300px; /* Smaller hero image on mobile */
        margin-bottom: 20px;
    }

    .page-guides__main-title {
        font-size: 2.2em;
    }

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

    .page-guides__section-title {
        font-size: 1.8em;
    }

    .page-guides__btn-primary,
    .page-guides__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-guides__grid-3-col,
    .page-guides__game-categories-grid,
    .page-guides__access-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-guides__strategy-item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .page-guides__strategy-item--reverse {
        flex-direction: column;
    }

    .page-guides__strategy-image {
        min-width: unset;
        width: 100%;
        height: auto;
    }

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

    .page-guides__container {
        padding: 15px;
    }

    /* Ensure all images are responsive */
    .page-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-guides__section,
    .page-guides__card,
    .page-guides__container,
    .page-guides__game-category-item,
    .page-guides__access-card,
    .page-guides__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */
        /* padding-right: 15px; */
    }
    
    .page-guides__faq-question,
    .page-guides__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}