/* Resources Page Styles */

/* Resources Hero */
.resources-hero {
  background-color: #e3f2fd;
  background-image: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.8)),
    url("/media/images/resources/hero.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.resources-hero h1,
.resources-hero p {
  color: #fff;
}

/* Resources Navigation */
.resources-nav {
  background-color: #f8f9fa;
  padding: 1rem 0;
  margin-bottom: 3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.resources-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.resources-nav li {
  margin: 0.5rem 1rem;
}

.resources-nav a {
  color: #1a5276;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.resources-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3498db;
  transition: width 0.3s ease;
}

.resources-nav a:hover {
  color: #3498db;
}

.resources-nav a:hover::after {
  width: 100%;
}

/* Resources Sections */
.resources-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.resources-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #1a5276;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.resources-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: #1a5276;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-content p {
  margin-bottom: 1.25rem;
  color: #666;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: #3498db;
  text-decoration: none;
  position: relative;
}

.read-more::after {
  content: "→";
  margin-left: 0.25rem;
  transition: margin-left 0.3s ease;
}

.read-more:hover::after {
  margin-left: 0.5rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background-color: #f8f9fa;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #e3f2fd;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
  color: #1a5276;
}

.faq-toggle {
  font-size: 1.5rem;
  color: #3498db;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

/* Helpful Links */
.links-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.link-category {
  margin-bottom: 2rem;
}

.link-category h3 {
  color: #1a5276;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.link-category ul {
  list-style: none;
  padding: 0;
}

.link-category li {
  margin-bottom: 0.75rem;
}

.link-category a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.link-category a:hover {
  color: #1a5276;
  padding-left: 5px;
}

/* Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.video-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: #1a5276;
}

.video-card p {
  padding: 0 1.5rem 1.5rem;
  color: #666;
}

/* Newsletter Section */
.newsletter-section {
  background-color: #f8f9fa;
  padding: 4rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.newsletter-section h2 {
  color: #1a5276;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.newsletter-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.newsletter-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form .form-group {
  display: flex;
}

.newsletter-form input[type="email"] {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.newsletter-form .submit-button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .links-container {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .resources-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .resources-nav li {
    margin: 0.25rem 0;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .newsletter-form .form-group {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    border-radius: 4px;
    margin-bottom: 1rem;
  }

  .newsletter-form .submit-button {
    border-radius: 4px;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .resources-section {
    padding: 3rem 1.5rem;
  }

  .newsletter-section {
    padding: 3rem 1.5rem;
  }
}
