/* style/resources.css */

/* Variables for consistent styling */
:root {
  --page-resources-primary-color: #0A2342;
  --page-resources-secondary-color: #E0B400;
  --page-resources-text-light: #FFFFFF;
  --page-resources-text-dark: #0A2342;
  --page-resources-bg-dark: #0A2342;
  --page-resources-bg-light: #F0F2F5;
  --page-resources-accent-light: #e9cb4d;
  --page-resources-accent-dark: #9d7e00;
}

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

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

/* Hero Section */
.page-resources__hero {
  background-color: var(--page-resources-bg-dark);
  color: var(--page-resources-text-light);
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-resources-secondary-color);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-resources__hero-button {
  display: inline-block;
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-dark);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-resources__hero-button:hover {
  background-color: var(--page-resources-accent-light);
  transform: translateY(-2px);
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(50%);
}

/* Intro Section */
.page-resources__intro-section {
  background-color: var(--page-resources-bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--page-resources-primary-color);
  margin-bottom: 40px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--page-resources-secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources__text-content {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 20px;
  color: #333;
}

/* Articles Grid */
.page-resources__articles-grid {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-resources__article-card {
  background-color: var(--page-resources-text-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-resources__article-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.4em;
  color: var(--page-resources-primary-color);
}

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

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

.page-resources__article-description {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: #555;
  flex-grow: 1;
}

.page-resources__read-more-btn {
  display: inline-block;
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-dark);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more-btn:hover {
  background-color: var(--page-resources-accent-light);
}

/* Call to Action Section */
.page-resources__cta-section {
  background-color: var(--page-resources-primary-color);
  color: var(--page-resources-text-light);
  padding: 80px 0;
  text-align: center;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--page-resources-secondary-color);
}

.page-resources__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #E0E0E0;
}

.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: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.page-resources__cta-button--primary:hover {
  background-color: var(--page-resources-accent-light);
  transform: translateY(-2px);
}

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

.page-resources__cta-button--secondary:hover {
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-dark);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__cta-title {
    font-size: 2.2em;
  }
  .page-resources__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero {
    padding: 60px 0;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__intro-section, .page-resources__articles-grid, .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__text-content {
    font-size: 1em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__article-card h3 {
    font-size: 1.2em;
  }
  .page-resources__article-description {
    font-size: 0.9em;
  }
  .page-resources__read-more-btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-resources__cta-button {
    width: 90%;
    padding: 12px 25px;
  }
}