/* GYMEX — STAFF MANAGEMENT PAGE */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

* { box-sizing: border-box; }
.sm { font-family: "Poppins", sans-serif; color: var(--gray-100); overflow-x: hidden; }
.sm a { text-decoration: none; color: inherit; }
.sm ul, .sm li { list-style: none; margin: 0; padding: 0; }
.sm img { max-width: 100%; display: block; }

.sm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.sm-hero {
  position: relative;
  padding: 60px 24px 40px;
  background: radial-gradient(700px 460px at 88% -10%, rgba(2,142,206,.16), transparent 65%),
              radial-gradient(560px 420px at -8% 30%, rgba(254,79,13,.10), transparent 65%),
              radial-gradient(500px 380px at 55% 90%, rgba(2,142,206,.08), transparent 70%),
              var(--BG, #f5f7fb);
  overflow: visible;
}
.sm-hero-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sm-hero .sm-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue, #028ece);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.sm-hero .sm-label::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange-100, #ff4f0d);
}
.sm-hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 16px;
  text-transform: uppercase;
  max-width: 660px;
}
.sm-hero h1 .accent { color: var(--blue, #028ece); }
.sm-hero p.sm-desc {
  color: var(--gray-80, #6b7589);
  font-size: 14px;
  line-height: 1.7;
  max-width: 470px;
  margin-bottom: 26px;
}
.sm-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.sm-hero-img { position: relative; }
.sm-hero-img img { border-radius: 20px; width: 100%; }

/* ── Buttons ── */
.sm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  font-family: "Poppins", sans-serif;
}
.sm-btn-primary { background: var(--blue, #028ece); color: #fff; }
.sm-btn-primary:hover { background: #017ab5; transform: translateY(-1px); }
.sm-btn-outline { background: #fff; color: var(--blue, #028ece); border: 1.5px solid var(--blue, #028ece); }
.sm-btn-outline:hover { background: #f0f7ff; }
.sm-btn i { font-size: 12px; }

/* ── Sections ── */
.sm-section { padding: 70px 0; }
.sm-section.grey { background: #fff; }
.sm-heading { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sm-heading h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.sm-heading h2 .accent { color: var(--blue, #028ece); }
.sm-heading p { color: var(--gray-80, #6b7589); font-size: 14px; line-height: 1.7; }
.sm-heading .sm-underline { width: 46px; height: 4px; background: var(--blue, #028ece); border-radius: 4px; margin: 8px auto 0; }

/* ── Feature Rows (alternating text + image) ── */
.sm-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.sm-feature-row.reverse { direction: rtl; }
.sm-feature-row.reverse > * { direction: ltr; }
.sm-feature-content .sm-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue, #028ece);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.sm-feature-content h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.sm-feature-content h2 .accent { color: var(--blue, #028ece); }
.sm-feature-content p {
  color: var(--gray-80, #6b7589);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.sm-feature-img {
  background: var(--gray-7, #f5f7fb);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 20px;
}
.sm-feature-img img { border-radius: 12px; }

/* ── Staff Table Card ── */
.sm-staff-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(16,40,100,.08);
  border: 1px solid #e7eaf3;
}
.sm-staff-card .sm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sm-staff-card .sm-card-header h3 {
  font-size: 17px;
  font-weight: 700;
}
.sm-staff-card .sm-add-btn {
  background: var(--blue, #028ece);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}
.sm-staff-table {
  width: 100%;
  border-collapse: collapse;
}
.sm-staff-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-80, #6b7589);
  padding: 8px 12px;
  border-bottom: 1px solid #e7eaf3;
}
.sm-staff-table td {
  padding: 10px 12px;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f2f7;
  vertical-align: middle;
}
.sm-staff-table .sm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe8ff, #b8d4f8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue, #028ece);
  margin-right: 10px;
  vertical-align: middle;
}
.sm-staff-table .sm-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.sm-staff-table .sm-status.active { background: #d6e8f8; color: #028ece; }

/* ── Permissions Card ── */
.sm-permissions-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(16,40,100,.08);
  border: 1px solid #e7eaf3;
}
.sm-permissions-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm-permissions-card h4 i { color: var(--blue, #028ece); }
.sm-perm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-80, #6b7589);
}
.sm-perm-item i {
  color: var(--blue, #028ece);
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* ── Schedule Card ── */
.sm-schedule-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(16,40,100,.08);
  border: 1px solid #e7eaf3;
}
.sm-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sm-schedule-header h3 { font-size: 17px; font-weight: 700; }
.sm-schedule-tabs { display: flex; gap: 4px; }
.sm-schedule-tabs span {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-80, #6b7589);
}
.sm-schedule-tabs span.active { background: var(--blue, #028ece); color: #fff; }
.sm-schedule-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.sm-schedule-days span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-80, #6b7589);
  padding: 6px 0;
}
.sm-schedule-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f7;
}
.sm-schedule-row .sm-name {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm-schedule-row .sm-name .sm-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe8ff, #b8d4f8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue, #028ece);
}
.sm-schedule-slots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.sm-schedule-slot {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: #e8f0fe;
  color: var(--blue, #028ece);
}
.sm-schedule-slot.orange { background: #fff3e0; color: #e65100; }
.sm-schedule-slot.green { background: #d6e8f8; color: #028ece; }

/* ── Attendance Card ── */
.sm-attendance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.sm-attendance-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sm-att-stat {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(16,40,100,.06);
}
.sm-att-stat .sm-label-sm {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-80, #6b7589);
  margin-bottom: 4px;
}
.sm-att-stat .sm-val {
  font-size: 22px;
  font-weight: 800;
}
.sm-att-stat .sm-val.green { color: #028ece; }
.sm-att-stat .sm-val.red { color: #e5484d; }
.sm-att-stat .sm-val.blue { color: var(--blue, #028ece); }
.sm-att-stat .sm-val.orange { color: #e65100; }

/* ── Payroll Icons Row ── */
.sm-payroll-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.sm-payroll-icon {
  text-align: center;
}
.sm-payroll-icon .sm-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: var(--blue, #028ece);
}
.sm-payroll-icon p {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-80, #6b7589);
}

/* ── CTA Banner ── */
.sm-cta-banner {
  text-align: center;
  background: #fff;
  border: 1px solid #e7eaf3;
  border-radius: 20px;
  padding: 50px 30px;
  box-shadow: 0 12px 40px rgba(16,40,100,.08);
  max-width: 900px;
  margin: 0 auto;
}
.sm-cta-banner h2 {
  font-size: 36px;
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.5;
  text-transform: uppercase;
}
.sm-cta-banner h2 .accent { color: var(--blue, #028ece); }

/* ── FAQ ── */
.sm-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sm-faq-item { isolation: isolate; position: relative; z-index: 1;
  background: #f8f9fc;
  border: 1.5px solid #e0e6f0;
  border-radius: 10px;
  padding: 16px 22px;
  cursor: pointer;
}
.sm-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #1c2436;
  list-style: none;
  gap: 12px;
}
.sm-faq-item summary::-webkit-details-marker { display: none; }
.sm-faq-item summary::after { content: "+"; font-size: 20px; font-weight: 400; color: #028ece; flex-shrink: 0; transition: transform .2s; }
.sm-faq-item[open] summary::after { transform: rotate(45deg); }
.sm-faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: #6b7589;
  line-height: 1.75;
}

/* ── Responsive ── */

/* ═══════════ BUSINESS TYPES DROPDOWN ICONS ═══════════ */
.mega-menu .icon { width: 32px; height: 32px; min-width: 32px; object-fit: contain; border-radius: 6px; }
.mega-menu .inside { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; transition: background .2s ease; flex-shrink: 0; }
.mega-menu .inside:hover { background: var(--gray-7, #f5f8ff); }
.mega-col-title { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(28,36,54,.45); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(28,36,54,.08); }
.mega-badge { display: inline-block; background: #ef4444; color: #fff; font-size: 7px; font-weight: 700; padding: 1px 4px; border-radius: 3px; margin-left: 3px; vertical-align: middle; }
.mega-desc { font-size: 9px; color: rgba(28,36,54,.5); line-height: 1.3; margin: 2px 0 0; }

@media (max-width: 900px) {
  .sm-hero-grid, .sm-feature-row { grid-template-columns: 1fr; gap: 30px; }
  .sm-feature-row.reverse { direction: ltr; }
  .sm-hero h1 { font-size: 30px; }
  .sm-faq { grid-template-columns: 1fr; }
  .sm-payroll-icons { grid-template-columns: repeat(2, 1fr); }
  .sm-attendance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sm-hero h1 { font-size: 30px; }
  .sm-feature-content h2 { font-size: 26px; }
  .sm-attendance-stats { grid-template-columns: 1fr 1fr; }
  .sm-schedule-days { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════ GLOBAL RESETS (from marketing-management) ═══════════ */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 0;
}

ul,li {
  list-style: none;
}

:focus,:active { outline: none; }
a:focus,a:active { outline: none; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; }
h1,h2,h3,h4,h5,h6 {font-weight: inherit; margin: 0;}
h1 { font-size: 44px; }
h2 { font-size: 36px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
h5, h6 { font-size: 14px; }

/* ═══════════ NAV ═══════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; width: 100%; background-color: #fff; border-radius: 0; box-shadow: 0 2px 12px rgba(11,26,61,.06); z-index: 97; }
.nav__logo-links-container { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.nav__logo-wrap { display: flex; align-items: center; cursor: pointer; }
.logo { width: 155px; height: 35px; }
.flex-center { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 20px; }
.nav__link { color: var(--gray-80); font-size: 13.5px; font-weight: 500; line-height: 32px; transition: color .2s ease; text-decoration: none; position: relative; white-space: nowrap; }
.nav__link:not(.button)::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--blue); transition: width .2s; }
.nav__link:not(.button):hover::after { width: 100%; }
.nav__link:hover { color: var(--blue); }
.nav__menu { display: none; cursor: pointer; }

/* ═══════════ DROPDOWN ═══════════ */
.dropdown { position: relative; }

.inside { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 8px; transition: background .2s ease; }
.inside:hover { background: var(--gray-7, #f5f8ff); }

.mega-badge { display: inline-block; background: #ef4444; color: #fff; font-size: 7px; font-weight: 700; padding: 1px 4px; border-radius: 3px; margin-left: 3px; vertical-align: middle; }
.mega-desc { font-size: 9px; color: rgba(28,36,54,.5); line-height: 1.3; margin: 2px 0 0; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1201px) {
  .nav { border-radius: 20px; margin: 0 8px; max-width: calc(100% - 16px); }
  .nav__menu { display: flex !important; }
}
@media (max-width: 900px) {
  .nav__list { display: none; }
  .nav__menu { display: flex; }
}
@media (max-width: 768px) {
  body { margin-top: 70px; }
}

/* ── Modal Backdrop ── */
.backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center; }
.backdrop.show { display: flex; }
.contact-us { background: #fff; border-radius: 16px; max-width: 560px; width: 92%; overflow: visible; position: relative; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.loader { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border: 4px solid #e0e0e0; border-top: 4px solid #1565C0; border-radius: 50%; animation: spin 0.8s linear infinite; z-index: 20; }
.loader.show { display: block; }
@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 600px) {
  .contact-us { padding: 20px; }
}

/* ── mm-btn-orange (home page style) ── */
.mm-btn-orange {
  background: linear-gradient(135deg, var(--orange-100), #e0450b);
  color: #fff;
  padding: 6px 6px 6px 28px;
  gap: 12px;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  letter-spacing: .5px;
}
.mm-btn-orange i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  background: #fff;
  border-radius: 50%;
  font-size: 13px;
  color: var(--orange-100);
}
.mm-btn-orange:hover {
  transform: translateY(-1px);
}

/* Hero photo: focus on the people (right side of frame) on narrow screens,
   where center-crop shows the empty middle of the image. A light veil plus
   a solid text card keeps the copy readable over the busy photo. */
@media (max-width: 768px) {

  .sm-hero[style*="member%20management"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #fff !important;
    padding: 0 0 26px !important;
    min-height: 0 !important;
    gap: 0 !important;
  }
  .sm-hero[style*="member%20management"]::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 701;
    height: auto;
    background: url("../assets/mobile-hero/member-management-new.jpg") center center / 100% 100% no-repeat;
    flex: none;
  }
  .sm-hero-grid {
    margin: 0 !important;
    padding: 0 16px !important;
  }
  .sm-hero-grid > div:first-child {
    background: #fff;
    border-radius: 16px;
    padding: 22px 18px 24px;
    box-shadow: none;
    margin-top: -22px;
  }
  .sm-hero-grid > div:first-child .sm-desc { color: #3d4756; }
}

@media (min-width: 769px) {
  .sm-hero[style*="Member Management"] {
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }
}

body::before { content: none !important; display: none !important; }
body::after { content: none !important; display: none !important; }

/* Keep "Dues Under Control" together on the second line of the heading */
@media (min-width: 560px) {
  .dues-head .dues-nowrap { white-space: nowrap; }
}
