/* css styles */

/* Project and Course Cards */
.project-grid, .course-grid {
  column-count: 2;
  column-gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .project-grid, .course-grid {
    column-count: 1;
  }
}

.project-card, .course-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 2rem;
  break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
}

.project-card:hover, .course-card:hover {
  box-shadow: 0 4px 12px rgba(35, 68, 96, 0.15);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.3rem;
  color: #234460;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-meta strong {
  color: #234460;
}

.card-summary {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-abstract {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.abstract-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  line-height: 1.6;
}

.abstract-content.expanded {
  max-height: 2000px;
  transition: max-height 0.5s ease-in-out;
}

.read-more-btn {
  background: none;
  border: none;
  color: #234460;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  margin-top: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: #085ad4;
}

.read-more-btn::after {
  content: "▼";
  font-size: 0.8em;
  transition: transform 0.3s;
}

.read-more-btn.expanded::after {
  transform: rotate(180deg);
}

.card-footer {
  padding-top: 1rem;
}

.btn-primary-custom {
  display: inline-block;
  background-color: #234460;
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-primary-custom:hover {
  background-color: #085ad4;
  color: white !important;
}

.btn-primary-custom::after {
  content: " →";
}

/* Status badges */
.badge-status {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-ongoing {
  background-color: #2c9f42;
  color: white;
}

.badge-completed {
  background-color: #666;
  color: white;
}

.badge-year {
  background-color: #4673B8;
  color: white;
}

.badge-amount {
  background-color: #F4BA02;
  color: #333;
}

.badge-level {
  background-color: #BD666D;
  color: white;
}
