:root {
  --primary-color: #002060; /* Deep Royal Blue */
  --secondary-color: #FFD700; /* Bright Gold */
  --accent-color: #FF8C00; /* Dark Orange for subtle highlights */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #001a4d; /* Slightly darker than primary for contrast */
  --border-color: #e0e0e0;
}

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

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

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

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

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

.page-resources .section-title .page-resources.section-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources .section-title .page-resources.section-link:hover {
  text-decoration: underline;
}

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

.page-resources .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-resources .cta-button:hover {
  background: var(--accent-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.page-resources .secondary-button {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

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

.page-resources .cta-wrapper {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.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;
}

/* 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, var(--primary-color) 0%, var(--background-dark) 100%);
}

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

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

.page-resources.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources.hero-title .page-resources.hero-link {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-resources.hero-title .page-resources.hero-link:hover {
  text-decoration: underline;
}

.page-resources.hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-color-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-resources .category-card .page-resources.card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

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

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

.page-resources .category-card .page-resources.card-text {
  font-size: 16px;
  color: var(--text-color-dark);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-resources .category-card .page-resources.card-text .page-resources.card-link {
  color: var(--primary-color);
}

.page-resources .category-card .page-resources.card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources .category-card .page-resources.card-button:hover {
  background-color: var(--accent-color);
  color: var(--text-color-light);
}

/* Article List */
.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .article-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-resources .article-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-resources .article-title .page-resources.article-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources .article-title .page-resources.article-link:hover {
  text-decoration: underline;
}

.page-resources .article-excerpt {
  font-size: 15px;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources .article-excerpt .page-resources.article-link {
  color: var(--primary-color);
}

.page-resources .read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources .read-more-button:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Info Grid (Security & Support) */
.page-resources .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources .info-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .info-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources .info-card .page-resources.card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources .info-card .page-resources.card-text {
  font-size: 16px;
  color: var(--text-color-dark);
}

.page-resources .info-card .page-resources.card-link {
  color: var(--primary-color);
}

/* FAQ Section */
.page-resources .faq-container {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.faq-question:hover {
  background: var(--background-light);
}

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

.faq-question h3 .page-resources.link-text {
  color: var(--primary-color);
}

.faq-question .page-resources.faq-link {
  color: var(--primary-color);
}

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

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

.faq-answer p {
  margin: 0;
  padding-bottom: 15px;
  font-size: 16px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 15px 20px;
  transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

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

.faq-answer .page-resources.faq-link {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .section-title {
    font-size: 30px;
  }
  .page-resources .section-description {
    font-size: 16px;
  }
  .page-resources .hero-title {
    font-size: 38px;
  }
  .page-resources .hero-description {
    font-size: 18px;
  }
  .page-resources .category-grid, .page-resources .article-list, .page-resources .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources .section-padding {
    padding: 40px 0;
  }
  .page-resources .hero-section {
    padding: 40px 15px;
  }
  .page-resources .hero-title {
    font-size: 32px;
  }
  .page-resources .hero-description {
    font-size: 16px;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-resources .category-card .page-resources.card-title {
    font-size: 20px;
  }
  .page-resources .article-title {
    font-size: 18px;
  }
  .page-resources .info-card .page-resources.card-title {
    font-size: 20px;
  }
  .faq-question h3 {
    font-size: 16px;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer p {
    font-size: 14px;
  }
  .page-resources .cta-wrapper {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-title {
    font-size: 28px;
  }
  .page-resources .hero-description {
    font-size: 14px;
  }
  .page-resources .section-title {
    font-size: 24px;
  }
  .page-resources .section-description {
    font-size: 14px;
  }
  .page-resources .category-grid, .page-resources .article-list, .page-resources .info-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .category-card img {
    height: 180px;
  }
  .page-resources .article-item img {
    height: 180px;
  }
  .page-resources .info-card {
    padding: 20px;
  }
  .faq-question {
    padding: 12px 15px;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 12px 15px;
  }
}