/* --- Filter Section --- */
#filter-card {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.filter-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

#filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filter-label {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.filter-checkbox {
  transform: scale(1.5); /* Make checkboxes bigger */
  cursor: pointer;
}

/* --- Portfolio Grid --- */
#portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  padding: 0; /* Override default card padding for cleaner edge-to-edge media */
  overflow: hidden; /* Keeps images inside rounded corners */
}

/* --- Media Area --- */
.portfolio-media {
  width: 100%;
  height: 250px;
  background-color: #eee;
  border-bottom: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-content {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill the box perfectly */
}

/* PDF Specific Styling */
.pdf-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  background-color: #fce4ec; /* Light pink background for PDFs */
  color: #c2185b;
  font-weight: 900;
  font-size: 1.5rem;
}

.pdf-btn {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid black;
  text-decoration: none;
  color: black;
  font-weight: normal;
}
.pdf-btn:hover { background-color: #ddd; }

/* YouTube Responsive Fix */
.video-responsive {
  position: relative;
  width: 100%;
  height: 100%;
}
.video-responsive iframe {
  width: 100%;
  height: 100%;
}

/* --- Item Details --- */
.portfolio-details {
  padding: 1.5rem;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-details h3 {
  margin: 0.5rem 0 1rem 0;
  font-size: 1.4rem;
}

.portfolio-details p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Tags */
.tags-row {
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 900;
  padding: 0.25rem 0.5rem;
  border: 1px solid black;
  margin-right: 0.5rem;
  background-color: white;
}

/* Specific Tag Colors (Optional) */
.tag-academic { background-color: #e3f2fd; } /* Light Blue */
.tag-artistic { background-color: #f3e5f5; } /* Light Purple */
.tag-athletic { background-color: #e8f5e9; } /* Light Green */