/* style/resources.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Deep Red */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #1a1a1a;
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
  padding-top: 120px; /* Offset for fixed header */
}

.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4, .page-resources h5, .page-resources h6 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources h1 {
  font-size: 3em;
  text-align: center;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-resources__section-title--light {
  color: var(--primary-color) !important;
}

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

.page-resources__section-description--light {
  color: var(--text-color-light);
}

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

.page-resources__section-spacing {
  padding: 60px 0;
}

.page-resources__dark-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-resources__dark-section h2, .page-resources__dark-section h3 {
  color: var(--primary-color);
}

/* 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-color: var(--background-dark);
}

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

.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;
  object-fit: cover;
  pointer-events: none; /* Prevents video controls from blocking 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.3);
  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: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  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 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  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.15);
  border: none;
  cursor: pointer;
}

.page-resources__play-now-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-resources__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-resources__title-description {
  font-size: 1.2em;
  color: var(--text-color-dark);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-resources__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
  text-align: center;
}

.page-resources__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Intro Section */
.page-resources__intro-section p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--text-color-dark);
}

.page-resources__intro-section ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-resources__intro-section li {
  margin-bottom: 10px;
}

.page-resources__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Guide Section */
.page-resources__guide-section ol {
  list-style: decimal inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-resources__guide-section li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-resources__guide-section p {
  color: var(--text-color-light);
  font-size: 1.05em;
  margin-bottom: 20px;
}

.page-resources__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-resources__product-card {
  background-color: var(--card-background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources__product-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources__product-description {
  font-size: 0.95em;
  color: var(--text-color-dark);
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-resources__product-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__product-button:hover {
  background-color: #e6c200;
}

/* Transactions Section */
.page-resources__transaction-steps {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources__step-card {
  background-color: var(--card-background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-resources__step-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.page-resources__step-card h3 {
  color: var(--secondary-color);
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-resources__step-card p {
  color: var(--text-color-dark);
  margin-bottom: 20px;
}

.page-resources__step-card ol {
  list-style: decimal inside;
  text-align: left;
  margin: 0 auto 20px auto;
  padding-left: 20px;
  color: var(--text-color-dark);
}

.page-resources__step-card li {
  margin-bottom: 8px;
}

/* App Section */
.page-resources__app-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-resources__app-text {
  flex: 1;
  color: var(--text-color-light);
}

.page-resources__app-text h2 {
  color: var(--primary-color);
}

.page-resources__app-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-resources__app-text ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 30px;
}

.page-resources__app-text li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-resources__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.page-resources__faq-question:hover {
  background: var(--background-light);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none; /* Prevents h3 from blocking click event */
}

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

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

.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 20px;
  opacity: 0;
  background: var(--background-light);
  color: var(--text-color-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
}

.page-resources__faq-answer p {
  margin-bottom: 15px;
}

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

.page-resources__blog-item {
  background-color: var(--card-background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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.15);
}

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

.page-resources__blog-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: var(--text-color-dark);
}

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

.page-resources__blog-item-excerpt {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-resources__blog-item-date {
  font-size: 0.85em;
  color: #777;
}

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

/* Contact Section */
.page-resources__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__contact-card {
  background-color: var(--background-dark);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
}

.page-resources__contact-card h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-resources__contact-card p {
  font-size: 1.05em;
  margin-bottom: 25px;
}

/* General Image Styling */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-resources h2 {
    font-size: 2em;
  }

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

  .page-resources__app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__app-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources h1 {
    font-size: 2.2em;
  }

  .page-resources h2 {
    font-size: 1.8em;
  }

  .page-resources__title-description {
    font-size: 1em;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-resources__section-spacing {
    padding: 40px 0;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  /* Video Section 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-resources__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }
  
  .page-resources__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-resources__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  /* Image Responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__section, .page-resources__card, .page-resources__container, .page-resources__product-card, .page-resources__blog-item, .page-resources__step-card, .page-resources__contact-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__intro-section ul, .page-resources__app-text ul {
    margin-left: 0;
    padding-left: 20px;
  }

  .page-resources__transaction-steps {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

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