/* style/resources.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Deep Red */
  --dark-background: #1a1a1a; /* Dark grey for background */
  --light-text-color: #f0f0f0;
  --dark-text-color: #333;
  --card-background: #282828;
  --border-color: #444;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  color: var(--light-text-color);
  background-color: var(--dark-background);
  line-height: 1.6;
}

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

/* Hero Section */
.page-resources .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(220, 20, 60, 0.1));
}

.page-resources .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources .hero-content h1 {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-resources .hero-content p {
  font-size: 1.2em;
  color: var(--light-text-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-resources .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources .cta-button:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: var(--dark-text-color);
}

/* General Section Styling */
.page-resources section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-resources h3 {
  font-size: 1.8em;
  color: var(--light-text-color);
  margin-bottom: 15px;
}

.page-resources p {
  font-size: 1em;
  color: var(--light-text-color);
  margin-bottom: 20px;
}

.page-resources a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Guides Section */
.page-resources .guide-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources .category-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources .category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-resources .category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-resources .category-card h3 {
  padding: 15px 20px 10px;
  margin: 0;
  font-size: 1.5em;
}

.page-resources .category-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources .category-card h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources .category-card p {
  padding: 0 20px;
  margin-bottom: 20px;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-resources .category-card .read-more {
  display: block;
  padding: 15px 20px;
  background-color: var(--secondary-color);
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  transition: background-color 0.3s ease;
}

.page-resources .category-card .read-more:hover {
  background-color: var(--primary-color);
  color: var(--dark-text-color);
}

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

.page-resources .article-item {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources .article-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-resources .article-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-resources .article-content h3 {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources .article-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources .article-content h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources .article-content p {
  font-size: 0.95em;
  color: var(--light-text-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources .article-content .read-more {
  align-self: flex-start;
  padding: 8px 15px;
  background-color: var(--secondary-color);
  color: #ffffff;
  border-radius: 5px;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-resources .article-content .read-more:hover {
  background-color: var(--primary-color);
  color: var(--dark-text-color);
}

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

.page-resources .safety-item {
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-resources .safety-item h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-resources .safety-item p {
  color: var(--light-text-color);
}

.page-resources .safety-section .cta-button {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-resources .faq-items {
  margin-top: 40px;
}

.page-resources .faq-item {
  margin-bottom: 15px;
}

.page-resources .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-resources .faq-question:hover {
  background: #333;
  border-color: var(--primary-color);
}

.page-resources .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--light-text-color);
}

.page-resources .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-resources .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-resources .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: #222;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-resources .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
  border-color: var(--primary-color);
}

.page-resources .faq-answer p {
  margin: 0;
  color: var(--light-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources .hero-content h1 {
    font-size: 2.8em;
  }
  .page-resources h2 {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 40px 15px;
  }
  .page-resources .hero-content h1 {
    font-size: 2.2em;
  }
  .page-resources .hero-content p {
    font-size: 1.1em;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources h2 {
    font-size: 1.8em;
  }
  .page-resources h3 {
    font-size: 1.5em;
  }
  .page-resources .guide-categories, .page-resources .article-list, .page-resources .safety-content {
    grid-template-columns: 1fr;
  }
  .page-resources .category-card, .page-resources .article-item, .page-resources .safety-item {
    margin-bottom: 20px;
  }
  .page-resources .faq-question {
    padding: 15px 20px;
  }
  .page-resources .faq-question h3 {
    font-size: 1.1em;
  }
  .page-resources .faq-toggle {
    font-size: 20px;
  }
  .page-resources .faq-answer {
    padding: 0 20px;
  }
  .page-resources .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-content h1 {
    font-size: 1.8em;
  }
  .page-resources .hero-content p {
    font-size: 0.95em;
  }
  .page-resources h2 {
    font-size: 1.6em;
  }
  .page-resources h3 {
    font-size: 1.3em;
  }
  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-resources .article-content h3 {
    font-size: 1.2em;
  }
}