/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Matching body background */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #0A2463; /* Dark blue text */
    border: 2px solid #FFD700;
}

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

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

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

.page-resources__btn-link {
    background-color: transparent;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-resources__btn-link:hover {
    background-color: #FFD700;
    color: #0A2463;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.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.7); /* Dark overlay for text readability */
    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: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

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

/* Intro Section */
.page-resources__intro-section {
    background-color: #000000; /* Dark background */
    color: #ffffff;
    padding: 60px 20px;
}

/* Guide Section */
.page-resources__guide-section {
    background-color: #0A2463; /* Primary dark blue background */
    color: #ffffff;
    padding: 60px 20px;
}

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

.page-resources__grid-item {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black card background */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__grid-item .page-resources__image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources__item-title {
    font-size: 1.5em;
    color: #FFD700; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__item-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__item-title a:hover {
    color: #ffffff;
}

/* Video Section */
.page-resources__video-section {
    background-color: #000000;
    padding: 60px 20px;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 8px;
    background-color: #0A2463; /* Placeholder background */
}

.page-resources__video-wrapper .page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer; /* Indicate clickable */
}

.page-resources__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Make sure the link is above the video */
  cursor: pointer;
}


/* Other Links Section */
.page-resources__other-links-section {
    background-color: #0A2463;
    padding: 60px 20px;
}

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

.page-resources__link-card {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__link-card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__link-card-title a:hover {
    color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #000000;
    padding: 60px 20px;
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #0A2463; /* Dark blue background for question */
    transition: background-color 0.3s ease;
}

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

.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); /* Plus to X for active state */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter transparent for answer */
    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; /* Ensure enough height for content */
    padding: 15px 25px;
}

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

/* CTA Section */
.page-resources__cta-section {
    background-color: #0A2463;
    padding: 80px 20px;
    text-align: center;
}

.page-resources__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

    .page-resources__content-area {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 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__btn-link,
    .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__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

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

    .page-resources__grid-item .page-resources__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* 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__links-grid {
        grid-template-columns: 1fr;
    }

    .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: 15px 20px;
    }
}

/* Global image styles for content area - enforce minimum display size */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure content area images are not too small */
.page-resources__grid-item .page-resources__image,
.page-resources__image {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
  
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  /* Ensure content area images are not displayed smaller than 200px */
  .page-resources__grid-item .page-resources__image,
  .page-resources__image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

/* No CSS filters allowed for images */
.page-resources img {
  filter: none !important;
}