:root {
  --ink: #17202a;
  --muted: #5d6b7a;
  --line: #d9e1e8;
  --paper: #ffffff;
  --mist: #f3f7f8;
  --teal: #126c67;
  --teal-dark: #0d4e4b;
  --gold: #b98119;
  --red: #b42318;
  --green: #16794c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  margin-top: 4px;
}

.brand-title {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}


nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 600;
}

.inline-form {
  display: inline;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gear-button {
  appearance: none;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b8c7d2;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(18, 108, 103, 0.18);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gear-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gear-button:focus-visible {
  outline: 3px solid rgba(185, 129, 25, 0.35);
  outline-offset: 2px;
}

.gear-button:hover,
.account-menu.open .gear-button {
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(13, 78, 75, 0.22);
  transform: translateY(-1px);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none !important;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.14);
}

.account-menu.open .account-menu-panel {
  display: grid !important;
  gap: 4px;
}

.account-menu-panel form {
  margin: 0;
}

.account-menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.account-menu-item:hover {
  color: #fff;
  background: var(--teal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--teal);
  background: #fff;
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
}

.button.warning {
  border-color: var(--gold);
  background: var(--gold);
}

.button.disabled,
.button:disabled {
  border-color: #9aa8b4;
  background: #9aa8b4;
  cursor: not-allowed;
}

.hero {
  position: relative;
  min-height: 235px;
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 43px) clamp(118px, 12vw, 190px);
  background:
    linear-gradient(90deg, rgba(8, 47, 48, 0.88), rgba(8, 47, 48, 0.58)),
    url("/images/career-disha-hero.svg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-strip-logo {
  position: absolute;
  top: 0;
  z-index: 1;
  width: clamp(86px, 9vw, 150px);
  height: 100%;
  object-fit: contain;
}

.hero-strip-logo-left {
  left: 0;
  object-position: left center;
}

.hero-strip-logo-right {
  right: 0;
  object-position: right center;
}

.hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.55;
}

.hero .secondary {
  border-color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: 56px clamp(18px, 6vw, 80px);
}

.band {
  background: var(--mist);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.home-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--mist);
  padding-top: 28px;
  padding-bottom: 28px;
}

.home-panel {
  max-height: 720px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-panel .section-heading {
  margin-bottom: 10px;
}

.home-panel .section-heading h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.subsection-heading {
  margin-top: 16px;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.info-card,
.admin-panel {
  min-height: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.88rem;
  line-height: 1.38;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.compact-activities {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.activity-item span {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.activity-card {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.activity-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.activity-card-title span {
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  font-size: 0.8rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.activity-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.activity-card li + li {
  margin-top: 4px;
}

.outcome-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 28px;
  padding-left: 22px;
  line-height: 1.7;
}

.outcome-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.outcome-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  font-size: 0.86rem;
  line-height: 1.35;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #fff;
  background: var(--teal);
  font-size: 0.9rem;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.inline-detail-link {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
}

.empty {
  text-align: center;
  color: var(--muted);
}

.notice {
  margin: 18px clamp(18px, 6vw, 80px) 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
}

.notice.success {
  color: var(--green);
  background: #eaf7f0;
}

.notice.error {
  color: var(--red);
  background: #fff0ed;
}

.modal-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.35;
}

.modal-alert.error {
  color: var(--red);
  background: #fff0ed;
}

.modal-alert.success {
  color: var(--green);
  background: #eaf7f0;
}

.auth-section,
.dashboard {
  padding: 48px clamp(18px, 6vw, 80px);
}

.auth-section {
  display: grid;
  gap: 22px;
}

.auth-card,
.schedule-form {
  max-width: 760px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(23, 32, 42, 0.08);
}

.password-form {
  margin: 0;
}

.modal-panel .schedule-form {
  max-width: none;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
}

.forgot-password-card {
  display: none;
}

.forgot-password-card:target {
  display: block;
}

.auth-inline-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--teal);
  background: #edf7f6;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

legend {
  color: var(--muted);
  font-weight: 700;
}

.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.checkbox-option input {
  width: auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.form-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.email-code-status {
  min-height: 20px;
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.email-code-status.success {
  color: var(--green);
}

.email-code-status.error {
  color: var(--red);
}

.email-code-label input {
  border-color: var(--gold);
  background: #fffdf7;
  font-weight: 800;
  letter-spacing: 3px;
}

.dashboard-table {
  margin-top: 28px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.opportunities-launch {
  display: flex;
  justify-content: center;
  padding: 34px 18px 0;
}

.home-dashboard-tabs {
  display: flex;
  gap: 8px;
  padding: 24px clamp(18px, 6vw, 80px) 0;
  overflow-x: auto;
  background: var(--mist);
}

.home-dashboard-tab {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.home-dashboard-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.home-dashboard-panel[hidden] { display: none; }
.dashboard-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

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

.demand-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.demand-card h3 { margin: 0 0 12px; }
.demand-card p { margin: 0 0 8px; }
.demand-card small { color: var(--muted); }
.demand-main { min-width: 0; }

.demand-voting {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.demand-student { margin-top: -3px; }

.vote-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.9rem;
}

.vote-summary strong { color: var(--teal); }

.like-count {
  align-items: center;
  color: var(--red);
}

.like-count strong { color: var(--red); }

.like-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.vote-options {
  display: flex;
  gap: 22px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vote-options legend { padding: 0 6px; font-weight: 800; }
.vote-options label { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.vote-options input { width: auto; }

.opportunities-button {
  position: relative;
  overflow: hidden;
  min-width: 220px;
  border-radius: 999px;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transform: scale(0);
  animation: button-ripple 650ms ease-out;
}

@keyframes button-ripple {
  to { transform: scale(2.5); opacity: 0; }
}

.word-count {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  text-align: right;
}

.opportunities-modal-panel {
  width: min(1120px, 100%);
}

.opportunity-pages {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--teal) var(--mist);
}

.opportunity-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  scroll-snap-align: start;
}

.opportunity-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
}

.opportunity-card h3 { margin: 0 0 10px; }
.opportunity-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.opportunity-card dl { margin: auto 0 14px; }
.opportunity-card dl div { display: flex; gap: 8px; margin-top: 5px; }
.opportunity-card dt { color: var(--muted); font-weight: 800; }
.opportunity-card dd { margin: 0; }
.opportunity-card .button { align-self: flex-start; }

.new-badge {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  animation: new-badge-blink 1.15s ease-in-out infinite;
  isolation: isolate;
}

.new-badge::after {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border: 2px solid var(--red);
  border-radius: 999px;
  content: '';
  pointer-events: none;
  animation: new-badge-ripple 1.5s ease-out infinite;
}

@keyframes new-badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.48; }
}

@keyframes new-badge-ripple {
  0% { opacity: 0.75; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1.65); }
}

@media (prefers-reduced-motion: reduce) {
  .new-badge,
  .new-badge::after {
    animation: none;
  }
}

.scroll-hint,
.opportunities-empty { color: var(--muted); font-weight: 700; }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.filter-tabs a.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.registration-heading {
  margin-top: 48px;
}

.bulk-actions {
  margin-top: 16px;
}

.registration-group {
  margin-top: 24px;
}

.registration-group-heading {
  padding: 16px 0 0;
}

.registration-group-heading h3 {
  margin: 0;
  font-size: 1.25rem;
}

.registration-group-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status-approved {
  color: var(--green);
  background: #eaf7f0;
}

.status-rejected {
  color: var(--red);
  background: #fff0ed;
}

.status-hold {
  color: #8a5a00;
  background: #fff7df;
}

.status-mixed {
  color: var(--muted);
  background: var(--mist);
}

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

.detail-grid p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
}

.detail-grid strong,
.detail-grid span {
  display: block;
}

.detail-grid strong {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-grid a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.detail-wide {
  grid-column: 1 / -1;
}

.mentor-photo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--mist);
}

.mentor-photo[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(23, 32, 42, 0.58);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  position: relative;
}

.compact-modal {
  width: min(420px, 100%);
}

.wide-modal {
  width: min(760px, 100%);
}

.modal-ok {
  margin-top: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

#modalActivity {
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  padding: 18px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .dashboard-panel-heading { align-items: flex-start; flex-direction: column; }
  .demand-card { align-items: stretch; flex-direction: column; }
  .demand-voting { width: 100%; justify-content: flex-end; }
  .opportunity-page { grid-template-columns: 1fr; }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 260px;
    padding-right: 104px;
    padding-left: 104px;
  }

  .hero-strip-logo {
    width: 84px;
  }

  .home-two-column {
    grid-template-columns: 1fr;
  }

  .compact-activities {
    grid-template-columns: 1fr;
  }

  .outcome-card-grid {
    grid-template-columns: 1fr;
  }

  .email-code-row {
    grid-template-columns: 1fr;
  }
}
