/* =========================================================
 * SERVICES GRID — PUBLIC STYLES
 * ========================================================= */
.viromax {
  padding: 4rem 0;
  background: #fdfdfb;
}

.viromax .sec-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e2a2f;
  margin-bottom: 0.6rem;
}
.viromax .sec-sub {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #5a6b70;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.service-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 100%);
}

.service-body {
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-body h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e2a2f;
  margin-bottom: 0.6rem;
}
.service-body h5 span {
  color: #c0392b;
  font-weight: 700;
}
.service-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #6b7b80;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.btn-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  border: none;
  transition: filter 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}
.btn-service:hover {
  color: #fff;
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.btn-sv-blue   { background: #2980b9; }
.btn-sv-green  { background: #27ae60; }
.btn-sv-orange { background: #e67e22; }
.btn-sv-red    { background: #c0392b; }

@media (max-width: 767.98px) {
  .viromax .sec-title { font-size: 1.6rem; }
  .service-img { height: 150px; }
}

/* =========================================================
 * ADMIN TOOLBAR
 * ========================================================= */
.mm-sg-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: #1e293b; color: #fff; padding: 10px 16px;
  border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}

.mm-sg-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 0; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: .15s;
}
.mm-sg-btn:hover { opacity: .85; }
.mm-sg-edit    { background: #f97316; color: #fff; }
.mm-sg-primary { background: #16a34a; color: #fff; }
.mm-sg-cancel  { background: #e2e8f0; color: #1e293b; }
.mm-sg-danger  { background: #ef4444; color: #fff; }
.mm-sg-small   { padding: 6px 10px; font-size: 12px; }
.mm-sg-add     { margin-left: auto; background: #f97316; color: #fff; }

/* =========================================================
 * ADMIN MODAL
 * ========================================================= */
.mm-sg-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 99999; padding: 20px; overflow-y: auto;
}
.mm-sg-modal.mm-open { display: flex; }

.mm-sg-modal-box {
  background: #fff; border-radius: 10px; padding: 24px;
  max-width: 720px; width: 100%; margin: auto;
}
.mm-sg-modal-box h3 { margin: 0 0 16px; }
.mm-sg-modal-box h4.mm-sg-cards-title {
  margin: 22px 0 12px; font-size: 13px; text-transform: uppercase;
  letter-spacing: .05em; color: #334155;
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid #e2e8f0; padding-top: 18px;
}

.mm-sg-modal-box label {
  display: block; font-size: 12px; font-weight: 600;
  margin: 10px 0 4px; color: #334155;
  text-transform: uppercase; letter-spacing: .03em;
}
.mm-sg-modal-box input[type=text],
.mm-sg-modal-box textarea,
.mm-sg-modal-box select {
  width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1;
  border-radius: 6px; font-family: inherit; font-size: 14px;
  box-sizing: border-box;
}
.mm-sg-modal-box textarea { resize: vertical; font-family: monospace; font-size: 13px; }

/* Card block */
.mm-sg-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 12px 16px 16px; margin-bottom: 14px;
}
.mm-sg-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.mm-sg-card-num {
  font-size: 12px; font-weight: 700; color: #64748b;
}

.mm-sg-img-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.mm-sg-img-preview {
  width: 110px; height: 70px; border-radius: 6px;
  background: #e2e8f0 center/cover no-repeat;
  border: 1px dashed #cbd5e1;
}
.mm-sg-img-buttons { display: flex; flex-direction: column; gap: 6px; }

.mm-sg-grid3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px;
}
@media (max-width: 560px) {
  .mm-sg-grid3 { grid-template-columns: 1fr; }
}

.mm-sg-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 22px; border-top: 1px solid #e2e8f0; padding-top: 18px;
  position: sticky; bottom: -24px; background: #fff; padding-bottom: 8px;
}