/* style/index-core-advantages.css */

/* Base styles for the page content area */
.page-index-core-advantages {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color); /* Assuming --secondary-color is light/white from shared.css */
}

/* Fixed header offset for main content */
.page-index-core-advantages__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-index-core-advantages__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-index-core-advantages__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-index-core-advantages__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-index-core-advantages__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index-core-advantages__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-index-core-advantages__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-index-core-advantages__btn-primary,
.page-index-core-advantages__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-index-core-advantages__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-index-core-advantages__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-index-core-advantages__btn-secondary {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-index-core-advantages__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* General section styling */
.page-index-core-advantages__overview-section,
.page-index-core-advantages__security-section,
.page-index-core-advantages__games-section,
.page-index-core-advantages__interface-section,
.page-index-core-advantages__promotions-section,
.page-index-core-advantages__support-section,
.page-index-core-advantages__transactions-section,
.page-index-core-advantages__responsible-gaming-section,
.page-index-core-advantages__conclusion-section,
.page-index-core-advantages__faq-section {
    padding: 80px 20px;
    text-align: center;
}

.page-index-core-advantages__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-index-core-advantages__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-index-core-advantages__dark-bg-text {
    color: #ffffff;
}

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

.page-index-core-advantages__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #017439; /* Default title color */
}

.page-index-core-advantages__dark-bg .page-index-core-advantages__section-title {
    color: #FFFFFF; /* Title color on dark background */
}

.page-index-core-advantages__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-core-advantages__image-wrapper {
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-index-core-advantages__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Lists */
.page-index-core-advantages__security-list,
.page-index-core-advantages__interface-features,
.page-index-core-advantages__promotion-list,
.page-index-core-advantages__support-channels,
.page-index-core-advantages__transaction-methods {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-index-core-advantages__security-item,
.page-index-core-advantages__interface-item,
.page-index-core-advantages__promotion-item,
.page-index-core-advantages__support-item,
.page-index-core-advantages__transaction-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-index-core-advantages__security-item::before,
.page-index-core-advantages__interface-item::before,
.page-index-core-advantages__promotion-item::before,
.page-index-core-advantages__support-item::before,
.page-index-core-advantages__transaction-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439; /* Brand primary color for checkmarks */
}

.page-index-core-advantages__dark-bg .page-index-core-advantages__security-item::before,
.page-index-core-advantages__dark-bg .page-index-core-advantages__interface-item::before,
.page-index-core-advantages__dark-bg .page-index-core-advantages__support-item::before {
    color: #FFFF00; /* Yellow for checkmarks on dark background for contrast */
}


/* Game Categories */
.page-index-core-advantages__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-index-core-advantages__game-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    height: 100%;
    box-sizing: border-box;
}

.page-index-core-advantages__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-index-core-advantages__game-card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-index-core-advantages__game-card-title a {
    text-decoration: none;
    color: inherit;
}

.page-index-core-advantages__game-card-title a:hover {
    text-decoration: underline;
}

.page-index-core-advantages__game-card-description {
    font-size: 1em;
    color: #555555;
}

/* CTA Buttons group */
.page-index-core-advantages__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-index-core-advantages__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-core-advantages__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-core-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    transition: background-color 0.3s ease;
}

.page-index-core-advantages__faq-question:hover {
    background-color: #e9e9e9;
}

.page-index-core-advantages__faq-title {
    margin: 0;
    font-size: 1.2em; /* Ensure h3 inside is not too big */
}

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

.page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-toggle {
    transform: rotate(45deg); /* Changes '+' to 'x' or equivalent */
}

.page-index-core-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-index-core-advantages__faq-answer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-core-advantages__hero-title {
        font-size: 2.8em;
    }
    .page-index-core-advantages__hero-description {
        font-size: 1.1em;
    }
    .page-index-core-advantages__section-title {
        font-size: 2em;
    }
    .page-index-core-advantages__game-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index-core-advantages__hero-section {
        min-height: 500px;
    }
    .page-index-core-advantages__hero-title {
        font-size: 2em;
    }
    .page-index-core-advantages__hero-description {
        font-size: 1em;
    }
    .page-index-core-advantages__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-core-advantages__btn-primary,
    .page-index-core-advantages__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95em;
    }
    .page-index-core-advantages__overview-section,
    .page-index-core-advantages__security-section,
    .page-index-core-advantages__games-section,
    .page-index-core-advantages__interface-section,
    .page-index-core-advantages__promotions-section,
    .page-index-core-advantages__support-section,
    .page-index-core-advantages__transactions-section,
    .page-index-core-advantages__responsible-gaming-section,
    .page-index-core-advantages__conclusion-section,
    .page-index-core-advantages__faq-section {
        padding: 60px 15px;
    }
    .page-index-core-advantages__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-index-core-advantages__text-block,
    .page-index-core-advantages__security-item,
    .page-index-core-advantages__interface-item,
    .page-index-core-advantages__promotion-item,
    .page-index-core-advantages__support-item,
    .page-index-core-advantages__transaction-item,
    .page-index-core-advantages__game-card-description,
    .page-index-core-advantages__faq-question {
        font-size: 1em;
    }
    .page-index-core-advantages__game-categories {
        grid-template-columns: 1fr;
    }
    .page-index-core-advantages__game-card {
        padding: 20px;
    }
    .page-index-core-advantages__game-card-title {
        font-size: 1.3em;
    }
    .page-index-core-advantages__faq-question {
        padding: 15px;
    }
    .page-index-core-advantages__faq-answer {
        padding: 0 15px;
    }
    .page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image responsiveness */
    .page-index-core-advantages img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-core-advantages__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile video responsiveness */
    .page-index-core-advantages video,
    .page-index-core-advantages__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-index-core-advantages__video-section,
    .page-index-core-advantages__video-container,
    .page-index-core-advantages__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-index-core-advantages__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Mobile button responsiveness */
    .page-index-core-advantages__cta-button,
    .page-index-core-advantages__btn-primary,
    .page-index-core-advantages__btn-secondary,
    .page-index-core-advantages a[class*="button"],
    .page-index-core-advantages a[class*="btn"] {
      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-index-core-advantages__cta-buttons,
    .page-index-core-advantages__button-group,
    .page-index-core-advantages__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-index-core-advantages__cta-buttons {
      flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Ensure content sections respect padding and max-width on mobile */
    .page-index-core-advantages__section,
    .page-index-core-advantages__card,
    .page-index-core-advantages__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}