/* style/resources.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --accent-color: #DC143C;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --background-light: #ffffff;
  --background-dark: #1a2a40;
  --border-color: #e0e0e0;
}

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

.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-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-resources .cta-button:hover {
  background-color: #e6c200; /* Darker gold */
  transform: translateY(-2px);
}

/* 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), var(--background-dark));
  color: var(--text-light);
}

.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%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

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

.page-resources .hero-title {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources .hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
}

/* General Section Styling */
.page-resources .section-intro, 
.page-resources .section-guides, 
.page-resources .section-news, 
.page-resources .section-tips, 
.page-resources .section-promos, 
.page-resources .section-safety-support, 
.page-resources .section-faq {
  padding: 60px 0;
}

.page-resources .section-intro p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-resources .guide-card {
  background-color: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .guide-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-resources .guide-card .card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 15px 15px 10px;
  font-weight: bold;
}

.page-resources .guide-card .card-description {
  font-size: 15px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-resources .guide-card .card-link {
  display: block;
  padding: 15px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.page-resources .guide-card:hover .card-link {
  background-color: #e6c200;
}

/* News List */
.page-resources .news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-resources .news-item {
  display: flex;
  background-color: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .news-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

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

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

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

.page-resources .news-title a:hover {
  text-decoration: underline;
}

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

.page-resources .read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources .read-more:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Tips List */
.page-resources .tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-resources .tips-item {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  transition: box-shadow 0.3s ease;
}

.page-resources .tips-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

.page-resources .tips-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

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

.page-resources .promo-item {
  background-color: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources .promo-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
  font-weight: bold;
}

.page-resources .promo-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Safety & Support Grid */
.page-resources .safety-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources .feature-item {
  background-color: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources .feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-resources .feature-description {
  font-size: 16px;
  color: #555;
}

/* FAQ Section */
.page-resources .faq-list {
  max-width: 800px;
  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: 18px 20px;
  background: var(--background-light);
  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: 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: #555;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources .hero-title {
    font-size: 42px;
  }
  .page-resources .section-title {
    font-size: 30px;
  }
  .page-resources .news-image {
    width: 250px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 40px 15px;
  }
  .page-resources .hero-title {
    font-size: 36px;
  }
  .page-resources .hero-description {
    font-size: 18px;
  }
  .page-resources .cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-resources .section-title {
    font-size: 28px;
  }
  .page-resources .section-subtitle {
    font-size: 16px;
  }
  .page-resources .section-intro, 
  .page-resources .section-guides, 
  .page-resources .section-news, 
  .page-resources .section-tips, 
  .page-resources .section-promos, 
  .page-resources .section-safety-support, 
  .page-resources .section-faq {
    padding: 40px 0;
  }
  .page-resources .guide-grid, .page-resources .promo-grid, .page-resources .safety-support-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .news-item {
    flex-direction: column;
  }
  .page-resources .news-image {
    width: 100%;
    height: 220px;
  }
  .page-resources .news-content {
    padding: 15px;
  }
  .page-resources .news-title {
    font-size: 20px;
  }
  .page-resources .news-excerpt {
    font-size: 15px;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-question h3 {
    font-size: 16px;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px;
  }
  .page-resources .feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-resources .feature-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-title {
    font-size: 30px;
  }
  .page-resources .hero-description {
    font-size: 16px;
  }
  .page-resources .section-title {
    font-size: 24px;
  }
  .page-resources .section-subtitle {
    font-size: 14px;
  }
  .page-resources .promo-title {
    font-size: 20px;
  }
  .page-resources .guide-card .card-title {
    font-size: 20px;
  }
  .page-resources .tips-title {
    font-size: 18px;
  }
}