/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

.page-resources__hero {
  background: linear-gradient(135deg, #1A2E5B 0%, #3a5c96 100%); /* Adjusted gradient for better contrast */
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFC107; /* Brighter gold for title for contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__btn--primary {
  background-color: #FF8C00;
  color: #fff;
  font-size: 1.1em;
}

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

.page-resources__hero-image-wrapper {
  margin-top: 40px;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__intro-section, .page-resources__featured-section, .page-resources__detail-list-section, .page-resources__cta-section {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.2em;
  color: #1A2E5B;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

.page-resources__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: #444;
}

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

.page-resources__featured-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__featured-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-resources__featured-title {
  font-size: 1.5em;
  color: #1A2E5B;
  margin-bottom: 15px;
}

.page-resources__featured-description {
  color: #555;
  margin-bottom: 20px;
}

.page-resources__btn--secondary {
  background-color: #1A2E5B;
  color: #fff;
}

.page-resources__btn--secondary:hover {
  background-color: #2e4a80;
  transform: translateY(-2px);
}

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

.page-resources__detail-item {
  background-color: #fff;
  border-left: 5px solid #FF8C00;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__detail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.page-resources__detail-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-resources__detail-title a {
  color: #1A2E5B;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__detail-title a:hover {
  color: #FF8C00;
  text-decoration: underline;
}

.page-resources__detail-description {
  color: #666;
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-resources__btn--link {
  background-color: transparent;
  color: #FF8C00;
  border: 1px solid #FF8C00;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-resources__btn--link:hover {
  background-color: #FF8C00;
  color: #fff;
  transform: translateY(-1px);
}

.page-resources__cta-section {
  background-color: #1A2E5B;
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-resources__cta-section .page-resources__section-title {
  color: #fff;
}

.page-resources__cta-section .page-resources__section-title::after {
  background-color: #FF8C00;
}

.page-resources__cta-section .page-resources__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-resources__cta-image {
  max-width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__floating-ad-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  background-color: rgba(26, 46, 91, 0.9);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__floating-btn {
  display: block;
  padding: 10px 15px;
  background-color: #FF8C00;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-resources__floating-btn:hover {
  background-color: #e67e00;
  transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__featured-grid, .page-resources__detail-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: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__intro-section, .page-resources__featured-section, .page-resources__detail-list-section, .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__floating-ad-menu {
    bottom: 10px;
    right: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
  }
  .page-resources__floating-btn {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

@media (max-width: 576px) {
  .page-resources__hero-title {
    font-size: 1.5em;
  }
  .page-resources__section-title {
    font-size: 1.4em;
  }
  .page-resources__btn--primary, .page-resources__btn--secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-resources__featured-grid, .page-resources__detail-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__floating-ad-menu {
    bottom: 5px;
    right: 5px;
    left: 5px;
    width: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 5px;
    border-radius: 8px;
  }
  .page-resources__floating-btn {
    flex: 1 1 auto;
    margin: 3px;
    padding: 8px 10px;
    font-size: 0.85em;
  }
}