/* style/resources.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #000000;
  --text-light: #ffffff;
  --background-dark: #000000;
  --background-light: #f5f5f5;
  --button-login-color: #EA7C07;
}

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so default text is light */
  background-color: var(--background-dark);
}

.page-resources__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: var(--primary-color);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
  margin-bottom: 30px;
}

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

.page-resources__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7);
}

.page-resources__category-section,
.page-resources__featured-guide-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 60px 20px;
}

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

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

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

.page-resources__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

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

.page-resources__category-card {
  display: block;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-resources__card-title {
  font-size: 1.5em;
  padding: 15px 20px 10px;
  color: var(--text-light);
}

.page-resources__card-text {
  padding: 0 20px 20px;
  font-size: 0.95em;
  opacity: 0.8;
}

.page-resources__guide-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-resources__guide-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-text-block {
  flex: 1;
}

.page-resources__guide-subtitle {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-resources__guide-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources__guide-list li {
  margin-bottom: 10px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-resources__btn-primary:hover {
  background-color: #1e8fc7;
  border-color: #1e8fc7;
}

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

.page-resources__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-resources__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: var(--text-dark);
}

.page-resources__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-resources__faq-answer {
  padding: 0 25px 18px;
  font-size: 0.95em;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-resources__cta-section .page-resources__section-title {
  color: var(--text-light);
}

.page-resources__cta-section .page-resources__section-description {
  color: var(--text-light);
  opacity: 0.9;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__guide-content {
    flex-direction: column;
    align-items: center;
  }
  .page-resources__guide-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources__main-title {
    font-size: 2.2em;
  }
  .page-resources__intro-text {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__hero-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__category-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__guide-subtitle {
    font-size: 1.5em;
  }
  .page-resources__hero-section,
  .page-resources__category-section,
  .page-resources__featured-guide-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__category-card,
  .page-resources__guide-content,
  .page-resources__hero-image-wrapper,
  .page-resources__hero-content,
  .page-resources__container,
  .page-resources__faq-list,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__category-card .page-resources__card-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__hero-content {
    margin-bottom: 20px;
  }
  .page-resources__hero-buttons {
    gap: 10px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px 15px;
  }
}