/* style/resources.css */

/* Variables for colors */
:root {
  --page-resources-primary-color: #0A2342;
  --page-resources-secondary-color: #FFD700;
  --page-resources-text-light: #F8F8F8;
  --page-resources-text-dark: #222222;
  --page-resources-background-dark: #0A2342;
  --page-resources-background-light: #F0F2F5;
  --page-resources-accent-color: #b39700; /* Darker variant of secondary for text on light secondary background */
  --page-resources-contrast-text: #FFFFFF; /* High contrast text for dark backgrounds */
  --page-resources-button-hover: #e6c200;
}

.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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-resources__hero {
  background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, #1A3A5F 100%); /* Darker gradient for hero */
  padding: 100px 0;
  text-align: center;
  color: var(--page-resources-contrast-text);
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-resources-secondary-color); /* Gold title for prominence */
  font-weight: 700;
  line-height: 1.2;
}

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

.page-resources__cta-button {
  display: inline-block;
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-primary-color); /* Dark text on gold button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background-color: var(--page-resources-button-hover);
  transform: translateY(-3px);
}

/* General Section Styling */
.page-resources__section {
  padding: 60px 0;
  background-color: var(--page-resources-background-light);
}

.page-resources__section:nth-of-type(even) {
  background-color: #E8ECF1; /* Slightly different background for alternating sections */
}

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

.page-resources__subsection-title {
  font-size: 1.8em;
  color: var(--page-resources-primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

/* Images within content */
.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-resources__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-resources__introduction .page-resources__container, 
.page-resources__news-updates .page-resources__container, 
.page-resources__technical-articles .page-resources__container {
  overflow: hidden; /* Clear floats */
}

/* Detail Pages List */
.page-resources__detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__detail-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  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;
  justify-content: space-between;
}

.page-resources__detail-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__detail-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-resources-primary-color);
  font-weight: 600;
  line-height: 1.3;
}

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

.page-resources__detail-title a:hover {
  color: var(--page-resources-secondary-color);
}

.page-resources__detail-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__detail-button {
  display: inline-block;
  background-color: var(--page-resources-primary-color);
  color: var(--page-resources-text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__detail-button:hover {
  background-color: #1A3A5F; /* Slightly lighter primary color */
}

/* Final Call to Action */
.page-resources__call-to-action {
  background-color: var(--page-resources-primary-color);
  color: var(--page-resources-contrast-text);
  text-align: center;
  padding: 80px 0;
}

.page-resources__call-to-action .page-resources__section-title {
  color: var(--page-resources-secondary-color);
}

.page-resources__call-to-action .page-resources__text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: var(--page-resources-text-light);
}

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

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

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

.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-primary-color);
}

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

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

  .page-resources__subsection-title {
    font-size: 1.5em;
  }

  .page-resources__image--left, .page-resources__image--right {
    float: none;
    margin: 30px auto;
    max-width: 80%;
  }
}

@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__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources__section {
    padding: 40px 0;
  }

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

  .page-resources__subsection-title {
    font-size: 1.3em;
  }

  .page-resources__text {
    font-size: 0.95em;
  }

  .page-resources__detail-list {
    grid-template-columns: 1fr;
  }

  .page-resources__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-resources__cta-button {
    width: 80%;
    max-width: 300px;
  }
}

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

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

  .page-resources__subsection-title {
    font-size: 1.2em;
  }

  .page-resources__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-resources__detail-item {
    padding: 20px;
  }

  .page-resources__detail-title {
    font-size: 1.2em;
  }

  .page-resources__detail-description {
    font-size: 0.9em;
  }
}