/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Inherited from shared.css, ensure contrast */
}

/* Ensure main content is not hidden by fixed header */
.page-resources__hero-intro-section {
  padding-top: 120px; /* Desktop spacing for fixed header */
}

@media (max-width: 768px) {
  .page-resources__hero-intro-section {
    padding-top: 100px; /* Mobile spacing for fixed header */
  }
}

/* General container styles */
.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-resources__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Links within text */
.page-resources__link {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-resources__link:hover {
  color: #fff;
}

/* Hero Introduction Section */
.page-resources__hero-intro-section {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  padding-bottom: 60px;
  text-align: center;
}

.page-resources__hero-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__btn--primary {
  background-color: #FFD700;
  color: #0a0a0a;
}

.page-resources__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-resources__btn--secondary:hover {
  background-color: #FFD700;
  color: #0a0a0a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Guides Section */
.page-resources__guides-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-resources__card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-resources__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #ffffff;
}

.page-resources__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-resources__card-text {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Strategy Section */
.page-resources__strategy-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

.page-resources__content-item {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__content-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-resources__content-heading {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__content-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* News and Promotions Section */
.page-resources__news-promo-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-resources__news-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.page-resources__news-content {
  padding: 20px;
}

.page-resources__news-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-resources__news-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-resources__news-date {
  font-size: 14px;
  color: #8B0000;
  font-weight: 600;
}

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

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  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: #4a4a4a;
  border-color: #5a5a5a;
}

.page-resources__faq-question:active {
  background: #5a5a5a;
}

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

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  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: 32px;
  height: 32px;
}

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

.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;
  color: #f0f0f0;
  font-size: 16px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #2a2a2a;
  border-top: 1px solid #4a4a4a;
  border-radius: 0 0 8px 8px;
}

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

/* Support and Safety Section */
.page-resources__support-safety-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-resources__safety-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__safety-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-resources__safety-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__safety-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Useful Links Section */
.page-resources__useful-links-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-resources__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-resources__quick-link {
  display: block;
  background-color: #3a3a3a;
  color: #FFD700;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 1px solid #4a4a4a;
}

.page-resources__quick-link:hover {
  background-color: #FFD700;
  color: #0a0a0a;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 36px;
  }
  .page-resources__hero-description {
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__section-description {
    font-size: 16px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__content-heading {
    font-size: 22px;
  }
  .page-resources__news-title {
    font-size: 18px;
  }
  .page-resources__faq-question h3 {
    font-size: 17px;
  }
  .page-resources__safety-title {
    font-size: 20px;
  }
  .page-resources__quick-link {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 20px 15px;
  }
  .page-resources__hero-title {
    font-size: 28px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-resources__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-resources__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-resources__guides-section, .page-resources__strategy-section, .page-resources__news-promo-section, .page-resources__faq-section, .page-resources__support-safety-section, .page-resources__useful-links-section {
    padding: 40px 0;
  }
  .page-resources__card-grid, .page-resources__content-block, .page-resources__news-grid, .page-resources__safety-grid, .page-resources__links-grid {
    gap: 20px;
  }
  .page-resources__card-image, .page-resources__content-image, .page-resources__news-image {
    height: 180px;
  }
  .page-resources__card-title {
    font-size: 18px;
    padding: 15px 15px 8px;
  }
  .page-resources__card-text {
    font-size: 14px;
    padding: 0 15px 15px;
  }
  .page-resources__content-item {
    padding: 20px;
  }
  .page-resources__content-heading {
    font-size: 20px;
  }
  .page-resources__news-content {
    padding: 15px;
  }
  .page-resources__news-title {
    font-size: 16px;
  }
  .page-resources__news-excerpt {
    font-size: 14px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
    font-size: 14px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources__safety-card {
    padding: 20px;
  }
  .page-resources__safety-icon {
    width: 70px;
    height: 70px;
  }
  .page-resources__safety-title {
    font-size: 18px;
  }
  .page-resources__quick-link {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  /* Mobile specific image and container rules */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__container, 
  .page-resources__hero-intro-section,
  .page-resources__guides-section,
  .page-resources__strategy-section,
  .page-resources__news-promo-section,
  .page-resources__faq-section,
  .page-resources__support-safety-section,
  .page-resources__useful-links-section,
  .page-resources__card,
  .page-resources__content-item,
  .page-resources__news-card,
  .page-resources__safety-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are already set in .page-resources__container for mobile */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 24px;
  }
  .page-resources__section-title {
    font-size: 20px;
  }
  .page-resources__card-grid, .page-resources__content-block, .page-resources__news-grid, .page-resources__safety-grid, .page-resources__links-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__quick-link {
    font-size: 14px;
  }
}