/* =========================================================
   SYLLABUS & CURRICULUM PAGE STYLESHEET (css/syllabus.css)
   GNIPST Life Sciences Academic Framework & Syllabi Hub
   ========================================================= */

/* ---- Compact Hero Banner ---- */
.syl-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-deep, #062b18) 0%, #0c3e26 55%, #135d39 100%);
  color: #ffffff;
  padding: 56px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.syl-hero-art {
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  pointer-events: none;
  opacity: 0.16;
  z-index: 1;
}
.syl-hero .wrap {
  position: relative;
  z-index: 2;
}
.syl-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.syl-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}
.syl-hero-breadcrumb a:hover {
  color: var(--accent, #f0a800);
}
.syl-hero-breadcrumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  stroke: currentColor;
}
.syl-hero-breadcrumb .current {
  color: var(--accent, #f0a800);
  font-weight: 600;
}
.syl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(240, 168, 0, 0.16);
  border: 1px solid rgba(240, 168, 0, 0.35);
  color: #ffe082;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.syl-hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 820px;
}
.syl-hero h1 span {
  color: var(--accent, #f0a800);
}
.syl-hero-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
  margin: 0 0 24px;
}
.syl-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-syl-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent, #f0a800);
  color: #0b1a10;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  box-shadow: 0 4px 14px rgba(240, 168, 0, 0.32);
}
.btn-syl-gold:hover {
  background: #f7b718;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(240, 168, 0, 0.45);
}
.btn-syl-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-syl-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ---- Stat Pills Strip ---- */
.syl-stat-strip {
  background: #ffffff;
  border-bottom: 1px solid #e8ede9;
  padding: 24px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.syl-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.syl-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.syl-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0f7f2;
  color: var(--primary, #0c3e26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.syl-stat-icon svg {
  width: 22px;
  height: 22px;
}
.syl-stat-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #14211a);
  line-height: 1.2;
}
.syl-stat-text span {
  font-size: 0.8rem;
  color: var(--ink-soft, #5a6e62);
}

/* ---- Filter and Search Bar ---- */
.syl-filter-wrap {
  margin: 36px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.syl-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f4f1;
  padding: 5px;
  border-radius: 10px;
  flex-wrap: wrap;
}
.syl-tab-btn {
  border: none;
  background: transparent;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft, #5a6e62);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.syl-tab-btn:hover {
  color: var(--ink, #14211a);
}
.syl-tab-btn.is-active {
  background: var(--primary, #0c3e26);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(12, 62, 38, 0.25);
}
.syl-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
}
.syl-tab-btn.is-active .syl-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.syl-search-box {
  position: relative;
  min-width: 280px;
}
.syl-search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid #d4dfd8;
  border-radius: 8px;
  font-size: 0.88rem;
  background: #ffffff;
  color: var(--ink, #14211a);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.syl-search-box input:focus {
  border-color: var(--primary, #0c3e26);
  box-shadow: 0 0 0 3px rgba(12, 62, 38, 0.12);
}
.syl-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #7b8e83;
  pointer-events: none;
}

/* ---- Section Headers ---- */
.syl-section-head {
  margin: 32px 0 20px;
}
.syl-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep, #c28800);
  margin-bottom: 6px;
}
.syl-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink, #14211a);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.syl-section-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft, #5a6e62);
  max-width: 820px;
  margin: 0;
}

/* ---- Syllabus Cards Grid ---- */
.syl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.syl-card {
  background: #ffffff;
  border: 1px solid #e1e9e4;
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}
.syl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary, #0c3e26), var(--accent, #f0a800));
  opacity: 0.8;
}
.syl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(12, 62, 38, 0.09);
  border-color: #c4d7cd;
}

/* Card Header */
.syl-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.syl-card-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.syl-level-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.syl-level-tag--ug {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}
.syl-level-tag--pg {
  background: #fff8e1;
  color: #b26a00;
  border: 1px solid #ffe082;
}
.syl-seat-tag {
  font-size: 0.74rem;
  color: #6c7e74;
  font-weight: 600;
}
.syl-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f4fbf7;
  color: var(--primary, #0c3e26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e1efe6;
}
.syl-card-icon svg {
  width: 22px;
  height: 22px;
}

/* Card Body */
.syl-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink, #14211a);
  margin: 0 0 6px;
}
.syl-card-subtitle {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-deep, #b26a00);
  margin: 0 0 14px;
}
.syl-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 0.8rem;
}
.syl-specs-list li {
  display: flex;
  flex-direction: column;
}
.syl-specs-list li span.spec-label {
  color: #7b8e83;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.syl-specs-list li strong {
  color: var(--ink, #14211a);
  font-weight: 700;
}

/* Focus Subject Tags */
.syl-tags-wrap {
  margin-bottom: 22px;
  flex-grow: 1;
}
.syl-tags-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7b8e83;
  margin-bottom: 8px;
  display: block;
}
.syl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.syl-tag {
  background: #f3f7f4;
  color: #2c4a38;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #e3ede6;
}

/* Card Actions */
.syl-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #edf3ef;
  margin-top: auto;
}
.btn-card-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary, #0c3e26);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.18s ease;
}
.btn-card-download:hover {
  background: #145938;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(12, 62, 38, 0.22);
}
.btn-card-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--ink, #14211a);
  border: 1px solid #c9d8ce;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-card-view:hover {
  background: #f4fbf7;
  border-color: var(--primary, #0c3e26);
  color: var(--primary, #0c3e26);
}

/* ---- Academic Framework & OBE Box ---- */
.syl-framework-box {
  background: #f8fcfa;
  border: 1px solid #d8ebd0;
  border-radius: 12px;
  padding: 32px;
  margin: 36px 0 44px;
}
.syl-framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.syl-framework-item {
  background: #ffffff;
  border: 1px solid #e3eee7;
  border-radius: 10px;
  padding: 20px;
}
.syl-framework-item h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary, #0c3e26);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.syl-framework-item p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft, #5a6e62);
  margin: 0;
}

/* ---- Academic Resource Links Grid ---- */
.syl-resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}
.syl-res-card {
  background: #ffffff;
  border: 1px solid #e1e9e4;
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.18s ease;
}
.syl-res-card:hover {
  border-color: var(--primary, #0c3e26);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(12, 62, 38, 0.08);
}
.syl-res-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0f7f2;
  color: var(--primary, #0c3e26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.syl-res-icon svg {
  width: 20px;
  height: 20px;
}
.syl-res-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink, #14211a);
}
.syl-res-text span {
  font-size: 0.74rem;
  color: var(--ink-soft, #5a6e62);
}

/* ---- Bottom CTA Banner ---- */
.syl-cta {
  background: linear-gradient(135deg, var(--primary-deep, #062b18) 0%, #0c3e26 100%);
  border-radius: 14px;
  padding: 36px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
  box-shadow: 0 10px 24px rgba(6, 43, 24, 0.18);
}
.syl-cta-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}
.syl-cta-text p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 600px;
}
.syl-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ---- Empty State (Search / Filter) ---- */
.syl-empty {
  display: none;
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
  border: 1px dashed #c9d8ce;
  border-radius: 12px;
  margin-bottom: 30px;
}
.syl-empty svg {
  width: 48px;
  height: 48px;
  color: #9cb1a5;
  margin-bottom: 12px;
}
.syl-empty h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink, #14211a);
  margin: 0 0 6px;
}
.syl-empty p {
  font-size: 0.88rem;
  color: var(--ink-soft, #5a6e62);
  margin: 0;
}

/* ---- Responsive Media Queries ---- */
@media (max-width: 1024px) {
  .syl-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .syl-framework-grid {
    grid-template-columns: 1fr;
  }
  .syl-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .syl-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}
@media (max-width: 768px) {
  .syl-hero {
    padding: 42px 0 48px;
  }
  .syl-grid {
    grid-template-columns: 1fr;
  }
  .syl-stat-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .syl-filter-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .syl-search-box {
    width: 100%;
  }
  .syl-resources-grid {
    grid-template-columns: 1fr;
  }
}
