:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-dark: #121212;
  --background-light: #f5f5f5;
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --card-background-light: #ffffff;
}

/* Base styles for the page-resources scope */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark); /* Inherited from shared.css body */
}

/* Ensure content is not hidden by fixed header */
.page-resources__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #061524 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-resources__main-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* General Section Styles */
.page-resources__guides-section,
.page-resources__tips-section,
.page-resources__faq-section,
.page-resources__news-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

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

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

/* Guides Grid */
.page-resources__guides-grid,
.page-resources__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__guide-card,
.page-resources__news-card {
  background: var(--card-background-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-color-light);
}

.page-resources__guide-card:hover,
.page-resources__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__guide-card-image,
.page-resources__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-resources__guide-card-content,
.page-resources__news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__guide-card-title,
.page-resources__news-card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__guide-card-title a,
.page-resources__news-card-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__guide-card-title a:hover,
.page-resources__news-card-title a:hover {
  color: #e6c200;
}

.page-resources__guide-card-excerpt,
.page-resources__news-card-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

.page-resources__arrow {
  transition: transform 0.3s ease;
}

.page-resources__read-more-link:hover .page-resources__arrow {
  transform: translateX(5px);
}

.page-resources__news-card-date {
  font-size: 0.85em;
  color: #888888;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Tips Section */
.page-resources__dark-section {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-resources__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
}

.page-resources__tip-item {
  background: var(--card-background-dark);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__tip-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__tip-item p {
  color: #cccccc;
}

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

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

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

.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.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;
  color: #cccccc;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg); /* No rotation for -/+ */
  color: var(--secondary-color);
}

.page-resources__cta-bottom {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__guide-card-image,
  .page-resources__news-card-image {
    height: 180px;
  }
  .page-resources__guide-card-title,
  .page-resources__news-card-title {
    font-size: 1.3em;
  }
  .page-resources__tip-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources__main-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__guides-section,
  .page-resources__tips-section,
  .page-resources__faq-section,
  .page-resources__news-section {
    padding: 60px 0;
  }

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

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

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

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

  .page-resources__guide-card-image,
  .page-resources__news-card-image {
    height: 160px;
  }

  .page-resources__guide-card-title,
  .page-resources__news-card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

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

  .page-resources__tip-item {
    padding: 20px;
  }

  .page-resources__tip-title {
    font-size: 1.1em;
  }

  .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-answer {
    padding: 15px !important;
  }

  .page-resources__cta-bottom {
    margin-top: 40px;
    padding: 0 15px;
  }
  .page-resources__cta-bottom .page-resources__cta-button {
    width: 100% !important;
  }
  
  /* Image responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__guide-card-image,
  .page-resources__news-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Ensure height adjusts */
  }
  
  .page-resources__guide-card,
  .page-resources__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}