/* style/resources.css */

/* Base Styles for Page Resources */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: calc(100px + var(--header-offset, 120px)); /* Apply header offset */
    background-color: #0A192F; /* Main brand color for hero */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Accent color for title */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Accent color */
    color: #0A192F; /* Text color for accent background */
    border: 2px solid #FFD700;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color for text */
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
}

/* Video Section */
.page-resources__video-section {
    padding: 60px 0;
    background-color: #0A192F; /* Main brand color */
    color: #ffffff;
    text-align: center;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Max width for video */
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure video is responsive */
}

.page-resources__video-caption {
    font-size: 0.95em;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* Content Area */
.page-resources__content-area {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A192F; /* Main brand color for titles */
    margin-bottom: 40px;
    text-align: center;
}

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

.page-resources p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-resources__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

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

.page-resources__sub-list {
    list-style: circle;
    margin-left: 20px;
    margin-top: 10px;
}

.page-resources__sub-list-item {
    margin-bottom: 5px;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure images behave as blocks for margin/alignment */
}

.page-resources__image--left {
    float: left;
    margin-right: 30px;
    width: 40%; /* Example width, adjust as needed */
    min-width: 300px; /* Ensure minimum size */
}

.page-resources__image--right {
    float: right;
    margin-left: 30px;
    width: 40%; /* Example width, adjust as needed */
    min-width: 300px; /* Ensure minimum size */
}

.page-resources__image--center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.page-resources__content-area::after {
    content: "";
    display: table;
    clear: both;
}

.page-resources a {
    color: #0A192F; /* Link color for light background */
    text-decoration: underline;
}

.page-resources a:hover {
    color: #FFD700; /* Accent color on hover */
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    margin-bottom: 60px;
    border-top: 1px solid #e0e0e0;
}

.page-resources__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    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 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

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

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

/* CTA Section at the bottom */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #0A192F; /* Main brand color */
    color: #ffffff;
    text-align: center;
}

.page-resources__container--center {
    max-width: 900px;
}

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

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

    .page-resources__sub-title {
        font-size: 1.5em;
    }

    .page-resources__image--left,
    .page-resources__image--right {
        float: none;
        margin: 0 auto 30px auto;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 80px 0;
        padding-top: calc(80px + var(--header-offset, 120px)) !important; /* Mobile header offset */
    }

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

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

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container for buttons */
    }

    .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: 12px 20px !important;
    }
}