/* ==========================================================================
   The Visible College — brand stylesheet
   Reproduces the al-folio site: primary #0018e9, navy #0a0839, white bg,
   Outfit headings + Plus Jakarta Sans body, 1030px content, fixed white
   navbar, deep-navy footer. Light mode only.
   ========================================================================== */
:root {
  --brand: #0018e9;
  --navy: #0a0839;
  --bg: #ffffff;
  --text: #0a0839;
  --muted: rgba(10, 8, 57, 0.66);
  --divider: rgba(10, 8, 57, 0.1);
  --max: 1030px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

hr, .vc-divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2.5rem 0;
}

/* ------- Navbar ------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(10, 8, 57, 0.09);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 50px; max-width: 280px; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  color: var(--navy); font-size: 1.0rem; font-weight: 500; text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a.nav-member {
  color: var(--brand); border: 1.5px solid var(--brand);
  padding: 6px 14px; border-radius: 3px; font-weight: 600; font-size: 0.92rem;
}
.nav-links a.nav-member:hover { background: var(--brand); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ------- Layout ------- */
.container {
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
  min-height: 70vh;
}
.page-title { font-size: 2.3rem; margin: 0 0 1.2rem; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ------- Buttons ------- */
.vc-btn {
  display: inline-block; background: var(--brand); color: #fff !important;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  padding: 11px 26px; border-radius: 3px; border: none; cursor: pointer;
  text-decoration: none !important; transition: opacity .15s; margin-top: 8px;
}
.vc-btn:hover { opacity: .84; }
.vc-btn-outline {
  background: transparent; color: var(--brand) !important; border: 2px solid var(--brand);
}
.vc-btn-outline:hover { background: var(--brand); color: #fff !important; opacity: 1; }

/* ------- Homepage hero ------- */
.vc-hero {
  position: relative; overflow: hidden;
  background: var(--brand); color: #fff;
  border-radius: 4px;
  padding: 68px 44px; margin: 0 0 2.5rem;
}
.vc-hero::before, .vc-hero::after {
  content: ""; position: absolute; background: var(--navy); z-index: 0;
}
.vc-hero::before { top: -20%; right: -10%; width: 60%; height: 140%; opacity: .38; transform: rotate(18deg); }
.vc-hero::after  { bottom: -30%; left: -8%; width: 45%; height: 120%; opacity: .18; transform: rotate(-12deg); }
.vc-hero h1 {
  position: relative; z-index: 1; color: #fff; font-size: 2.15rem; font-weight: 700;
  max-width: 780px; margin: 0 auto; text-align: center;
}

/* ------- Highlight box ------- */
.vc-highlight {
  border-left: 4px solid var(--brand); padding: 28px 36px; background: #fff;
  box-shadow: 0 2px 24px rgba(0, 24, 233, 0.07); border-radius: 2px; margin: 2rem 0 2.5rem;
}
.vc-highlight h3 { font-size: 1.4rem; color: var(--navy); margin: 0 0 10px; }
.vc-highlight h4 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.vc-highlight p { color: var(--muted); margin-bottom: 14px; }
.vc-label {
  display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--brand); margin-bottom: 10px;
}
.vc-embed { width: 100%; border: none; border-radius: 3px; }
.center { text-align: center; }

/* ------- Section headings ------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 2.5rem 0 1.2rem; gap: 1rem;
}
.section-head h2 { font-size: 1.6rem; margin: 0; }
.section-head a { font-size: 0.95rem; }

/* ------- People ------- */
.people-group { margin-bottom: 3rem; }
.people-group > .summary { color: var(--muted); max-width: 720px; }
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6rem; margin-top: 1.5rem;
}
.person {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .7rem;
}
.person-photo {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  background: #eeeef5; border: 1px solid var(--divider);
}
.person-name { font-family: 'Outfit'; font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.person-title { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.person-bio { font-size: .9rem; color: var(--text); }
.person-bio p { margin: .5rem 0; }
.person.no-bio .person-photo { width: 92px; height: 92px; }
.people-grid.figures { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.closing { color: var(--muted); font-style: italic; margin-top: 1.5rem; }

/* ------- Publications ------- */
.pub-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.pub-item { padding: 1.3rem 0; border-bottom: 1px solid var(--divider); }
.pub-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.pub-item h3 { font-size: 1.15rem; margin: .4rem 0 .3rem; }
.pub-byline { font-size: .88rem; color: var(--muted); margin: 0 0 .5rem; }
.pub-desc { font-size: .95rem; margin: 0 0 .6rem; }
.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.4rem; margin: 1.5rem 0;
}
.book-card { display: flex; flex-direction: column; }
.book-cover {
  aspect-ratio: 2 / 3; width: 100%; object-fit: cover; border-radius: 3px;
  background: #eeeef5; box-shadow: 0 2px 10px rgba(10,8,57,.12);
}
.book-title { font-family: 'Outfit'; font-weight: 600; font-size: .92rem; margin-top: .6rem; }
.book-author { font-size: .8rem; color: var(--muted); }

/* ------- Projects / cards ------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem; margin: 1.5rem 0;
}
.card {
  border: 1px solid var(--divider); border-radius: 5px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eeeef5; }
.card-body { padding: 1.1rem 1.3rem 1.4rem; }
.card-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.card-body h3 { margin: .3rem 0 .5rem; font-size: 1.2rem; }
.card-body p { color: var(--muted); font-size: .95rem; }

/* ------- News ------- */
.news-item { display: flex; gap: 1.4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--divider); }
.news-item img.thumb { width: 200px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.news-body h3 { margin: 0 0 .3rem; }
.news-date { font-size: .8rem; color: var(--muted); }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 1rem 0; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }

/* ------- Forms (member profile edit / login) ------- */
.form-card { max-width: 620px; }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.form-row input[type=text], .form-row textarea, .form-row input[type=file] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 4px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.form-row textarea { resize: vertical; }
.form-row .helptext { display: block; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.form-row.checkbox { display: flex; align-items: center; gap: .6rem; }
.form-row.checkbox label { margin: 0; }
.errorlist { color: #b00020; font-size: .85rem; list-style: none; padding: 0; margin: .3rem 0; }

/* ------- Members dashboard ------- */
.member-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.member-head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #eeeef5; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 10px; border-radius: 20px; }
.badge.public { background: rgba(0,24,233,.1); color: var(--brand); }
.badge.private { background: rgba(10,8,57,.08); color: var(--muted); }

/* ------- Google sign-in button ------- */
.google-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #fff; color: #3c4043 !important; border: 1px solid #dadce0;
  padding: 11px 22px; border-radius: 4px; font-weight: 600; font-size: .98rem;
  font-family: inherit; cursor: pointer;
  text-decoration: none !important; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.google-btn:hover { background: #f7f8fa; }
.google-btn svg { width: 18px; height: 18px; }

/* ------- Messages ------- */
.messages { margin-bottom: 1.5rem; }
.message { padding: .8rem 1.1rem; border-radius: 4px; margin-bottom: .6rem; font-size: .95rem; }
.message-success { background: rgba(0,24,233,.08); color: var(--navy); }
.message-error { background: #fdecea; color: #b00020; }
.message-info { background: rgba(10,8,57,.06); color: var(--navy); }

/* ------- Footer ------- */
.footer { background: var(--navy); color: rgba(255,255,255,.6); margin-top: 3rem; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 22px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .9rem;
}
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-socials { display: flex; gap: 1.1rem; }

/* ------- Responsive ------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--divider); padding: .5rem 20px 1rem;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a { padding: .7rem 0; width: 100%; }
  .news-item { flex-direction: column; }
  .news-item img.thumb { width: 100%; }
  .vc-hero { padding: 48px 24px; }
  .vc-hero h1 { font-size: 1.7rem; }
}
