/* style/resources.css */

/* --- General Styles for Page Resources --- */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f8f9fa; /* Light background for the overall page */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Adjust as needed */
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    overflow: hidden;
    background-color: #017439; /* Fallback for image */
    color: #ffffff;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-resources__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__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;
    text-align: center; /* Ensure text is centered */
    box-sizing: border-box; /* Include padding in width */
}

.page-resources__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    color: #ffffff;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* Default for hero section */
    border: 2px solid #ffffff;
}

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

/* For light background sections */
.page-resources__light-bg .page-resources__btn-secondary {
    color: #017439;
    border-color: #017439;
}
.page-resources__light-bg .page-resources__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* --- Overview Section --- */
.page-resources__overview-section {
    padding: 60px 0;
}

.page-resources__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 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-resources__card-image {
    width: 100%;
    max-width: 400px; /* Constrain card image width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-resources__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__card-text {
    font-size: 1em;
    color: #555555;
}

/* --- Guides Section (Dark Background) --- */
.page-resources__dark-bg {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__dark-bg .page-resources__section-title {
    color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-description {
    color: #f0f0f0;
}

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

.page-resources__guide-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-resources__guide-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__guide-card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__guide-card-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__guide-card-link {
    display: flex;
    align-items: center;
    color: #017439;
    font-weight: bold;
    font-size: 1em;
}

.page-resources__guide-card-link i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.page-resources__guide-card:hover .page-resources__guide-card-link i {
    margin-left: 15px;
}

/* --- Games Guide Section --- */
.page-resources__games-guide-section {
    padding: 60px 0;
}

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

.page-resources__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #333333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-resources__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-resources__game-card-title {
    font-size: 1.4em;
    color: #017439;
    padding: 15px 20px 5px 20px;
    font-weight: bold;
}

.page-resources__game-card-text {
    font-size: 0.9em;
    color: #555555;
    padding: 0 20px 15px 20px;
    flex-grow: 1;
}

.page-resources__game-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background-color: #f0f0f0;
    color: #017439;
    font-weight: bold;
    font-size: 1em;
    border-top: 1px solid #e0e0e0;
}

.page-resources__game-card-link i {
    margin-left: 8px;
}

/* --- Promotions Section --- */
.page-resources__promotions-section {
    padding: 60px 0;
}

.page-resources__promo-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-resources__promo-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-resources__promo-text {
    flex: 2;
    min-width: 300px;
}

.page-resources__promo-subtitle {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__promo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-resources__promo-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-resources__list-icon {
    color: #FFFF00; /* Yellow for icons */
    font-size: 1.3em;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 3px; /* Align icon better with text */
}

/* --- Support & FAQ Section --- */
.page-resources__support-faq-section {
    padding: 60px 0;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    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;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

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

.page-resources__faq-heading {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
    font-weight: bold;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    color: #017439;
    font-weight: bold;
    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;
    font-size: 1em;
}

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

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

.page-resources__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

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

/* --- Conclusion Section --- */
.page-resources__conclusion-section {
    padding: 60px 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__promo-content {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__promo-image {
        max-width: 80%;
    }
    .page-resources__promo-list {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__container {
        padding: 15px;
    }
    .page-resources__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources__grid,
    .page-resources__guide-cards,
    .page-resources__game-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card,
    .page-resources__guide-card,
    .page-resources__game-card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-resources__card-image,
    .page-resources__guide-card-image,
    .page-resources__game-card-image,
    .page-resources__promo-image,
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__promo-content,
    .page-resources__promo-text,
    .page-resources__guide-card,
    .page-resources__game-card,
    .page-resources__faq-item,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .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;
      overflow: hidden !important; /* For containers that might have overflowing content */
    }
    .page-resources__cta-buttons,
    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons--centered {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .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__promo-list li {
        font-size: 1em;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-heading {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}