/* style/resources.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --button-hover-darken: #e6c200;
}

.page-resources {
  color: var(--text-color-light); /* Body background is dark, so text should be light */
  background-color: var(--background-dark);
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #0a0a5a 100%); /* Dark blue gradient */
  border-bottom: 5px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[GALLERY:bg:b52_hero_pattern,abstract,dark]');
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
}

.page-resources__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px var(--shadow-color);
}

.page-resources__hero-description {
  font-size: 1.2em;
  color: var(--text-color-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-resources__cta-button:first-of-type {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources__cta-button:first-of-type:hover {
  background: var(--button-hover-darken);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

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

.page-resources__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

/* General Section Styles */
.page-resources__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.page-resources__section-description {
  font-size: 1.1em;
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Guides Section */
.page-resources__guides-section {
  padding: 40px 0 80px 0;
  background-color: #1a1a1a;
}

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

.page-resources__guide-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.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: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-resources__guide-item-title a:hover {
  color: var(--button-hover-darken);
}

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

.page-resources__read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-resources__read-more-link:hover {
  color: var(--button-hover-darken);
}

.page-resources__icon {
  margin-left: 8px;
  font-size: 1.1em;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 40px 0 80px 0;
  background-color: var(--secondary-color);
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a7a; /* Darker blue for question background */
  color: var(--primary-color);
  border: 1px solid #3a3a8a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #3a3a8a;
  border-color: var(--primary-color);
}

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

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
  color: var(--text-color-light);
  background: var(--primary-color);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #1a1a6a;
  color: var(--text-color-light);
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color-light);
}

.page-resources__cta-section {
    text-align: center;
    margin-top: 50px;
}

.page-resources__cta-section p {
    font-size: 1.1em;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.page-resources__cta-button--contact {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--contact:hover {
    background: var(--button-hover-darken);
    transform: translateY(-2px);
}

/* Brand Section */
.page-resources__brand-section {
  padding: 40px 0 80px 0;
  background-color: #121212;
}

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

.page-resources__brand-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-resources__brand-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-resources__brand-item-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-resources__brand-item p {
  color: var(--text-color-light);
  font-size: 0.95em;
  line-height: 1.7;
  flex-grow: 1;
}

/* Blog Section */
.page-resources__blog-section {
  padding: 40px 0 80px 0;
  background-color: #1a1a1a;
}

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

.page-resources__blog-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.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: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-resources__blog-item-title a:hover {
  color: var(--button-hover-darken);
}

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

.page-resources__blog-item-date {
  font-size: 0.85em;
  color: #aaa;
  margin-top: auto;
  display: block;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__guide-item-title, .page-resources__blog-item-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources__section-title {
    font-size: 2em;
    padding-top: 40px;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources__guides-section, .page-resources__faq-section, .page-resources__brand-section, .page-resources__blog-section {
    padding: 30px 0 60px 0;
  }

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

  .page-resources__guide-item, .page-resources__brand-item, .page-resources__blog-item {
    padding: 0;
  }
  
  .page-resources__guide-content, .page-resources__blog-content {
    padding: 20px;
  }

  .page-resources__guide-image, .page-resources__blog-image {
    height: 180px;
  }

  .page-resources__guide-item-title, .page-resources__blog-item-title {
    font-size: 1.2em;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources__cta-section {
    margin-top: 30px;
  }
  .page-resources__cta-section p {
    font-size: 1em;
  }
  .page-resources__cta-button--contact {
    padding: 10px 25px;
    font-size: 0.95em;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__hero-section,
  .page-resources__guides-section,
  .page-resources__faq-section,
  .page-resources__brand-section,
  .page-resources__blog-section,
  .page-resources__container,
  .page-resources__guide-item,
  .page-resources__brand-item,
  .page-resources__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__hero-section .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__cta-button {
    font-size: 0.9em;
  }
  .page-resources__guide-item-title, .page-resources__blog-item-title {
    font-size: 1.1em;
  }
  .page-resources__faq-question h3 {
    font-size: 0.95em;
  }
  .page-resources__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources__cta-section p {
    font-size: 0.9em;
  }
  .page-resources__cta-button--contact {
    font-size: 0.9em;
  }
}