/* style/resources.css */
:root {
  --primary-color: #0A2342;
  --secondary-color: #F2A900;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
  --background-white: #ffffff;
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--background-light);
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-resources__sub-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: left;
}

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

/* Hero Section */
.page-resources__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5e 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 2;
}

.page-resources__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  border: none;
  cursor: pointer;
}

.page-resources__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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

.page-resources__cta-button--secondary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 1px solid var(--secondary-color);
}

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

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}

/* Introduction Section */
.page-resources__introduction-section {
  padding: 60px 0;
  background-color: var(--background-white);
}

.page-resources__image-text-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  background-color: var(--background-light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__image-block-img {
  width: 250px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

/* Main Resources Section */
.page-resources__main-resources-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-resources__resource-card {
  background-color: var(--background-white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px; /* Ensure cards have some height */
}

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

.page-resources__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-resources__card-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex-grow: 1;
}

.page-resources__card-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}

.page-resources__card-list li::before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-resources__list-item-title {
  font-weight: bold;
  color: var(--primary-color);
  display: inline;
}

.page-resources__list-item-title + p {
    display: inline;
    margin-left: 5px;
}

.page-resources__card-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: auto; /* Push button to bottom */
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__card-button:hover {
  background-color: #e09800;
}

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

.page-resources__section-divider {
  border-top: 1px dashed var(--border-color);
  margin: 60px 0;
}

/* Blog List Section (News and Updates) */
.page-resources__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-resources__blog-item {
  background-color: var(--background-white);
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-resources__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-resources__blog-item-content {
  padding: 20px;
}

.page-resources__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources__blog-item-excerpt {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
}

.page-resources__blog-item-date {
  font-size: 14px;
  color: #999;
  display: block;
}

.page-resources__view-all-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 30px;
}

.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;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Use !important and a large value to ensure expansion */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--background-white);
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question:hover {
  background: var(--background-light);
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-resources__faq-question:active {
  background: #eeeeee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources__faq-toggle {
  font-size: 26px;
  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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Benefits Section */
.page-resources__benefits-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__dark-section .page-resources__section-title {
  color: var(--secondary-color);
}

.page-resources__dark-section .page-resources__benefits-item {
  color: var(--text-light);
}

.page-resources__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-resources__benefits-item {
  font-size: 18px;
  margin-bottom: 20px;
  padding-left: 35px;
  position: relative;
  line-height: 1.6;
}

.page-resources__benefits-item::before {
  content: '★';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 22px;
  line-height: 1;
}

.page-resources__image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-resources__benefits-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* CTA Bottom Section */
.page-resources__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--background-white);
  text-align: center;
}

.page-resources__cta-bottom-section .page-resources__section-title {
  color: var(--primary-color);
}

.page-resources__cta-bottom-section p {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 40px;
  }
  .page-resources__hero-description {
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__sub-title {
    font-size: 24px;
  }
  .page-resources__resource-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__hero-section {
    padding: 60px 0;
  }
  .page-resources__main-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-resources__sub-title {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-resources p {
    font-size: 16px;
  }
  .page-resources__image-text-block {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .page-resources__image-block-img {
    width: 100%;
    height: auto;
  }
  .page-resources__resource-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__resource-card {
    padding: 25px;
    min-height: auto;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__blog-item-image {
    height: 180px;
  }
  .page-resources__blog-item-title {
    font-size: 18px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources__benefits-list {
    margin: 30px auto;
  }
  .page-resources__benefits-item {
    font-size: 16px;
    padding-left: 30px;
  }
  .page-resources__benefits-item::before {
    font-size: 20px;
  }
  .page-resources__benefits-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__image-wrapper, .page-resources__cta-bottom-section p {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-resources__cta-bottom-section p {
    font-size: 16px;
  }
  .page-resources__section-divider {
    margin: 40px 0;
  }
  /* Ensure all images are responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__hero-image-wrapper, .page-resources__image-text-block, .page-resources__resource-card, .page-resources__blog-item, .page-resources__faq-item, .page-resources__benefits-section, .page-resources__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__hero-section .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 28px;
  }
  .page-resources__section-title {
    font-size: 24px;
  }
  .page-resources__sub-title {
    font-size: 20px;
  }
  .page-resources__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-resources__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__resource-card {
    padding: 20px;
  }
  .page-resources__card-title {
    font-size: 18px;
  }
  .page-resources__blog-item-title {
    font-size: 16px;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
  }
  .page-resources__benefits-item {
    font-size: 15px;
  }
}