
/* =====================================
   YEO - Youth Environmental Opportunities
   Main stylesheet
   ===================================== */

:root {
  --green-950: #123d2b;
  --green-900: #174c35;
  --green-800: #216344;
  --green-700: #2f8055;
  --green-100: #e8f4e9;
  --green-50: #f4f8f1;
  --lime: #c6ed83;
  --text: #20372b;
  --muted: #718076;
  --border: #e2e9e1;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(18, 61, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

body,
button,
input,
select {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
  font-size: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #75b85c;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.6;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68ad50;
  display: inline-block;
  flex-shrink: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 233, 225, 0.85);
  backdrop-filter: blur(14px);
}

.nav-wrapper {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--green-950);
  flex-shrink: 0;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: var(--white);
  background: var(--green-800);
  border-radius: 12px 12px 12px 4px;
  font-size: 1.2rem;
  font-weight: 900;
}

.brand-dot {
  color: #75ad48;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.9rem;
  color: #526257;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--green-700);
}

.nav-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--green-950);
  color: white;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-950);
}

/* Hero */

.hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 85% 15%, #e5f2df 0, transparent 35%),
    linear-gradient(135deg, #f8faf5 0%, #f0f7eb 100%);
}

.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 45px;
  padding-block: 75px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 23px 0 20px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -3px;
  font-weight: 850;
  color: var(--green-950);
}

.hero h1 span {
  color: #4c925a;
}

.hero-description {
  max-width: 510px;
  color: #647468;
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  padding: 13px 19px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--green-900);
}

.button-primary:hover {
  background: var(--green-700);
}

.button-outline {
  color: var(--green-900);
  border-color: #cbd9c9;
  background: rgba(255, 255, 255, 0.6);
}

.button-outline:hover {
  background: white;
}

.hero-note {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #728075;
  font-size: 0.82rem;
}

/* Hero illustration: CSS shapes, no image API */

.hero-art {
  position: relative;
  min-height: 425px;
  display: grid;
  place-items: center;
}

.art-orbit {
  position: absolute;
  border: 1px solid rgba(77, 136, 84, 0.19);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.orbit-one {
  width: 420px;
  height: 280px;
}

.orbit-two {
  width: 350px;
  height: 420px;
  transform: rotate(35deg);
}

.art-circle {
  width: min(290px, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #a6d77c, #3e8a52 72%);
  box-shadow:
    0 25px 70px rgba(42, 107, 60, 0.2),
    inset -12px -18px 35px rgba(12, 69, 37, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  position: relative;
  z-index: 1;
}

.art-leaf {
  font-size: 7rem;
  line-height: 1.1;
  color: #d5f2a9;
}

.art-earth {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 7px;
  margin-left: 7px;
}

.art-caption {
  margin-top: 6px;
  font-size: 0.56rem;
  letter-spacing: 2px;
  opacity: 0.9;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border-radius: 13px;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  font-size: 0.84rem;
  color: var(--green-950);
}

.floating-card small {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 2px;
}

.floating-icon {
  font-size: 1.65rem;
}

.floating-card-top {
  top: 45px;
  right: -3px;
}

.floating-card-bottom {
  bottom: 42px;
  left: -10px;
}

/* Section headings */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 36px;
}

.section-heading h2,
.about-content h2,
.contact-panel h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -1.5px;
  line-height: 1.2;
  color: var(--green-950);
}

.section-heading h2 span,
.about-content h2 span {
  color: #4e925b;
}

.section-heading p,
.about-content p,
.contact-panel p {
  color: var(--muted);
  margin: 10px 0 0;
}

.directory-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--green-50);
  border-radius: 100px;
  padding: 9px 14px;
  font-size: 0.78rem;
  color: var(--green-800);
  white-space: nowrap;
}

/* Search */

.search-panel {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px;
  background: #f7f9f6;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 14px;
  min-width: 0;
}

.search-box > span {
  color: #71907a;
  font-size: 1.8rem;
}

.search-box input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input:focus-visible {
  outline: none;
}

.search-box:focus-within {
  outline: 3px solid #75b85c;
  outline-offset: 2px;
}

.search-box input::placeholder {
  color: #98a49a;
}

.search-box kbd {
  color: #86938a;
  font-size: 0.65rem;
  letter-spacing: 1px;
}

.filter-label {
  color: #718076;
  font-size: 0.78rem;
  font-weight: 700;
}

.search-panel select {
  min-width: 160px;
  padding: 13px 30px 13px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--green-950);
  cursor: pointer;
}

/* Category chips */

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 23px 0 28px;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 100px;
  background: white;
  color: #657269;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 650;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: #9ebba1;
  color: var(--green-800);
}

.chip.active {
  color: white;
  border-color: var(--green-900);
  background: var(--green-900);
}

/* Results and cards */

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}

.results-bar p {
  margin: 0;
  font-weight: 750;
  color: var(--green-950);
  font-size: 0.9rem;
}

.results-bar > span {
  color: #849087;
  font-size: 0.75rem;
  text-align: right;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.opportunity-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 17px;
  padding: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.opportunity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Wide, locally bundled feature image at the top of every opportunity card. */
.card-media {
  position: relative;
  isolation: isolate;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #dcebd8, #b8d6c0 52%, #edf4e8);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 38, 27, 0.04), transparent 38%, rgba(10, 38, 27, 0.12));
}

.card-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.opportunity-card:hover .card-feature-image {
  transform: scale(1.045);
}

.card-media.image-failed::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  z-index: 0;
}

.card-media .category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 12px rgba(18, 61, 43, 0.10);
  backdrop-filter: blur(10px);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px 22px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  padding: 6px 10px;
  font-size: 0.69rem;
  font-weight: 800;
  background: #edf5e9;
  color: #376e42;
}

.category-badge.scholarship {
  background: #edf0ff;
  color: #5159a4;
}

.category-badge.grant {
  background: #fff1dc;
  color: #97611b;
}

.category-badge.fellowship {
  background: #f6eafd;
  color: #8050a3;
}

.card-title {
  color: var(--green-950);
  font-size: 1.1rem;
  line-height: 1.45;
  margin: 0 0 11px;
}

.card-description {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
  margin: 0 0 19px;
}

.card-meta {
  display: grid;
  gap: 9px;
  padding: 15px 0;
  border-top: 1px solid #edf0eb;
  border-bottom: 1px solid #edf0eb;
  margin-top: auto;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #68766c;
  font-size: 0.77rem;
}

.meta-row span:first-child {
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.details-button {
  border: 0;
  background: transparent;
  color: var(--green-800);
  font-weight: 750;
  font-size: 0.8rem;
  padding: 8px 0;
  text-align: left;
}

.details-button:hover {
  color: var(--green-950);
}

.apply-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: var(--green-900);
  color: white;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 750;
  text-align: center;
}

.apply-link:hover {
  background: var(--green-700);
}

.directory-disclaimer {
  margin-top: 28px;
  border-left: 3px solid #8dbb70;
  background: var(--green-50);
  border-radius: 0 9px 9px 0;
  padding: 15px 18px;
  color: #647468;
  font-size: 0.8rem;
}

.directory-disclaimer strong {
  color: var(--green-950);
}

.empty-state {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed #cbd9c9;
  border-radius: 14px;
  background: #fbfcfa;
}

.empty-icon {
  color: #79a780;
  font-size: 3rem;
}

.empty-state h3 {
  margin: 8px 0;
  color: var(--green-950);
}

.empty-state p {
  margin-bottom: 22px;
  color: var(--muted);
}

/* About */

.about-section {
  background: var(--green-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 75px;
  align-items: center;
}

.about-visual {
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-visual-inner {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at 75% 25%, #b8df8c 0 9%, transparent 9.5%),
    linear-gradient(145deg, #e1f0d6, #a6ce8f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.about-visual-inner::before,
.about-visual-inner::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 210px;
  border-radius: 50%;
  background: #7fb77a;
  bottom: -115px;
  left: -50px;
  transform: rotate(-12deg);
}

.about-visual-inner::after {
  width: 380px;
  height: 170px;
  background: #477f56;
  bottom: -120px;
  left: 100px;
  transform: rotate(12deg);
}

.about-sun {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  top: 45px;
  right: 50px;
  background: #f9f0bd;
}

.about-plant {
  position: relative;
  z-index: 1;
  font-size: 8rem;
  color: var(--green-800);
  line-height: 1.1;
  transform: rotate(-12deg);
}

.about-visual-text {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 2px;
  margin-top: 10px;
  text-align: center;
}

.about-content h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin: 16px 0 21px;
}

.about-content p {
  line-height: 1.9;
  margin: 0 0 15px;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
  color: var(--green-800);
  font-size: 0.9rem;
  font-weight: 800;
}

.text-link:hover {
  color: var(--green-950);
}

/* Contact */

.contact-section {
  padding: 75px 0;
}

.contact-panel {
  background: var(--green-950);
  border-radius: 19px;
  padding: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.contact-panel .eyebrow {
  color: var(--lime);
}

.contact-panel h2 {
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.contact-panel p {
  color: #c1d3c6;
  max-width: 580px;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.button-light {
  color: var(--green-950);
  background: var(--lime);
}

.button-light:hover {
  background: #d8f5ac;
}

.button-contact-outline {
  color: white;
  border-color: #6d8a76;
  background: transparent;
}

.button-contact-outline:hover {
  background: #28533d;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: white;
}

.footer-inner {
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-block: 20px;
}

.footer-brand {
  font-size: 1.25rem;
}

.footer-brand .brand-icon {
  width: 31px;
  height: 31px;
  font-size: 1rem;
}

.footer-inner p {
  color: #829087;
  font-size: 0.76rem;
  margin: 0;
}

/* Details dialog */

.details-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: 85vh;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 17px;
  color: var(--text);
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.2);
}

.details-dialog::backdrop {
  background: rgba(10, 29, 18, 0.6);
  backdrop-filter: blur(3px);
}

.dialog-content {
  position: relative;
  padding: 32px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  color: var(--green-950);
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-content h2 {
  padding-right: 25px;
  color: var(--green-950);
  font-size: 1.65rem;
  line-height: 1.3;
}

.dialog-content p,
.dialog-content li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.dialog-content .button {
  margin-top: 10px;
}


/* About: mission and vision cards */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 25px;
}

.pillar-card {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
}

.pillar-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 7px;
  border-radius: 11px;
  background: var(--green-100);
  font-size: 1.25rem;
}

.pillar-card h3 {
  margin: 5px 0 8px;
  color: var(--green-950);
  font-size: 1rem;
}

.about-content .pillar-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.75;
}

/* Disclaimer */
.disclaimer-section {
  padding-top: 78px;
  padding-bottom: 78px;
  background: #fff;
}

.disclaimer-panel {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 45px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfcfa;
}

.disclaimer-heading h2 {
  margin: 13px 0;
  color: var(--green-950);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -1px;
}

.disclaimer-heading h2 span {
  color: #4e925b;
}

.disclaimer-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

.disclaimer-copy p:last-child {
  margin-bottom: 0;
}

/* Contact details and social media */
.contact-panel {
  flex-wrap: wrap;
}

.contact-copy {
  flex: 1 1 430px;
}

.contact-details {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.contact-details a {
  width: fit-content;
  color: #e0eee3;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--lime);
}

.contact-actions {
  align-self: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: 100%;
  padding-top: 22px;
  margin-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.social-links a {
  color: #d5e4d8;
  font-size: 0.82rem;
  font-weight: 650;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--lime);
}

/* Footer navigation */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: #ffffff;
  background: var(--green-800);
  font-size: 0.76rem;
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--green-800);
}

/* Category badge colors */
.category-badge.internship {
  background: #e5f4e9;
  color: #28633b;
}

.category-badge.conference {
  background: #e4f3f6;
  color: #286b78;
}

.category-badge.award {
  background: #fff2d8;
  color: #8b641b;
}

.category-badge.competition {
  background: #fce8e7;
  color: #9a4741;
}


/* Responsive layout */

@media (max-width: 960px) {
  .main-nav {
    gap: 17px;
  }

  .nav-wrapper {
    gap: 17px;
  }

  .hero-grid {
    gap: 15px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 5.5vw, 4rem);
  }

  .hero-art {
    transform: scale(0.9);
  }

  .opportunity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    gap: 40px;
  }

  .disclaimer-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 30px, 560px);
  }

  .section {
    padding: 70px 0;
  }

  .nav-wrapper {
    min-height: 68px;
    position: relative;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    padding: 12px;
    box-shadow: var(--shadow);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
    border-radius: 7px;
  }

  .main-nav a:hover {
    background: var(--green-50);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 65px 30px;
    gap: 15px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 4rem);
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 0.96rem;
  }

  .hero-art {
    min-height: 340px;
    transform: scale(0.86);
    margin: -5px -20px;
  }

  .orbit-one {
    width: 340px;
    height: 235px;
  }

  .orbit-two {
    width: 290px;
    height: 350px;
  }

  .floating-card-top {
    right: 0;
    top: 18px;
  }

  .floating-card-bottom {
    left: 0;
    bottom: 16px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .search-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 11px;
  }

  .search-box {
    flex: auto;
  }

  .search-box kbd {
    display: none;
  }

  .filter-label {
    margin: 2px 0 -9px;
  }

  .search-panel select {
    width: 100%;
  }

  .category-chips {
    gap: 8px;
  }

  .chip {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .results-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .results-bar > span {
    text-align: left;
  }

  .opportunity-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .opportunity-card {
    padding: 0;
  }

  .card-media {
    height: 190px;
  }

  .card-content {
    padding: 19px 20px 21px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .disclaimer-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .disclaimer-panel {
    padding: 24px 20px;
    gap: 15px;
  }

  .about-visual-inner {
    min-height: 270px;
  }

  .contact-section {
    padding: 50px 0;
  }

  .contact-panel {
    padding: 29px 22px;
    gap: 24px;
  }

  .contact-copy {
    flex-basis: 100%;
  }

  .social-links {
    gap: 12px 16px;
  }

  .footer-links {
    gap: 10px 14px;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .contact-actions .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-block: 25px;
  }

  .dialog-content {
    padding: 25px 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}



/* Live listings: deadline, share controls and expanded opportunity details */
.image-status {
  position: absolute;
  z-index: 2;
  left: 13px;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 26px);
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  background: rgba(255,255,255,.93);
  color: #18543a;
  font-size: .68rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(18,61,43,.1);
  backdrop-filter: blur(10px);
}

.image-status .status-dot,
.opportunity-status .status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #67ad54;
}

.image-status.is-closed,
.opportunity-status.is-closed {
  color: #8c4141;
  background: #fff4f2;
}

.image-status.is-closed .status-dot,
.opportunity-status.is-closed .status-dot {
  background: #c86767;
}

.deadline-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 15px;
  padding: 11px 12px;
  border: 1px solid #e6eee5;
  border-radius: 11px;
  background: #f7faf5;
  color: #1c5137;
}

.deadline-card.closes-soon {
  border-color: #f0d5b3;
  background: #fff8ee;
  color: #8b571c;
}

.deadline-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e9f3e6;
  font-size: 1.4rem;
  line-height: 1;
}

.deadline-card.closes-soon .deadline-icon {
  background: #f9e8d0;
}

.deadline-card > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.deadline-card small {
  color: #78867b;
  font-size: .66rem;
  font-weight: 700;
}

.deadline-card strong {
  font-size: .78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #edf0eb;
}

.share-caption {
  margin-right: 2px;
  color: #87938a;
  font-size: .7rem;
  font-weight: 750;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid #e3eae2;
  border-radius: 8px;
  background: #fff;
  color: #4e6456;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.share-button span:first-child {
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  font-size: .75rem;
  font-weight: 900;
}

.share-button:hover {
  transform: translateY(-1px);
  border-color: #b8d0ba;
  background: #f6faf4;
  color: #174e35;
}

.details-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(88vh, 900px);
}

.details-content h3,
.dialog-content h3 {
  margin-top: 22px;
  margin-bottom: 7px;
  color: var(--green-950);
  font-size: 1rem;
}

.details-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 28px;
}

.opportunity-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1f6540;
  font-size: .72rem;
  font-weight: 800;
}

.details-organization {
  margin-top: -4px;
  font-weight: 650;
}

.details-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 24px;
}

.detail-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e8eee6;
  border-radius: 11px;
  background: #f8faf7;
}

.detail-fact span {
  color: #7b897e;
  font-size: .7rem;
  font-weight: 750;
}

.detail-fact strong {
  color: #214e37;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-deadline {
  border-color: #cfe4cd;
  background: #f1f8ef;
}

.details-requirements {
  padding-left: 22px;
}

.details-requirements li {
  margin-bottom: 7px;
}

.details-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.details-source-actions .button {
  margin-top: 0;
}

.details-note {
  padding: 12px 14px;
  border-left: 3px solid #9cbf80;
  border-radius: 0 8px 8px 0;
  background: #f6faf3;
  font-size: .78rem !important;
}

.share-actions-modal {
  margin-top: 18px;
  padding-top: 16px;
}

@media (max-width: 600px) {
  .card-media {
    height: 190px;
  }

  .share-actions {
    gap: 6px;
  }

  .share-button {
    flex: 1 1 auto;
    padding-inline: 7px;
  }

  .share-button span:last-child {
    font-size: .65rem;
  }

  .dialog-content {
    padding: 24px 19px;
  }

  .details-facts {
    grid-template-columns: 1fr;
  }

  .details-status-row {
    padding-right: 30px;
  }
}
