/* style/resources-five88-app-download-guide.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-five88-app-download-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
}

.page-resources-five88-app-download-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-five88-app-download-guide__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-light);
    background: var(--primary-color);
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.page-resources-five88-app-download-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.page-resources-five88-app-download-guide__hero-section .page-resources-five88-app-download-guide__container {
    position: relative;
    z-index: 1;
}

.page-resources-five88-app-download-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-five88-app-download-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-resources-five88-app-download-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-five88-app-download-guide__btn-primary,
.page-resources-five88-app-download-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-five88-app-download-guide__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
    border: 2px solid var(--login-color);
}

.page-resources-five88-app-download-guide__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
}

.page-resources-five88-app-download-guide__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources-five88-app-download-guide__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.page-resources-five88-app-download-guide__content-area {
    padding: 60px 0;
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-resources-five88-app-download-guide__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
}

.page-resources-five88-app-download-guide__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--login-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-resources-five88-app-download-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-five88-app-download-guide__download-guide-grid,
.page-resources-five88-app-download-guide__info-grid,
.page-resources-five88-app-download-guide__game-showcase,
.page-resources-five88-app-download-guide__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-five88-app-download-guide__game-showcase {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-resources-five88-app-download-guide__card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.page-resources-five88-app-download-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-five88-app-download-guide__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.page-resources-five88-app-download-guide__card-image,
.page-resources-five88-app-download-guide__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources-five88-app-download-guide__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources-five88-app-download-guide__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1em;
    text-align: justify;
}

.page-resources-five88-app-download-guide__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-resources-five88-app-download-guide__note {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    font-weight: bold;
}

.page-resources-five88-app-download-guide__feature-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.page-resources-five88-app-download-guide__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-five88-app-download-guide__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-five88-app-download-guide__promotions-list .page-resources-five88-app-download-guide__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.page-resources-five88-app-download-guide__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Adjust max-width for video */
    margin: 40px auto;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-resources-five88-app-download-guide__video {
    display: block;
    width: 100%;
    height: auto;
}

.page-resources-five88-app-download-guide__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.page-resources-five88-app-download-guide__video-description {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #555;
}

.page-resources-five88-app-download-guide__faq-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-resources-five88-app-download-guide__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources-five88-app-download-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

.page-resources-five88-app-download-guide__faq-question::-webkit-details-marker {
    display: none;
}

.page-resources-five88-app-download-guide__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-resources-five88-app-download-guide__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources-five88-app-download-guide__faq-item[open] .page-resources-five88-app-download-guide__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-five88-app-download-guide__faq-answer {
    padding: 20px;
    padding-top: 0;
    color: var(--text-dark);
    font-size: 1em;
    text-align: justify;
}

.page-resources-five88-app-download-guide__final-cta {
    margin-top: 50px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-five88-app-download-guide__hero-title {
        font-size: 2.8em;
    }

    .page-resources-five88-app-download-guide__hero-description {
        font-size: 1.1em;
    }

    .page-resources-five88-app-download-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-five88-app-download-guide__hero-section {
        padding: 80px 0;
    }

    .page-resources-five88-app-download-guide__hero-title {
        font-size: 2.2em;
    }

    .page-resources-five88-app-download-guide__hero-description {
        font-size: 1em;
    }

    .page-resources-five88-app-download-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-five88-app-download-guide__btn-primary,
    .page-resources-five88-app-download-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-five88-app-download-guide__content-area {
        padding: 40px 0;
    }

    .page-resources-five88-app-download-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-five88-app-download-guide__text-block {
        font-size: 0.95em;
    }

    .page-resources-five88-app-download-guide__card,
    .page-resources-five88-app-download-guide__feature-item {
        padding: 20px;
    }

    .page-resources-five88-app-download-guide__card-title {
        font-size: 1.4em;
    }

    .page-resources-five88-app-download-guide__card-image,
    .page-resources-five88-app-download-guide__feature-image {
        height: 180px;
        min-height: 180px;
    }

    .page-resources-five88-app-download-guide__list-item {
        font-size: 0.9em;
    }

    .page-resources-five88-app-download-guide__video-wrapper {
        margin: 30px auto;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    .page-resources-five88-app-download-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-five88-app-download-guide__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-resources-five88-app-download-guide__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }

    .page-resources-five88-app-download-guide__container {
        padding: 0 15px;
    }

    /* Ensure all images are responsive */
    .page-resources-five88-app-download-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all image containers are responsive */
    .page-resources-five88-app-download-guide__hero-section,
    .page-resources-five88-app-download-guide__content-area,
    .page-resources-five88-app-download-guide__download-guide-grid,
    .page-resources-five88-app-download-guide__info-grid,
    .page-resources-five88-app-download-guide__game-showcase,
    .page-resources-five88-app-download-guide__features-grid,
    .page-resources-five88-app-download-guide__card,
    .page-resources-five88-app-download-guide__feature-item,
    .page-resources-five88-app-download-guide__faq-section,
    .page-resources-five88-app-download-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Remove horizontal padding here if container already has it */
    }
    
    .page-resources-five88-app-download-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-resources-five88-app-download-guide__hero-title {
        font-size: 1.8em;
    }

    .page-resources-five88-app-download-guide__section-title {
        font-size: 1.5em;
    }

    .page-resources-five88-app-download-guide__card-title {
        font-size: 1.2em;
    }

    .page-resources-five88-app-download-guide__faq-question {
        font-size: 1em;
    }
}

/* Color Contrast Fixes (as per instructions) */
.page-resources-five88-app-download-guide__dark-bg {
  color: var(--text-light);
  background: var(--primary-color);
}

.page-resources-five88-app-download-guide__light-bg {
  color: var(--text-dark);
  background: var(--background-color);
}

.page-resources-five88-app-download-guide__card {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-resources-five88-app-download-guide__btn-primary {
  background: var(--login-color);
  color: var(--text-light);
}

.page-resources-five88-app-download-guide__btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-resources-five88-app-download-guide__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

/* Override for secondary button in light sections */
.page-resources-five88-app-download-guide__content-area .page-resources-five88-app-download-guide__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-five88-app-download-guide__content-area .page-resources-five88-app-download-guide__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources-five88-app-download-guide__text-contrast-fix {
  color: var(--text-dark) !important;
  text-shadow: none !important;
}