/* Knowledge Page - Card Styles (matching Career format) */

.knowledge-page .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 24px;
  margin-top: 24px;
  padding: 0 20px;
  box-sizing: border-box;
}

.knowledge-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px;
  position: relative;
  overflow: visible;
  /* Flexbox for equal height cards - buttons align at bottom */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card main content wrapper - takes available space */
.card-main-content {
  flex-grow: 1;
}

/* Card footer wrapper - pushed to bottom */
.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.knowledge-card {
  border-left: 4px solid #10b981;
}

.knowledge-card.learn {
  border-left: 4px solid #3b82f6;
}

.knowledge-card.resource {
  border-left: 4px solid #f59e0b;
}

.knowledge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  border-color: rgba(16,185,129,0.2);
}

.knowledge-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 12px 0 16px 0;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  min-height: 36px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-header .new-label {
  margin-left: auto;
}

.category {
  display: inline-block;
  background: linear-gradient(45deg, #10b981, #34d399);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.new-label {
  display: inline-block;
  background: linear-gradient(45deg, #ef4444, #dc2626);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-new 2s infinite;
}

.hot-label {
  display: inline-block;
  background: linear-gradient(45deg, #f97316, #ea580c);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-new 2s infinite;
}

@keyframes pulse-new {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.knowledge-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
  max-height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.learn-more-btn {
  display: inline-block;
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
  margin-bottom: 12px;
  /* Push to bottom */
  margin-top: auto;
}

.learn-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16,185,129,0.4);
  color: white;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.resource-list li {
  margin-bottom: 8px;
}

.resource-list a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.resource-list a:hover {
  background: rgba(16,185,129,0.1);
  color: #059669;
}

/* Responsive */
@media (max-width: 768px) {
  .knowledge-page .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .knowledge-card {
    padding: 20px;
    min-height: 220px;
  }
}

.knowledge-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.knowledge-title {
  font-size: 2.2rem;
  color: #1e293b;
  margin-bottom: 8px;
}

.knowledge-description {
  color: #64748b;
  font-size: 1.1rem;
  margin-top: 0;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  display: inline-block;
  padding: 12px 24px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  background: #cbd5e1;
  color: #1e293b;
  transform: translateY(-2px);
}

.filter-tab.active {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

/* First tab (All Learning Resources) - more prominent */
.filter-tab:first-child {
  padding: 14px 28px;
  font-size: 1rem;
}

.filter-tab:first-child.active {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.filter-tab:first-child:hover {
  box-shadow: 0 6px 16px rgba(59,130,246,0.3);
}

.filters-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

/* Download Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #f59e0b, #d97706);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
  margin-right: 12px;
  margin-bottom: 12px;
  /* Push to bottom */
  margin-top: auto;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245,158,11,0.4);
  color: white;
}

.btn-download i {
  font-size: 1rem;
}

/* Action buttons row in cards */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* News Page Styles */
.news-page .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.news-page .news-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.news-page .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.news-page .news-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.news-page .news-card-header .new-label,
.news-page .news-card-header .hot-label {
  margin-left: auto;
}

.news-page .news-card-title {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-page .news-card-title h3 {
  color: #0a4a60;
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.news-page .news-card-title:hover h3 {
  color: #4169e1;
}

.news-page .news-date {
  color: #888;
  font-size: 0.85rem;
}

.news-page .news-title {
  font-size: 2.2rem;
  color: #1e293b;
  margin-bottom: 8px;
}

/* News Detail Page Styles */
.news-detail {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 32px;
  margin-top: 20px;
}

.news-detail-header {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.news-detail-title {
  color: #0a4a60;
  font-size: 2rem;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.news-detail-date {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.news-detail-content {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
