/* style/resources.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-light: #FFFFFF;
    --text-dark: #000000;
    --text-light: #FFFFFF;
    --dark-bg-main: #121212; /* Body background from shared.css */
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--dark-bg-main);
}

.page-resources__section {
    padding: 60px 0;
    position: relative;
}

.page-resources__dark-bg {
    background-color: var(--dark-bg-main);
    color: var(--text-light);
}

.page-resources__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

.page-resources__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    gap: 40px;
}

.page-resources__hero-content {
    flex: 1;
    max-width: 600px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-resources__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__hero-buttons {
    display: flex;
    gap: 15px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources__btn-link {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    padding: 8px 0;
}

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

.page-resources__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.page-resources__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: rgba(255, 255, 255, 0.8);
}

.page-resources__intro-video {
    background-color: var(--dark-bg-main);
    padding: 80px 0;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__video-wrapper .page-resources__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.page-resources__about-soso66 {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-resources__about-soso66 .page-resources__section-title {
    color: var(--text-dark);
}

.page-resources__about-soso66 .page-resources__section-description {
    color: var(--text-dark);
}

.page-resources__about-soso66 p,
.page-resources__about-soso66 li {
    color: var(--text-dark);
}

.page-resources__about-soso66 h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.page-resources__grid-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.page-resources__grid-layout--reversed {
    flex-direction: row-reverse;
}

.page-resources__content-block {
    flex: 1;
}

.page-resources__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 45%;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
}

.page-resources__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__card-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-resources__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.page-resources__card-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__promotions .page-resources__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.page-resources__cta-buttons--center {
    justify-content: center;
}

.page-resources__security-support {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-resources__security-support .page-resources__section-title {
    color: var(--text-dark);
}

.page-resources__security-support .page-resources__section-description {
    color: var(--text-dark);
}

.page-resources__security-support p,
.page-resources__security-support li {
    color: var(--text-dark);
}

.page-resources__security-support h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.page-resources__security-support ul {
    list-style: disc;
    padding-left: 20px;
}

.page-resources__security-support a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__security-support a:hover {
    text-decoration: underline;
}

.page-resources__faq-section {
    padding-bottom: 80px;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-resources__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
}

.page-resources__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.page-resources__cta-bottom {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--secondary-color);
}

.page-resources__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-resources__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        gap: 30px;
    }

    .page-resources__hero-content {
        max-width: 100%;
    }

    .page-resources__hero-image-wrapper {
        justify-content: center;
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__grid-layout {
        flex-direction: column;
        gap: 40px;
    }

    .page-resources__grid-layout--reversed {
        flex-direction: column;
    }

    .page-resources__image--right {
        float: none;
        margin: 30px auto;
        max-width: 80%;
    }

    .page-resources__image-block {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link,
    .page-resources a[class*="button"],
    .page-resources 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-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__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;
        flex-direction: column;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Images responsive */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__image-block,
    .page-resources__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsive */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__intro-video {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__card-image {
        height: auto;
    }

    .page-resources__card-title {
        font-size: 1.5em;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-resources__cta-title {
        font-size: 2em;
    }

    .page-resources__cta-description {
        font-size: 1em;
    }
}