
/* page-5top specific styles */
.page-5top {
    font-family: 'Arial', sans-serif;
    color: #e0e0e0;
    background-color: #1a1a2e; /* Dark background */
    line-height: 1.6;
    padding-top: var(--header-offset, 122px); /* Fallback for header offset */
}

.page-5top__section-title {
    font-size: 2.5em;
    color: #e94560; /* Accent color */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
    position: relative;
}

.page-5top__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0f3460; /* Secondary accent */
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-5top__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #b0b0b0;
}

/* Hero Section */
.page-5top__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding: 10px 20px 60px 20px; /* 10px top for decoration, relying on body padding for header offset */
    overflow: hidden;
    background-color: #0f3460; /* Fallback background */
}

.page-5top__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-5top__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.6); /* Allowed for background image to ensure text contrast */
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.page-5top__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(26, 26, 46, 0.7); /* Semi-transparent overlay for text readability */
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-5top__hero-title {
    font-size: 3.5em;
    color: #e94560;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-5top__hero-description {
    font-size: 1.3em;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-5top__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-5top__button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff; /* Ensure high contrast */
}

.page-5top__button--primary {
    background-color: #e94560; /* Primary accent */
}

.page-5top__button--primary:hover {
    background-color: #d13a52;
    transform: translateY(-2px);
}

.page-5top__button--secondary {
    background-color: #0f3460; /* Secondary accent */
    border: 2px solid #e94560;
}

.page-5top__button--secondary:hover {
    background-color: #1a4e7c;
    transform: translateY(-2px);
}

/* Introduction Section */
.page-5top__introduction-section,
.page-5top__game-showcase-section,
.page-5top__promotions-section,
.page-5top__faq-section,
.page-5top__cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-5top__feature-item {
    background-color: #2a2a4a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsiveness */
}

.page-5top__feature-item:hover {
    transform: translateY(-5px);
    background-color: #3b3b6a;
}

.page-5top__feature-icon {
    width: 200px; /* Minimum size */
    height: auto;
    margin-bottom: 20px;
    max-width: 100% !important; /* Mobile responsive */
    box-sizing: border-box !important;
}

.page-5top__feature-title {
    font-size: 1.8em;
    color: #e94560;
    margin-bottom: 15px;
}

.page-5top__feature-text {
    font-size: 1em;
    color: #c0c0c0;
}

/* Game Showcase */
.page-5top__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-5top__game-card {
    background-color: #2a2a4a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
}

.page-5top__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-5top__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 100% !important; /* Mobile responsive */
    box-sizing: border-box !important;
}

.page-5top__game-title {
    font-size: 1.7em;
    color: #e94560;
    margin: 20px 15px 10px 15px;
}

.page-5top__game-text {
    font-size: 0.95em;
    color: #c0c0c0;
    padding: 0 15px 20px 15px;
}

/* Promotions Section */
.page-5top__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-5top__promo-card {
    background-color: #2a2a4a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
}

.page-5top__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-5top__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    max-width: 100% !important; /* Mobile responsive */
    box-sizing: border-box !important;
}

.page-5top__promo-title {
    font-size: 1.7em;
    color: #e94560;
    margin: 20px 15px 10px 15px;
}

.page-5top__promo-text {
    font-size: 0.95em;
    color: #c0c0c0;
    padding: 0 15px 20px 15px;
}

/* FAQ Section */
.page-5top__faq-container {
    max-width: 900px;
    margin: 40px auto;
}

.page-5top__faq-item {
    background-color: #2a2a4a;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsiveness */
}

.page-5top__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #0f3460;
    color: #e0e0e0;
    font-size: 1.2em;
    font-weight: bold;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-5top__faq-question:hover {
    background-color: #1a4e7c;
}

.page-5top__faq-question-title {
    margin: 0;
    color: #e0e0e0;
    pointer-events: none; /* Crucial for FAQ functionality */
}

.page-5top__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #e94560;
    pointer-events: none; /* Crucial for FAQ functionality */
}

.page-5top__faq-item.active .page-5top__faq-toggle {
    transform: rotate(45deg); /* Changes + to X or similar */
}

.page-5top__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;
    background-color: #2a2a4a;
    color: #c0c0c0;
    font-size: 1.0em;
}

.page-5top__faq-item.active .page-5top__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important; /* Expanded padding */
    opacity: 1;
}

/* Call to Action Section */
.page-5top__cta-section {
    text-align: center;
    background-color: #0f3460;
    padding: 80px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-5top__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.page-5top__external-link {
    display: inline-block;
    margin-top: 30px;
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-5top__external-link:hover {
    color: #ff6f8a;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-5top__hero-title {
        font-size: 3em;
    }
    .page-5top__section-title {
        font-size: 2em;
    }
    .page-5top__hero-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-5top {
        padding-top: var(--header-offset, 122px); /* Ensure header offset is applied */
    }
    .page-5top__hero-section {
        min-height: 500px;
        padding-bottom: 40px;
    }
    .page-5top__hero-title {
        font-size: 2.5em;
    }
    .page-5top__hero-description {
        font-size: 1em;
    }
    .page-5top__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-5top__button {
        width: 100%;
        max-width: 300px; /* Limit button width on small screens */
        margin: 0 auto;
    }

    .page-5top__section-title {
        font-size: 1.8em;
    }
    .page-5top__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* List item mobile responsiveness */
    .page-5top__features-grid,
    .page-5top__game-grid,
    .page-5top__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-5top__feature-item,
    .page-5top__game-card,
    .page-5top__promo-card {
        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 */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .page-5top__feature-icon,
    .page-5top__game-image,
    .page-5top__promo-image {
        max-width: 100% !important;
        height: auto;
        box-sizing: border-box !important;
    }

    .page-5top__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-5top__faq-answer {
        padding: 0 20px;
        font-size: 0.9em;
    }
    .page-5top__faq-item.active .page-5top__faq-answer {
        padding: 15px 20px !important;
    }
    .page-5top__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-5top__hero-title {
        font-size: 2em;
    }
    .page-5top__hero-description {
        font-size: 0.9em;
    }
    .page-5top__section-title {
        font-size: 1.5em;
    }
    .page-5top__section-description {
        font-size: 0.85em;
    }
    .page-5top__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-5top__feature-title,
    .page-5top__game-title,
    .page-5top__promo-title {
        font-size: 1.5em;
    }
}
  