:root {
  --ifsp-green: #2e7d32;
  --ifsp-light-green: #4caf50;
  --ifsp-dark-green: #1b5e20;
  --bg: #f8f9fa;
  --text: #222;
  --card: #fff;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Hero */
.hero {
    background-color: #ffffff;
  /* background: linear-gradient(to bottom, var(--ifsp-green), var(--ifsp-dark-green)); */
  color: black;
  text-align: center;
  padding: 4rem 1rem;
  box-shadow: var(--shadow);
}

.hero-logo {
  max-width: 240px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero-meta {
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero-meta .highlight {
  font-weight: 600;
  color: var(--ifsp-light-green);
}

/* Cards */
.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--card);
}

.card h2,
.card h3 {
  margin-bottom: 1rem;
}

.border-green {
  border-left: 6px solid var(--ifsp-green);
  padding-left: 1rem;
}

/* Carousel */
.carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
}

.btn-if {
  background: var(--ifsp-green);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.4);
  transition: all 0.3s ease;
}

.btn-if:hover {
  background: var(--ifsp-light-green);
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.5);
  color: white;
}

/* Students grid */
.students {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.demandante-card {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: var(--maxwidth);
  margin: 2rem auto;
  gap: 0; /* remove espaço entre os itens */
}

.demandante-card img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 1rem; /* controle o espaço manualmente */
}

.img-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.img-wrapper img {
  transition: transform 0.3s ease;
}

.img-wrapper img:hover {
  transform: scale(1.05);
}


.student {
  background: var(--ifsp-light-green);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.student:hover {
  transform: translateY(-3px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  background: var(--ifsp-dark-green);
  color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ifsp-green);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: none;
  z-index: 1000;
}

#backToTop:hover {
  background: var(--ifsp-light-green);
  transform: translateY(-3px);
}
#backToTop:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.5);
}