/* style/resources.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: #333333;
}

.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(--background-dark);
}

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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--secondary-color);
  min-height: 500px; /* Ensure hero section has a minimum height */
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-resources__hero-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-resources__hero-cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__overview-section, .page-resources__guides-section, .page-resources__news-section, .page-resources__helpful-articles-section, .page-resources__cta-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-resources__overview-section {
  background-color: var(--background-dark);
}

.page-resources__guides-section {
  background-color: #1a1a1a;
}

.page-resources__news-section {
  background-color: var(--background-dark);
}

.page-resources__helpful-articles-section {
  background-color: #1a1a1a;
}

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

.page-resources__guide-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  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;
  color: var(--text-light);
  border: 1px solid #333333;
}

.page-resources__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px 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.4em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin: 0;
  line-height: 1.3;
  font-weight: bold;
}

.page-resources__card-description {
  font-size: 0.95em;
  color: var(--text-light);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-resources__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-resources__news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__news-item {
  display: flex;
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

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

.page-resources__news-image {
  width: 35%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.page-resources__news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-resources__news-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

.page-resources__news-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources__news-title a:hover {
  text-decoration: underline;
}

.page-resources__news-excerpt {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-resources__news-date {
  font-size: 0.9em;
  color: #aaa;
}

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

.page-resources__article-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  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;
  color: var(--text-light);
  border: 1px solid #333333;
}

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

.page-resources__article-card .page-resources__card-image {
  height: 220px;
}

.page-resources__article-card .page-resources__card-title {
  font-size: 1.3em;
  padding-bottom: 5px;
  font-weight: bold;
}

.page-resources__article-card .page-resources__card-description {
  font-size: 0.9em;
  padding-top: 0;
  padding-bottom: 20px;
}

.page-resources__article-card .page-resources__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources__article-card .page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color), #000000);
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 900px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-resources__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__news-item {
    flex-direction: column;
  }
  .page-resources__news-image {
    width: 100%;
    height: 250px;
  }
  .page-resources__news-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    min-height: 400px; /* Adjust min-height for mobile hero */
  }
  
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  
  .page-resources__hero-description {
    font-size: 1em;
  }
  
  .page-resources__hero-cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  
  .page-resources__text-block {
    font-size: 1em;
  }

  .page-resources__overview-section, .page-resources__guides-section, .page-resources__news-section, .page-resources__helpful-articles-section, .page-resources__cta-section {
    padding: 40px 0;
  }

  .page-resources__grid, .page-resources__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__guide-card, .page-resources__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__news-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__news-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__news-title {
    font-size: 1.3em;
  }

  .page-resources__news-excerpt {
    font-size: 0.9em;
  }

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

  .page-resources__cta-description {
    font-size: 1em;
  }
  
  .page-resources__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure all images are responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all video elements are responsive */
  .page-resources video {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Color Contrast Fixes (if needed) */
.page-resources__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}