/* Base styles for the page-banca23 */
.page-banca23 {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: #f8f8f8; /* Light background for the page */
}

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

.page-banca23__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2563eb;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.page-banca23__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    color: #444;
}

.page-banca23__link-text {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.page-banca23__link-text:hover {
    text-decoration: underline;
}

/* Color Contrast Helpers */
.page-banca23__dark-bg {
    background-color: #2563eb; /* Primary brand color */
    color: #ffffff;
}

.page-banca23__dark-bg .page-banca23__section-title,
.page-banca23__dark-bg .page-banca23__text-block {
    color: #ffffff;
}

.page-banca23__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-banca23__medium-bg {
    background-color: #64748b; /* Secondary brand color */
    color: #ffffff;
}

.page-banca23__medium-bg .page-banca23__section-title,
.page-banca23__medium-bg .page-banca23__text-block {
    color: #ffffff;
}

/* Buttons */
.page-banca23__btn-primary,
.page-banca23__btn-secondary,
.page-banca23__btn-tertiary,
.page-banca23__btn-outline,
.page-banca23__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    cursor: pointer;
}

.page-banca23__btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: 2px solid #2563eb;
}

.page-banca23__btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

.page-banca23__btn-secondary {
    background-color: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.page-banca23__btn-secondary:hover {
    background-color: #e0f2fe;
    color: #1e40af;
    border-color: #1e40af;
}

.page-banca23__btn-tertiary {
    background-color: #64748b;
    color: #ffffff;
    border: 2px solid #64748b;
}

.page-banca23__btn-tertiary:hover {
    background-color: #475569;
    border-color: #475569;
}

.page-banca23__btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-banca23__btn-outline:hover {
    background-color: #ffffff;
    color: #64748b;
}

.page-banca23__btn-link {
    background: none;
    border: none;
    color: #2563eb;
    padding: 0;
    font-weight: 600;
}

.page-banca23__btn-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-banca23__hero-section {
    position: relative;
    padding: 10px 0 50px; /* Small top padding, not var(--header-offset) */
    text-align: center;
    overflow: hidden;
}

.page-banca23__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-banca23__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-banca23__hero-content {
    padding: 0 15px;
}

.page-banca23__main-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-banca23__subtitle {
    font-size: 19px;
    margin-bottom: 30px;
    color: #e0e7ff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-banca23__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Intro Section */
.page-banca23__intro-section {
    padding: 60px 0;
}

/* Game Categories */
.page-banca23__game-categories {
    padding: 60px 0;
}

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

.page-banca23__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-banca23__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-banca23__game-title {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
    margin: 20px 15px 10px;
}

.page-banca23__game-description {
    font-size: 15px;
    color: #555;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-banca23__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-banca23__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-banca23__promo-title {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin: 20px 15px 10px;
}

.page-banca23__promo-description {
    font-size: 15px;
    color: #555;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-banca23__view-all-promos {
    text-align: center;
    margin-top: 40px;
}

/* How To Play Section */
.page-banca23__how-to-play {
    padding: 60px 0;
}

.page-banca23__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-banca23__step-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-banca23__step-number {
    font-size: 48px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 15px;
}

.page-banca23__step-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.page-banca23__step-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
details.page-banca23__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-banca23__faq-item summary.page-banca23__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}
details.page-banca23__faq-item summary.page-banca23__faq-question::-webkit-details-marker {
  display: none;
}
details.page-banca23__faq-item summary.page-banca23__faq-question:hover {
  background: #f5f5f5;
}
.page-banca23__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-banca23__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2563eb;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-banca23__faq-item .page-banca23__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}
.page-banca23__faq-answer p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

/* Contact CTA Section */
.page-banca23__contact-cta {
    padding: 80px 0;
    text-align: center;
}

.page-banca23__contact-cta .page-banca23__section-title {
    font-size: 38px;
    color: #ffffff;
}

.page-banca23__contact-cta .page-banca23__text-block {
    font-size: 18px;
    color: #e0e7ff;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Floating Button */
.page-banca23__floating-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}

.page-banca23__floating-btn {
    display: block;
    background-color: #ff6f00; /* Eye-catching color for promotions */
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.page-banca23__floating-btn:hover {
    background-color: #e65100;
    transform: translateX(-50%) translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-banca23__main-title {
        font-size: 38px;
    }
    .page-banca23__subtitle {
        font-size: 18px;
    }
    .page-banca23__section-title {
        font-size: 32px;
    }
    .page-banca23__game-grid,
    .page-banca23__promo-list,
    .page-banca23__steps-list {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-banca23__hero-section {
        padding: 10px 0 30px; /* Small top padding for mobile */
    }
    .page-banca23__hero-image-wrapper {
        max-height: 300px;
    }
    .page-banca23__main-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .page-banca23__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-banca23__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-banca23__cta-buttons .page-banca23__btn-primary,
    .page-banca23__cta-buttons .page-banca23__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
    }

    .page-banca23__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .page-banca23__text-block {
        font-size: 15px;
    }

    .page-banca23__game-grid,
    .page-banca23__promo-list,
    .page-banca23__steps-list {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }

    .page-banca23__game-card,
    .page-banca23__promo-card,
    .page-banca23__step-item {
        margin: 0 15px;
        width: auto; /* Allow items to take full width of parent container */
    }

    .page-banca23__game-image,
    .page-banca23__promo-image {
        height: 180px;
    }

    .page-banca23__game-title,
    .page-banca23__promo-title {
        font-size: 18px;
    }

    .page-banca23__game-description,
    .page-banca23__promo-description,
    .page-banca23__step-description {
        font-size: 14px;
    }

    .page-banca23__steps-list .page-banca23__btn-outline {
        max-width: 100% !important;
        width: 100% !important;
    }

    details.page-banca23__faq-item summary.page-banca23__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    .page-banca23__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-banca23__faq-item .page-banca23__faq-answer {
        padding: 0 15px 15px;
    }
    .page-banca23__faq-answer p {
        font-size: 14px;
    }

    .page-banca23__contact-cta {
        padding: 50px 0;
    }
    .page-banca23__contact-cta .page-banca23__section-title {
        font-size: 28px;
    }
    .page-banca23__contact-cta .page-banca23__text-block {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Ensure all images are responsive and prevent overflow */
    .page-banca23 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box;
    }

    .page-banca23__container,
    .page-banca23__hero-content,
    .page-banca23__intro-section .page-banca23__container,
    .page-banca23__game-categories .page-banca23__container,
    .page-banca23__promotions-section .page-banca23__container,
    .page-banca23__how-to-play .page-banca23__container,
    .page-banca23__faq-section .page-banca23__container,
    .page-banca23__contact-cta .page-banca23__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-banca23__floating-button {
        width: calc(100% - 30px);
        left: 15px;
        transform: translateX(0);
    }
}