/* style/resources-tt88-game-guide.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --bg-dark-card: rgba(255, 255, 255, 0.1);
    --border-gold: #ffd700;
}

.page-resources-tt88-game-guide {
    /* Body background color from shared.css is var(--dark-bg-1), so text must be light */
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Fixed navbar spacing */
}

.page-resources-tt88-game-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources-tt88-game-guide__hero-section {
    background: linear-gradient(135deg, #0056b3, #007bff);
    padding: 80px 0;
    text-align: center;
    padding-top: 90px; /* Adjusted for fixed header */
}

.page-resources-tt88-game-guide__main-title {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources-tt88-game-guide__hero-description {
    font-size: 1.2em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources-tt88-game-guide__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-resources-tt88-game-guide__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    border: 2px solid transparent;
}

.page-resources-tt88-game-guide__btn--primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
}

.page-resources-tt88-game-guide__btn--primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-3px);
}

.page-resources-tt88-game-guide__btn--secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-resources-tt88-game-guide__btn--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.page-resources-tt88-game-guide__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-resources-tt88-game-guide__section {
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker background for sections */
    margin-bottom: 20px; /* Spacing between sections */
    border-radius: 8px;
}

.page-resources-tt88-game-guide__section:first-of-type {
    padding-top: 60px; /* First content section, adjusted for fixed header */
}

.page-resources-tt88-game-guide__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-tt88-game-guide__section-subtitle {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources-tt88-game-guide__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources-tt88-game-guide__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-resources-tt88-game-guide__content-grid--reverse .page-resources-tt88-game-guide__text-block {
    order: 2;
}

.page-resources-tt88-game-guide__content-grid--reverse .page-resources-tt88-game-guide__image-wrapper {
    order: 1;
}

.page-resources-tt88-game-guide__text-block p {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-resources-tt88-game-guide__image-wrapper {
    text-align: center;
}

.page-resources-tt88-game-guide__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.page-resources-tt88-game-guide__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tt88-game-guide__step-card {
    background-color: var(--bg-dark-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources-tt88-game-guide__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tt88-game-guide__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-resources-tt88-game-guide__step-card p {
    color: var(--text-light);
}

.page-resources-tt88-game-guide__cta-center {
    text-align: center;
    margin-top: 40px;
}

.page-resources-tt88-game-guide__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tt88-game-guide__game-card {
    background-color: var(--bg-dark-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.page-resources-tt88-game-guide__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tt88-game-guide__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-resources-tt88-game-guide__game-card-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    padding: 15px 20px 10px;
    margin: 0;
}

.page-resources-tt88-game-guide__game-card p {
    color: var(--text-light);
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-resources-tt88-game-guide__game-card .page-resources-tt88-game-guide__btn {
    margin: 0 20px 20px;
    text-align: center;
}

.page-resources-tt88-game-guide__text-center {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-resources-tt88-game-guide__text-center a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources-tt88-game-guide__text-center a:hover {
    text-decoration: underline;
}

.page-resources-tt88-game-guide__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tt88-game-guide__promo-card {
    background-color: var(--bg-dark-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-tt88-game-guide__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tt88-game-guide__promo-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-resources-tt88-game-guide__promo-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources-tt88-game-guide__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-resources-tt88-game-guide__contact-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-resources-tt88-game-guide__contact-list strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-resources-tt88-game-guide__faq-list {
    margin-top: 40px;
}

.page-resources-tt88-game-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-resources-tt88-game-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-tt88-game-guide__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

.page-resources-tt88-game-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-light);
}

.page-resources-tt88-game-guide__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-tt88-game-guide__faq-item.active .page-resources-tt88-game-guide__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg);
}

.page-resources-tt88-game-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-resources-tt88-game-guide__faq-item.active .page-resources-tt88-game-guide__faq-answer {
    max-height: 2000px !important;
    padding: 20px 20px !important;
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    color: var(--text-light);
}

.page-resources-tt88-game-guide__faq-answer p {
    color: var(--text-light);
    margin: 0;
}

/* Blog Section */
.page-resources-tt88-game-guide__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tt88-game-guide__blog-card {
    background-color: var(--bg-dark-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.page-resources-tt88-game-guide__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tt88-game-guide__blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources-tt88-game-guide__blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources-tt88-game-guide__blog-card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-resources-tt88-game-guide__blog-card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-resources-tt88-game-guide__blog-card-title a:hover {
    text-decoration: underline;
}

.page-resources-tt88-game-guide__blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources-tt88-game-guide__blog-card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.page-resources-tt88-game-guide__blog-card-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-tt88-game-guide__main-title {
        font-size: 2.8em;
    }
    .page-resources-tt88-game-guide__hero-description {
        font-size: 1.1em;
    }
    .page-resources-tt88-game-guide__section-title {
        font-size: 2em;
    }
    .page-resources-tt88-game-guide__content-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-tt88-game-guide__content-grid--reverse .page-resources-tt88-game-guide__text-block {
        order: initial;
    }
    .page-resources-tt88-game-guide__content-grid--reverse .page-resources-tt88-game-guide__image-wrapper {
        order: initial;
    }
}

@media (max-width: 768px) {
    .page-resources-tt88-game-guide {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px; /* Mobile fixed navbar spacing */
    }
    .page-resources-tt88-game-guide__hero-section {
        padding: 60px 0;
        padding-top: 70px; /* Adjusted for fixed header on mobile */
    }
    .page-resources-tt88-game-guide__main-title {
        font-size: 2.2em;
    }
    .page-resources-tt88-game-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-tt88-game-guide__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-tt88-game-guide__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources-tt88-game-guide__section {
        padding: 40px 0;
    }
    .page-resources-tt88-game-guide__section-title {
        font-size: 1.8em;
    }
    .page-resources-tt88-game-guide__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources-tt88-game-guide__steps-grid, 
    .page-resources-tt88-game-guide__game-cards-grid, 
    .page-resources-tt88-game-guide__promo-grid, 
    .page-resources-tt88-game-guide__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-tt88-game-guide__step-card, 
    .page-resources-tt88-game-guide__game-card, 
    .page-resources-tt88-game-guide__promo-card, 
    .page-resources-tt88-game-guide__blog-card {
        padding: 20px;
    }
    .page-resources-tt88-game-guide__step-title {
        font-size: 1.3em;
    }
    .page-resources-tt88-game-guide__game-card-title {
        font-size: 1.2em;
    }
    .page-resources-tt88-game-guide__promo-title {
        font-size: 1.3em;
    }
    .page-resources-tt88-game-guide__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-tt88-game-guide__faq-question h3 {
        font-size: 1.1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources-tt88-game-guide__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources-tt88-game-guide__faq-answer {
        padding: 0 15px;
    }
    .page-resources-tt88-game-guide__faq-item.active .page-resources-tt88-game-guide__faq-answer {
        padding: 15px !important;
    }
    .page-resources-tt88-game-guide__blog-card-title {
        font-size: 1.1em;
    }

    /* Ensure all images are responsive and do not cause horizontal scroll */
    .page-resources-tt88-game-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-tt88-game-guide__section,
    .page-resources-tt88-game-guide__container,
    .page-resources-tt88-game-guide__step-card,
    .page-resources-tt88-game-guide__game-card,
    .page-resources-tt88-game-guide__promo-card,
    .page-resources-tt88-game-guide__blog-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}