/* Multi Specialty Software page (/softwares/multi-specialty-hospital-software).
   Same palette and type scale as the other Softwares pages: Poppins, headings #373030, text #666666,
   buttons #ED3E48 / hover #D92F3A, banner gradient #FEBC2F -> #FF5132. All rules are scoped to .mss-page. */

.mss-page, .mss-page *:not(i) { font-family: "Poppins", sans-serif; }
.mss-page { color: #666666; background: #ffffff; overflow-x: hidden; }
.mss-page p, .mss-page li { font-size: 16px; line-height: 1.7; margin-bottom: 0; }
.mss-page h1, .mss-page h2, .mss-page h3 { color: #373030; line-height: 1.25; margin: 0; }
.mss-page a { text-decoration: none; }
.mss-page a:hover, .mss-page a:focus { text-decoration: none; }
.mss-page img { display: block; max-width: 100%; height: auto; }
.mss-page ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Buttons (same as .ban-button a on the software pages) ---------- */
.mss-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: 10px 22px; border-radius: 7px; background: #ED3E48; color: #ffffff !important;
    font-size: 15px; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: background 0.3s ease-in-out;
}
.mss-btn:hover, .mss-btn:focus { background: #D92F3A; }
.mss-btn-lg { margin-top: 28px; padding: 12px 26px; }
.mss-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Hero (gradient as .banner-top) ---------- */
.mss-hero { background: linear-gradient(to right, rgba(254, 188, 47, 0.6), rgba(255, 81, 50, 0.6)); padding: 40px 0 30px; }
.mss-crumb { font-size: 14px !important; color: #373030; margin-bottom: 14px !important; }
.mss-crumb a { color: #0d6efd; color: rgba(var(--bs-link-color-rgb), 1); text-decoration: underline; }
.mss-crumb a:hover, .mss-crumb a:focus { color: #0a58ca; color: rgba(var(--bs-link-hover-color-rgb), 1); text-decoration: underline; }
.mss-crumb span { margin: 0 6px; }
.mss-hero-title { font-size: 40px; font-weight: 700; margin-bottom: 12px !important; }
.mss-hero-sub { font-size: 18px !important; font-weight: 600; color: #373030; margin-bottom: 10px !important; }
.mss-hero-text { font-size: 16px; color: #373030; max-width: 520px; }
.mss-hero-media img { width: 100%; max-width: 640px; margin-left: auto; }

/* ---------- Feature strip ---------- */
.mss-features { padding: 34px 0; background: #ffffff; border-bottom: 1px solid #f3e6e7; }
.mss-feature-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mss-feature-list li {
    display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 12px;
    text-align: center; font-size: 14px !important; font-weight: 500; line-height: 1.4 !important; color: #373030;
}
.mss-feature-list li + li { border-left: 1px solid #ececec; }
.mss-feature-icon {
    width: 58px; height: 58px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #FFE9EA; color: #ED3E48; font-size: 22px; flex-shrink: 0;
}

/* ---------- Sections ---------- */
.mss-section { padding: 60px 0; }
.mss-section-tight { padding: 0 0 40px; }
.mss-eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: 8px; background: rgba(237, 62, 72, 0.10);
    font-size: 13px !important; font-weight: 600; letter-spacing: 0.06em; line-height: 1.35 !important; text-transform: uppercase;
    color: #ED3E48; margin-bottom: 14px !important;
}
/* On tinted panels/cards the badge is white with a border in the panel's own tint. */
.mss-panel .mss-eyebrow, .mss-card .mss-eyebrow { background: #ffffff; box-shadow: 0 2px 8px rgba(55, 48, 48, 0.05); }
.mss-panel-pink .mss-eyebrow { border: 1px solid #F6CDD1; }
.mss-panel-blue .mss-eyebrow { border: 1px solid #CFDDF7; }
.mss-card-green .mss-eyebrow { border: 1px solid #BFE8D3; }
.mss-card-yellow .mss-eyebrow { border: 1px solid #F3DFAE; }
.mss-title { font-size: 34px; font-weight: 700; margin-bottom: 16px !important; }
.mss-title span { color: #ED3E48; }
.mss-text { font-size: 16px; color: #666666; }
.mss-text-dark { color: #373030; }
.mss-media img { width: 100%; margin: 0 auto; }

/* Checklist with red check squares */
.mss-checks { margin-top: 22px !important; display: grid; gap: 12px; }
.mss-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: #373030; line-height: 1.5 !important; }
.mss-check {
    flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 5px;
    display: inline-flex; align-items: center; justify-content: center; background: #ED3E48; color: #ffffff; font-size: 12px;
}

/* Tinted panels (OPD / IPD / EMR) */
.mss-panel { border-radius: 20px; padding: 40px; }
.mss-panel-pink { background: #FFF1F2; border: 1px solid #F8D7DA; }
.mss-panel-blue { background: #EEF4FF; border: 1px solid #D6E2FA; }

/* Laboratory / Pharmacy cards */
.mss-card { height: 100%; border-radius: 20px; padding: 32px; display: flex; align-items: center; gap: 20px; }
.mss-card-green { background: #EAF8F1; border: 1px solid #C9EBD9; }
.mss-card-yellow { background: #FFF6E3; border: 1px solid #F5E2B3; }
.mss-card-body { flex: 1 1 54%; min-width: 0; }
.mss-card-media { flex: 0 0 46%; min-width: 0; }
.mss-card-title { font-size: 24px; font-weight: 700; margin-bottom: 12px !important; }
.mss-card .mss-text { font-size: 15px; }
.mss-card .mss-checks li { font-size: 15px; }

/* 3D hover on card images (pointer devices only; off for reduced motion) */
.mss-panel .mss-media img, .mss-card-media img {
    transform: perspective(1000px) rotateX(0) rotateY(0) translateY(0) scale(1);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .mss-panel .mss-media:hover img, .mss-card-media:hover img {
        transform: perspective(1000px) rotateX(4deg) rotateY(-6deg) translateY(-6px) scale(1.03);
        filter: drop-shadow(0 18px 22px rgba(55, 48, 48, 0.16));
    }
    .mss-panel .order-lg-2.mss-media:hover img { transform: perspective(1000px) rotateX(4deg) rotateY(6deg) translateY(-6px) scale(1.03); }
}

/* Reports & Analytics: clean, subtle section with report tiles */
.mss-reports { background: #FFF9F5; border-top: 1px solid #F7E6DC; padding: 64px 0; }
.mss-reports-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.mss-reports .mss-text { max-width: 660px; margin: 0 auto; }
.mss-report-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 32px 0 6px !important; }
.mss-report-list li {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px;
    background: #ffffff; border: 1px solid #F5E1D6; border-radius: 14px;
    font-size: 14px !important; font-weight: 500; line-height: 1.35 !important; color: #373030;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mss-report-list li:hover { transform: translateY(-3px); border-color: rgba(237, 62, 72, 0.35); box-shadow: 0 8px 20px rgba(237, 62, 72, 0.08); }
.mss-report-icon {
    width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #FFE9EA; color: #ED3E48; font-size: 18px;
}
@media (prefers-reduced-motion: reduce) {
    .mss-panel .mss-media img, .mss-card-media img, .mss-report-list li { transition: none; }
}

/* ---------- Responsive (site breakpoints: 991 / 767 / 500) ---------- */
@media (max-width: 1199px) {
    .mss-feature-list li { font-size: 13px !important; padding: 4px 8px; }
}
@media (max-width: 991px) {
    .mss-hero { padding: 32px 0 24px; text-align: center; }
    .mss-hero-text { margin: 0 auto; }
    .mss-btns { justify-content: center; }
    .mss-hero-media { margin-top: 24px; }
    .mss-hero-media img { margin: 0 auto; max-width: 560px; }
    .mss-hero-title { font-size: 32px; }
    .mss-feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
    .mss-feature-list li:nth-child(3n + 1) { border-left: none; }
    .mss-section { padding: 45px 0; }
    .mss-title { font-size: 28px; }
    .mss-panel { padding: 30px; }
    .mss-media img { max-width: 620px; }
    .mss-report-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .mss-hero-title { font-size: 26px; }
    .mss-hero-sub { font-size: 16px !important; }
    .mss-hero-text, .mss-text, .mss-checks li { font-size: 15px; }
    .mss-features { padding: 26px 0; }
    .mss-section { padding: 36px 0; }
    .mss-section-tight { padding: 0 0 28px; }
    .mss-title { font-size: 24px; }
    .mss-panel { padding: 24px 18px; border-radius: 16px; }
    .mss-card { flex-direction: column; align-items: stretch; padding: 24px 18px; border-radius: 16px; }
    .mss-card-media { flex: none; align-self: center; width: 82%; max-width: 340px; }
    .mss-card-title { font-size: 21px; }
    .mss-reports { padding: 40px 0; }
    .mss-report-list { gap: 10px; margin-top: 24px !important; }
    /* Comfortable side spacing on phones (Bootstrap default is 12px) */
    .mss-page .container { padding-left: clamp(16px, 5vw, 24px); padding-right: clamp(16px, 5vw, 24px); }
    .mss-btn-lg { margin-top: 22px; }
}
@media (max-width: 500px) {
    .mss-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mss-feature-list li:nth-child(3n + 1) { border-left: 1px solid #ececec; }
    .mss-feature-list li:nth-child(2n + 1) { border-left: none; }
    .mss-feature-icon { width: 50px; height: 50px; font-size: 19px; }
    .mss-report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mss-btns .mss-btn { flex: 1 1 100%; }
    .mss-hero-title { font-size: 24px; }
}
