/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* A light background, assuming shared.css might set a light body background */
    padding-top: 0; /* Handled by hero section or main content container */
}

/* 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;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.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); /* 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.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* General Section Styles */
.page-resources__section {
    padding: 60px 20px;
    background-color: #ffffff; /* Default light background for sections */
    color: #333333;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-resources__section-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: justify;
}

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

/* Grid Layout for Sections */
.page-resources__grid-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-resources__grid-layout--reverse {
    flex-direction: row-reverse;
}

.page-resources__content-block {
    flex: 1;
}

.page-resources__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* List Styles */
.page-resources__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

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

/* Card Grid for News & Trends */
.page-resources__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none; /* Remove default list style for grid items */
    padding: 0;
    margin-bottom: 40px;
}

.page-resources__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #26A9E0;
    line-height: 1.4;
}

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

.page-resources__card-title a:hover {
    color: #007bb5; /* Darker shade of brand color for hover */
    text-decoration: underline;
}

.page-resources__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
}

.page-resources__btn-primary, .page-resources__hero-button {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover, .page-resources__hero-button:hover {
    background-color: #007bb5; /* Darker shade of primary color */
    border-color: #007bb5;
}

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

.page-resources__btn-secondary:hover {
    background-color: #e0f2f7; /* Lighter shade for hover */
    color: #007bb5;
    border-color: #007bb5;
}

.page-resources__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #26A9E0; /* Primary brand color for dark section */
    color: #ffffff;
}

.page-resources__faq-section .page-resources__section-title {
    color: #ffffff; /* White title on dark background */
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for contrast */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

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

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

.page-resources__faq-item[open] > .page-resources__faq-question {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-resources__faq-item summary {
    list-style: none; /* Remove default marker */
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none; /* Hide marker for Webkit browsers */
}

.page-resources__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05em;
    color: #f0f0f0;
}

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

.page-resources__faq-answer .page-resources__btn-primary,
.page-resources__faq-answer .page-resources__btn-secondary {
    margin-top: 15px;
    font-size: 1em;
    padding: 10px 20px;
}

/* Section specific background colors for contrast */
.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid-layout {
        flex-direction: column;
    }
    .page-resources__grid-layout--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }
}

@media (max-width: 768px) {
    /* Mobile header offset handled by shared.css or hero section */
    .page-resources__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources__hero-button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .page-resources__section {
        padding: 40px 15px;
    }

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

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

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

    .page-resources__list-item {
        font-size: 0.95em;
    }

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

    .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__button-group {
      flex-direction: column !important;
      gap: 10px !important;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    .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,
    .page-resources__image-wrapper,
    .page-resources__content-block {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no overflow */
    }

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

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