/* style/resources.css */

/* Base Styles for Resources Page */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Use transparent to inherit body background */
}

/* Fixed header spacing */
.page-resources__hero-banner {
  padding-top: 120px; /* Desktop spacing for fixed header */
  background: linear-gradient(135deg, #0d0d0d, #2a2a2a);
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for title */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__hero-link {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__hero-link:hover {
  color: #ffffff;
}

.page-resources__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* General Section Styles */
.page-resources__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__section:last-of-type {
  border-bottom: none;
}

.page-resources__section--introduction {
  background-color: #000000;
}

.page-resources__section--guides {
  background-color: #0d0d0d;
}

.page-resources__section--promotions {
  background-color: #1a1a1a;
}

.page-resources__section--faq {
  background-color: #000000;
}

.page-resources__section--blog {
  background-color: #0d0d0d;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__subsection-title {
  font-size: 1.8em;
  color: #8B0000; /* Dark red for sub-titles */
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
  text-align: left;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__text-link {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__text-link:hover {
  color: #ffffff;
}

/* Buttons */
.page-resources__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-resources__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black text for contrast */
  border: 2px solid #FFD700;
}

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

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

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

.page-resources__btn--tertiary {
  background-color: #8B0000; /* Dark Red */
  color: #ffffff;
  border: 2px solid #8B0000;
  margin-top: 15px;
}

.page-resources__btn--tertiary:hover {
  background-color: #a00000;
  border-color: #a00000;
}

.page-resources__btn--download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #4a4a4a;
  padding: 12px 25px;
  font-size: 1em;
}

.page-resources__btn--download:hover {
  background-color: #4a4a4a;
  border-color: #6a6a6a;
}

.page-resources__btn--download img {
  width: 28px; /* Ensure icon is not too small */
  height: 28px;
  object-fit: contain;
  display: block;
}

.page-resources__btn--center {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
}

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white for dark background */
  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;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-resources__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-resources__card-image {
  width: 100%;
  height: 220px; /* Ensure images are not small */
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 1.4em;
  color: #FFD700; /* Gold for card titles */
  padding: 15px 20px 10px;
  margin: 0;
  font-weight: bold;
}

.page-resources__card-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-resources__card-link-text {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__card-link-text:hover {
  color: #ffffff;
}

.page-resources__app-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

/* List Styles */
.page-resources__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources__list-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.05em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 30px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a; /* Darker background for FAQ answer */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a; /* Dark background for FAQ question */
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #2a2a2a;
  border-color: #5a5a5a;
}

.page-resources__faq-question:active {
  background: #3a3a3a;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Gold for FAQ questions */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

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

.page-resources__blog-card {
  background: rgba(255, 255, 255, 0.05);
  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;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-resources__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-resources__blog-card-image {
  width: 100%;
  height: 200px; /* Ensure images are not small */
  object-fit: cover;
  display: block;
}

.page-resources__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__blog-card-title {
  font-size: 1.3em;
  color: #FFD700; /* Gold for blog titles */
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.4;
}

.page-resources__blog-card-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__blog-card-date {
  font-size: 0.85em;
  color: #999999;
  text-align: right;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__subsection-title {
    font-size: 1.6em;
  }
  .page-resources__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-resources__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 100px; /* Mobile spacing for fixed header */
    padding-bottom: 40px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn {
    padding: 12px 25px;
    font-size: 1em;
    width: 80%;
    max-width: 300px;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__subsection-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-resources__text-block {
    font-size: 0.95em;
  }
  .page-resources__card-grid, .page-resources__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card-image, .page-resources__blog-card-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-resources__card-title, .page-resources__blog-card-title {
    font-size: 1.2em;
  }
  .page-resources__card-description, .page-resources__blog-card-excerpt {
    font-size: 0.9em;
  }
  .page-resources__list-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
  }
  .page-resources__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__app-download-links {
    flex-direction: column;
    align-items: center;
  }
  .page-resources__btn--download {
    width: 80%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__subsection-title {
    font-size: 1.2em;
  }
  .page-resources__btn {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-resources__card-image, .page-resources__blog-card-image {
    height: 150px;
  }
}