/* style/resources.css */

/* Base Styles */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a1a; /* Inherited from shared.css, ensure consistency */
}

.page-resources a {
    color: #FFFF00;
    text-decoration: none;
}

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

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

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

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-outline {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

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

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

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

.page-resources__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.page-resources__btn-outline {
    background-color: transparent;
    color: #FFFF00;
    border: 2px solid #FFFF00;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.page-resources__btn-outline:hover {
    background-color: #FFFF00;
    color: #017439;
}

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

/* Section Backgrounds & Text Colors */
.page-resources__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

.page-resources__intro-section,
.page-resources__tips-section,
.page-resources__video-section,
.page-resources__cta-section {
    padding: 80px 0;
}

.page-resources__categories-section,
.page-resources__support-section,
.page-resources__faq-section {
    padding: 80px 0;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px;
    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;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFF00;
}

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

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

.page-resources__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__btn-outline {
    align-self: flex-start;
}

/* Image & List Styles */
.page-resources__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__image-center {
    display: block;
    margin: 40px auto;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
}

.page-resources__list li {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-resources__list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__list li a {
    color: #FFFF00;
}

.page-resources__list li a:hover {
    text-decoration: underline;
}

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

/* Video Section */
.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px 0;
    border-radius: 10px;
    background-color: #000;
}

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

.page-resources__video-cta {
    text-align: center;
    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: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #f0f0f0;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-heading {
    margin: 0;
    color: inherit;
}

.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: #f0f0f0;
}

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

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

.page-resources__faq-answer a {
    color: #FFFF00;
}

/* Final CTA Section */
.page-resources__cta-section {
    text-align: center;
}

.page-resources__cta-image {
    margin-top: 50px;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }

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

    .page-resources__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

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

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

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

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

    .page-resources__card-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__card {
        margin: 0 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

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

    .page-resources__card-text {
        font-size: 0.95em;
    }

    .page-resources__image-full-width,
    .page-resources__image-center {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 30px 0;
    }

    .page-resources__list {
        margin: 30px 15px;
    }

    .page-resources__list li {
        font-size: 1em;
        padding: 12px 15px;
    }

    .page-resources__button-group {
        flex-direction: column;
        gap: 15px;
        margin: 30px 15px;
    }

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

    .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__faq-list {
        margin: 30px 15px;
    }

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

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

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

    .page-resources__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    /* Ensure all images are responsive */
    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}