:root {
  --navy: #0f2f4f;
  --navy-2: #17476b;
  --blue: #2c7be5;
  --gold: #f5b942;
  --text: #16324f;
  --muted: #6e7a8b;
  --surface: #f7f9fc;
  --border: #dfe7f1;
  --shadow: 0 18px 45px rgba(15, 47, 79, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

.member-portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.portal-notification-popup {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1000;
  width: min(410px, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(14, 67, 91, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f4faf8 100%);
  box-shadow: 0 22px 55px rgba(15, 47, 79, 0.24), 0 3px 10px rgba(15, 47, 79, 0.08);
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.portal-notification-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.portal-notification-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  background: linear-gradient(110deg, #0f2f4f, #176b61);
  color: #fff;
}

.portal-notification-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.portal-notification-brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.portal-notification-brand span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.portal-notification-popup-header button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.portal-notification-popup-header button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.portal-notification-content {
  padding: 1rem 1.1rem 0.6rem;
}

.portal-notification-content strong {
  display: block;
  color: #123c5a;
  font-size: 1.02rem;
  line-height: 1.35;
}

.portal-notification-popup p {
  margin: 0.45rem 0 0;
  color: #425b6b;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.portal-notification-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem 1rem;
}

.portal-notification-popup small {
  color: #64748b;
  font-size: 0.72rem;
}

.portal-notification-action {
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  background: #d7efe3;
  color: #17663e;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.portal-notification-action:hover {
  background: #bde3cf;
}

@media (max-width: 520px) {
  .portal-notification-popup {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
  }
}

.portal-inbox-list {
  display: grid;
  gap: 1rem;
}

.portal-inbox-item {
  border: 1px solid var(--border, #dfe7f1);
  border-left: 4px solid #2c7be5;
  border-radius: 12px;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 12px rgba(15, 47, 79, 0.06);
}

.portal-inbox-item.is-read {
  border-left-color: #94a3b8;
  opacity: 0.8;
}

.portal-inbox-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.portal-inbox-item-header strong {
  display: block;
  color: var(--navy, #0f2f4f);
}

.portal-inbox-item-header span {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}

.portal-inbox-item p {
  margin: 0;
  color: #334155;
  white-space: pre-wrap;
}

.portal-inbox-item-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
}

.portal-empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.5rem;
  background: #f8fafc;
  color: #475569;
  text-align: center;
}

.portal-empty-state strong {
  display: block;
  margin-bottom: 0.35rem;
}

.tutorials-workspace {
  max-width: 1180px;
}

.tutorials-window {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #d7e3ef;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbff 0%, #eef6f2 100%);
  box-shadow: 0 18px 42px rgba(15, 47, 79, 0.1);
}

.tutorials-window-header,
.tutorial-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.tutorials-window-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #d7e3ef;
}

.tutorial-kicker {
  margin: 0 0 0.35rem;
  color: #177245;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tutorials-window h4,
.tutorial-section h4,
.tutorial-certificate-panel h4 {
  margin: 0;
  color: #123c5a;
  font-size: 1.25rem;
}

.tutorial-progress-badge {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #d9f1e3;
  color: #17663e;
  font-size: 0.8rem;
  font-weight: 800;
}

.tutorial-section {
  padding: 1.6rem 0;
  border-bottom: 1px solid #d7e3ef;
}

.tutorial-section-heading > p {
  max-width: 32rem;
  margin: 0;
  color: #5d7182;
}

.tutorial-lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.tutorial-lesson-card {
  overflow: hidden;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background: #fff;
}

.tutorial-video-window {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 110px;
  padding: 1.2rem;
  background: linear-gradient(135deg, #123c5a, #287e78);
  color: #eaf8f1;
  font-weight: 700;
}

.tutorial-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #f5b942;
  color: #123c5a;
  font-size: 0.85rem;
}

.tutorial-lesson-body {
  padding: 1.2rem;
}

.tutorial-lesson-body h5 {
  margin: 0;
  color: #123c5a;
  font-size: 1rem;
}

.tutorial-lesson-body ol {
  min-height: 7.2rem;
  margin: 0.8rem 0 1rem;
  padding-left: 1.2rem;
  color: #4d6475;
  font-size: 0.9rem;
}

.tutorial-lesson-body li + li {
  margin-top: 0.35rem;
}

.tutorial-video-link {
  width: 100%;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
}

.tutorial-certificate-panel {
  padding-top: 1.6rem;
}

.tutorial-quiz-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.tutorial-quiz-question {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  background: #fff;
}

.tutorial-quiz-question legend {
  padding: 0 0.25rem;
  color: #123c5a;
  font-weight: 800;
}

.tutorial-quiz-question label {
  color: #4d6475;
  cursor: pointer;
}

.tutorial-quiz-question input {
  accent-color: #177245;
}

@media (max-width: 720px) {
  .tutorials-window-header,
  .tutorial-section-heading {
    display: grid;
  }

  .tutorial-lesson-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .portal-notification-popup {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 47, 79, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--navy);
  min-width: 0;
  flex-shrink: 0;
}

.brand span {
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.mobile-nav-brand {
  display: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  color: white;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--border);
}

.portal-action {
  margin-top: 1rem;
}

.portal-action a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portal-action a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.portal-action-member a {
  color: #0b5cad;
  background: #edf6ff;
}

.portal-action-employer a {
  color: #176b53;
  background: #eefbf5;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 40;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(44, 123, 229, 0.08);
  border: 1px solid rgba(15, 47, 79, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(44, 123, 229, 0.12);
  box-shadow: 0 8px 18px rgba(15, 47, 79, 0.08);
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }

.nav-toggle.is-open span:nth-child(1) {
  top: 22px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  top: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, rgba(15, 47, 79, 0.95), rgba(44, 123, 229, 0.92));
  color: white;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-copy p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
  margin: 1rem 0 0;
}

.hero-highlights li {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-card,
.card,
.info-card,
.map-card {
  background: white;
  color: var(--text);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--navy);
}

.member-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(23, 107, 97, 0.2);
  background: linear-gradient(145deg, #f9fcfb 0%, #e9f5f1 100%);
  box-shadow: 0 18px 45px rgba(15, 47, 79, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(15, 47, 79, 0.16);
}

.member-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.member-card-identity {
  align-items: center;
  margin: -1.6rem -1.6rem 0;
  padding: 1.25rem 1.6rem 1.15rem;
  background: linear-gradient(125deg, #0f2f4f 0%, #176b61 100%);
  color: #fff;
}

.member-card-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(5, 25, 42, 0.24);
}

.member-verified {
  display: block;
  margin-bottom: 0.35rem;
  color: #b9efd8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  color: #fff;
}

.member-title {
  margin: 0;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  opacity: 0.85;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  width: fit-content;
  background: rgba(224, 180, 76, 0.18);
  color: #8a6416;
  border: 1px solid rgba(184, 128, 31, 0.24);
  font-size: 0.88rem;
  font-weight: 700;
}

.member-card-body {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(23, 107, 97, 0.14);
}

.member-contact {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.005em;
}

.member-contact-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #64807e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-contact-btn {
  justify-self: stretch;
  padding: 0.95rem 1.2rem;
  font-size: 0.97rem;
}

.job-card {
  display: grid;
  gap: 0.9rem;
  overflow: hidden;
  padding: 0 1.25rem 1.2rem;
  border: 1px solid rgba(23, 107, 97, 0.18);
  border-top: 4px solid #176b61;
  background: linear-gradient(145deg, #fbfdfc 0%, #eaf5f1 100%);
  box-shadow: 0 18px 40px rgba(15, 47, 79, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(15, 47, 79, 0.12);
  border-color: rgba(15, 47, 79, 0.14);
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.job-card-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 -1.25rem;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(125deg, #0f2f4f, #176b61);
  color: #b9efd8;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.job-card-brand img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
}

.job-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy);
}

.job-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(44, 123, 229, 0.12);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.job-company {
  margin: 0;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.job-company span {
  display: block;
  margin-bottom: 0.2rem;
  color: #64807e;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.job-card-body {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(44, 123, 229, 0.08);
}

.job-description {
  margin: 0;
  color: #000;
  line-height: 1.55;
  font-size: 0.72rem;
  font-weight: 400;
  font-family: "Times New Roman", Times, serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.job-card-cta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  font-family: "Times New Roman", Times, serif;
}

.job-card-cta a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.job-card-cta a:hover {
  text-decoration: underline;
}

.btn-apply {
  align-self: flex-start;
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.member-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.member-contact-btn {
  justify-self: stretch;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-grid div {
  background: var(--surface);
  padding: 1rem;
  border-radius: 16px;
}

.stat-grid strong {
  display: block;
  font-size: 1.2rem;
  color: var(--blue);
}

.section {
  padding: 4.25rem 0;
}

.section-light {
  background: var(--surface);
}

.member-portal-page .section.section-light {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 1.25rem 0 2rem;
}

.member-portal-page .section.section-light > .container {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.member-portal-page .grid-two {
  width: 100%;
  min-height: 100%;
  align-items: stretch;
}

.member-portal-page .card {
  height: 100%;
}

#memberLoginSection,
#memberMembershipSection,
#memberRegistrationSection {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#memberMembershipSection {
  min-height: 100%;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card h3,
.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15,47,79,0.08), rgba(44,123,229,0.14));
  margin-bottom: 1rem;
}

.committee-avatar {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  border: 5px solid #fff;
  box-shadow: 0 10px 24px rgba(7, 18, 34, 0.2);
}

.committee-card {
  overflow: hidden;
  padding: 0 1.35rem 1.35rem;
  text-align: center;
  border: 1px solid rgba(23, 107, 97, 0.18);
  background: linear-gradient(145deg, #fbfdfc 0%, #eaf5f1 100%);
  box-shadow: 0 18px 40px rgba(15, 47, 79, 0.1);
}

.committee-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 -1.35rem 1.25rem;
  padding: 0.8rem 1.35rem;
  background: linear-gradient(125deg, #0f2f4f, #176b61);
  color: #b9efd8;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: left;
}

.committee-brand img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
}

.committee-card h3 {
  color: var(--navy);
}

.committee-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #176b61;
  letter-spacing: 0.02em;
  margin: 0.25rem 0 0.75rem;
}

.card p,
.info-card p,
.card span {
  color: var(--muted);
}

.card-list {
  display: grid;
  gap: 1rem;
}

.feature-list {
  padding-left: 1rem;
  color: var(--muted);
}

.info-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.info-section h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--primary);
}

.info-section p,
.info-section li {
  color: var(--muted);
  line-height: 1.6;
}

.procedure-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pill {
  background: rgba(44, 123, 229, 0.1);
  color: var(--blue);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.search-box {
  margin-bottom: 1rem;
}

.search-box input,
form input,
form textarea,
form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  margin-top: 0.35rem;
  background: #fff;
  color: var(--text);
}

form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
  font-size: 1rem;
  pointer-events: none;
}

form label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.payment-page-shell {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.35rem;
  align-items: stretch;
}

.payment-intro,
.payment-form-card {
  min-height: 100%;
}

.payment-intro h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  color: var(--navy);
}

.payment-intro p {
  color: var(--muted);
}

.payment-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0 1.4rem;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(44, 123, 229, 0.1);
  border: 1px solid rgba(44, 123, 229, 0.15);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
}

.payment-guidance-box {
  background: linear-gradient(135deg, rgba(15, 47, 79, 0.04), rgba(44, 123, 229, 0.06));
  border: 1px solid rgba(15, 47, 79, 0.08);
  border-radius: 18px;
  padding: 1.2rem;
  margin-top: 1rem;
}

.payment-guidance-box h3 {
  margin: 0 0 0.7rem;
  color: var(--navy);
}

.payment-form-card {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(244,248,253,1));
}

.payment-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.payment-form-header h3 {
  margin: 0.15rem 0 0;
  color: var(--navy);
  font-size: 1.5rem;
}

.compact {
  margin-bottom: 0.2rem;
}

.payment-form {
  display: grid;
  gap: 1rem;
}

.payment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.payment-form-grid label {
  margin-bottom: 0;
}

.payment-form-grid input,
.payment-form-grid select {
  margin-top: 0.45rem;
}

.payment-form .btn {
  justify-self: flex-start;
}

@media (max-width: 780px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-form-grid {
    grid-template-columns: 1fr;
  }
}

form button {
  border: 0;
  cursor: pointer;
}

.portal-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
}

.dashboard-hero h2 {
  margin: 0.2rem 0 0.3rem;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.dashboard-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

.summary-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.cv-builder-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(44, 123, 229, 0.12);
}

.cv-builder-form {
  display: grid;
  gap: 1rem;
}

.cv-builder-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compact-header {
  margin-bottom: 0.5rem;
}

.status-pending {
  background: rgba(245, 185, 66, 0.16);
  color: #a66d00;
}

.status-active {
  background: rgba(44, 123, 229, 0.14);
  color: var(--blue);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-payment-card {
  padding: 1.1rem;
  background: linear-gradient(135deg, rgba(15, 47, 79, 0.98), rgba(44, 123, 229, 0.95));
  color: white;
}

.payment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.payment-copy {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.payment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.payment-form-grid label {
  color: white;
}

.payment-form-grid input,
.payment-form-grid select {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.payment-form .btn {
  margin-top: 0.8rem;
}

.dashboard-panel {
  padding: 1.1rem;
}

.payment-log-card {
  margin-top: 0.2rem;
}

.portal-dashboard-layout {
  padding: 2rem 0 3rem;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 47, 79, 0.98), rgba(44, 123, 229, 0.95));
  color: white;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 47, 79, 0.12);
  flex-wrap: wrap;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-header > div {
  flex: 1;
  min-width: 0;
}

.dashboard-header .eyebrow {
  color: #ffd36d;
  margin-bottom: 0.4rem;
}

.dashboard-header h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.dashboard-container {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 92px;
  background: linear-gradient(180deg, #0f2f4f 0%, #183d63 100%);
  border-radius: 22px;
  color: white;
  padding: 1.1rem 1rem;
  box-shadow: 0 18px 42px rgba(15, 47, 79, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mobile-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-mobile-toggle:hover,
.dashboard-mobile-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.dashboard-mobile-toggle span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2.5px;
  background: white;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.dashboard-mobile-toggle span:nth-child(1) { top: 14px; }
.dashboard-mobile-toggle span:nth-child(2) { top: 21px; }
.dashboard-mobile-toggle span:nth-child(3) { top: 28px; }

.dashboard-mobile-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.dashboard-mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.dashboard-mobile-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.sidebar-nav {
  display: grid;
  gap: 0.6rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sidebar-nav-item:hover,
.sidebar-nav-item:focus-visible {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(44, 123, 229, 0.9), rgba(20, 100, 180, 0.9));
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 10px 26px rgba(44, 123, 229, 0.28);
}

.sidebar-nav-item span {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
}

.dashboard-tab {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: -9999px;
  animation: none;
}

.dashboard-tab.active {
  opacity: 1;
  pointer-events: auto;
  position: static;
  left: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-header {
  margin-bottom: 1.5rem;
}

.tab-header h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--navy);
}

.dashboard-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  padding: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(44, 123, 229, 0.16);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 47, 79, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 47, 79, 0.12);
}

.dashboard-card h4 {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-card .status-count {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0.5rem 0;
}

.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  margin-top: 0.35rem;
  background: white;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.12);
}

.vacancies-list,
.applications-list,
.member-results {
  display: grid;
  gap: 1rem;
}

.loading-placeholder {
  padding: 2rem 1rem;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: rgba(15, 47, 79, 0.02);
  color: var(--muted);
}

.application-decision-card {
  padding: 1.3rem;
  border-left: 4px solid rgba(44, 123, 229, 0.2);
}

.application-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.application-header-row > div {
  flex: 1;
}

.application-header-row strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.application-header-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.decision-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.decision-actions .btn {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.decision-reason {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(245, 185, 66, 0.08);
  border: 1px solid rgba(245, 185, 66, 0.16);
  border-radius: 12px;
}

.decision-reason.hidden {
  display: none;
}

.decision-reason label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.decision-reason textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 0.8rem;
  resize: vertical;
}

.status-rejected {
  background: rgba(200, 74, 74, 0.16);
  color: #c84a4a;
}

.payment-log-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.payment-log-item {
  justify-content: space-between;
}

.payment-log-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.transaction-pdf-btn {
  border: 1px solid rgba(44, 123, 229, 0.35);
  background: #edf4ff;
  color: var(--blue);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.membership-showcase-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: linear-gradient(135deg, #f8fbff 0%, #fefef8 100%);
  height: 100%;
  justify-content: space-between;
}

.membership-hero-panel {
  padding: 1.3rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, #133b63 45%, #1f5f46 100%);
  color: white;
}

.membership-hero-panel .eyebrow {
  color: #ffd36d;
  margin-bottom: 0.35rem;
}

.membership-hero-panel h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.membership-hero-copy {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.membership-highlight {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.membership-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 1rem;
}

.membership-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.pricing-card {
  padding: 1rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 47, 79, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(15, 47, 79, 0.11);
}

.pricing-card h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.pricing-card .price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue);
}

.featured-pricing-card {
  background: linear-gradient(135deg, rgba(44, 123, 229, 0.1), rgba(245, 185, 66, 0.16));
  border-color: rgba(44, 123, 229, 0.2);
}

.membership-benefits {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
}

.membership-benefits ul {
  padding-left: 1rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.membership-side-panel {
  display: grid;
  gap: 0.9rem;
}

.membership-payment-card,
.membership-contact-card {
  padding: 1rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
}

.membership-payment-card {
  background: linear-gradient(135deg, rgba(15, 47, 79, 0.98), rgba(44, 123, 229, 0.95));
  color: white;
}

.membership-payment-card p,
.membership-payment-card strong {
  color: white;
}

.membership-contact-card a {
  color: var(--navy);
}

.membership-cta {
  margin-top: 0.75rem;
  width: 100%;
}

.membership-footer {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.auth-shell {
  padding: 2rem 0 3rem;
}

.auth-card {
  background: white;
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.brand-block {
  margin-bottom: 1.5rem;
}

.employer-header-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(44, 123, 229, 0.1);
}

.employer-logo-mini {
  font-size: 2.5rem;
  line-height: 1;
}

.employer-header-text h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.employer-header-text p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.admin-shell {
  padding: 2.75rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(44, 123, 229, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f9fc 0%, #edf4ff 100%);
}

#loginView.auth-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(15, 47, 79, 0.08);
}

#loginView h1 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--navy);
}

#dashboardView.dashboard-card {
  padding: 0;
  border: 1px solid rgba(15, 47, 79, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.admin-dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.2rem;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  background: linear-gradient(180deg, #0f2f4f 0%, #183d63 100%);
  border-radius: 22px;
  color: white;
  padding: 1.1rem 1rem;
  box-shadow: 0 18px 42px rgba(15, 47, 79, 0.22);
}

.sidebar-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-header .eyebrow {
  color: #ffd36d;
  margin-bottom: 0.45rem;
}

.sidebar-header h3 {
  margin: 0;
  color: white;
  font-size: 1.4rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.sidebar-link {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(44, 123, 229, 0.9), rgba(20, 100, 180, 0.9));
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 10px 26px rgba(44, 123, 229, 0.28);
}

.sidebar-footer {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-footer .btn {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
}

.admin-mobile-toolbar {
  display: none;
}

.admin-mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 20px rgba(15, 47, 79, 0.08);
  cursor: pointer;
  flex-shrink: 0;
}

.admin-mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 2px 0;
  border-radius: 999px;
}

#notificationBellButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
}

#notificationBellCount {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ffd36d;
  color: var(--navy);
  font-size: 0.75rem;
}

.admin-panel-content {
  display: grid;
  gap: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-section {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.card-grid .card,
.panel-section .card {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(44, 123, 229, 0.16);
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: 0 16px 35px rgba(15, 47, 79, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-grid .card:hover,
.panel-section .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 47, 79, 0.12);
}

.card-grid .card h3,
.panel-section .card h3 {
  color: var(--navy);
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(23, 107, 97, 0.18);
  border-top: 4px solid #176b61;
  background: linear-gradient(145deg, #fbfdfc 0%, #eaf5f1 100%);
  padding: 0 1.3rem 1.3rem;
  box-shadow: 0 18px 40px rgba(15, 47, 79, 0.1);
}

.news-card-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 -1.3rem;
  padding: 0.85rem 1.3rem;
  background: linear-gradient(125deg, #0f2f4f, #176b61);
  color: #b9efd8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.news-card-brand img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
}

.news-card-title {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}

.news-card p,
.card.news-card p {
  margin: 0;
  color: #111 !important;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 400;
  max-height: 10rem;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.news-card-body {
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  font-style: normal !important;
  color: var(--muted) !important;
}

.news-card-meta {
  font-size: 0.82rem !important;
  font-style: normal !important;
  color: var(--text) !important;
  margin: 0.5rem 0 0 0 !important;
}

.news-card p::-webkit-scrollbar {
  width: 8px;
}

.news-card p::-webkit-scrollbar-thumb {
  background: rgba(44, 123, 229, 0.35);
  border-radius: 999px;
}

.news-card p::-webkit-scrollbar-track {
  background: rgba(15, 47, 79, 0.04);
}

.news-card time {
  margin-top: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(23, 107, 97, 0.14);
}

.news-card-mark {
  color: #b8801f;
  font-size: 1.2rem;
}

.card-grid.three-up .card:not(.news-card) p {
  margin: 0.3rem 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

th,
td {
  padding: 0.8rem 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 47, 79, 0.08);
}

th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(15, 47, 79, 0.02);
}

tr:hover td {
  background: rgba(44, 123, 229, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(44, 123, 229, 0.12);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(44, 123, 229, 0.15);
}

.message-preview {
  max-width: 240px;
  white-space: normal;
  color: var(--muted);
}

.detail-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.btn-small {
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
}

.modal-card {
  border-radius: 20px;
  border: 1px solid rgba(15, 47, 79, 0.08);
  box-shadow: 0 24px 60px rgba(15, 47, 79, 0.2);
}

.form-status {
  min-height: 1.7rem;
  margin-top: 0.75rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .dashboard-header {
    padding: 1rem 1rem 1.1rem;
  }

  .dashboard-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-mobile-toggle {
    display: inline-flex;
  }

  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 92px;
    left: 1rem;
    width: min(82vw, 310px);
    z-index: 80;
    border-radius: 18px;
    padding: 0.9rem 0.8rem;
    box-shadow: 0 20px 38px rgba(15, 47, 79, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-120%);
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .dashboard-sidebar.mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .dashboard-content {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .admin-dashboard-shell {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .admin-panel-content {
    overflow-x: auto;
  }

  .admin-mobile-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(15, 47, 79, 0.08);
  }

  .admin-mobile-nav {
    display: none;
  }

  .admin-sidebar {
    display: block;
    position: fixed;
    top: 84px;
    left: 0.75rem;
    width: min(82vw, 280px);
    z-index: 50;
    background: linear-gradient(180deg, #0f2f4f 0%, #183d63 100%);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 47, 79, 0.22);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-118%);
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .admin-sidebar.mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .sidebar-link[data-panel="payments"] {
    display: none;
  }

  .notification-card {
    background: rgba(44, 123, 229, 0.05);
    border: 1px solid rgba(44, 123, 229, 0.16);
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .notification-card strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy);
  }

  .notification-label {
    font-weight: 700;
    color: var(--navy);
  }

  .notification-meta {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
  }
}

@media (max-width: 720px) {
  .admin-shell {
    padding-top: 2rem;
  }

  .admin-dashboard-shell {
    padding: 0.85rem;
  }

  .card-grid.three-up {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .sidebar-nav,
  .sidebar-footer {
    grid-template-columns: 1fr;
  }

  .sidebar-footer .btn {
    width: 100%;
  }

  .admin-sidebar {
    padding: 1rem;
  }

  .admin-panel-content {
    gap: 1rem;
  }
}

.payment-log-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.document-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.document-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(44, 123, 229, 0.06), rgba(15, 47, 79, 0.03));
}

.document-card.placeholder {
  background: rgba(245, 185, 66, 0.08);
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.doc-meta strong {
  display: block;
  color: var(--navy);
}

.doc-meta p,
.doc-note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  border: 1px solid rgba(44, 123, 229, 0.2);
  font-weight: 700;
}

@media (max-width: 900px) {
  .dashboard-summary,
  .dashboard-grid,
  .membership-content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-form-grid {
    grid-template-columns: 1fr;
  }

  .membership-pricing-grid {
    grid-template-columns: 1fr;
  }

  .member-portal-page .section.section-light > .container {
    flex-direction: column;
  }

  .member-portal-page .grid-two {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  #memberLoginSection,
  #memberMembershipSection,
  #memberRegistrationSection,
  #employerMembershipSection {
    min-height: auto;
  }
}

.form-status {
  min-height: 1.6rem;
  color: var(--blue);
  font-weight: 600;
  margin-top: 0.6rem;
}

.form-status.success {
  color: #1d8c4d;
}

.form-status.error {
  color: #c84a4a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(44, 123, 229, 0.1);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
}

.helper-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(13, 48, 84, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(12, 39, 68, 0.08);
}

.gallery-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(13, 48, 84, 0.12);
  background: #edf3f9;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-posted-date {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 1.4rem);
  padding: 0.42rem 0.65rem 0.42rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(15, 47, 79, 0.9);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 18, 34, 0.24);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-posted-date img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.gallery-card h3 {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.gallery-card p {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}

.gallery-item {
  min-height: 180px;
  padding: 1rem;
  border-radius: 18px;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: end;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: var(--shadow);
}

.partner-row {
  display: flex;
  justify-content: center;
}

.partner-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 620px);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(15, 47, 79, 0.12);
  border-radius: 20px;
  color: var(--navy);
  background: linear-gradient(145deg, #ffffff 0%, #f5f8fb 100%);
  box-shadow: 0 22px 50px rgba(15, 47, 79, 0.14);
}

.partner-tag > span {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.partner-logo {
  display: block;
  width: min(100%, 500px);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(245, 185, 66, 0.5);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 79, 0.1);
  flex-shrink: 0;
}

.partner-tag small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 1.25rem 1.35rem;
  background: linear-gradient(145deg, #fbfdfc 0%, #eaf5f1 100%);
  border: 1px solid rgba(23, 107, 97, 0.18);
  box-shadow: 0 18px 40px rgba(15, 47, 79, 0.1);
  overflow: hidden;
}

.quote-card-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 -1.25rem 0;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(125deg, #0f2f4f, #176b61);
  color: #b9efd8;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.quote-card-brand img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
}

.quote-card::before {
  content: '“';
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  font-size: 4rem;
  color: rgba(44, 123, 229, 0.14);
  font-family: serif;
  line-height: 1;
}

.card-grid.three-up .quote-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #111;
  padding-left: 0.2rem;
  font-weight: 400;
}

.card-grid.three-up .quote-card strong {
  display: block;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: #176b61;
  font-weight: 700;
}

.contact-list {
  padding: 0;
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.download-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--navy);
  font-weight: 700;
}

.map-card {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
}

.map-card iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 16px;
}

.site-footer {
  background: var(--navy);
  color: white;
  padding: 2.5rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.2rem;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1rem;
}

.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

.portal-page .portal-hero {
  padding-bottom: 2rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-two,
  .three-up,
  .footer-grid,
  .map-card {
    grid-template-columns: 1fr;
  }

  .member-portal-page .section.section-light {
    padding: 1rem 0 1.5rem;
  }

  .member-portal-page .grid-two {
    min-height: auto;
  }

  .member-portal-page .card {
    height: auto;
  }
}

@media (max-width: 980px) {
  .nav-wrap {
    padding: 0.85rem 0;
    position: relative;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: flex;
    position: fixed;
    top: 4.3rem;
    right: 1rem;
    left: auto;
    width: min(90vw, 360px);
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    background: linear-gradient(160deg, #0c2943 0%, #123c5a 58%, #176b61 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 0.65rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 24px 55px rgba(7, 18, 34, 0.34);
    z-index: 35;
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.15rem 0.2rem 0.6rem;
    padding: 0.45rem 0.45rem 0.8rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .mobile-nav-brand img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: #fff;
  }

  .mobile-nav-brand strong,
  .mobile-nav-brand small {
    display: block;
  }

  .mobile-nav-brand strong {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
  }

  .mobile-nav-brand small {
    margin-top: 0.18rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .site-nav.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.86);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .site-nav a:last-child {
    margin-bottom: 0;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateX(2px);
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #e0b44c, #b8801f);
    color: #102f48;
    border: none;
    box-shadow: 0 12px 24px rgba(44, 123, 229, 0.18);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 34, 0.45);
    z-index: 24;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
