/* =========================================================
   STUDENT PROJECTS
   File: /assets/css/student-projects.css
   ========================================================= */

:root{
  --sp-shadow: 0 24px 70px rgba(0,0,0,.14);
  --sp-radius: 18px;

  --sp-red: #fa394a;

  /* CTA Gradient (same style as AFS) */
  --sp-grad: radial-gradient(circle at 10% 0%, rgba(110, 10, 10, .75), rgba(2, 6, 23, .96) 70%);
}

/* ---------------------------------------------------------
   PAGE BACKGROUND
--------------------------------------------------------- */

.sp.page-hero{
  background: #ffffff;
  color: #111827;
  padding-top: calc(var(--site-header-offset, 110px) + 34px);
  padding-bottom: 22px;
}

.sp.page-section{
  background: #ffffff;
  color: #111827;
  padding: 26px 0 70px;
}

/* Breadcrumb (same as AFS / Blog) */
.breadcrumb{
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  display:flex;
  align-items:center;
  gap: 8px;
  margin: 6px 0 18px;
}
.breadcrumb a{ color: #64748b; text-decoration:none; }
.breadcrumb a:hover{ color: #0f172a; }
.crumb-sep{ opacity: .6; }

/* ---------------------------------------------------------
   HERO LAYOUT (Left + Sticky Right)
--------------------------------------------------------- */

.sp-heroGrid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}

/* Kicker */
.sp-kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111827;
  opacity: .92;
  margin: 0 0 10px;
}

.sp-kickerIco{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  border: 1px solid rgba(250,57,74,.22);
  background: rgba(250,57,74,.10);
  color: #111827;
  display:grid;
  place-items:center;
}

.sp-title{
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #111827;
}

.sp-lead{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: #4b5563;
  max-width: 72ch;
}

/* Buttons (same style as AFS) */
.sp-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.sp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  text-decoration:none;
  border: 1px solid transparent;
}

.sp-btn--primary{
  background: linear-gradient(135deg, #ff445e, #ff6a2a);
  color: #fff;
  box-shadow: 0 16px 38px rgba(250,57,74,.22);
}
.sp-btn--primary:hover{ filter: brightness(.98); }

.sp-btn--ghost{
  background: #ffffff;
  border-color: rgba(15,23,42,.14);
  color: #111827;
}
.sp-btn--ghost:hover{
  background: #f9fafb;
}

/* Chips */
.sp-chips{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.sp-chip{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(2,6,23,.03);
  font-size: 12px;
  color: #111827;
  font-weight: 700;
}

/* ---------------------------------------------------------
   RIGHT HERO CARD (Achiever)
--------------------------------------------------------- */

.sp-heroCard{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  box-shadow: 0 16px 46px rgba(15,23,42,.08);
  overflow:hidden;
  position: sticky;
  top: calc(var(--site-header-offset, 110px) + 18px);
}

.sp-cardHead{
  padding: 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.sp-cardHead b{
  display:block;
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}
.sp-cardHead span{
  display:block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.sp-cardBody{ padding: 14px; }

.sp-achiever{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.02);
}

.sp-achieverMedia{
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  flex: 0 0 auto;
  background: rgba(2,6,23,.03);
}
.sp-achieverMedia img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.sp-achieverName{
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 4px;
  color: #111827;
}
.sp-achieverMeta{
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 6px;
}
.sp-achieverTitle{
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 6px;
  color: #111827;
}
.sp-achieverDesc{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.sp-cardCta{
  margin-top: 12px;
  display:inline-flex;
  width: 100%;
  justify-content:center;
  align-items:center;
  gap: 10px;
  height: 44px;
  border-radius: 999px;
  background: rgba(250,57,74,.10);
  border: 1px solid rgba(250,57,74,.25);
  color: #111827;
  font-weight: 900;
  text-decoration:none;
}
.sp-cardCta:hover{ filter: brightness(.98); }

/* ---------------------------------------------------------
   SECTION HEAD + FILTERS (clean like blog)
--------------------------------------------------------- */

.sp-sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sp-h2{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}
.sp-p{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

/* filters row */
.sp-filters{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
}

.sp-search{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
}

.sp-search input{
  border: none;
  outline: none;
  font-size: 13px;
  min-width: 220px;
}

.sp-select{
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.sp-clear{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor:pointer;
}
.sp-clear:hover{ background: #f9fafb; }

/* ---------------------------------------------------------
   PROJECT GRID (Portfolio Cards)
--------------------------------------------------------- */

.sp-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sp-card{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(15,23,42,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sp-card:hover{
  transform: translateY(-2px);
  border-color: rgba(250,57,74,.22);
  box-shadow: 0 22px 65px rgba(15,23,42,.12);
}

.sp-cardLink{
  text-decoration:none;
  color: inherit;
  display:block;
}

.sp-cardMedia{
  position: relative;
  overflow:hidden;
  background: rgba(2,6,23,.02);
}

.sp-cardMedia img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .35s ease;
}

.sp-card:hover .sp-cardMedia img{
  transform: scale(1.05);
}

.sp-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
}

.sp-cardBody{
  padding: 14px;
}

.sp-cardMeta{
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.sp-cardTitle{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

.sp-cardText{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.sp-read{
  display:inline-flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
}

/* Hidden used by filters */
.is-hidden{ display:none !important; }

/* ---------------------------------------------------------
   CTA BAND (Gradient like AFS)
--------------------------------------------------------- */

.sp-cta{
  margin-top: 22px;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--sp-grad);
  box-shadow: var(--sp-shadow);
  color: #f9fafb;
}

.sp-ctaInner{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.sp-ctaInner h2{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.sp-ctaInner p{
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(249,250,251,.86);
}

.sp-ctaActions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

/* CTA buttons inside gradient */
.sp-cta .sp-btn--primary{
  background: linear-gradient(135deg, #ff445e, #ff6a2a);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

.sp-cta .sp-btn--ghost{
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(8px);
}
.sp-cta .sp-btn--ghost:hover{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.40);
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 980px){
  .sp-heroGrid{ grid-template-columns: 1fr; }
  .sp-heroCard{ position: static; }
  .sp-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .sp-title{ font-size: 28px; }
  .sp-actions .sp-btn{ width: 100%; }
  .sp-grid{ grid-template-columns: 1fr; }
  .sp-ctaInner{ flex-direction: column; align-items:flex-start; }
  .sp-ctaActions{ width: 100%; }
  .sp-ctaActions .sp-btn{ width: 100%; }
  .sp-search input{ min-width: 160px; }
}