/* ============================================================
   ACADEMICS.CSS — Redesigned for SBNITM B.Tech 2022–2026
   ============================================================ */

.page-hero {
  padding-bottom: 2rem;
}
.page-hero .section-title {
  text-align: left;
}

/* ── Degree Hero Card ────────────────────────────────────────── */
.degree-hero-section {
  padding-bottom: 0;
}

.degree-hero-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow2);
}

/* Glow blob behind content */
.dhc-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Top row — icon + status pill */
.dhc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dhc-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius2);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}
.dhc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  background: rgba(0, 255, 159, 0.07);
  border: 1px solid rgba(0, 255, 159, 0.25);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent2);
  letter-spacing: 0.5px;
}

/* Degree title */
.dhc-title-block {
  margin-bottom: 1.25rem;
}
.dhc-degree {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.dhc-branch {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--accent);
  letter-spacing: 1.5px;
}

/* University row */
.dhc-university {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text2);
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dhc-university svg {
  color: var(--accent);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.dhc-uni-name {
  display: block;
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.dhc-uni-location {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text3);
  letter-spacing: 0.5px;
}

/* Stats row */
.dhc-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.dhc-stat {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 1.1rem 1rem;
}
.dhc-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.dhc-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.dhc-stat-div {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

/* Horizontal rule */
.dhc-hr {
  height: 1px;
  background: var(--border);
  margin-bottom: 2rem;
}

/* Two-column details */
.dhc-detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.dhc-col {
}
.dhc-col-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.dhc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Highlights list */
.dhc-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}
.dhc-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.65;
}
.dh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* ── Year-by-Year Grid ───────────────────────────────────────── */
.sem-section {
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.year-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
}
.year-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow2);
}

.yc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.yc-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
}
.yc-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  white-space: nowrap;
}

/* Coloured top bar */
.yc-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--bar-color, rgba(0, 212, 255, 0.6));
  box-shadow: 0 0 8px var(--bar-color, rgba(0, 212, 255, 0.3));
}

.yc-theme {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
}
.yc-subjects {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  flex: 1;
}
.yc-subjects li {
  font-size: 0.82rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.yc-subjects li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
}
.yc-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0.3px;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* ── Online Accreditations ───────────────────────────────────── */
.accreditations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.accr-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.accr-platform {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.accr-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
}
.accr-desc {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.75;
  flex: 1;
}
.accr-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .year-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dhc-detail-cols {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}
@media (max-width: 768px) {
  .dhc-stats {
    flex-wrap: wrap;
  }
  .dhc-stat {
    min-width: 50%;
  }
  .dhc-stat-div {
    display: none;
  }
  .accreditations-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .year-grid {
    grid-template-columns: 1fr;
  }
  .degree-hero-card {
    padding: 1.5rem;
  }
}
