.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
}

.page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    background-color: #26A9E0; /* Main brand color for hero background */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

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

.page-resources__hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

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

.page-resources__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources__btn-primary:hover {
    background-color: #c76706;
}

.page-resources__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #26A9E0;
    cursor: pointer;
    margin-left: 15px;
}

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

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

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

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from section for contrast */
}

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

.page-resources__highlight {
    font-weight: bold;
    color: inherit; /* Ensure contrast */
}

.page-resources__features-grid,
.page-resources__news-section {
    background-color: #f8f8f8;
}

.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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 15px;
    color: #26A9E0; /* Brand color for card titles */
}

.page-resources__card-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-resources__card-description {
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
    color: #555555;
}

.page-resources__card-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__card-link:hover {
    color: #1a7bbd;
    border-color: #1a7bbd;
}

.page-resources__video-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-resources__list {
    max-width: 900px;
    margin: 30px auto;
    padding-left: 20px;
    list-style: disc;
    font-size: 1.1em;
}

.page-resources__list-item {
    margin-bottom: 10px;
}

.page-resources__image-full {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__promo-cards .page-resources__card {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__image-center {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-section {
    background-color: #f8f8f8;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #eaf7ff;
}

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

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    text-align: justify;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 20px 25px;
}

.page-resources__faq-answer p {
    margin: 0;
}

.page-resources__image-faq {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__mobile-app-section {
    background-color: #ffffff;
}

.page-resources__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.page-resources__app-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-resources__app-text .page-resources__list {
    margin-left: 20px;
    list-style: disc;
    margin-top: 20px;
}

.page-resources__app-image-wrapper {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-align: center;
}

.page-resources__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__responsible-gaming-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__responsible-gaming-section .page-resources__list {
    list-style: decimal;
}

.page-resources__cta-bottom {
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is correct */
        padding-bottom: 40px;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.5em;
        margin-bottom: 30px;
    }
    .page-resources__text-block,
    .page-resources__list {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-resources__card-grid,
    .page-resources__promo-cards,
    .page-resources__news-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-resources__card {
        margin: 0 auto;
        max-width: 400px;
    }
}