.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #0d1117, so light text */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-resources__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-resources__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(13, 17, 23, 0.8)), url('[GALLERY:hero_main:1920x1080:win55,app,interface,gaming,hero]') center/cover no-repeat;
    min-height: 600px;
    color: #ffffff;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-resources__hero-content {
    max-width: 900px;
    z-index: 2;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-resources__hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources__video-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-resources__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background video */
    display: block;
}

.page-resources__section {
    padding: 60px 0;
    text-align: center;
    color: #ffffff; /* Default text color for dark body */
}

.page-resources__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-resources__dark-bg {
    background-color: #0d1117; /* Explicitly dark background for specific sections */
    color: #ffffff;
}

.page-resources__heading {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #26A9E0;
}

.page-resources__sub-heading {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__text-block a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__text-block a:hover {
    text-decoration: underline;
}

.page-resources__highlight {
    color: #EA7C07; /* Login color for highlights, good contrast */
    font-weight: bold;
}

.page-resources__image {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

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

.page-resources__image--center {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__introduction .page-resources__container,
.page-resources__benefits .page-resources__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-resources__introduction .page-resources__text-block,
.page-resources__benefits .page-resources__text-block {
    text-align: left;
    max-width: 100%;
}

.page-resources__guide-steps {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
    flex-wrap: wrap;
    justify-content: center;
}

.page-resources__guide-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__card-link {
    display: inline-block;
    color: #EA7C07; /* Login color for links */
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
}

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

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.2); /* Lighter brand color for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.3);
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate for open state */
}

.page-resources__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
}

.page-resources__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
}

/* Contact CTA Section */
.page-resources__contact-cta {
    background-color: #0d1117;
    padding: 80px 20px;
}

.page-resources__contact-content {
    flex: 1;
    text-align: left;
    max-width: 700px;
    margin-right: 40px;
}

.page-resources__contact-content .page-resources__heading {
    text-align: left;
    color: #ffffff;
}

.page-resources__contact-content .page-resources__text-block {
    text-align: left;
    color: #f0f0f0;
}

.page-resources__image--contact {
    max-width: 40%;
    margin: 0;
    box-shadow: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__heading {
        font-size: 2em;
    }
    .page-resources__sub-heading {
        font-size: 1.5em;
    }
    .page-resources__image--right,
    .page-resources__image--left {
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
    }
    .page-resources__container--flex {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__contact-content {
        margin-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    .page-resources__contact-content .page-resources__heading,
    .page-resources__contact-content .page-resources__text-block {
        text-align: center;
    }
    .page-resources__image--contact {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 500px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__heading {
        font-size: 1.8em;
    }
    .page-resources__sub-heading {
        font-size: 1.3em;
    }
    .page-resources__text-block {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-resources__guide-steps {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    .page-resources__guide-item {
        min-width: unset;
        max-width: 100%;
        padding: 20px;
    }
    .page-resources__list {
        padding-left: 20px;
    }
    .page-resources__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .page-resources__card {
        padding: 20px;
    }
    .page-resources__card-image {
        height: auto; /* Allow height to adjust for smaller screens */
    }
    .page-resources__faq-list {
        padding: 0 15px;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-resources__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        min-width: 200px !important;
        min-height: 200px !important;
        padding: 0 15px;
    }
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-media,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0 !important; /* Reset specific padding to avoid double padding */
        padding-right: 0 !important;
    }
    .page-resources__contact-content {
        max-width: 100%;
        padding: 0 15px;
    }
    .page-resources__image--contact {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__heading {
        font-size: 1.5em;
    }
    .page-resources__sub-heading {
        font-size: 1.2em;
    }
    .page-resources__faq-question {
        font-size: 1em;
    }
}