/* =========================================================
   Custom academic website styling
   Kshitij Tandon
   ========================================================= */

/* ---------- Global polish ---------- */

body {
  background: #ffffff;
}

h1, h2, h3 {
  letter-spacing: -0.025em;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  color: #333333;
}

a {
  color: #137a8a;
}

a:hover {
  color: #0f5963;
}

/* ---------- Homepage hero ---------- */

.home-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem auto;
  padding: 2.8rem 1.5rem 2.4rem 1.5rem;
  background: linear-gradient(#fcfdfd, #ffffff);
  border-radius: 20px;
}

.home-hero img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: #333333;
}

.home-role {
  font-size: 1.08rem;
  line-height: 1.5;
  color: #444444;
  margin-bottom: 1.4rem;
}

.home-tagline {
  max-width: 760px;
  margin: 1.4rem auto 1.8rem auto;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333333;
}

.home-buttons {
  margin-top: 1.2rem;
}

.home-buttons a {
  display: inline-block;
  margin: 0.3rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid #154c52;
  border-radius: 999px;
  color: #154c52;
  text-decoration: none;
  font-weight: 600;
  background: #ffffff;
}

.home-buttons a:hover {
  background: #154c52;
  color: #ffffff;
  text-decoration: none;
}

/* ---------- Homepage sections ---------- */

.section-light,
.section-white {
  margin: 2.2rem 0;
  padding: 0;
  background: transparent;
}

/* ---------- Grids ---------- */

.research-grid,
.publication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  margin: 1.5rem 0 2.2rem 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.2rem 0;
}

/* ---------- Cards ---------- */

.research-card,
.publication-card,
.highlight-card {
  border: 1px solid #e5e8e8;
  border-radius: 14px;
  padding: 1.4rem;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-card:hover,
.publication-card:hover,
.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.085);
}

.research-card h3,
.publication-card h3 {
  margin-top: 0;
  color: #154c52;
  line-height: 1.25;
}

.research-card p,
.publication-card p {
  color: #444444;
}

.research-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.highlight-card {
  text-align: center;
  background: #f8fbfb;
}

.highlight-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: #154c52;
  margin-bottom: 0.35rem;
}

.highlight-label {
  font-size: 0.95rem;
  color: #555555;
}

.publication-card a {
  font-weight: 700;
}

/* ---------- News section ---------- */

.section-white ul {
  padding-left: 1.2rem;
}

.section-white li {
  margin-bottom: 0.55rem;
}

/* ---------- Footer cleanup ---------- */

footer {
  background-image: none !important;
}

/* ---------- Mobile tweaks ---------- */

@media (max-width: 768px) {
  .home-hero {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }

  .home-hero img {
    width: 180px;
    height: 180px;
  }

  .home-hero h1 {
    font-size: 2.2rem;
  }

  .home-tagline {
    font-size: 1.1rem;
  }

  .home-buttons a {
    padding: 0.55rem 0.9rem;
  }

  h2 {
    margin-top: 2.2rem;
  }
}

/* ---------- Research Tags ---------- */

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0 1.8rem 0;
}

.research-tags span,
.research-tags .tag {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #eef7f8;
  border: 1px solid #cfe3e6;
  color: #154c52;
  font-size: 0.92rem;
  font-weight: 600;
}

.research-tags span:hover,
.research-tags .tag:hover {
  background: #154c52;
  color: #ffffff;
  border-color: #154c52;
  transition: all 0.2s ease;
  cursor: default;
}

/* ---------- Outreach page ---------- */

.outreach-intro {
  max-width: 760px;
  margin: 0 auto 2.8rem auto;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #444444;
}

.outreach-list {
  max-width: 900px;
  margin: 0 auto;
}

.outreach-card {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e8e8;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
}

.outreach-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.075);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outreach-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  margin: 0 auto 1.4rem auto;
  border-radius: 12px;
}

.outreach-meta {
  margin-bottom: 0.5rem;
  color: #137a8a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.outreach-card h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: #154c52;
  font-size: 1.6rem;
  line-height: 1.3;
}

.outreach-card p {
  margin-bottom: 1rem;
  color: #444444;
  line-height: 1.7;
}

.outreach-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-weight: 700;
  text-decoration: none;
}

.outreach-link:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .outreach-intro {
    text-align: left;
    margin-bottom: 2rem;
  }

  .outreach-card {
    padding: 1.1rem;
  }

  .outreach-card h2 {
    font-size: 1.35rem;
  }

  .outreach-image {
    max-height: 380px;
  }
}

/* ---------- Software team / contribution ---------- */

.software-team {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 1rem 0;
}

.software-team span {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: #eef7f8;
  border: 1px solid #cfe3e6;
  color: #154c52;
  font-size: 0.8rem;
  line-height: 1.3;
}

.software-team strong {
  font-weight: 700;
}

.software-card h3 {
  margin-top: 0.45rem;
  margin-bottom: 0.9rem;
  color: #154c52;
  font-size: 1.3rem;
  line-height: 1.3;
}

.software-section-intro {
  max-width: 760px;
  margin: 0 0 1.6rem 0;
  color: #444444;
  line-height: 1.7;
}