/* style/resources.css */

/* Base Styles */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #222, so light text */
    background-color: #222; /* Ensure consistency with body background from shared.css */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
    overflow: hidden;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Overlay effect */
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
    padding-top: 50px; /* Additional padding for content */
    padding-bottom: 50px;
}

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

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

/* CTA Buttons */
.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources__cta-buttons--center {
    justify-content: center;
    margin-top: 30px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

/* General Content Section */
.page-resources__content-area,
.page-resources__faq-section,
.page-resources__cta-section {
    padding: 80px 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.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-resources__paragraph {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    color: inherit; /* Inherit color from parent section */
}

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

.page-resources__card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333; /* Ensure dark text on light card background */
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for titles */
}

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

.page-resources__card-title a:hover {
    color: #1a7bbd;
}

.page-resources__card-text {
    font-size: 1em;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes link to bottom */
    text-align: left; /* Override global center alignment */
    color: #555555;
}

.page-resources__card-link {
    display: inline-flex;
    align-items: center;
    margin: 0 20px 20px 20px;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-resources__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

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

/* Video Section */
.page-resources__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources__video-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__video-link {
    display: block;
    line-height: 0; /* Remove extra space below video */
}

.page-resources__video {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #eee;
}

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

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

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

.page-resources__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    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 0px; /* Adjusted to 0px to prevent initial padding from showing */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-resources__faq-answer p {
    margin: 0;
    font-size: 1em;
    text-align: left; /* Override global center alignment */
    color: #555555;
}

/* CTA Section at bottom */
.page-resources__cta-content {
    text-align: center;
    padding: 60px 15px;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
    }
    .page-resources__main-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .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;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-resources__content-area,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__paragraph {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources__cards-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__card-text {
        font-size: 0.9em;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 0;
    }
    .page-resources__faq-question h3 {
        font-size: 1em;
    }
    .page-resources__faq-answer p {
        font-size: 0.9em;
    }

    /* Mobile image responsiveness */
    .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;
    }

    /* Mobile video responsiveness */
    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-resources__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-resources__main-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__paragraph {
        font-size: 0.85em;
    }
}