/* style/resources.css */

:root {
    --page-resources-primary-color: #007bff;
    --page-resources-secondary-color: #ffc107;
    --page-resources-text-light: #ffffff;
    --page-resources-text-dark: #333333;
    --page-resources-background-dark: #121212; /* Inherited from body */
    --page-resources-card-bg: rgba(255, 255, 255, 0.08);
    --page-resources-border-color: rgba(255, 255, 255, 0.15);
}

.page-resources {
    color: var(--page-resources-text-light); /* Light text on dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__section {
    padding: 60px 0;
    background-color: var(--page-resources-background-dark);
    position: relative;
    overflow: hidden;
}

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

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

.page-resources__section-description {
    font-size: 1.1em;
    color: var(--page-resources-text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    color: var(--page-resources-text-light);
    margin-bottom: 40px;
}

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

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

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

.page-resources__btn-primary:hover {
    background-color: #0056b3; /* Darken primary color */
    border-color: #0056b3; /* Darken primary color */
    transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-background-dark);
    transform: translateY(-2px);
}

/* Video Section */
.page-resources__intro-video-section {
    padding-top: 40px; /* Adjust if hero has padding-top already */
}

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

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

.page-resources__video-description {
    text-align: center;
    color: var(--page-resources-text-light);
    font-size: 1.1em;
    max-width: 800px;
    margin: 20px auto 0 auto;
}

/* Grid for Cards */
.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: var(--page-resources-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-resources__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.page-resources__card-title {
    font-size: 1.5em;
    color: var(--page-resources-secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-resources__card-content p {
    color: var(--page-resources-text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__btn-link {
    color: var(--page-resources-primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
    color: var(--page-resources-secondary-color);
}

.page-resources__arrow {
    transition: transform 0.3s ease;
}

.page-resources__btn-link:hover .page-resources__arrow {
    transform: translateX(5px);
}

/* Content with Image and Text Columns */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-resources__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-resources__image-col,
.page-resources__text-col {
    flex: 1;
}

.page-resources__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: var(--page-resources-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-resources__sub-title a:hover {
    color: var(--page-resources-secondary-color);
}

.page-resources__text-col p {
    color: var(--page-resources-text-light);
    margin-bottom: 15px;
}

.page-resources__security-section .page-resources__btn-primary,
.page-resources__payment-section .page-resources__btn-primary {
    margin-top: 30px;
}

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

.page-resources__faq-item {
    background-color: var(--page-resources-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 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(--page-resources-secondary-color);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-resources-primary-color);
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--page-resources-text-light);
}

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

.page-resources__faq-answer p {
    margin: 0;
    color: var(--page-resources-text-light);
}

.page-resources__faq-answer a {
    color: var(--page-resources-primary-color);
    text-decoration: none;
}

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

/* CTA Sections */
.page-resources__cta-download-section,
.page-resources__cta-register-section {
    text-align: center;
    padding: 80px 0;
}

.page-resources__cta-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

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

.page-resources__cta-text {
    font-size: 1.2em;
    color: var(--page-resources-text-light);
    max-width: 700px;
    margin-bottom: 20px;
}

.page-resources__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* 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__sub-title {
        font-size: 1.6em;
    }
    .page-resources__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-resources__hero-section {
        height: 60vh;
    }

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

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

    .page-resources__hero-buttons {
        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__section {
        padding: 40px 0;
    }

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

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

    .page-resources__video-wrapper {
        margin: 30px auto;
    }

    .page-resources__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card-image {
        height: 200px;
    }

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

    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-resources__content-wrapper--reversed {
        flex-direction: column;
    }

    .page-resources__sub-title {
        font-size: 1.5em;
        margin-top: 20px;
    }

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

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

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-resources__cta-download-section,
    .page-resources__cta-register-section {
        padding: 60px 0;
    }

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

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

    .page-resources__btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Image and Video responsiveness (mandatory) */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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,
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .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 !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no overflow for video/image containers */
    }
    /* Specific padding for video section on mobile to ensure header offset */
    .page-resources__intro-video-section {
        padding-top: var(--header-offset, 120px) !important; 
    }
}