/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0;
  background-color: #1A202C;
  line-height: 1.6;
}

.page-resources .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 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, #1A202C, #2C3A47);
  overflow: hidden;
}

.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;
  z-index: 1;
}

.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 10px 30px rgba(0, 0, 0, 0.5);
}

.page-resources .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  background-color: rgba(26, 32, 44, 0.7);
  padding: 30px;
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-resources .hero-content h1 {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources .hero-content p {
  font-size: 1.2em;
  color: #E0E0E0;
  margin-bottom: 30px;
}

.page-resources .hero-content p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-resources .hero-content p a:hover {
  text-decoration: underline;
}

.page-resources .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

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

/* General Section Styling */
.page-resources section {
  padding: 80px 0;
  text-align: center;
}

.page-resources section:nth-of-type(even) {
  background-color: #2C3A47;
}

.page-resources section h2 {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-resources section p {
  font-size: 1.1em;
  color: #B0B0B0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Guide Grid */
.page-resources .guides-section {
  background-color: #1A202C;
}

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

.page-resources .guide-card {
  background-color: #2C3A47;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources .guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-resources .guide-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-resources .guide-card h3 {
  font-size: 1.6em;
  color: #FFD700;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-resources .guide-card p {
  font-size: 1em;
  color: #B0B0B0;
  padding: 0 20px 20px;
  margin: 0;
  flex-grow: 1;
}

.page-resources .guide-card .btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources .guide-card .btn-small:hover {
  background-color: #E6C200;
}

.page-resources .guide-card .card-link {
  color: #FFD700;
  text-decoration: none;
}

.page-resources .guide-card .card-link:hover {
  text-decoration: underline;
}

/* Latest News Section */
.page-resources .latest-news {
  background-color: #2C3A47;
}

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

.page-resources .news-item {
  background-color: #1A202C;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-resources .news-item img {
  width: 350px; /* Fixed width for desktop */
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-resources .news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.page-resources .news-content h3 {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources .news-content p {
  font-size: 1em;
  color: #B0B0B0;
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: left;
}

.page-resources .news-content .news-date {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 15px;
  display: block;
}

.page-resources .news-content .btn-small {
  align-self: flex-start;
  margin-top: auto;
}

.page-resources .news-content .card-link {
  color: #FFD700;
  text-decoration: none;
}

.page-resources .news-content .card-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-resources .faq-section {
  background-color: #1A202C;
}

.page-resources .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2C3A47;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #2C3A47;
  border: 1px solid #3A4B5C;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-resources .faq-question:hover {
  background: #3A4B5C;
}

.page-resources .faq-question h3 {
  font-size: 1.3em;
  color: #FFD700;
  margin: 0;
  text-align: left;
  flex-grow: 1;
}

.page-resources .faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

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

.page-resources .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #1A202C;
  color: #E0E0E0;
  border-top: 1px solid #3A4B5C;
}

.page-resources .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px;
}

.page-resources .faq-answer p {
  margin: 0;
  text-align: left;
  color: #B0B0B0;
}

.page-resources .faq-answer p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-resources .faq-answer p a:hover {
  text-decoration: underline;
}

/* Contact CTA Section */
.page-resources .contact-cta {
  background-color: #2C3A47;
  padding: 60px 0;
}

.page-resources .contact-cta h2 {
  color: #FFD700;
}

.page-resources .contact-cta p {
  max-width: 700px;
  margin: 0 auto 30px;
}

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

  .page-resources section h2 {
    font-size: 2.4em;
  }

  .page-resources .news-item img {
    width: 280px;
    height: 180px;
  }

  .page-resources .news-content h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 40px 15px;
  }

  .page-resources .hero-content {
    padding: 20px;
    margin-top: -60px;
  }

  .page-resources .hero-content h1 {
    font-size: 2.2em;
  }

  .page-resources .hero-content p {
    font-size: 1em;
  }

  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-resources section {
    padding: 60px 0;
  }

  .page-resources section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-resources section h2::after {
    width: 60px;
    height: 3px;
  }

  .page-resources section p {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources .guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-resources .guide-card img {
    height: 180px;
  }

  .page-resources .guide-card h3 {
    font-size: 1.4em;
  }

  .page-resources .news-item {
    flex-direction: column;
  }

  .page-resources .news-item img {
    width: 100%;
    height: 200px;
  }

  .page-resources .news-content {
    padding: 20px;
  }

  .page-resources .news-content h3 {
    font-size: 1.5em;
  }

  .page-resources .faq-question {
    padding: 15px;
  }

  .page-resources .faq-question h3 {
    font-size: 1.1em;
  }

  .page-resources .faq-toggle {
    font-size: 1.8em;
  }

  .page-resources .faq-answer {
    padding: 0 15px;
  }

  .page-resources .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-content h1 {
    font-size: 1.8em;
  }

  .page-resources .hero-content p {
    font-size: 0.9em;
  }

  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }

  .page-resources section h2 {
    font-size: 1.8em;
  }

  .page-resources .guide-grid {
    grid-template-columns: 1fr;
  }

  .page-resources .guide-card h3 {
    font-size: 1.3em;
  }

  .page-resources .news-content h3 {
    font-size: 1.3em;
  }

  .page-resources .faq-question h3 {
    font-size: 1em;
  }

  .page-resources .faq-toggle {
    font-size: 1.5em;
  }
}