/* =========================
   BASE
========================= */
body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f7f6;
  color: #2c3e35;
  font-size: 16px;
  line-height: 1.65;
}

/* =========================
   HERO
========================= */
.hero{
  height:60vh; /* reduced (was 80vh) */
  background-image: url("../figures/ai_forest_lidar.jpg");
  background-size: cover;
  background-position: center 35%;
  position: relative;
}

.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.20);
}

.hero-overlay{
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-overlay h1{
  font-size: 3.2rem; /* reduced */
  margin: 0;
  letter-spacing: 1.5px;
}

.hero-overlay h2{
  font-size: 1.15rem; /* reduced */
  font-weight: 300;
  margin-top: 8px;
}

/* =========================
   CONTENT LAYOUT
========================= */
.container{
  max-width: 1200px; /* wider but not huge */
  margin: 0 auto;
  padding: 60px 24px; /* reduced */
}

.container h2{
  font-size: 1.95rem; /* reduced */
  margin: 0 0 12px 0;
}

.container h3{
  font-size: 1.2rem; /* reduced */
  margin: 22px 0 10px 0;
  color: #2c3e35;
}

.lead{
  font-size: 1.08rem; /* reduced */
  line-height: 1.7;
  color: #4f6f61;
  margin-bottom: 18px;
  max-width: 980px;
}

/* =========================
   CARD
========================= */
.card{
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin: 30px 0;
}

.card.wide{
  padding: 36px 44px; /* reduced */
}

/* Exercises list */
.ex-list{
  margin: 10px 0 0 18px;
}

.ex-list li{
  margin: 10px 0;
}

/* =========================
   LINKS
========================= */
a{
  color: #1f7a5c;
  text-decoration: none;
  font-weight: 600;
}

a:hover{
  text-decoration: underline;
}

/* =========================
   BADGES + COUNTERS + DOWNLOAD BUTTONS
========================= */

/* Badges container */
.badge-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.badge-row img{
  height: 22px;
  display: inline-block;
}

/* Counters line under badges */
.counters{
  margin-top: 0.8rem;
}

/* Each exercise row becomes flexible to fit the download button */
.ex-item{
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Download button style */
.ex-download{
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #e6f3ee;
  color: #1b7f5c;
  text-decoration: none;
  white-space: nowrap;
}

.ex-download:hover{
  text-decoration: underline;
}

/* =========================
   NEW: INDEX GRID (for "Learning & Resources")
========================= */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

/* Inner cards inside the big card */
.card-inner{
  background: #f8fbf9;
  border: 1px solid rgba(44, 62, 53, 0.10);
  border-radius: 12px;
  padding: 16px;
}

/* Make inner-card titles feel clean */
.card-inner h3{
  margin-top: 0;
}

/* =========================
   NEW: TECHNOLOGY TAGS
========================= */
.tech-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tech-tag{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(44, 62, 53, 0.18);
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c3e35;
}

/* =========================
   AUTHOR (conference-style)
========================= */
.author{
  margin: 45px auto 30px;
  text-align: center;
  max-width: 900px;
}

.author-pic{
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.author-name{
  margin: 10px 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
}

.author-role{
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #2f5f4f;
}

.author-desc{
  margin: 0 auto 10px;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 900px;
}

.author-links{
  font-size: 0.95rem;
}

.author-links a{
  font-weight: 700;
}

/* =========================
   FOOTER
========================= */
footer{
  margin-top: 50px;
  font-size: 0.9rem;
  text-align: center;
  color: #666;
}

/* =========================
   MOBILE (small screens)
========================= */
@media (max-width: 800px){
  .grid-2{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .hero{
    height: 55vh;
  }

  .hero-overlay{
    bottom: 35px;
    padding: 0 12px;
  }

  .hero-overlay h1{
    font-size: 2.4rem;
  }

  .hero-overlay h2{
    font-size: 1rem;
  }

  .container{
    padding: 40px 18px;
  }

  .card.wide{
    padding: 22px 18px;
  }

  /* Keep badges nice on mobile */
  .badge-row img{
    height: 20px;
  }
}
