/* style/resources.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark-bg: #f0f0f0;
  --text-color-light-bg: #121212;
  --background-dark: #121212;
  --card-background-dark-theme: rgba(255, 255, 255, 0.1);
  --border-color-dark-theme: rgba(255, 255, 255, 0.2);
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark);
}

.page-resources__main-content-wrapper {
  padding-top: 120px; /* Adjust for fixed header */
}

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

.page-resources__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-color-dark-bg);
}

/* Hero Section */
.page-resources__hero-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.6)), url('[GALLERY:bg:98win01,hero,resources,1920x1080]') no-repeat center center/cover;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

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

.page-resources__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-resources__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light-bg); /* Dark text on bright gold for contrast */
}

.page-resources__btn-primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
  background: var(--secondary-color);
  color: #ffffff;
}

.page-resources__btn-secondary:hover {
  background: #6f0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Categories Section */
.page-resources__categories-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
}

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

.page-resources__category-card {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-resources__category-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources__category-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__card-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #ffd700; /* Lighter gold on hover */
}

.page-resources__category-text {
  font-size: 16px;
  color: var(--text-color-dark-bg);
}

/* Guides Section */
.page-resources__guides-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
}

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

.page-resources__guide-item {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark-bg);
}

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

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

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

.page-resources__guide-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__guide-excerpt {
  font-size: 15px;
  margin-bottom: 15px;
  color: var(--text-color-dark-bg);
}

.page-resources__read-more-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__read-more-link:hover {
  color: #e6b800;
}

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

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

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-color-dark-bg);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-background-dark-theme);
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  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: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

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

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: var(--primary-color);
  transform: rotate(45deg); /* Optional: Rotate for 'x' effect */
}

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

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

.page-resources__blog-item {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark-bg);
}

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

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

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

.page-resources__blog-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__blog-excerpt {
  font-size: 15px;
  margin-bottom: 15px;
  color: var(--text-color-dark-bg);
}

.page-resources__blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #999;
}

.page-resources__blog-cta {
  margin-top: 50px;
}

/* About Section (Platform Features) */
.page-resources__about-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
}

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

.page-resources__feature-item {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark-bg);
}

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

.page-resources__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__feature-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__feature-text {
  font-size: 16px;
  color: var(--text-color-dark-bg);
}

/* Contact Section */
.page-resources__contact-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
}

.page-resources__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__contact-item {
  background: var(--card-background-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: var(--text-color-dark-bg);
}

.page-resources__contact-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__contact-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: var(--text-color-dark-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__hero-description, .page-resources__section-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-resources__main-content-wrapper {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
  }

  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-resources__hero-title {
    font-size: 32px;
  }

  .page-resources__hero-description {
    font-size: 16px;
  }

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

  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources__categories-section, 
  .page-resources__guides-section, 
  .page-resources__faq-section, 
  .page-resources__blog-section, 
  .page-resources__about-section, 
  .page-resources__contact-section {
    padding: 40px 15px;
  }

  .page-resources__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-resources__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-resources__category-grid, 
  .page-resources__guide-grid, 
  .page-resources__blog-grid, 
  .page-resources__features-grid, 
  .page-resources__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__category-card, 
  .page-resources__guide-item, 
  .page-resources__blog-item, 
  .page-resources__feature-item, 
  .page-resources__contact-item {
    padding: 20px;
  }

  .page-resources__category-icon, .page-resources__feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .page-resources__category-title, .page-resources__guide-title, .page-resources__blog-title, .page-resources__feature-title, .page-resources__contact-title {
    font-size: 20px;
  }

  .page-resources__category-text, .page-resources__guide-excerpt, .page-resources__blog-excerpt, .page-resources__feature-text, .page-resources__contact-text, .page-resources__faq-answer p {
    font-size: 15px;
  }

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

  .page-resources__faq-question h3 {
    font-size: 16px;
  }

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

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

  .page-resources__blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /* Image and Video responsive rules */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}