/* ================================================================
   UNIVERSITY DETAIL PAGE STYLES
   Linked by all universities/*.html pages (../universities/universities.css)
   ================================================================ */

/* ===== DETAIL HERO ===== */
.uni-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 3.5rem;
  min-height: 240px;
  display: flex;
  align-items: center;
}
.uni-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 75% at 85% 40%, rgba(255,255,255,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.uni-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Real logo inside white circle in the dark hero */
.uni-logo-hero {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.uni-logo-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uni-detail-info { flex: 1; }
.uni-detail-info h1 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.4rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 800;
}
.uni-detail-info .detail-city {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.uni-detail-info .detail-tagline {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
}

/* ===== MAIN CONTENT INSIDE DETAIL PAGE ===== */
.uni-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ===== KEY FACTS GRID ===== */
.key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 1rem;
  margin-top: 0;
}
.key-fact {
  background: #f5f3ef;
  border-radius: 14px;
  padding: 1.35rem 1rem;
  text-align: center;
  border: 1px solid #e6e0d8;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.key-fact:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(27,45,82,0.1);
}
.key-fact i {
  font-size: 1.25rem;
  color: #e87048;
  display: block;
  margin-bottom: 0.5rem;
}
.key-fact-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: #1b2d52;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.key-fact-label {
  display: block;
  font-size: 0.73rem;
  color: #9da5b4;
  font-weight: 700;
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}

/* ===== FACULTY LIST ===== */
.faculty-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.faculty-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: #5a6279;
  padding: 0.7rem 1rem;
  background: #f5f3ef;
  border-radius: 10px;
  border: 1px solid #e6e0d8;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  line-height: 1.5;
}
.faculty-list li:hover {
  border-color: rgba(232,112,72,0.35);
  background: #fdeee8;
  color: #1b2d52;
}
.faculty-list li i {
  color: #e87048;
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ===== SECTION CARDS on detail page ===== */
.uni-section {
  background: #ffffff;
  padding: 2.25rem;
  border-radius: 20px;
  border: 1px solid #e6e0d8;
  box-shadow: 0 2px 8px rgba(27,45,82,0.06);
  margin-bottom: 1.5rem;
}
.uni-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1b2d52;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.uni-section-title i { color: #e87048; }

/* ===== CTA STRIP on detail page ===== */
.uni-cta {
  background: linear-gradient(135deg, #1b2d52 0%, #243868 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}
.uni-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(232,112,72,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.uni-cta > * { position: relative; }
.uni-cta h2 { color: #ffffff; margin-bottom: 0.5rem; font-size: 1.4rem; }
.uni-cta p  { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.uni-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e87048;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 5px 20px rgba(232,112,72,0.38);
}
.uni-cta .btn-primary:hover {
  background: #cf5a35;
  transform: translateY(-2px);
  box-shadow: 0 9px 28px rgba(232,112,72,0.48);
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
}
.back-link:hover { color: #ffffff; gap: 0.65rem; }

/* ===== WEBSITE LINK ===== */
.website-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e87048;
  text-decoration: none;
  transition: all 0.25s ease;
}
.website-link:hover { color: #cf5a35; gap: 0.6rem; }

/* ===== FACULTY GRID — single column, panels open independently ===== */
.faculty-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.faculty-grid-hint {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #9da5b4;
  font-weight: 600;
  background: #f9f8f6;
  border: 1px dashed #ddd8d0;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.25rem;
}
.faculty-grid-hint i { color: #e87048; font-size: 0.8rem; flex-shrink: 0; }

/* Individual faculty panel */
.faculty-panel {
  background: #fff;
  border: 1.5px solid #e6e0d8;
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 12px rgba(27, 45, 82, 0.06);
  position: relative;
}
.faculty-panel.is-open {
  border-color: rgba(232, 112, 72, 0.28);
  /* outer shadow + inset top-accent bar (3px coral stripe) */
  box-shadow:
    0 8px 36px rgba(232, 112, 72, 0.14),
    0 2px 10px rgba(27, 45, 82, 0.05),
    inset 0 3px 0 #e87048;
}

/* Panel toggle header */
.faculty-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s ease;
}
.faculty-panel-header:hover { background: #faf9f7; }
.faculty-panel.is-open .faculty-panel-header {
  background: linear-gradient(135deg, #fffaf8 0%, #fff5f0 100%);
}

.fac-p-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #1b2d52;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(27, 45, 82, 0.1);
}
.faculty-panel-header:hover .fac-p-icon { transform: scale(1.07); }
.faculty-panel.is-open .fac-p-icon {
  background: linear-gradient(135deg, #e87048 0%, #f09060 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 112, 72, 0.38);
  transform: scale(1.0);
}

.fac-p-meta { flex: 1; min-width: 0; }
.fac-p-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #1b2d52;
  line-height: 1.3;
}
.fac-p-sub {
  font-size: 0.68rem;
  color: #aab2c0;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}
.fac-p-count {
  font-size: 0.67rem;
  font-weight: 700;
  color: #9da5b4;
  background: #f0ede8;
  border: 1px solid #e0dbd4;
  border-radius: 50px;
  padding: 0.18rem 0.6rem;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  letter-spacing: 0.01em;
}
.faculty-panel.is-open .fac-p-count {
  background: rgba(232, 112, 72, 0.1);
  color: #e87048;
  border-color: rgba(232, 112, 72, 0.3);
}
.fac-p-arrow {
  color: #c8d0de;
  font-size: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), color 0.25s ease;
  flex-shrink: 0;
}
.faculty-panel.is-open .fac-p-arrow { transform: rotate(180deg); color: #e87048; }

/* Panel body — JS-controlled height */
.faculty-panel-body {
  height: 0;
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.faculty-panel-body.is-open {
  border-top: 1px solid rgba(232, 112, 72, 0.15);
}
.faculty-panel-inner { padding: 1rem 1.1rem; }

/* Inside each panel — spec items */
.faculty-panel-inner .spec-item {
  border-radius: 12px;
  background: #faf9f7;
  border-color: #ede9e2;
}
.faculty-panel-inner .spec-item.is-open {
  background: #fff;
  border-color: #e87048;
}
.faculty-panel-inner .spec-header { padding: 0.72rem 0.95rem; }
.faculty-panel-inner .spec-icon {
  width: 33px;
  height: 33px;
  font-size: 0.82rem;
  border-radius: 9px;
}
.faculty-panel-inner .spec-name { font-size: 0.84rem; }
.faculty-panel-inner .spec-body-inner { padding: 0.85rem 0.95rem 1rem; }
.faculty-panel-inner .spec-desc { font-size: 0.82rem; }
.faculty-panel-inner .career-pill { font-size: 0.74rem; padding: 0.25rem 0.65rem; }

/* prog-category inside panels — styled divider */
.faculty-panel-inner .prog-category {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e87048;
  margin: 0.85rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faculty-panel-inner .prog-category::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(232,112,72,0.25), transparent);
  border-radius: 1px;
}
.faculty-panel-inner .prog-category:first-child { margin-top: 0; }

/* ===== UNIVERSITY PHOTO ===== */
.uni-photo {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 6px 28px rgba(27, 45, 82, 0.13);
}
.uni-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.uni-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,18,38,0.68) 0%, transparent 100%);
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2rem 1.25rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.uni-photo-caption i { color: #f5a882; font-size: 0.8rem; }

/* Faculty description paragraph */
.fac-p-desc {
  font-size: 0.88rem;
  color: #5a6279;
  line-height: 1.75;
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  background: #f9f8f6;
  border-radius: 10px;
  border-left: 3px solid rgba(232, 112, 72, 0.45);
}

/* ===== SPECIALTY ACCORDION ===== */
.spec-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-item {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e6e0d8;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  font-family: 'Nunito', sans-serif;
  padding: 0;
}
.spec-item:hover {
  border-color: rgba(232, 112, 72, 0.45);
  box-shadow: 0 4px 16px rgba(27, 45, 82, 0.08);
}
.spec-item.is-open {
  border-color: #e87048;
  box-shadow: 0 4px 22px rgba(232, 112, 72, 0.16);
}

/* Header row (always visible) */
.spec-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  user-select: none;
}

.spec-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fdeee8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #e87048;
  flex-shrink: 0;
  transition: background 0.22s ease, color 0.22s ease;
}
.spec-item.is-open .spec-icon { background: #e87048; color: #fff; }

.spec-meta { flex: 1; min-width: 0; }
.spec-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1b2d52;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.spec-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; align-items: center; }
.spec-badge {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9da5b4;
  background: #f5f3ef;
  border: 1px solid #e6e0d8;
  padding: 0.08rem 0.5rem;
  border-radius: 50px;
}
.spec-badge.hot   { background: rgba(232,112,72,0.1);  color: #e87048; border-color: rgba(232,112,72,0.25); }
.spec-badge.new   { background: rgba(91,142,232,0.1);  color: #1b6fc8; border-color: rgba(91,142,232,0.25); }
.spec-badge.bonus { background: rgba(40,167,69,0.1);   color: #1a7a32; border-color: rgba(40,167,69,0.25); }

.spec-arrow {
  color: #c0c8d8;
  font-size: 0.78rem;
  transition: transform 0.28s ease, color 0.22s ease;
  flex-shrink: 0;
}
.spec-item.is-open .spec-arrow { transform: rotate(180deg); color: #e87048; }

/* Expandable body */
.spec-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.spec-body.is-open { grid-template-rows: 1fr; }
.spec-body-inner {
  overflow: hidden;
  border-top: 1px solid #e6e0d8;
  padding: 0 1.2rem;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s ease, padding 0.32s ease, opacity 0.25s ease;
}
.spec-body.is-open .spec-body-inner {
  max-height: 600px;
  padding: 1rem 1.2rem 1.25rem;
  opacity: 1;
}

.spec-desc {
  font-size: 0.85rem;
  color: #5a6279;
  line-height: 1.72;
  margin-bottom: 1rem;
}

.spec-career-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b0b8c8;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.spec-career-label i { color: #e87048; font-size: 0.72rem; }

.career-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.career-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1b2d52;
  background: #f0f4ff;
  border: 1px solid rgba(27, 45, 82, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.career-pill:hover { background: #e2eaff; }
.career-pill i { color: #e87048; font-size: 0.68rem; }

/* ===== FACULTY EXPANDED SECTION ===== */
.faculty-highlight {
  border: 2px solid #e87048;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.faculty-highlight-header {
  background: linear-gradient(135deg, #1b2d52 0%, #243868 100%);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faculty-highlight-header i { color: #e87048; font-size: 1.2rem; flex-shrink: 0; }
.faculty-highlight-header h3 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.faculty-highlight-header .fac-abbr {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.faculty-highlight-body { padding: 1.5rem 1.75rem; background: #ffffff; }
.faculty-highlight-body p { color: #5a6279; font-size: 0.93rem; line-height: 1.7; margin-bottom: 0; }

/* Stats row inside faculty */
.fac-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 1.75rem;
  background: #f5f3ef;
  border-top: 1px solid #e6e0d8;
  border-bottom: 1px solid #e6e0d8;
}
.fac-stat { text-align: center; }
.fac-stat-value { display: block; font-size: 1.3rem; font-weight: 900; color: #1b2d52; letter-spacing: -0.03em; }
.fac-stat-label { font-size: 0.72rem; color: #9da5b4; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Degree level block */
.degree-block { padding: 1.25rem 1.75rem; border-top: 1px solid #e6e0d8; }
.degree-block:first-child { border-top: none; }
.degree-block-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.degree-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.degree-pill.bc  { background: #e3f2fd; color: #1565c0; }
.degree-pill.ing { background: #f3e5f5; color: #6a1b9a; }
.degree-pill.phd { background: #fff3e0; color: #e65100; }

.degree-block-title span {
  font-size: 0.82rem;
  color: #9da5b4;
  font-weight: 600;
}

/* Program category sub-header */
.prog-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9da5b4;
  margin: 0.75rem 0 0.5rem;
}
.prog-category i { font-size: 0.8rem; color: #e87048; }

/* Individual program card */
.prog-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}
.prog-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: #f5f3ef;
  border-radius: 12px;
  border: 1px solid #e6e0d8;
  transition: all 0.22s ease;
}
.prog-item:hover { background: #fdeee8; border-color: rgba(232,112,72,0.35); }
.prog-item > i { color: #e87048; font-size: 0.75rem; flex-shrink: 0; margin-top: 0.3rem; }

/* Content block inside the card */
.prog-item-content { flex: 1; min-width: 0; }
.prog-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.prog-item-name {
  font-size: 0.92rem;
  color: #1b2d52;
  font-weight: 800;
  line-height: 1.3;
}
.prog-item-note {
  font-size: 0.68rem;
  background: rgba(232,112,72,0.12);
  color: #cf5a35;
  padding: 0.12rem 0.55rem;
  border-radius: 50px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.prog-item-desc {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0.45rem;
}
.prog-item-career {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #cf5a35;
  font-weight: 700;
  line-height: 1.45;
}
.prog-item-career i { margin-top: 0.15rem; flex-shrink: 0; font-size: 0.75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .uni-detail-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .uni-detail-info .detail-city { justify-content: center; }
  .uni-detail-shield { width: 86px; height: 100px; }
  .uni-main { padding: 2rem 1rem 3rem; }
  .uni-section { padding: 1.5rem 1.25rem; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
}
