/* Resources Page */
.resources-page {
  margin: 120px auto 80px;
  padding: 0 20px;
}

.resources-header {
  margin-bottom: 60px;
}

.resources-header h1 {
  color: #003a4b;
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.resources-header p {
  font-size: 20px;
  color: #666;
  line-height: 1.6;
}

/* Bootstrap Pills Navigation */
.resources-tabs {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.resources-tabs .nav-item {
  margin: 0;
}

.resources-tabs .nav-link {
  background: transparent;
  border: 1px solid #e0e0e0;
  color: #666;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resources-tabs .nav-link:hover {
  background: #D5001D;
  border-color: #D5001D;
  color: white;
  transform: translateY(-2px);
}

.resources-tabs .nav-link.active {
  background: #003a4b;
  border-color: #003a4b;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.resources-tabs .nav-link i {
  font-size: 18px;
}

/* Tab Content */
.resources-tab-content {
  min-height: 400px;
}

.tab-pane {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Resources Grid */
.resources-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

.resources-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

/* Resource Card */
.resource-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.resource-card__image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}

.resource-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resource-card:hover .resource-card__image img {
  transform: scale(1.05);
}

.resource-card__content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.resource-card__label {
  display: inline-block;
  background: #D5001D;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  width: fit-content;
}

.case-study-card .resource-card__label {
  background: #003a4b;
}

.webinar-card .resource-card__label {
  background: #b0dbf1'
}

.resource-card__date {
  display: block;
  color: #999;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.resource-card__date i {
  margin-right: 6px;
  color: #D5001D;
}

.resource-card__title {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #003a4b;
  font-weight: 700;
}

.resource-card__excerpt {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.resource-card__excerpt p {
  margin: 0;
}

.resource-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #D5001D;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.resource-card__link:hover {
  color: #003a4b;
  gap: 15px;
}

.resource-card__link i.fa-arrow-right {
  transition: transform 0.3s ease;
}

.resource-card__link:hover i.fa-arrow-right {
  transform: translateX(5px);
}

/* Podcast Card Specific */
.podcast-card .resource-card__link {
  background: #D5001D;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.podcast-card .resource-card__link:hover {
  background: #003a4b;
  transform: translateX(0);
}

/* Empty State */
.resources-empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.resources-empty i {
  font-size: 80px;
  color: #e0e0e0;
  margin:0 auto 20px;
  display: block;
}

.resources-empty p {
  font-size: 18px;
  margin: 0;
}

/* Blog Listing Module Integration */
.resources-page .blog-listing-wrapper {
  margin: 0;
}

.resources-page .blog-listing-grid {
  gap: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .resources-header h1 {
    font-size: 40px;
  }

  .resources-tabs {
    gap: 10px;
  }

  .resources-tabs .nav-link {
    padding: 10px 20px;
    font-size: 14px;
  }

  .resources-tabs .nav-link i {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .resources-page {
    margin-top: 80px;
  }

  .resources-header {
    margin-bottom: 40px;
  }

  .resources-header h1 {
    font-size: 32px;
  }

  .resources-header p {
    font-size: 16px;
  }

  .resources-tabs {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
  }

  .resources-tabs .nav-link {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .resources-tabs .nav-link i {
    display: none;
  }

  .resource-card__image {
    height: 200px;
  }

  .resource-card__content {
    padding: 20px;
  }

  .resource-card__title {
    font-size: 20px;
  }

  .resource-card__excerpt {
    font-size: 14px;
  }

  .resources-empty {
    padding: 60px 20px;
  }

  .resources-empty i {
    font-size: 60px;
  }
}

/* Animation for tab switching */
.tab-pane.fade {
  transition: opacity 0.3s ease-in-out;
}

.tab-pane.fade:not(.show) {
  display: none;
}

.tab-pane.fade.show {
  display: block;
}