/* Styles specific to the Resources listing and individual resource articles */

/* Use the global .container from main.css so widths match other pages */
/* Removed local .container override to keep consistent site layout */

/* Blue header background used on resources listing and article pages when no hero image */
.resources-bg {
  background: linear-gradient(180deg, #0386cb 0%, #026f9f 100%);
  color: #fff;
  padding: 48px 0;
}
.resources-bg .title-small {
  font-size: 1rem;
  opacity: 0.95;
  margin: 0 0 6px 0;
}
.resources-bg .title-large {
  font-size: 2rem;
  margin: 0 0 12px 0;
  font-weight: 700;
}

/* Article meta info (author and date) on article pages */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 8px;
}

.article-author,
.article-date {
  display: inline-block;
}

.article-author::after {
  content: "•";
  margin-left: 16px;
  opacity: 0.7;
}

/* Listing styles */
.resources-list {
  margin-bottom: 60px;
}

.resources-list header h1 {
  font-family: 'Archivo', sans-serif;
  font-size: 2.25rem;
  margin-bottom: 8px;
  color: #0b3b5a;
}
.resources-list header p {
  color: #546e7a;
  margin-bottom: 24px;
  line-height: 1.6;
}

.resource-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.resource-item {
  border: 1px solid #e6eef3;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(8,18,24,0.04);
}

.resource-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.resource-item a {
  display: inline-block;
  font-size: 1.125rem;
  color: #0386cb;
  text-decoration: none;
  font-weight: 600;
  flex: 1;
}

.resource-item a:hover {
  text-decoration: underline;
}

.resource-date {
  color: #7a8e99;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.resource-item .excerpt {
  color: #556e78;
  margin-top: 8px;
  line-height: 1.6;
}

/* Article styles */
.resource-article .resource-header h1 {
  font-family: 'Archivo', sans-serif;
  font-size: 2.5rem;
  color: #0b3b5a;
  margin-bottom: 8px;
}

.resource-description {
  color: #5f6f76;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.resource-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin: 18px 0;
}

.resource-content {
  color: #23343a;
  line-height: 1.75;
  font-size: 1rem;
}

.resource-content p {
  margin-bottom: 18px;
}

.resource-content p:last-child {
  margin-bottom: 0;
}

/* When markdown includes an H1 at the top, hide it because the layout prints the title in the hero */
.resource-content > h1 {
  display: none;
}

.resource-article .resource-content {
  padding: 24px 0 40px 0;
}

.resource-content h2 {
  color: #0b3b5a;
  margin-top: 28px;
}

/* Full-bleed hero for resource articles when image is provided */
.resource-hero {
  background-color: #0386cb; /* blue fallback */
  background-size: cover;
  background-position: center;
  color: white;
  padding: 420px 0 200px; /* match main page header sizing */
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
}
.resource-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.45);
  z-index: 1;
}
.resource-hero .container { position: relative; z-index: 2; }

.get-started-cta {
  margin-top: 36px;
  padding: 28px;
  background: linear-gradient(90deg, rgba(3,134,203,0.06), rgba(3,134,203,0.02));
  border-radius: 8px;
  text-align: center;
}

.get-started-cta h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
}

.get-started-cta p {
  margin: 0 0 12px 0;
}

.btn.btn-primary {
  display: inline-block;
  background: #0386cb;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

@media (min-width: 768px) {
  .resource-items {
    grid-template-columns: 1fr 1fr;
  }
}

/* Two-column layout for individual resource pages */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.resource-main {
  /* content column */
}
.resource-aside {
  position: relative;
}

.resource-aside .get-started-cta { text-align: left; }

/* Sidebar sections styling */
.resource-meta,
.resource-services {
  background: #f8fafc;
  border: 1px solid #e6eef3;
  border-radius: 8px;
  padding: 20px;
  margin-top: 18px;
}

.resource-meta h3,
.resource-services h3 {
  color: #0b3b5a;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  border-bottom: 2px solid #0386cb;
  padding-bottom: 8px;
}

.resource-meta h4 {
  color: #0b3b5a;
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px 0;
}

.resource-meta p {
  color: #556e78;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.resource-meta p strong {
  color: #0b3b5a;
  font-weight: 600;
}

.resource-meta ul,
.resource-services ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.resource-meta li,
.resource-services li {
  color: #556e78;
  padding: 6px 0;
  border-bottom: 1px solid #e9f1f5;
  position: relative;
  padding-left: 16px;
}

.resource-meta li:before {
  content: "✓";
  color: #0386cb;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 6px;
}

.resource-meta li:last-child,
.resource-services li:last-child {
  border-bottom: none;
}

.resource-services li {
  padding-left: 0;
}

.resource-services li:before {
  display: none;
}

.resource-services a {
  color: #0386cb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.resource-services a:hover {
  color: #026f9f;
  text-decoration: underline;
}

.resource-meta a,
.resource-services div a {
  color: #0F2C59;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.resource-meta a:hover,
.resource-services div a:hover {
  color: #1e5b94;
}

/* Enhanced CTA styling */
.get-started-cta {
  margin-top: 36px;
  padding: 28px;
  background: linear-gradient(135deg, #0386cb 0%, #026f9f 100%);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(3, 134, 203, 0.2);
  border: none;
}

.get-started-cta h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

.get-started-cta p {
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.get-started-cta .btn.btn-primary {
  background: #fff;
  color: #0386cb;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.get-started-cta .btn.btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CTA Section styling for resources pages */
.cta-section {
  background-color: #0386cb;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: white;
}

.cta-section p {
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

.cta-section .btn {
  background-color: white !important;
  color: #0F2C59 !important;
  padding: 12px 30px;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #0F2C59 !important;
}

@media (max-width: 767px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-aside { order: 2; }
  
  .resource-meta,
  .resource-services {
    margin-top: 24px;
  }
  
  /* Stack resource item header on mobile */
  .resource-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .resource-date {
    order: -1;
  }
  
  /* Adjust article meta spacing on mobile */
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .article-author::after {
    display: none;
  }
}
