/* style/resources.css */

/* Base styles for the page content, considering dark body background */
.page-resources {
  background-color: transparent; /* Body background is #121212 from shared.css */
  color: #ffffff; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 0; /* Handled by video-section or first content section */
}

/* Video Section */
.page-resources__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* Fixed navigation padding - desktop */
  padding-top: 10px; /* Adjust based on actual header height */
  background-color: #1a1a1a; /* Slightly lighter dark background for this section */
  box-sizing: border-box;
}

.page-resources__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px; /* Apply border-radius here as well */
  overflow: hidden; /* Ensure content inside respects border-radius */
}

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

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px; /* Redundant if wrapper has it, but good for safety */
  object-fit: cover;
  pointer-events: none; /* Prevents video controls from interfering with click event */
}

.page-resources__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-resources__video-link:hover .page-resources__video-overlay {
  opacity: 1;
}

.page-resources__video-click-hint {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: var(--primary-color, #007bff);
  border-radius: 30px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

.page-resources__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-resources__play-now-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color, #007bff);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.page-resources__play-now-button:hover {
  background: var(--secondary-color, #0056b3); /* Darker blue */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* General section styling */
.page-resources__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Dark section for contrast */
.page-resources__dark-section {
  background: var(--primary-color, #007bff); /* Use primary color as dark background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-resources__light-bg {
  background-color: #f8f9fa; /* Light background for contrast on dark body */
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

/* H1 Title + CTA Section */
.page-resources__title-section {
  text-align: center;
  padding: 80px 20px;
}

.page-resources__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #ffffff; /* For dark-section */
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.page-resources__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for description */
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-resources__btn-primary {
  background: var(--secondary-color, #ffc107); /* Use auxiliary color for primary CTA */
  color: #121212; /* Dark text for bright button */
  border: 2px solid transparent;
}

.page-resources__btn-primary:hover {
  background: #e0a800; /* Darker yellow */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.page-resources__btn-secondary {
  background: transparent;
  color: #ffffff; /* White text for transparent button on dark section */
  border: 2px solid #ffffff;
}

.page-resources__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Brand Introduction Section */
.page-resources__brand-section {
  padding: 80px 20px;
  text-align: center;
  color: #333333; /* Dark text for light background */
}

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

.page-resources__brand-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--primary-color, #007bff); /* Use primary color for title */
}

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

.page-resources__brand-item {
  background: #ffffff; /* White card background on light section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-resources__brand-item h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--primary-color, #007bff);
}

.page-resources__brand-item p {
  font-size: 16px;
  color: #555555;
}

.page-resources__brand-image {
  width: 150px; /* Adjust size for content images, not small icons */
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 50%; /* Example: circular images */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 20px;
  color: #ffffff; /* White text for dark section */
  background-color: #1a1a1a; /* Darker background for FAQ section */
}

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

.page-resources__faq-main-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary-color, #ffc107); /* Auxiliary color for FAQ title */
}

.page-resources__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-resources__faq-item {
  margin-bottom: 0; /* Gap handled by parent */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #2a2a2a; /* Darker background for question */
  border: 1px solid #3a3a3a;
  border-radius: 8px; /* Only top corners, bottom will be for answer */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-item.active .page-resources__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-resources__faq-question:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.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; /* Prevents h3 from blocking click event */
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #ffc107); /* Auxiliary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevents toggle from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(180deg);
  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: #333333; /* Slightly lighter dark background for answer */
  border: 1px solid #3a3a3a;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #333333;
  color: #e0e0e0; /* Light text for answer */
}

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

/* Blog List Section */
.page-resources__blog-section {
  padding: 80px 20px;
  text-align: center;
  color: #333333; /* Dark text for light background */
}

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

.page-resources__blog-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color, #007bff);
}

.page-resources__blog-description {
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-resources__blog-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  overflow: hidden;
}

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

.page-resources__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.page-resources__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block; /* Ensure no extra space below image */
}

.page-resources__blog-item-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color, #007bff);
  line-height: 1.3;
}

.page-resources__blog-item-excerpt {
  font-size: 15px;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.6;
}

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

.page-resources__view-all-blogs {
  text-align: center;
}

/* General button styles for .page-resources__cta-button */
.page-resources__cta-button {
  border-radius: 8px; /* Consistent border-radius for buttons */
}

/* Footer (placeholder, but ensure basic style for content above) */
.page-resources__footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #0d0d0d; /* Dark background */
  color: #aaaaaa; /* Light gray text */
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 40px;
  }
  .page-resources__brand-title,
  .page-resources__faq-main-title,
  .page-resources__blog-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* Video Section Mobile */
  .page-resources__video-section {
    padding-top: 10px !important; /* Mobile fixed header padding */
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-resources__video-container,
  .page-resources__video-link,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .page-resources__video-click-hint {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-resources__play-now-button {
    font-size: 18px;
    padding: 15px 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources__video-cta {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* General sections Mobile */
  .page-resources__section,
  .page-resources__dark-section,
  .page-resources__light-bg {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__title-container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-resources__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources__title-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

  .page-resources__cta-button {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__brand-title,
  .page-resources__faq-main-title,
  .page-resources__blog-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources__brand-content {
    grid-template-columns: 1fr;
  }

  .page-resources__brand-item {
    padding: 25px;
  }

  .page-resources__brand-item h3 {
    font-size: 20px;
  }

  .page-resources__brand-item p {
    font-size: 15px;
  }
  
  .page-resources__brand-image {
    width: 120px;
    height: 120px;
  }

  /* FAQ Mobile */
  .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-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }

  /* Blog List Mobile */
  .page-resources__blog-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .page-resources__blog-list {
    grid-template-columns: 1fr;
  }

  .page-resources__blog-item-title {
    font-size: 18px;
  }

  .page-resources__blog-item-excerpt {
    font-size: 14px;
  }
  
  /* Ensure all images are responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__card,
  .page-resources__container,
  .page-resources__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure no filter on images */
.page-resources img {
  filter: none !important;
}

/* Ensure consistent padding for sections to prevent content from touching screen edges on mobile */
.page-resources__section > div,
.page-resources__dark-section > div,
.page-resources__light-bg > div {
  padding-left: 0; /* Reset internal container padding if needed */
  padding-right: 0; /* Reset internal container padding if needed */
}
@media (max-width: 768px) {
  .page-resources__section > div,
  .page-resources__dark-section > div,
  .page-resources__light-bg > div {
    padding-left: 0;
    padding-right: 0;
  }
}