/* style/resources.css */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
    --highlight-color: var(--secondary-color);
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: #0a0a0a; /* Inherited from shared.css, ensure text contrast */
}

.page-resources .highlight {
    color: var(--highlight-color);
}

.page-resources a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Ensure main content is below fixed header */
.page-resources__hero-banner {
    padding-top: 120px; /* Desktop: Adjust for fixed header */
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    overflow: hidden;
}

.page-resources__hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    color: var(--text-color-dark-bg);
}

.page-resources__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-dark-bg);
}

.page-resources__subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3); /* Darken image for text readability */
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-resources__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__section {
    padding: 60px 20px;
}

.page-resources__section--intro {
    background-color: var(--card-bg-light);
    color: var(--text-color-light-bg);
}

.page-resources__section--types {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-resources__section--benefits {
    background-color: var(--card-bg-light);
    color: var(--text-color-light-bg);
}

.page-resources__section--utilize {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-resources__section--other-resources {
    background-color: var(--card-bg-light);
    color: var(--text-color-light-bg);
}

.page-resources__section--faq {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-resources__section--cta {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    padding: 80px 20px;
}

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

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-resources__text-block {
    font-size: 17px;
    margin-bottom: 20px;
}

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

.page-resources__card {
    background-color: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card--dark {
    background-color: var(--card-bg-dark);
    color: var(--text-color-dark-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__card--dark a {
    color: var(--secondary-color);
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-resources__card-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-resources__card-text {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__button:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.page-resources__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-resources__benefits-text {
    flex: 2;
}

.page-resources__benefits-image {
    flex: 1;
    text-align: center;
}

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

.page-resources__sub-section-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__section--benefits .page-resources__sub-section-title {
    color: var(--text-color-light-bg);
}

.page-resources__utilize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-resources__utilize-item {
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-color-dark-bg);
}

.page-resources__utilize-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-resources__utilize-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-resources__utilize-text {
    font-size: 16px;
}

.page-resources__resource-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-resources__list-item {
    background-color: var(--card-bg-light);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-color-light-bg);
}

.page-resources__list-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

.page-resources__list-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.3;
}

.page-resources__list-title a {
    color: inherit;
    text-decoration: none;
}

.page-resources__list-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-resources__list-description {
    font-size: 15px;
    margin: 0;
}

/* FAQ Styles */
.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: var(--card-bg-dark);
  color: var(--text-color-dark-bg);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-answer p {
    margin: 0;
    font-size: 16px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark-bg);
}

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

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

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotate to form an 'X' or keep as '-' */
}

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

.page-resources__cta-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 20px;
    margin-bottom: 40px;
}

.page-resources__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__subtitle {
        font-size: 18px;
    }
    .page-resources__section-title {
        font-size: 30px;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
    }
    .page-resources__benefits-image {
        margin-top: 30px;
    }
    .page-resources__image-full-width {
        max-width: 100%;
    }
    .page-resources__card-title {
        font-size: 20px;
    }
    .page-resources__utilize-title {
        font-size: 20px;
    }
    .page-resources__cta-title {
        font-size: 32px;
    }
    .page-resources__cta-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-banner {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
    }
    .page-resources__hero-content-wrapper {
        margin-bottom: 30px;
    }
    .page-resources__main-title {
        font-size: 32px;
    }
    .page-resources__subtitle {
        font-size: 16px;
    }
    .page-resources__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__container,
    .page-resources__hero-content-wrapper,
    .page-resources__section--intro,
    .page-resources__section--types,
    .page-resources__section--benefits,
    .page-resources__section--utilize,
    .page-resources__section--other-resources,
    .page-resources__section--faq,
    .page-resources__section--cta,
    .page-resources__card,
    .page-resources__utilize-item,
    .page-resources__list-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-resources__text-block {
        font-size: 16px;
    }
    .page-resources__card {
        padding: 20px;
    }
    .page-resources__card-image {
        height: 180px;
    }
    .page-resources__card-title {
        font-size: 18px;
    }
    .page-resources__card-text {
        font-size: 15px;
    }
    .page-resources__sub-section-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-resources__utilize-icon {
        width: 80px;
        height: 80px;
    }
    .page-resources__utilize-title {
        font-size: 18px;
    }
    .page-resources__list-icon {
        width: 50px;
        height: 50px;
    }
    .page-resources__list-title {
        font-size: 17px;
    }
    .page-resources__list-description {
        font-size: 14px;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
    }
    .page-resources__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    .page-resources__faq-answer p {
        font-size: 15px;
    }
    .page-resources__cta-title {
        font-size: 28px;
    }
    .page-resources__cta-description {
        font-size: 16px;
    }
    .page-resources__cta-button--large {
        padding: 15px 40px;
        font-size: 18px;
    }

    /* Image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}