/* CampusConnect design refinement layer.
   Loaded after the page CSS. Principles: one accent, hairline borders, no glows,
   no lift-on-hover, generous and consistent vertical rhythm, quiet secondary actions. */

/* ---------- Rhythm ---------- */
.container.my-4.my-md-5 { margin-top: clamp(2.5rem, 5vw, 4.5rem) !important; margin-bottom: clamp(2.5rem, 5vw, 4.5rem) !important; }
.section-header { margin-bottom: 1.75rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line-1, #e8ecf0); align-items: baseline; }
:root[data-theme="dark"] .section-header { border-bottom-color: rgba(255,255,255,.08); }
.section-title { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -0.025em; }

/* ---------- Quiet secondary links (was: green pill with glow) ---------- */
.view-all-link {
  background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none;
  color: var(--text-secondary, #475467); font-weight: 600; font-size: .875rem;
}
.view-all-link:hover { background: none; color: var(--text-primary, #0b1620); transform: none; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn-primary-cc {
  background: var(--brand-600, #00a86b); color: #fff; font-weight: 600; font-size: .9375rem;
  padding: .75rem 1.5rem; border-radius: var(--radius, 10px); box-shadow: none;
}
.btn-primary-cc:hover { background: #008f5a; color: #fff; transform: none; box-shadow: none; }
.btn-outline-cc {
  color: var(--text-primary, #0b1620); border: 1px solid var(--line-3, #e0e6ed); background: var(--surface, #fff);
  padding: .75rem 1.5rem; font-weight: 600; font-size: .9375rem;
}
.btn-outline-cc:hover { border-color: var(--text-primary, #0b1620); color: var(--text-primary, #0b1620); }
:root[data-theme="dark"] .btn-outline-cc { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
:root[data-theme="dark"] .btn-outline-cc:hover { border-color: #fff; color: #fff; }

/* ---------- Hero ---------- */
.hero-section::before { display: none; }
.hero-section img { filter: drop-shadow(0 16px 32px rgba(16, 24, 40, .14)) !important; }
.hero-tag { background: transparent; border: 1px solid var(--line-3, #e0e6ed); color: var(--text-secondary, #475467); letter-spacing: .08em; font-weight: 600; font-size: .7rem; }
.hero-stats { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; gap: 0; margin-top: 2rem; }
.hero-stat-item { min-width: 0; }
.hero-stat-label { line-height: 1.25; }
@media (max-width: 767.98px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; justify-content: stretch; }
  .hero-stats .hero-stat-item { padding-right: 0; margin-right: 0; border-right: 0; }
}
.hero-stat-item { padding-right: 1.75rem; margin-right: 1.75rem; border-right: 1px solid var(--line-3, #e0e6ed); }
.hero-stat-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
:root[data-theme="dark"] .hero-stat-item { border-right-color: rgba(255,255,255,.12); }
.hero-stat-number { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-stat-label { font-size: .8125rem; letter-spacing: 0; text-transform: none; }

/* ---------- Cards: hairline border, flat, no lift ---------- */
.cc-card { border: 1px solid var(--line-1, #e8ecf0); border-radius: var(--radius-lg, 16px); box-shadow: none; }
:root[data-theme="dark"] .cc-card { border-color: rgba(255,255,255,.08); }
.cc-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line-3, #d5dbe3); }
:root[data-theme="dark"] .cc-card:hover { border-color: rgba(255,255,255,.2); }
.img-wrapper:hover img { transform: scale(1.02); }
.card-category-tag {
  background: none; padding: 0; border-radius: 0; color: var(--text-tertiary, #667085);
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; margin-bottom: .4rem;
}
.cc-card .card-title { font-weight: 600; letter-spacing: -0.015em; }

/* ---------- App promo: calm navy panel instead of full-bleed neon green ---------- */
.app-section {
  background: var(--navy-900, #0d1b2a); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg, 16px); margin: 0;
}

/* ---------- Mobile: a compact, single-row header ---------- */
@media (max-width: 991.98px) {
  .top-navbar .container-fluid { flex-wrap: nowrap; }
  .top-navbar .nav-icon-group { width: auto; margin-bottom: 0; margin-left: auto; }
  .top-navbar .nav-hamburger-btn { margin-left: 0 !important; }
  .cc-marquee { white-space: nowrap; }
  .hero-search__input { font-size: .9rem; }
}
@media (max-width: 575.98px) {
  .hero-section { padding-top: 2rem; }
  .hero-stat-item { padding-right: 1rem; margin-right: 1rem; }
  .hero-stat-number { font-size: 1.4rem; }
}

.top-navbar .search-input { min-width: 0; box-sizing: border-box; }
