/* style/resources.css */
:root {
  --primary-color: #0056B3; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #0a2e4a;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-resources__hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a2e4a 100%);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px; /* Adjusted to be a banner, not a full hero */
}

.page-resources__hero-banner h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-resources__hero-banner p {
  font-size: 1.3em;
  max-width: 800px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources__cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
}

.page-resources__cta-button--small {
  padding: 10px 25px;
  font-size: 1em;
}

.page-resources__cta-button--large {
  padding: 18px 50px;
  font-size: 1.4em;
}

.page-resources__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources__introduction p {
  text-align: justify;
  margin-bottom: 15px;
}

.page-resources__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-resources__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-resources__text-content {
  flex: 1;
}

.page-resources__text-content h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__text-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-resources__image-content {
  flex: 1;
  min-width: 300px;
}

.page-resources__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

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

.page-resources__card {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.page-resources__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-resources__card-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: var(--secondary-color);
}

.page-resources__card p {
  padding: 0 20px;
  margin-bottom: 20px;
  font-size: 0.95em;
  text-align: justify;
}

.page-resources__card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
  background-color: #e6c200;
}

/* FAQ Styles */
.page-resources__faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-background);
}

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

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

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

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

.page-resources__cta-final {
  text-align: center;
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 20px;
}

.page-resources__cta-final .page-resources__section-title {
  color: var(--secondary-color);
}

.page-resources__cta-final .page-resources__section-title::after {
  background-color: var(--primary-color);
}

.page-resources__cta-final p {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-banner h1 {
    font-size: 2.8em;
  }
  .page-resources__hero-banner p {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__content-wrapper {
    flex-direction: column;
  }
  .page-resources__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-resources__text-content h3 {
    font-size: 1.6em;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding: 60px 15px;
  }
  .page-resources__hero-banner h1 {
    font-size: 2.2em;
  }
  .page-resources__hero-banner p {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 15px;
  }
  .page-resources__cta-final {
    padding: 60px 15px;
  }
  .page-resources__cta-final h2 {
    font-size: 2em;
  }
  .page-resources__cta-final p {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-button--large {
    padding: 15px 40px;
    font-size: 1.2em;
  }
}idth: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

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

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

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
    flex-grow: 1;
    text-align: left;
}

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

.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 20px;
    background: var(--bg-light);
    color: #444;
}

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

.faq-answer p {
    margin: 0;
}

/* Blog Posts */
.page-resources .blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-resources .post-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-resources .post-title {
    font-size: 1.4em;
    padding: 15px 20px 0;
    margin-bottom: 10px;
}

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

.page-resources .post-title a:hover {
    color: var(--primary-color);
}

.page-resources .post-excerpt {
    padding: 0 20px;
    color: #666;
    margin-bottom: 15px;
}

.page-resources .post-date {
    display: block;
    padding: 0 20px 20px;
    font-size: 0.9em;
    color: #888;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources .hero-content h1 {
        font-size: 2.5em;
    }
    .page-resources .section-title {
        font-size: 2em;
    }
    .page-resources .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources .cta-button.large-button {
        font-size: 1.1em;
        padding: 15px 40px;
    }
}

@media (max-width: 768px) {
    .page-resources .hero-banner {
        padding: 40px 15px;
    }
    .page-resources .hero-content h1 {
        font-size: 2em;
    }
    .page-resources .hero-content p {
        font-size: 1em;
    }
    .page-resources .section-padding {
        padding: 40px 0;
    }
    .page-resources .section-title {
        font-size: 1.8em;
    }
    .page-resources .section-description {
        font-size: 0.95em;
    }
    .page-resources .guide-item, .page-resources .category-card, .page-resources .policy-item, .page-resources .transaction-item, .page-resources .post-card {
        padding: 20px;
    }
    .page-resources .guide-title, .page-resources .card-title, .page-resources .policy-title, .page-resources .transaction-title {
        font-size: 1.3em;
    }
    .page-resources .faq-question {
        padding: 15px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 15px;
    }
    .faq-item.active .faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources .hero-content h1 {
        font-size: 1.8em;
    }
    .page-resources .section-title {
        font-size: 1.6em;
    }
    .page-resources .cta-button {
        width: 100%;
        box-sizing: border-box;
    }
    .page-resources .cta-button.large-button {
        width: 100%;
    }
    .page-resources .guide-item, .page-resources .category-card, .page-resources .policy-item, .page-resources .transaction-item, .page-resources .post-card {
        padding: 15px;
    }
    .page-resources .guide-title, .page-resources .card-title, .page-resources .policy-title, .page-resources .transaction-title {
        font-size: 1.2em;
    }
    .page-resources .policy-icon {
        width: 80px;
        height: 80px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
}