/* style/resources.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0f0f0f;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text should be light */
  background-color: var(--bg-dark); /* Ensure consistency with shared.css body */
  padding: 0;
  margin: 0;
}

/* Video Section */
.page-resources__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%);
}

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

.page-resources__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event on parent <a> */
}

.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: 12px;
  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: var(--text-light);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(var(--secondary-color), 0.8);
  border-radius: 50px;
  white-space: nowrap;
}

.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: 15px 45px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(var(--secondary-color), 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

/* H1 Title Section */
.page-resources__title-section {
  background-color: var(--bg-dark);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
}

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

.page-resources__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-resources__title-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-resources__cta-button--primary:hover {
  background-color: #c23328;
  border-color: #c23328;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--secondary-color), 0.4);
}

.page-resources__cta-button--secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--secondary-color), 0.4);
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: var(--bg-light);
  padding: 80px 20px;
  color: var(--text-dark);
}

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

.page-resources__faq-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-color);
}

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

.page-resources__faq-item {
  background: var(--text-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #f0f0f0;
  border-color: #d5d5d5;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-color);
  pointer-events: none;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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: var(--secondary-color);
  transform: rotate(180deg);
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f0f5fa; /* Light background for answer */
  border-top: 1px dashed var(--border-color);
  border-radius: 0 0 10px 10px;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

/* Brand Section */
.page-resources__brand-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  color: var(--text-light);
  text-align: center;
}

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

.page-resources__brand-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources__brand-description {
  font-size: 1.1em;
  margin-bottom: 60px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__brand-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-resources__brand-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-resources__brand-icon {
  width: 80px; /* Min size 200x200px, but icon itself can be smaller */
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.page-resources__brand-item h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-resources__brand-item p {
  font-size: 1em;
  opacity: 0.8;
}

/* Blog Section */
.page-resources__blog-section {
  background-color: var(--bg-dark);
  padding: 80px 20px;
  color: var(--text-light);
}

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

.page-resources__blog-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-light);
}

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

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

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

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

.page-resources__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__blog-item-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-resources__blog-item-excerpt {
  font-size: 0.95em;
  color: rgba(var(--text-light), 0.8);
  margin-bottom: 15px;
}

.page-resources__blog-item-date {
  font-size: 0.85em;
  color: rgba(var(--text-light), 0.6);
  display: block;
  text-align: right;
}

.page-resources__inline-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.page-resources__inline-link:hover {
  color: #ff887e; /* Lighter secondary color on hover */
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }

  .page-resources__faq-title,
  .page-resources__brand-title,
  .page-resources__blog-title {
    font-size: 2.2em;
  }

  .page-resources__brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Padding adjustment for fixed header on mobile */
  .page-resources__video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    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;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Ensure video is fully visible */
  }

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

  .page-resources__play-now-button {
    font-size: 18px !important;
    padding: 12px 30px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__video-cta {
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__title-section {
    padding: 60px 15px;
  }

  .page-resources__main-title {
    font-size: 2.2em;
  }

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

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
  }

  .page-resources__faq-section {
    padding: 60px 15px;
  }

  .page-resources__faq-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
  }

  .page-resources__faq-question h3 {
    font-size: 1.1em;
  }

  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }

  .page-resources__brand-section {
    padding: 60px 15px;
  }

  .page-resources__brand-title {
    font-size: 2em;
  }

  .page-resources__brand-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

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

  .page-resources__brand-icon {
    width: 60px;
    height: 60px;
  }

  .page-resources__brand-item h3 {
    font-size: 1.3em;
  }

  .page-resources__blog-section {
    padding: 60px 15px;
  }

  .page-resources__blog-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-resources__blog-list {
    grid-template-columns: 1fr;
  }

  .page-resources__blog-image {
    height: 180px;
  }

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

  .page-resources__blog-item-title {
    font-size: 1.2em;
  }

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