/* style/resources.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --background-light: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
}

.page-resources {
  color: var(--text-light); /* Body background is dark (#0a0a0a), so use light text */
  background-color: var(--background-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Ensure content is not hidden by fixed header */
.page-resources__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on header height */
}

.page-resources__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px; /* Spacing between sections */
}

.page-resources__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.page-resources__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources__cta-buttons--center {
  justify-content: center;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-medium);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-dark);
}

.page-resources__cta-button--secondary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources__cta-button--secondary:hover {
  background: #002244; /* Slightly darker blue */
  color: var(--secondary-color);
  border-color: #e6c200;
}

/* Guide List Section */
.page-resources__guides-section {
  background-color: var(--background-dark);
  padding-bottom: 60px;
}

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

.page-resources__guide-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly visible card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-resources__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-resources__guide-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.page-resources__guide-item-title a:hover {
  color: #e6c200;
}

.page-resources__guide-item-excerpt {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

/* FAQ Section */
.page-resources__faq-section {
  background-color: var(--primary-color);
  padding-bottom: 60px;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-resources__faq-answer p {
  margin: 0;
  color: var(--text-light);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.25);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--secondary-color);
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Or change to '-' in JS */
}

/* Brand Section */
.page-resources__brand-section {
  background-color: var(--background-dark);
  padding-bottom: 60px;
}

.page-resources__brand-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__brand-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__brand-image {
  max-width: 300px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__brand-overview h3,
.page-resources__brand-values h3,
.page-resources__brand-commitment h3 {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-resources__brand-overview p,
.page-resources__brand-values p,
.page-resources__brand-values ul li,
.page-resources__brand-commitment p,
.page-resources__brand-commitment ul li {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-resources__brand-values,
.page-resources__brand-commitment {
  background: rgba(0, 51, 102, 0.8); /* Dark blue with transparency */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__brand-values ul,
.page-resources__brand-commitment ul {
  list-style: none;
  padding: 0;
}

.page-resources__brand-values ul li::before,
.page-resources__brand-commitment ul li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
}

/* Blog Section */
.page-resources__blog-section {
  background-color: var(--primary-color);
  padding-bottom: 60px;
}

.page-resources__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-resources__blog-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-resources__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-resources__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

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

.page-resources__blog-item-title a:hover {
  color: #e6c200;
}

.page-resources__blog-item-excerpt {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__blog-item-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.page-resources__blog-read-more {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-resources__blog-read-more:hover {
  background: #e6c200;
  color: var(--primary-color);
}

/* Final CTA Section */
.page-resources__cta-final-section {
  background-color: var(--background-dark);
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 38px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__guide-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources__blog-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile header height */
    padding-bottom: 40px;
  }

  .page-resources__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-top: 30px;
  }

  .page-resources__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-resources__guide-list,
  .page-resources__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__guide-item,
  .page-resources__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-resources__guide-image,
  .page-resources__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__guide-item-title,
  .page-resources__blog-item-title {
    font-size: 18px;
  }

  .page-resources__guide-item-excerpt,
  .page-resources__blog-item-excerpt {
    font-size: 14px;
  }
  
  /* FAQ specific mobile styles */
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  .page-resources__brand-overview {
    padding: 20px;
  }

  .page-resources__brand-image {
    max-width: 200px;
  }

  .page-resources__brand-overview h3,
  .page-resources__brand-values h3,
  .page-resources__brand-commitment h3 {
    font-size: 24px;
  }

  .page-resources__brand-values,
  .page-resources__brand-commitment {
    padding: 20px;
  }
}