/* style/resources.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-grey: #f8f9fa;
  --bg-dark-blue: #003366; /* A darker shade of blue for contrast */
}

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

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

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

.page-resources .section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources .section-title.text-white {
  color: var(--text-light);
}

.page-resources .section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources .section-description.text-white {
  color: var(--text-light);
}

/* 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-color: var(--primary-color); /* Fallback color */
}

.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-main {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

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

.page-resources .hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: bold;
  line-height: 1.2;
}

.page-resources .hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--text-light);
}

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

.page-resources .cta-button:hover {
  background: darken(var(--secondary-color), 10%); /* Darken for hover effect */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-resources .button {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.page-resources .button-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources .button-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-resources .button-secondary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-resources .button-secondary:hover {
  background-color: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-resources .button-light {
  background-color: var(--text-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.page-resources .button-light:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Content Grid */
.page-resources .content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources .grid-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .grid-item-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.page-resources .grid-item h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  min-height: 60px; /* Ensure consistent title height */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-resources .grid-item h3 a:hover {
  color: var(--secondary-color);
}

.page-resources .grid-item p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
  min-height: 90px; /* Ensure consistent paragraph height */
}

.page-resources .grid-item ul {
  text-align: left;
  list-style-type: disc;
  margin: 0 0 20px 20px;
  color: var(--text-dark);
}

.page-resources .grid-item ul li {
  margin-bottom: 8px;
  font-size: 15px;
}

.page-resources .content-grid-alt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources .grid-item-alt {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .grid-item-alt:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .grid-item-alt h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

.page-resources .grid-item-alt h3 a:hover {
  color: var(--secondary-color);
}

.page-resources .grid-item-alt p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Link Grid */
.page-resources .link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-resources .link-item {
  background: var(--bg-dark-blue);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources .link-item:hover {
  transform: translateY(-5px);
  background-color: #004488; /* Slightly lighter dark blue on hover */
}

.page-resources .link-item h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

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

.page-resources .link-item h3 a:hover {
  color: var(--text-light);
}

.page-resources .link-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* Background colors */
.page-resources .bg-light-grey {
  background-color: var(--bg-light-grey);
}

.page-resources .bg-dark-blue {
  background-color: var(--bg-dark-blue);
}

.page-resources .text-white {
  color: var(--text-light);
}

/* FAQ Section */
.page-resources .faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fdfdfd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 15px 25px;
  border-top: 1px solid #e0e0e0;
}

.faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.faq-answer .button-primary {
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .section-title {
    font-size: 30px;
  }
  .page-resources .hero-content h1 {
    font-size: 38px;
  }
  .page-resources .hero-content p {
    font-size: 18px;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-resources .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources .content-grid-alt {
    grid-template-columns: 1fr;
  }
  .page-resources .link-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources .section-padding {
    padding: 40px 0;
  }
  .page-resources .container {
    padding: 0 15px;
  }
  .page-resources .section-title {
    font-size: 26px;
  }
  .page-resources .section-description {
    font-size: 16px;
  }
  .page-resources .hero-section {
    padding: 40px 15px;
  }
  .page-resources .hero-content h1 {
    font-size: 32px;
  }
  .page-resources .hero-content p {
    font-size: 16px;
  }
  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 16px;
  }
  .page-resources .grid-item h3 {
    font-size: 20px;
  }
  .page-resources .grid-item p {
    font-size: 15px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 16px;
  }
  .faq-toggle {
    font-size: 24px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 12px 20px;
  }
  .page-resources .link-grid {
    grid-template-columns: 1fr;
  }
}