/* style/resources.css */

/* Variables for consistency */
:root {
  --page-resources-primary-color: #0A2E36;
  --page-resources-secondary-color: #E74C3C;
  --page-resources-text-light: #F8F8F8;
  --page-resources-text-dark: #333333;
  --page-resources-background-light: #FFFFFF;
  --page-resources-background-dark: #1a1a1a;
  --page-resources-card-bg: #f5f5f5;
  --page-resources-border-color: #e0e0e0;
}

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

.page-resources .text-primary {
  color: var(--page-resources-primary-color);
}

.page-resources .text-secondary {
  color: var(--page-resources-secondary-color);
}

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

.page-resources__hero {
  background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, #205c6d 100%);
  color: var(--page-resources-text-light);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:abstract_pattern,geometric,dark_texture]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.page-resources__hero-actions .page-resources__btn {
  margin: 0 10px;
}

.page-resources__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-resources__btn--primary {
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-light);
  border-color: var(--page-resources-secondary-color);
}

.page-resources__btn--primary:hover {
  background-color: #c93b2f;
  border-color: #c93b2f;
  transform: translateY(-2px);
}

.page-resources__btn--secondary {
  background-color: transparent;
  color: var(--page-resources-text-light);
  border-color: var(--page-resources-text-light);
}

.page-resources__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-resources__btn--link {
  background-color: transparent;
  color: var(--page-resources-secondary-color);
  padding: 8px 0;
  border: none;
  font-weight: bold;
}

.page-resources__btn--link:hover {
  text-decoration: underline;
  background-color: transparent;
  transform: none;
}

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

.page-resources__intro,
.page-resources__deep-dive,
.page-resources__cta-section {
  padding: 60px 0;
}

.page-resources__intro {
  background-color: var(--page-resources-background-light);
}

.page-resources__deep-dive {
  background-color: #f0f4f7;
}

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

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-resources-secondary-color);
  border-radius: 2px;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: var(--page-resources-primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid var(--page-resources-secondary-color);
  padding-left: 15px;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-resources-text-dark);
}

.page-resources__paragraph a {
  color: var(--page-resources-secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__paragraph a:hover {
  text-decoration: underline;
}

.page-resources__articles-grid {
  padding: 60px 0;
  background-color: var(--page-resources-card-bg);
}

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

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

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

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

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--page-resources-primary-color);
}

.page-resources__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-resources__card-category {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-resources__card-summary {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__cta-bottom {
  background-color: var(--page-resources-primary-color);
  color: var(--page-resources-text-light);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
}

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

.page-resources__cta-bottom .page-resources__paragraph {
  color: var(--page-resources-text-light);
  margin-bottom: 30px;
}

.page-resources__cta-bottom .page-resources__btn {
  background-color: var(--page-resources-secondary-color);
  border-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-light);
}

.page-resources__cta-bottom .page-resources__btn:hover {
  background-color: #c93b2f;
  border-color: #c93b2f;
}

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

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

.page-resources__cta-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-section .page-resources__btn {
  margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__cta-heading {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero {
    padding: 80px 0;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions .page-resources__btn {
    display: block;
    margin: 15px auto;
    width: fit-content;
  }
  .page-resources__intro, .page-resources__deep-dive, .page-resources__articles-grid, .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
    margin-top: 30px;
  }
  .page-resources__paragraph {
    font-size: 1em;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__cta-bottom {
    padding: 30px;
  }
  .page-resources__cta-bottom .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-heading {
    font-size: 1.8em;
  }
  .page-resources__cta-text {
    font-size: 1.1em;
  }
  .page-resources__cta-section .page-resources__btn {
    display: block;
    margin: 15px auto;
    width: fit-content;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__cta-heading {
    font-size: 1.6em;
  }
}