/* style/taya365-originals.css */

:root {
    --primary-color: #000000;
    --secondary-color: #FFFFFF;
    --register-button-color: #FFFFFF;
    --login-button-color: #FCBC45;
    --background-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
}

.page-taya365-originals {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-color); /* Default background for the page */
}

.page-taya365-originals__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-taya365-originals__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

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

.page-taya365-originals__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-taya365-originals__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

/* Hero Section */
.page-taya365-originals__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    text-align: center;
    min-height: 500px;
}

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

.page-taya365-originals__hero-content {
    position: relative; /* Ensure content is above any background but not absolute over image */
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
    z-index: 2;
}

.page-taya365-originals__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-taya365-originals__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-taya365-originals__hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.page-taya365-originals__btn-primary,
.page-taya365-originals__btn-secondary,
.page-taya365-originals__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-taya365-originals__btn-primary {
    background-color: var(--login-button-color);
    color: var(--primary-color);
    border: 2px solid var(--login-button-color);
}

.page-taya365-originals__btn-primary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-taya365-originals__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-taya365-originals__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-taya365-originals__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: var(--login-button-color);
    color: var(--primary-color);
    border: 1px solid var(--login-button-color);
}

.page-taya365-originals__btn-small:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

/* Introduction Section */
.page-taya365-originals__introduction-section {
    padding: 60px 0;
}

/* Features Section */
.page-taya365-originals__features-section {
    padding: 60px 0;
}

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

.page-taya365-originals__feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.page-taya365-originals__feature-card:hover {
    transform: translateY(-5px);
}

.page-taya365-originals__feature-icon {
    width: 100%; /* Ensure images are responsive within card */
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-taya365-originals__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Games Section */
.page-taya365-originals__games-section {
    padding: 60px 0;
}

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

.page-taya365-originals__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-taya365-originals__game-card:hover {
    transform: translateY(-5px);
}

.page-taya365-originals__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-taya365-originals__game-title {
    font-size: 1.4em;
    padding: 15px;
    margin-bottom: 0;
    color: var(--primary-color);
}

.page-taya365-originals__game-card p {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
}

.page-taya365-originals__game-card .page-taya365-originals__btn-small {
    margin: 0 15px 15px 15px;
    width: calc(100% - 30px);
}

/* How to Play Section */
.page-taya365-originals__how-to-play-section {
    padding: 60px 0;
}

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

.page-taya365-originals__step-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-taya365-originals__step-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-taya365-originals__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Promotions Section */
.page-taya365-originals__promotions-section {
    padding: 60px 0;
}

.page-taya365-originals__promo-card {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.page-taya365-originals__promo-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-taya365-originals__promo-content {
    flex: 1;
    padding: 30px;
    color: var(--text-light);
}

.page-taya365-originals__promo-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-taya365-originals__promo-content p {
    margin-bottom: 20px;
}

.page-taya365-originals__promo-footer-text {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
}

.page-taya365-originals__promo-footer-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-taya365-originals__promo-footer-text a:hover {
    color: #e0a53b;
}

/* Mobile Gaming Section */
.page-taya365-originals__mobile-section {
    padding: 60px 0;
}

.page-taya365-originals__mobile-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.page-taya365-originals__mobile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
}

.page-taya365-originals__mobile-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-light);
}

.page-taya365-originals__mobile-text .page-taya365-originals__btn-primary,
.page-taya365-originals__mobile-text .page-taya365-originals__btn-secondary {
    margin-top: 20px;
    margin-right: 15px;
}

/* Video Section */
.page-taya365-originals__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-taya365-originals__video-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
}

.page-taya365-originals__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-taya365-originals__video-cta-text {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1em;
    font-weight: bold;
}

/* Responsible Gaming Section */
.page-taya365-originals__responsible-gaming-section {
    padding: 60px 0;
    text-align: center;
}

.page-taya365-originals__responsible-gaming-section .page-taya365-originals__btn-secondary {
    margin-top: 30px;
}

/* FAQ Section */
.page-taya365-originals__faq-section {
    padding: 60px 0;
}

.page-taya365-originals__faq-list {
    margin-top: 40px;
}

.page-taya365-originals__faq-item {
    background-color: var(--primary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

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

.page-taya365-originals__faq-question:hover {
    background-color: #1a1a1a;
}

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

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

.page-taya365-originals__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
}

.page-taya365-originals__faq-item.active .page-taya365-originals__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px 20px 20px;
}

/* CTA Section */
.page-taya365-originals__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-taya365-originals__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-taya365-originals__hero-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-taya365-originals__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-taya365-originals {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-taya365-originals__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-taya365-originals__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-taya365-originals__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-taya365-originals__hero-description {
        font-size: 1.1em;
    }

    .page-taya365-originals__btn-primary,
    .page-taya365-originals__btn-secondary,
    .page-taya365-originals__btn-small {
        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;
    }

    .page-taya365-originals__hero-cta-buttons,
    .page-taya365-originals__mobile-text,
    .page-taya365-originals__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-taya365-originals__section-subtitle {
        font-size: 1em;
    }

    .page-taya365-originals__feature-grid,
    .page-taya365-originals__game-grid,
    .page-taya365-originals__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-taya365-originals__promo-card {
        flex-direction: column;
    }

    .page-taya365-originals__promo-image {
        max-width: 100%;
    }

    .page-taya365-originals__mobile-content {
        flex-direction: column;
    }

    .page-taya365-originals__video-section {
        padding-top: 10px !important; /* Ensure minimal top padding, body handles header offset */
    }

    .page-taya365-originals__video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* All images must be responsive */
    .page-taya365-originals img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-taya365-originals__section,
    .page-taya365-originals__card,
    .page-taya365-originals__container,
    .page-taya365-originals__game-card,
    .page-taya365-originals__feature-card,
    .page-taya365-originals__step-card,
    .page-taya365-originals__promo-card,
    .page-taya365-originals__mobile-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-taya365-originals__promo-content {
        padding: 20px;
    }

    .page-taya365-originals__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-taya365-originals__hero-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }

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