/* Outer Section Styling */
.learning-hub-hero {
  width: 100%;
  background-color: #0d2853; /* Dark Navy Background */
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 3rem 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  text-align: center;
  color: #ffffff;
}

.learning-hub-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header Content */
.hub-header-content {
  margin-bottom: 2.5rem;
}

.hub-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 0 1rem 0;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #ffffff;
}

.hub-title-muted {
  color: #ff7a38; /* Styled muted dark blue tone to match the layered text effect */
  display: inline-block;
}

.hub-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* Search Bar Wrapper */
.hub-search-wrapper {
  width: 100%;
  max-width: 600px;
}

.hub-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: #64748b;
  pointer-events: none;
}

.hub-search-form input {
  width: 100%;
  background-color: #111a33;
  border: 1px solid #1e2d54;
  border-radius: 14px;
  padding: 1rem 1rem 1rem 3.25rem;
  font-size: 0.98rem;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-search-form input::placeholder {
  color: #64748b;
}

.hub-search-form input:focus {
  border-color: #ff7a38;
  background-color: #152242;
  box-shadow: 0 10px 30px rgba(255, 122, 56, 0.15);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hub-title {
    font-size: 2.5rem;
  }

  .hub-subtitle {
    font-size: 1rem;
  }

  .learning-hub-hero {
    padding: 6rem 1rem;
  }
}

/* Outer Section Styling */
.resources-section {
  width: 100%;
  background-color: #f8fafc; /* Light Slate Background */
  padding: 3rem 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.resources-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Filter Pills Navigation Bar */
.filter-pills-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.filter-pill:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}

.filter-pill.active {
  background-color: #0b1329; /* Dark Navy active state */
  border-color: #0b1329;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 19, 41, 0.2);
}

/* Resources Grid Layout */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Resource Card Styling */
.resource-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* Card Thumbnail Area */
.resource-thumbnail {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.pdf-bg {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.thumb-inner-text {
  text-align: center;
  color: #ffffff;
}

.thumb-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #ff7a38;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.thumb-inner-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}

.video-bg-1, .video-bg-2 {
  background: linear-gradient(135deg, #0b1329 0%, #131f3d 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.thumb-overlay-text {
  color: #ffffff;
  z-index: 2;
}

.badge-code {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ff7a38;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.25rem;
}

.thumb-overlay-text h4 {
  font-size: 0.95rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.2px;
}

/* Card Content Area */
.resource-content {
  padding: 1.75rem;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Resource Type Badge */
.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  width: fit-content;
  letter-spacing: 0.5px;
  color: #ff7a38;
}

.resource-badge.pdf-type {
  background-color: #eff6ff;
  color: #2563eb;
}

.resource-badge.video-type {
  background-color: #fff7ed;
  color: #ea580c;
}

/* Titles and Body */
.resource-content h3 {
  color: #0d2853;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.resource-content p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
}

/* Access Resource Button */
.btn-access-resource {
  margin-top: auto;
  width: 100%;
  background-color: #f1f5f9;
  color: #0d2853;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.btn-access-resource:hover {
  background-color: #ff7a38;
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resources-section {
    padding: 3.5rem 1rem;
  }

  .filter-pills-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
  }
}