/* style/resources-download-iwin-latest-guide.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-font: #FFFF00;
    --body-bg: #1a1a2e; /* Inherited from shared.css, used for context */
}

.page-resources-download-iwin-latest-guide {
    color: var(--text-on-dark); /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

.page-resources-download-iwin-latest-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources-download-iwin-latest-guide__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources-download-iwin-latest-guide__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-resources-download-iwin-latest-guide__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-resources-download-iwin-latest-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    padding-bottom: 40px;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-resources-download-iwin-latest-guide__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.page-resources-download-iwin-latest-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-on-dark);
}

.page-resources-download-iwin-latest-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-resources-download-iwin-latest-guide__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources-download-iwin-latest-guide__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-resources-download-iwin-latest-guide__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section for contrast */
}

.page-resources-download-iwin-latest-guide__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-resources-download-iwin-latest-guide__paragraph {
    margin-bottom: 20px;
    text-align: left;
}

.page-resources-download-iwin-latest-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-resources-download-iwin-latest-guide__cta-buttons--bottom {
    margin-top: 50px;
}

.page-resources-download-iwin-latest-guide__btn-primary,
.page-resources-download-iwin-latest-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap; /* Prevent text wrap on desktop */
}

.page-resources-download-iwin-latest-guide__btn-primary {
    background-color: var(--register-btn-bg); /* Custom color for register/download */
    color: var(--register-login-font); /* Custom font color for register/download */
    border: 2px solid var(--register-btn-bg);
}

.page-resources-download-iwin-latest-guide__btn-primary:hover {
    background-color: darken(var(--register-btn-bg), 10%);
    border-color: darken(var(--register-btn-bg), 10%);
}

.page-resources-download-iwin-latest-guide__btn-secondary {
    background-color: transparent;
    color: var(--text-on-dark);
    border: 2px solid var(--text-on-dark);
}

.page-resources-download-iwin-latest-guide__btn-secondary:hover {
    background-color: var(--text-on-dark);
    color: var(--primary-color);
}

.page-resources-download-iwin-latest-guide__btn-full-width {
    width: 100%;
    margin-top: 20px;
}

.page-resources-download-iwin-latest-guide__card {
    background: var(--card-bg-dark-mode);
    color: var(--text-on-dark);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.page-resources-download-iwin-latest-guide__light-bg .page-resources-download-iwin-latest-guide__card {
    background: var(--secondary-color);
    color: var(--text-on-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-resources-download-iwin-latest-guide__feature-grid,
.page-resources-download-iwin-latest-guide__guide-steps,
.page-resources-download-iwin-latest-guide__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-download-iwin-latest-guide__feature-card {
    text-align: center;
    padding: 20px;
}

.page-resources-download-iwin-latest-guide__feature-icon {
    width: 250px; /* Min size requirement 200px */
    height: 187px; /* Maintain aspect ratio */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources-download-iwin-latest-guide__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources-download-iwin-latest-guide__feature-text {
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
}

.page-resources-download-iwin-latest-guide__guide-card {
    padding: 30px;
}

.page-resources-download-iwin-latest-guide__guide-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-download-iwin-latest-guide__guide-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-resources-download-iwin-latest-guide__guide-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: inherit;
    text-align: left;
}

.page-resources-download-iwin-latest-guide__guide-list li::before {
    content: attr(data-step);
    counter-increment: step-counter;
    content: counter(step-counter);
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9em;
    font-weight: bold;
}

.page-resources-download-iwin-latest-guide__guide-image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Ensure images are not too large on desktop */
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Global image size requirement */
}

.page-resources-download-iwin-latest-guide__notes-section {
    margin-top: 40px;
    padding: 30px;
}

.page-resources-download-iwin-latest-guide__notes-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-download-iwin-latest-guide__notes-list {
    list-style: none;
    padding: 0;
}

.page-resources-download-iwin-latest-guide__notes-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: inherit;
    text-align: left;
}

.page-resources-download-iwin-latest-guide__notes-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
}

.page-resources-download-iwin-latest-guide__step-card {
    padding: 30px;
    text-align: left;
}

.page-resources-download-iwin-latest-guide__step-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-download-iwin-latest-guide__step-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-download-iwin-latest-guide__game-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-download-iwin-latest-guide__faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources-download-iwin-latest-guide__faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    padding: 0;
}

.page-resources-download-iwin-latest-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    cursor: pointer;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-resources-download-iwin-latest-guide__faq-question:hover {
    background-color: darken(var(--primary-color), 10%);
}

.page-resources-download-iwin-latest-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-download-iwin-latest-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--card-bg-dark-mode);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: var(--text-on-dark);
}

.page-resources-download-iwin-latest-guide__faq-answer p {
    padding-top: 15px; /* Adjust padding for expanded content */
    padding-bottom: 15px;
    margin: 0;
    text-align: left;
}

.page-resources-download-iwin-latest-guide__faq-item.active .page-resources-download-iwin-latest-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 0 30px 15px 30px; /* Adjust padding for expanded content */
}

.page-resources-download-iwin-latest-guide__faq-item.active .page-resources-download-iwin-latest-guide__faq-toggle {
    transform: rotate(0deg);
}

.page-resources-download-iwin-latest-guide__link {
    color: var(--register-login-font);
    text-decoration: underline;
}

.page-resources-download-iwin-latest-guide__link:hover {
    color: lighten(var(--register-login-font), 10%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-download-iwin-latest-guide__hero-title {
        font-size: 2.8em;
    }
    .page-resources-download-iwin-latest-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-download-iwin-latest-guide {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-resources-download-iwin-latest-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
        min-height: 60vh;
    }

    .page-resources-download-iwin-latest-guide__hero-title {
        font-size: 2.2em;
    }

    .page-resources-download-iwin-latest-guide__hero-description {
        font-size: 1em;
    }

    .page-resources-download-iwin-latest-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-resources-download-iwin-latest-guide__section {
        padding: 40px 0;
    }

    .page-resources-download-iwin-latest-guide__section-title {
        font-size: 1.8em;
    }

    .page-resources-download-iwin-latest-guide__section-description {
        font-size: 0.95em;
    }

    .page-resources-download-iwin-latest-guide__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-download-iwin-latest-guide__feature-grid,
    .page-resources-download-iwin-latest-guide__guide-steps,
    .page-resources-download-iwin-latest-guide__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-download-iwin-latest-guide__card {
        padding: 20px;
    }

    .page-resources-download-iwin-latest-guide__feature-icon {
        width: 200px; /* Minimum size */
        height: 150px; /* Maintain aspect ratio */
    }

    .page-resources-download-iwin-latest-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-resources-download-iwin-latest-guide__section,
    .page-resources-download-iwin-latest-guide__card,
    .page-resources-download-iwin-latest-guide__container,
    .page-resources-download-iwin-latest-guide__guide-card,
    .page-resources-download-iwin-latest-guide__step-card,
    .page-resources-download-iwin-latest-guide__notes-section,
    .page-resources-download-iwin-latest-guide__faq-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-resources-download-iwin-latest-guide__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-resources-download-iwin-latest-guide__faq-answer {
        padding: 0 20px;
    }
    .page-resources-download-iwin-latest-guide__faq-item.active .page-resources-download-iwin-latest-guide__faq-answer {
        padding: 0 20px 10px 20px; /* Adjust padding for expanded content */
    }
}