/* style/resources.css */
/* Base styles for the resources page */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for general content, assuming light background */
  background-color: #f8f8f8; /* Light background for the main content area */
}

/* Ensure body padding-top is handled by shared.css */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default, overridden by shared media queries */
  background-color: var(--primary-color, #0A192F);
  color: #ffffff;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Prevent image overflow */
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Use accent color for title */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtle background image */
  display: block;
  filter: none !important; /* Strictly no filter */
}

.page-resources__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A192F);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping for primary buttons */
}

.page-resources__cta-button:hover {
  background: #e0bb00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: none;
}

.page-resources__cta-button--secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--small {
  padding: 10px 25px;
  font-size: 0.9em;
  white-space: normal;
}

.page-resources__cta-button--large {
  padding: 18px 45px;
  font-size: 1.3em;
  white-space: normal;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--primary-color, #0A192F);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  padding-top: 60px;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

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

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

.page-resources__guide-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__guide-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: none !important; /* Strictly no filter */
}

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

.page-resources__guide-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--primary-color, #0A192F);
}

.page-resources__guide-card-title a {
  color: var(--primary-color, #0A192F);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__guide-card-title a:hover {
  color: var(--secondary-color, #FFD700);
}

.page-resources__guide-card-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more-link {
  display: inline-block;
  color: var(--secondary-color, #FFD700);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__read-more-link:hover {
  color: var(--primary-color, #0A192F);
  text-decoration: underline;
}

/* Deep Dive Section */
.page-resources__deep-dive-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-resources__topic-tabs {
  margin-top: 40px;
}

.page-resources__tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
}

.page-resources__tab-button {
  background: none;
  border: none;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #666666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  outline: none;
}

.page-resources__tab-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.page-resources__tab-button:hover {
  color: var(--primary-color, #0A192F);
}

.page-resources__tab-button--active {
  color: var(--primary-color, #0A192F);
}

.page-resources__tab-button--active::after {
  background: var(--secondary-color, #FFD700);
}

.page-resources__tab-content {
  display: none;
  padding: 30px 0;
  animation: fadeIn 0.5s ease-in-out;
}

.page-resources__tab-content--active {
  display: block;
}

.page-resources__tab-content-title {
  font-size: 2em;
  color: var(--primary-color, #0A192F);
  margin-bottom: 20px;
  text-align: center;
}

.page-resources__tab-content-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none !important; /* Strictly no filter */
}

.page-resources__tab-content p {
  font-size: 1em;
  color: #444444;
  margin-bottom: 20px;
}

.page-resources__tab-content p a {
  color: var(--secondary-color, #FFD700);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__tab-content p a:hover {
  text-decoration: underline;
}

/* News Section */
.page-resources__news-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-resources__news-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: none !important; /* Strictly no filter */
}

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

.page-resources__news-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--primary-color, #0A192F);
}

.page-resources__news-card-title a {
  color: var(--primary-color, #0A192F);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-card-title a:hover {
  color: var(--secondary-color, #FFD700);
}

.page-resources__news-card-excerpt {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__news-card-date {
  font-size: 0.85em;
  color: #999999;
  margin-top: auto;
}

/* Final CTA Section */
.page-resources__final-cta-section {
  padding: 80px 0;
  background-color: var(--primary-color, #0A192F);
  color: #ffffff;
  text-align: center;
}

.page-resources__final-cta-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__final-cta-section .page-resources__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Header offset for mobile */
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-resources__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-resources__guides-section,
  .page-resources__deep-dive-section,
  .page-resources__news-section,
  .page-resources__final-cta-section {
    padding: 60px 0;
  }

  .page-resources__guide-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__guide-card,
  .page-resources__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__guide-card-image,
  .page-resources__news-card-image,
  .page-resources__tab-content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
  }

  .page-resources__tab-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .page-resources__tab-button {
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .page-resources__tab-button--active::after {
    height: 1px;
    bottom: -1px;
  }
}

/* Ensure images don't use filter */
.page-resources img {
  filter: none !important; /* Strictly no filter */
}