/* ============================================
   CareRealm (c) Dr. Inbar Livnat
   GitHub Pages Stylesheet
   
   USAGE: Place this style.css and index.html
   in the root of your GitHub repository.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Georgia", serif;
  background: #f9f6f1;
  color: #2c2c2c;
  line-height: 1.7;
}

/* ---- NAV ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 246, 241, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0d8cc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 60px;
}

.nav-brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-family: Georgia, serif;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #5c3d2e;
  border-bottom-color: #5c3d2e;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 520px;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
              url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1400&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
}

.hero-content { max-width: 700px; }

.hero-label {
  color: #f0e8d8;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  color: white;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.hero-sub {
  color: #e8ddd0;
  font-size: 20px;
  line-height: 1.6;
}

.hero-by {
  color: #c8b89a;
  font-size: 15px;
  margin-top: 16px;
}

.hero-by strong { color: #f0e8d8; }

/* ---- LAYOUT ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section {
  margin-bottom: 80px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.bar {
  width: 4px;
  height: 28px;
  background: #5c3d2e;
  border-radius: 2px;
  display: block;
}

.section-title h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
}

/* ---- TEXT BOX ---- */
.text-box {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
  font-size: 16px;
  color: #444;
  line-height: 1.9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.text-box p + p { margin-top: 16px; }

/* ---- CARDS (3-col) ---- */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.card-body p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

/* ---- RESEARCH CARDS (2-col) ---- */
.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.research-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border-left: 4px solid #5c3d2e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.research-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.research-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ---- PROJECTS ---- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-item {
  background: white;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-info { flex: 1; }

.project-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.project-info p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
}

.year {
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 8px;
}

.badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.ongoing { background: #e8f5e9; color: #2e7d32; }
.badge.completed { background: #e3f2fd; color: #1565c0; }
.badge.developing { background: #fff8e1; color: #f57f17; }

/* ---- PUBLICATIONS ---- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-item {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pub-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0e8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pub-info { flex: 1; }

.pub-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.pub-info p {
  font-size: 13px;
  color: #888;
  margin-top: 3px;
}

.badge-pub {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  background: #f0e8d8;
  color: #5c3d2e;
  font-weight: 600;
  flex-shrink: 0;
}

.scholar-btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: #5c3d2e;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.2s;
}

.scholar-btn:hover { background: #4a3025; }

/* ---- PEOPLE ---- */
.people-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.people-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid #f0e8d8;
}

.people-info h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.people-title {
  font-size: 14px;
  color: #5c3d2e;
  font-weight: 600;
  margin-bottom: 16px;
}

.people-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tags span {
  padding: 4px 12px;
  background: #f0e8d8;
  border-radius: 20px;
  font-size: 12px;
  color: #5c3d2e;
  font-weight: 600;
}

/* ---- CONTACT ---- */
.contact-grid {
  background: white;
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.contact-info p {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info li {
  font-size: 14px;
  color: #555;
}

.contact-info a {
  color: #5c3d2e;
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e0d8cc;
  font-size: 14px;
  font-family: Georgia, serif;
  outline: none;
  background: #fafafa;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5c3d2e;
  background: white;
}

.contact-form textarea { resize: vertical; }

.contact-form button {
  padding: 13px;
  background: #5c3d2e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: Georgia, serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover { background: #4a3025; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid #e0d8cc;
  text-align: center;
  padding: 28px;
  color: #999;
  font-size: 13px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { gap: 14px; }
  .hero h1 { font-size: 40px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .people-card { flex-direction: column; align-items: center; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .tags { justify-content: center; }
}

/* ===== People section additions - keeps existing design ===== */

.people-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ededed;
}

.people-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #222222;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.person-card.no-photo {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px 16px;
}

.person-card.no-photo h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111111;
}

.people-photo {
  border-radius: 14px;
}

.people-names {
  margin: 0;
  padding-left: 20px;
}

.people-names li {
  margin-bottom: 6px;
  color: #111111;
}
