
/* Base styles for the page-123bap container */
.page-123bap {
    font-family: 'Arial', sans-serif;
    color: var(--text-light, #ffffff);
    background-color: var(--primary-bg, #1a1a2e);
    line-height: 1.6;
    padding-bottom: 80px; /* Space for floating buttons */
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
}

/* Section titles */
.page-123bap__section-title {
    font-size: 2.2em;
    color: var(--accent-color, #ffcc00);
    text-align: center;
    margin-bottom: 20px;
    padding: 0 15px;
    line-height: 1.2;
}

.page-123bap__section-description {
    font-size: 1.1em;
    color: var(--text-dark, #cccccc);
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-123bap__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 20px 0;
    box-sizing: border-box;
}

.page-123bap__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-123bap__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Allowed for background darkening, not color change */
    max-width: 100%; /* Responsive image */
}

.page-123bap__hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.page-123bap__hero-title {
    font-size: 3em;
    color: var(--accent-color, #ffcc00);
    margin-bottom: 15px;
    line-height: 1.1;
}

.page-123bap__hero-subtitle {
    font-size: 1.3em;
    color: var(--text-light, #ffffff);
    margin-bottom: 30px;
}

.page-123bap__download-button {
    display: inline-block;
    background-color: var(--accent-color, #ffcc00);
    color: var(--primary-bg, #1a1a2e);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-123bap__download-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* About Section */
.page-123bap__about-section {
    padding: 60px 20px;
    text-align: center;
}

.page-123bap__about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-123bap__about-item {
    background-color: var(--secondary-bg, #2e2e4a);
    border-radius: 15px;
    padding: 30px;
    flex: 1 1 300px;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-123bap__about-icon {
    width: 250px; /* Min 200x200 */
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    border-radius: 10px;
}

.page-123bap__about-item h3 {
    font-size: 1.5em;
    color: var(--accent-color, #ffcc00);
    margin-bottom: 10px;
}

.page-123bap__about-item p {
    color: var(--text-dark, #cccccc);
    font-size: 1em;
}

/* Games Section */
.page-123bap__games-section {
    padding: 60px 20px;
    background-color: var(--primary-bg, #1a1a2e);
}

.page-123bap__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-123bap__game-card {
    background-color: var(--secondary-bg, #2e2e4a);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.page-123bap__game-card:hover {
    transform: translateY(-5px);
}

.page-123bap__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 100%; /* Responsive image */
}

.page-123bap__game-title {
    font-size: 1.4em;
    color: var(--accent-color, #ffcc00);
    margin: 15px 10px 5px;
}

.page-123bap__game-description {
    color: var(--text-dark, #cccccc);
    font-size: 0.95em;
    padding: 0 15px 20px;
}

/* Promotions Section */
.page-123bap__promotions-section {
    padding: 60px 20px;
    background-color: #121220; /* Slightly darker for contrast */
}

.page-123bap__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-123bap__promo-card {
    background-color: var(--secondary-bg, #2e2e4a);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.page-123bap__promo-card:hover {
    transform: translateY(-5px);
}

.page-123bap__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 100%; /* Responsive image */
}

.page-123bap__promo-title {
    font-size: 1.4em;
    color: var(--accent-color, #ffcc00);
    margin: 15px 10px 5px;
}

.page-123bap__promo-description {
    color: var(--text-dark, #cccccc);
    font-size: 0.95em;
    padding: 0 15px 20px;
}

/* Download Guide Section */
.page-123bap__download-guide-section {
    padding: 60px 20px;
    background-color: var(--primary-bg, #1a1a2e);
}

.page-123bap__steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-123bap__step-item {
    background-color: var(--secondary-bg, #2e2e4a);
    border-radius: 15px;
    padding: 30px;
    flex: 1 1 250px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

.page-123bap__step-icon {
    width: 250px; /* Min 200x200 */
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    border-radius: 10px;
}

.page-123bap__step-item h3 {
    font-size: 1.5em;
    color: var(--accent-color, #ffcc00);
    margin-bottom: 10px;
}

.page-123bap__step-item p {
    color: var(--text-dark, #cccccc);
    font-size: 1em;
}

/* FAQ Section */
.page-123bap__faq-section {
    padding: 60px 20px;
    background-color: #121220;
}

.page-123bap__faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-123bap__faq-item {
    background-color: var(--secondary-bg, #2e2e4a);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-123bap__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    background-color: var(--secondary-bg, #2e2e4a);
    border-bottom: 1px solid var(--border-color, #4a4a6e);
    transition: background-color 0.3s ease;
}

.page-123bap__faq-question:hover {
    background-color: #3a3a5a;
}

.page-123bap__faq-question-text {
    font-size: 1.2em;
    color: var(--text-light, #ffffff);
    margin: 0;
    pointer-events: none; /* Prevent text from blocking click event on parent */
    flex-grow: 1;
}

.page-123bap__faq-toggle {
    font-size: 1.8em;
    color: var(--accent-color, #ffcc00);
    margin-left: 15px;
    transition: transform 0.3s ease;
    pointer-events: none; /* Prevent toggle from blocking click event on parent */
}

.page-123bap__faq-item.active .page-123bap__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or rotate to make it -) */
}

.page-123bap__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding */
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    color: var(--text-dark, #cccccc);
    font-size: 1em;
}

.page-123bap__faq-item.active .page-123bap__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-123bap__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Floating Buttons */
.page-123bap__floating-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    box-sizing: border-box;
}

.page-123bap__register-btn,
.page-123bap__login-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    margin: 0 10px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 45%; /* Limit width on larger screens */
}

.page-123bap__register-btn {
    background-color: var(--accent-color, #ffcc00);
    color: var(--primary-bg, #1a1a2e);
}

.page-123bap__login-btn {
    background-color: var(--secondary-bg, #2e2e4a);
    color: var(--accent-color, #ffcc00);
    border: 1px solid var(--accent-color, #ffcc00);
}

.page-123bap__register-btn:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-123bap__login-btn:hover {
    background-color: #4a4a6e;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-123bap__hero-title {
        font-size: 2.2em;
    }

    .page-123bap__hero-subtitle {
        font-size: 1em;
    }

    .page-123bap__download-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

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

    .page-123bap__section-description {
        font-size: 0.95em;
    }

    /* List item mobile responsiveness */
    .page-123bap__about-item,
    .page-123bap__game-card,
    .page-123bap__promo-card,
    .page-123bap__step-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .page-123bap__about-content,
    .page-123bap__game-grid,
    .page-123bap__promo-grid,
    .page-123bap__steps-container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-123bap__about-icon,
    .page-123bap__step-icon {
        width: 100% !important;
        height: auto !important;
        max-width: 250px !important; /* Maintain max size to prevent stretching too wide */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-123bap__game-image,
    .page-123bap__promo-image {
        max-width: 100% !important;
        height: auto !important;
    }

    .page-123bap__faq-question {
        padding: 15px 20px;
    }

    .page-123bap__faq-question-text {
        font-size: 1.1em;
    }

    .page-123bap__faq-answer {
        padding: 0 20px;
    }

    .page-123bap__faq-item.active .page-123bap__faq-answer {
        padding: 15px 20px !important;
    }

    .page-123bap__floating-buttons {
        padding: 10px 0;
    }

    .page-123bap__register-btn,
    .page-123bap__login-btn {
        font-size: 1em;
        padding: 10px 0;
        margin: 0 5px;
    }
}

/* Word break for long text in lists/cards */
.page-123bap__game-description,
.page-123bap__promo-description,
.page-123bap__step-item p,
.page-123bap__faq-answer p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}
  