/* IPD-Ward Management Software page (/softwares/ipd-ward-management-software).
   Builds on multi_specialty_software.css (shared .mss-* base: Poppins, buttons, titles, panels, image hover,
   mobile spacing). Only this page's extras live here, scoped to .iws-page. */

/* Colour tones for icon tiles and their hover borders */
.iws-page .iws-tone-blue   { --tone: #2F6FE4; --tone-bg: rgba(47, 111, 228, 0.12); --tone-border: rgba(47, 111, 228, 0.35); }
.iws-page .iws-tone-indigo { --tone: #5B4FD9; --tone-bg: rgba(91, 79, 217, 0.12); --tone-border: rgba(91, 79, 217, 0.35); }
.iws-page .iws-tone-orange { --tone: #E9861A; --tone-bg: rgba(233, 134, 26, 0.14); --tone-border: rgba(233, 134, 26, 0.40); }
.iws-page .iws-tone-teal   { --tone: #13A07A; --tone-bg: rgba(19, 160, 122, 0.12); --tone-border: rgba(19, 160, 122, 0.35); }
.iws-page .iws-tone-green  { --tone: #1FA463; --tone-bg: rgba(31, 164, 99, 0.12); --tone-border: rgba(31, 164, 99, 0.35); }
.iws-page .iws-tone-purple { --tone: #8A4FE0; --tone-bg: rgba(138, 79, 224, 0.12); --tone-border: rgba(138, 79, 224, 0.35); }

/* Section labels: rounded badges (shared .mss-eyebrow) with a background matching each section */
.iws-band-pink .mss-eyebrow { background: #ffffff; border: 1px solid #F6CDD1; box-shadow: 0 2px 8px rgba(237, 62, 72, 0.06); }
.iws-page .iws-panel-cream .mss-eyebrow { border: 1px solid #F3DFAE; }
.iws-cta .mss-eyebrow { background: rgba(255, 255, 255, 0.9); border: 1px solid #F6D2C8; box-shadow: 0 2px 8px rgba(237, 62, 72, 0.06); }

/* Outline button */
.iws-page .iws-btn-outline { background: #ffffff; color: #ED3E48 !important; border: 1.5px solid #ED3E48; }
.iws-page .iws-btn-outline:hover, .iws-page .iws-btn-outline:focus { background: #ED3E48; color: #ffffff !important; }

/* ---------- Hero ---------- */
.iws-page .iws-hero { padding: 48px 0 40px; }
.iws-crumb span { margin: 0 6px; }
.iws-hero-title { font-size: 44px; font-weight: 700; margin-bottom: 16px !important; }
.iws-hero-text { color: #4D4D4D; max-width: 520px; }
.iws-hero-media img { width: 100%; max-width: 640px; margin-left: auto; }


/* ---------- Ward management ---------- */
.iws-ward-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px !important; }
.iws-ward-features li {
    display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 10px; text-align: center;
    background: #FAFBFF; border: 1px solid #ECEFF7; border-radius: 14px;
    font-size: 14px !important; font-weight: 500; line-height: 1.4 !important; color: #373030;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.iws-ward-features li:hover { transform: translateY(-4px); background: #ffffff; border-color: var(--tone-border); box-shadow: 0 10px 24px rgba(55, 48, 48, 0.08); }
.iws-feature-icon {
    width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--tone-bg); color: var(--tone); font-size: 21px; transition: background 0.3s ease, color 0.3s ease;
}
.iws-ward-features li:hover .iws-feature-icon { background: var(--tone); color: #ffffff; }

/* ---------- Feature lists with icons (replaces ticks) ---------- */
.iws-icon-list { --tone: #ED3E48; --tone-bg: rgba(237, 62, 72, 0.10); }
.iws-icon-list.iws-tone-orange { --tone: #E9861A; --tone-bg: rgba(233, 134, 26, 0.14); }
.iws-icon-list.iws-tone-blue { --tone: #2F6FE4; --tone-bg: rgba(47, 111, 228, 0.12); }
.iws-icon-list li { align-items: center; }
.iws-icon-list .mss-check {
    width: 32px; height: 32px; margin-top: 0; border-radius: 9px; background: var(--tone-bg); color: var(--tone); font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.iws-icon-list li:hover .mss-check { background: var(--tone); color: #ffffff; transform: translateY(-2px); }

/* ---------- Section backgrounds ---------- */
.iws-band-pink { background: #FFF3F4; border-top: 1px solid #F8DDE0; border-bottom: 1px solid #F8DDE0; padding: 60px 0; }
.iws-page .iws-panel-cream { background: #FFF8EC; border: 1px solid #F6E3BF; }
.iws-page .mss-panel { transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.iws-page .mss-panel:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(55, 48, 48, 0.07); }
.iws-page .iws-panel-cream:hover { border-color: #EFCF8E; }
.iws-page .mss-panel-blue:hover { border-color: #B9CEF5; }

/* Images: no hover effect (the containers carry the hover) */
.iws-media img { width: 100%; margin: 0 auto; }

/* ---------- Call to action (no image) ---------- */
.iws-cta-section { padding: 70px 0; }
.iws-cta {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center;
    padding: 48px; border-radius: 24px; border: 1px solid #F6DCD6;
    background: linear-gradient(135deg, #FFF8F2 0%, #FFF2F3 100%);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.iws-cta:hover { border-color: #EEC3B8; box-shadow: 0 14px 34px rgba(237, 62, 72, 0.07); }
.iws-cta::before, .iws-cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.iws-cta::before { width: 260px; height: 260px; right: -80px; top: -110px; background: radial-gradient(circle, rgba(254, 188, 47, 0.22), rgba(254, 188, 47, 0) 70%); }
.iws-cta::after { width: 220px; height: 220px; left: -90px; bottom: -120px; background: radial-gradient(circle, rgba(237, 62, 72, 0.14), rgba(237, 62, 72, 0) 70%); }
.iws-cta-content, .iws-journey { position: relative; z-index: 1; }
.iws-cta .mss-text { max-width: 520px; }
.iws-journey { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.iws-journey li {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: #ffffff; border: 1px solid #F3E2DE; border-radius: 14px; box-shadow: 0 4px 14px rgba(55, 48, 48, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.iws-journey li:not(:last-child)::after {
    content: ""; position: absolute; left: 36px; top: 100%; width: 0; height: 14px; border-left: 2px dashed rgba(237, 62, 72, 0.35);
}
.iws-journey li:hover { transform: translateX(6px); border-color: rgba(237, 62, 72, 0.40); box-shadow: 0 10px 22px rgba(237, 62, 72, 0.08); }
.iws-journey-icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(237, 62, 72, 0.10); color: #ED3E48; font-size: 17px; transition: background 0.3s ease, color 0.3s ease;
}
.iws-journey li:hover .iws-journey-icon { background: #ED3E48; color: #ffffff; }
.iws-journey li > span:last-child { font-size: 13px; color: #666666; line-height: 1.35; min-width: 0; }
.iws-journey strong { display: block; font-size: 15px; font-weight: 600; color: #373030; }

@media (prefers-reduced-motion: reduce) {
    .iws-ward-features li, .iws-icon-list .mss-check, .iws-journey li, .iws-page .mss-panel, .iws-cta { transition: none; }
    .iws-ward-features li:hover, .iws-journey li:hover, .iws-icon-list li:hover .mss-check, .iws-page .mss-panel:hover { transform: none; }
}

/* ---------- Responsive (site breakpoints: 991 / 767 / 500) ---------- */
@media (max-width: 991px) {
    .iws-page .iws-hero { padding: 36px 0 28px; text-align: center; }
    .iws-hero-text { margin: 0 auto; }
    .iws-page .mss-btns { justify-content: center; }
    .iws-hero-media img { margin: 0 auto; max-width: 560px; }
    .iws-hero-title { font-size: 34px; }
    .iws-band-pink { padding: 45px 0; }
    .iws-media img { max-width: 620px; }
    .iws-media-wide img { max-width: 760px; }
    .iws-cta-section { padding: 50px 0; }
    .iws-cta { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 34px; }
    .iws-cta .mss-btns { justify-content: flex-start; }
}
@media (max-width: 767px) {
    .iws-hero-title { font-size: 28px; }
    .iws-ward-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .iws-band-pink { padding: 36px 0; }
    .iws-cta-section { padding: 36px 0; }
    .iws-cta { padding: 26px 18px; border-radius: 18px; }
}
@media (max-width: 500px) {
    .iws-hero-title { font-size: 25px; }
    .iws-page .mss-btns .mss-btn { flex: 1 1 100%; }
    .iws-ward-features li { padding: 14px 8px; font-size: 13px !important; }
    .iws-feature-icon { width: 46px; height: 46px; font-size: 18px; }
}
