/* style/resources.css */

/* --- Base Styles & Layout --- */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
  line-height: 1.6;
}

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

.page-resources__section-title {
  font-size: 36px;
  color: var(--secondary-color, #FFD700); /* Gold/Yellow for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color, #1A2E4E);
  border-radius: 2px;
}

/* --- Hero Section --- */
.page-resources__hero-section {
  padding: 120px 0 80px; /* Desktop padding-top to clear fixed header */
  background: linear-gradient(135deg, var(--primary-color, #1A2E4E) 0%, rgba(26, 46, 78, 0.8) 100%), url('[GALLERY:hero:68gb,resources,background,abstract]') no-repeat center center/cover;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-resources__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-resources__cta-button--primary {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #1A2E4E);
}

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

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

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

.page-resources__cta-buttons--center {
  justify-content: center;
}

/* --- Benefits Section --- */
.page-resources__benefits-section {
  padding: 80px 0;
  background-color: var(--primary-color, #1A2E4E); /* Using brand primary color */
  color: #ffffff; /* Light text on dark background */
}

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

.page-resources__benefit-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__benefit-icon {
  width: 250px; /* Enforce min size 200x200 for source, display size can vary */
  height: 150px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; 
  min-height: 200px;
}

.page-resources__benefit-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color, #FFD700);
}

.page-resources__benefit-text {
  font-size: 16px;
  color: #e0e0e0;
}

/* --- Guide Section --- */
.page-resources__guide-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1); /* Dark background */
  color: #f0f0f0; /* Light text */
}

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

.page-resources__guide-step {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__guide-image {
  width: 100%;
  max-width: 300px; /* Example size, min 200x200 */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__guide-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__guide-text {
  font-size: 16px;
  color: #c0c0c0;
  margin-bottom: 25px;
}

.page-resources__guide-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #1A2E4E);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__guide-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* --- FAQ Section --- */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color, #1A2E4E); /* Using brand primary color */
  color: #ffffff; /* Light text on dark background */
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #FFD700);
  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 {
  transform: rotate(45deg); /* Example: rotate for '+' to 'x' */
  color: #ffffff;
}

.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 25px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  color: #e0e0e0;
}

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

/* --- Blog Section --- */
.page-resources__blog-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1); /* Dark background */
  color: #f0f0f0; /* Light text */
}

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

.page-resources__blog-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__blog-item-image {
  width: 100%;
  height: 200px; /* Recommended size 800x450, 1000x563, 1200x675 */
  object-fit: cover;
  display: block;
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}

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

.page-resources__blog-link {
  text-decoration: none;
  color: inherit;
}

.page-resources__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-resources__blog-link:hover .page-resources__blog-item-title {
  color: var(--secondary-color, #FFD700);
}

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

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

/* --- Contact CTA Section --- */
.page-resources__contact-cta {
  padding: 80px 0;
  background-color: var(--primary-color, #1A2E4E); /* Using brand primary color */
  text-align: center;
  color: #ffffff;
}

.page-resources__contact-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 42px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__benefit-title {
    font-size: 22px;
  }
  .page-resources__guide-title {
    font-size: 24px;
  }
  .page-resources__blog-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: 100px !important; /* Mobile padding-top to clear fixed header */
    padding-bottom: 60px;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    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__section-title::after {
    width: 60px;
  }

  .page-resources__benefits-section,
  .page-resources__guide-section,
  .page-resources__faq-section,
  .page-resources__blog-section,
  .page-resources__contact-cta {
    padding: 60px 0;
  }

  .page-resources__benefit-item,
  .page-resources__guide-step,
  .page-resources__blog-item {
    padding: 25px;
  }
  
  .page-resources__benefit-icon {
    width: 150px; /* Adjust display size for mobile if needed, but min-size still applies */
    height: 100px;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources__faq-answer p {
    font-size: 15px;
  }

  .page-resources__blog-item-image {
    height: 180px;
  }
  .page-resources__blog-item-content {
    padding: 20px;
  }
  .page-resources__blog-item-title {
    font-size: 18px;
  }
  .page-resources__blog-item-excerpt {
    font-size: 14px;
  }

  /* Image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-resources__benefit-icon,
  .page-resources__guide-image,
  .page-resources__blog-item-image {
    max-width: 100% !important;
    width: auto !important; /* Allow natural width while respecting max-width */
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-resources__container,
  .page-resources__benefits-grid,
  .page-resources__guide-steps,
  .page-resources__faq-list,
  .page-resources__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__blog-item, .page-resources__benefit-item, .page-resources__guide-step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}