:root {
  --bg: #f5efe5;
  --surface: #fffaf2;
  --text: #1f1a17;
  --muted: #5e544d;
  --accent-presence: #9b2c2c;
  --accent-site: #1d6f5f;
  --accent-tour: #c27c18;
  --ring: rgba(155, 44, 44, 0.25);
  --shadow-soft: 0 10px 30px rgba(31, 26, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans Hebrew", "Assistant", "Rubik", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 10%, rgba(29, 111, 95, 0.14), transparent 40%),
    radial-gradient(circle at 8% 90%, rgba(155, 44, 44, 0.12), transparent 45%),
    var(--bg);
  line-height: 1.65;
}

.wrapper {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding: 2.5rem 0 3.5rem;
}

.hero {
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
}

.subtitle-main {
  font-weight: 400;
  color: #4a4340;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
}

.subtitle-notes {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  color: var(--muted);
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid #eadfce;
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 6px 18px rgba(31, 26, 23, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 280px;
}

.actions {
  margin-top: auto;
}

.site-link {
  display: flex;
  justify-content: flex-start;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.site-link--empty {
  display: none;
}

.site-pill {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-site);
  border: 1px solid rgba(29, 111, 95, 0.4);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(29, 111, 95, 0.07);
}

.card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.english-name {
  margin: 0.2rem 0 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  direction: ltr;
}

.org-website-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0066cc;
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 0.1rem;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.org-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.org-instagram-link i {
  font-size: 0.9em;
  margin-right: 0.2rem;
}

.org-facebook-link i {
  font-size: 0.9em;
  margin-right: 0.2rem;
}

.org-website-link:hover {
  color: #0052a3;
}

.org-website-link span {
  text-decoration: underline;
}

.org-website-link:not(.org-instagram-link):not(.org-facebook-link)::after {
  content: '⬈';
  font-size: 0.9em;
}

.card h2 a:hover {
  color: #16604f;
}

.card h2 a::after {
  content: '↗';
  font-size: 0.85em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.card h2 a:hover::after {
  opacity: 1;
}

/* Distinct icons per link type */
.card h2 a.link-icon--site::after {
  content: '🌐';
  font-size: 0.9em;
}

.card h2 a.link-icon--presence::after {
  content: '🛡️';
  font-size: 0.9em;
}

.card h2 a.link-icon--tour::after {
  content: '👥';
  font-size: 0.9em;
}

.location {
  margin: 0;
  color: #2c2724;
  font-size: 0.95rem;
  font-weight: 700;
}

.description {
  margin: 0;
  color: #3a322d;
}

.actions {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.action {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
}

.action--empty {
  opacity: 0;
}

.btn {
  text-decoration: none;
  color: white;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.btn--presence {
  background: var(--accent-presence);
}

.btn--site {
  background: var(--accent-site);
}

.btn--tour {
  background: var(--accent-tour);
}

.btn--english {
  text-align: left;
  direction: ltr;
}

.action--english-left {
  margin-right: auto;
}

/* Volunteer Form Section */
.volunteer-form {
  margin-top: 3rem;
  text-align: center;
}

.volunteer-link {
  display: inline-block;
  background: var(--accent-presence);
  color: white;
  text-decoration: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(155, 44, 44, 0.25);
}

.volunteer-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155, 44, 44, 0.35);
}

.volunteer-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.volunteer-link i {
  margin-left: 0.75rem;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .wrapper {
    padding: 1.5rem 0 2rem;
  }

  .card {
    min-height: unset;
    grid-template-rows: repeat(4, auto);
  }

  .action {
    min-height: unset;
  }

  .volunteer-form {
    margin-top: 2rem;
  }

  .volunteer-link {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
 
