/* style/resources.css */

/* Base Styles & Typography */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text for dark body background */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-resources__subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources p {
  margin-bottom: 1em;
  color: #e0e0e0;
}

.page-resources a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  min-height: 600px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

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

.page-resources__main-title {
  font-size: 3.8em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__intro-text {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* About Section */
.page-resources__about-section {
  padding: 80px 20px;
  background-color: #1A202C; /* Dark background */
  color: #f0f0f0; /* Light text */
}

.page-resources__about-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__about-section .page-resources__section-description {
  color: #e0e0e0;
}

/* Video Section */
.page-resources__video-section {
  padding: 80px 20px;
  background-color: #111111; /* Even darker for video */
  color: #f0f0f0;
}

.page-resources__video-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__video-section .page-resources__section-description {
  color: #e0e0e0;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

/* Guides Section */
.page-resources__guides-section {
  padding: 80px 20px;
  background-color: #1A202C; /* Dark background */
  color: #f0f0f0; /* Light text */
}

.page-resources__guides-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__guides-section .page-resources__section-description {
  color: #e0e0e0;
}

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

.page-resources__guide-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

.page-resources__guide-card:hover {
  transform: translateY(-10px);
}

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

.page-resources__guide-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-resources__guide-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources__guide-title a:hover {
  text-decoration: underline;
}

.page-resources__guide-text {
  padding: 0 20px 20px;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Strategy Section */
.page-resources__strategy-section {
  padding: 80px 20px;
  background-color: #111111;
  color: #f0f0f0;
}

.page-resources__strategy-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__strategy-section .page-resources__section-description {
  color: #e0e0e0;
}

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

.page-resources__strategy-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
}

.page-resources__strategy-item:hover {
  transform: translateY(-10px);
}

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

.page-resources__strategy-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__strategy-text {
  color: #e0e0e0;
  flex-grow: 1;
}

/* Promotions Section */
.page-resources__promotions-section {
  padding: 80px 20px;
  background-color: #1A202C;
  color: #f0f0f0;
}

.page-resources__promotions-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__promotions-section .page-resources__section-description {
  color: #e0e0e0;
}

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

.page-resources__promotion-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

.page-resources__promotion-card:hover {
  transform: translateY(-10px);
}

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

.page-resources__promotion-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-resources__promotion-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources__promotion-title a:hover {
  text-decoration: underline;
}

.page-resources__promotion-text {
  padding: 0 20px 20px;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-resources__cta-buttons--center {
  margin-top: 50px;
}

/* Safety Section */
.page-resources__safety-section {
  padding: 80px 20px;
  background-color: #111111;
  color: #f0f0f0;
}

.page-resources__safety-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__safety-section .page-resources__section-description {
  color: #e0e0e0;
}

.page-resources__safety-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-resources__safety-text-block {
  flex: 1;
  min-width: 300px;
}

.page-resources__safety-subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__safety-paragraph {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-resources__safety-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 20px;
  background-color: #1A202C;
  color: #f0f0f0;
}

.page-resources__faq-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__faq-section .page-resources__section-description {
  color: #e0e0e0;
}

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

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

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

.page-resources__faq-question:hover {
  background-color: #444444;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  color: #e0e0e0;
}

/* Bottom CTA Section */
.page-resources__cta-section-bottom {
  padding: 80px 20px;
  text-align: center;
  background-color: #111111;
  color: #f0f0f0;
}

.page-resources__cta-section-bottom .page-resources__section-title {
  color: #FFD700;
}

.page-resources__cta-section-bottom .page-resources__section-description {
  color: #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 3em;
  }
  .page-resources__intro-text {
    font-size: 1.2em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__safety-content {
    flex-direction: column;
  }
  .page-resources__safety-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 15px;
  }
  .page-resources__main-title {
    font-size: 2.5em;
  }
  .page-resources__intro-text {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__guide-image,
  .page-resources__promotion-image,
  .page-resources__strategy-image,
  .page-resources__safety-image {
    height: auto !important;
    min-height: 200px !important;
  }

  /* Mobile video responsiveness */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__guides-grid,
  .page-resources__strategy-grid,
  .page-resources__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__guide-card,
  .page-resources__strategy-item,
  .page-resources__promotion-card {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__about-section,
  .page-resources__video-section,
  .page-resources__guides-section,
  .page-resources__strategy-section,
  .page-resources__promotions-section,
  .page-resources__safety-section,
  .page-resources__faq-section,
  .page-resources__cta-section-bottom {
    padding: 40px 0;
  }
  .page-resources__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 2em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__subtitle {
    font-size: 1.4em;
  }
}