.page-resources {
  --primary-color: #FFD700;
  --secondary-color: #DC143C;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #2c2c2c;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
}

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

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

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

.page-resources .section-padding.bg-dark h2, 
.page-resources .section-padding.bg-dark p {
  color: var(--text-color-light);
}

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

.page-resources .text-center {
  text-align: center;
}

.page-resources .section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-resources h1 {
  font-size: 48px;
  color: var(--text-color-light);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources h2 {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-resources h3 {
  font-size: 24px;
  color: var(--text-color-dark);
  margin-bottom: 15px;
}

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

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

.page-resources p {
  font-size: 16px;
  margin-bottom: 15px;
}

.page-resources ul {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-resources li {
  margin-bottom: 5px;
}

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

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

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

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

.page-resources .button.primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.page-resources .button.secondary:hover {
  background-color: #b31031;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 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, rgba(255, 215, 0, 0.8), rgba(220, 20, 60, 0.8));
  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;
}

.page-resources .hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Limit image width in hero for better composition */
}

.page-resources .hero-image img {
  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.3);
}

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

.page-resources .hero-content h1 {
  color: var(--text-color-light);
}

.page-resources .hero-content p {
  color: var(--text-color-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 18px;
}

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

.page-resources .cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources .cta-button.large {
  padding: 18px 50px;
  font-size: 20px;
}

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

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

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

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

/* Card Styles */
.page-resources .card {
  background-color: #ffffff;
  border-radius: 8px;
  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 .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 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-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources .card-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.page-resources .card-content p {
  flex-grow: 1;
}

.page-resources .card-content .button {
  margin-top: 20px;
  align-self: flex-start;
}

/* Feature Item Styles */
.page-resources .feature-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px; /* Adjust padding to make space for content after image */
}

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

.page-resources .feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources .feature-item h3 {
  padding: 0 25px;
  margin-top: 0;
}

.page-resources .feature-item p {
  padding: 0 25px;
}

/* Promotion Card Styles */
.page-resources .promo-card {
  background-color: #ffffff;
  border-radius: 8px;
  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 .promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-resources .promo-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.page-resources .promo-content p {
  flex-grow: 1;
}

.page-resources .promo-content .button {
  margin-top: 20px;
  align-self: flex-start;
}

/* Tip Item Styles */
.page-resources .tip-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-resources .tip-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources .tip-item h3 {
  padding: 0 20px;
  margin-top: 0;
}

.page-resources .tip-item p {
  padding: 0 20px;
}

/* FAQ Styles */
.page-resources .faq-list {
  max-width: 900px;
  margin: 0 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;
}

.page-resources .faq-list .faq-item h3 {
  margin: 0;
  color: var(--text-color-dark);
  font-size: 18px;
}

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

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

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

.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-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px;
}

.faq-item.active .faq-answer p {
  margin-bottom: 0;
}

/* CTA Banner */
.page-resources .cta-banner {
  background: linear-gradient(90deg, var(--secondary-color), #8B0000);
  color: var(--text-color-light);
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources .cta-banner h2 {
  color: var(--primary-color);
  font-size: 40px;
  margin-bottom: 25px;
}

.page-resources .cta-banner p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .section-title {
    font-size: 30px;
  }

  .page-resources h1 {
    font-size: 40px;
  }

  .page-resources h2 {
    font-size: 28px;
  }

  .page-resources h3 {
    font-size: 22px;
  }

  .page-resources .grid-3-cols, 
  .page-resources .grid-2-cols, 
  .page-resources .promo-grid, 
  .page-resources .tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-resources .card-image, 
  .page-resources .feature-image, 
  .page-resources .promo-image, 
  .page-resources .tip-image {
    height: 180px;
  }

  .page-resources .cta-banner h2 {
    font-size: 32px;
  }

  .page-resources .cta-banner p {
    font-size: 18px;
  }

  .page-resources .cta-button.large {
    padding: 15px 40px;
    font-size: 18px;
  }
}

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

  .page-resources .hero-image {
    margin-bottom: 20px;
  }

  .page-resources .hero-image img {
    border-radius: 4px;
  }

  .page-resources .hero-content h1 {
    font-size: 32px;
  }

  .page-resources .hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
  }

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

  .page-resources .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-resources h2 {
    font-size: 24px;
  }

  .page-resources h3 {
    font-size: 20px;
  }

  .page-resources .card-content, 
  .page-resources .promo-content, 
  .page-resources .feature-item h3, 
  .page-resources .feature-item p, 
  .page-resources .tip-item h3, 
  .page-resources .tip-item p {
    padding: 15px;
  }

  .page-resources .card-image, 
  .page-resources .feature-image, 
  .page-resources .promo-image, 
  .page-resources .tip-image {
    height: 160px;
  }

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

  .page-resources .faq-list .faq-item h3 {
    font-size: 16px;
  }

  .faq-toggle {
    font-size: 20px;
  }

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

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

  .page-resources .cta-banner {
    padding: 60px 15px;
  }

  .page-resources .cta-banner h2 {
    font-size: 28px;
  }

  .page-resources .cta-banner p {
    font-size: 16px;
  }

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

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

  .page-resources .section-title {
    font-size: 22px;
  }

  .page-resources h2 {
    font-size: 20px;
  }

  .page-resources h3 {
    font-size: 18px;
  }

  .page-resources .grid-3-cols, 
  .page-resources .grid-2-cols, 
  .page-resources .promo-grid, 
  .page-resources .tips-grid {
    grid-template-columns: 1fr;
  }

  .page-resources .card-image, 
  .page-resources .feature-image, 
  .page-resources .promo-image, 
  .page-resources .tip-image {
    height: 150px;
  }

  .page-resources .cta-banner h2 {
    font-size: 24px;
  }

  .page-resources .cta-banner p {
    font-size: 15px;
  }
}