/* ---------- Featured Projects (home page) ---------- */
.featured-projects{ padding: 40px 0 140px; }

.fp-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 46px;
}
.fp-card{
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.fp-card:hover{ border-color: var(--hairline-strong); transform: translateY(-4px); }
.fp-card-img{
  aspect-ratio: 16/10;
  background: linear-gradient(150deg, #171310, #080705);
}
.fp-card-img img{ width: 100%; height: 100%; object-fit: cover; }
.fp-card-body{ padding: 26px; }
.fp-category{
  font-size: 0.76rem;
  color: var(--gold-bright);
  margin-bottom: 12px;
}
.fp-card-body h3{ font-size: 1.1rem; margin-bottom: 10px; }
.fp-card-body p{ font-size: 0.88rem; margin-bottom: 18px; }
.fp-link{ font-size: 0.82rem; font-weight: 700; color: var(--gold-bright); }
.fp-link:hover{ text-decoration: underline; }

.fp-viewall{ text-align: center; }

/* ---------- YouTube Videos (home page) ---------- */
.videos-section{ padding: 40px 0 140px; }

.videos-toolbar{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}
.yt-view-toggle{
  display: flex;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  overflow: hidden;
}
.yt-view-toggle-btn{
  padding: 9px 18px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  cursor: pointer;
}
.yt-view-toggle-btn.active{
  background: var(--bg-elevated-2);
  color: var(--gold-bright);
}

.youtube-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.youtube-grid.list-view{
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.yt-card{
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 9/14;
  background: #0d0b09;
}
.youtube-grid.list-view .yt-card{
  aspect-ratio: 16/9;
}
.yt-card img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.yt-card:hover img{ transform: scale(1.05); }

.yt-card-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,4,3,0.92) 0%, rgba(5,4,3,0.15) 45%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.yt-play-btn{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(10,9,8,0.55);
  border: 2px solid var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.yt-card:hover .yt-play-btn{
  background: var(--gold-bright);
  transform: translate(-50%, -50%) scale(1.1);
}
.yt-play-btn svg{ width: 20px; height: 20px; margin-left: 3px; }
.yt-play-btn .tri{ fill: var(--gold-bright); }
.yt-card:hover .yt-play-btn .tri{ fill: #0a0908; }

.yt-card-title{
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}
.yt-card-tag{
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.videos-empty-note{
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
  padding: 40px 0;
  border: 1px dashed var(--hairline-strong);
  border-radius: 10px;
}

@media (max-width: 900px){
  .fp-grid{ grid-template-columns: 1fr; }
  .youtube-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .youtube-grid{ grid-template-columns: 1fr; }
}
