body {
    padding-top: 80px;
}

.hms-hero {
    padding: 4.5rem 0 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.hms-hero .container {
    max-width: 1200px;
    padding-left: 14px;
    padding-right: 14px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.25rem;
    align-items: start;
}

.hero-text {
    text-align: left;
}

.hero-image {
    border-radius: 14px;
    overflow: hidden;
    /* border: 1px solid rgba(15,23,42,.08); */
    background: transparent;
    /* box-shadow: 0 6px 18px rgba(15,23,42,.05); */
}

.hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, .12);
    color: #0f172a;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hms-hero h1 {
    margin-top: .85rem;
    font-size: 3rem;
    line-height: 1.12;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.hms-hero h1 span {
    color: #14b8a6;
}

.hms-hero p {
    margin-top: 1rem;
    color: #475569;
    line-height: 1.75;
    max-width: 60ch;
}

.hero-cta {
    margin-top: none;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 1.35rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.meta-item {
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(15, 23, 42, .06);
}

.meta-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #64748b;
    font-weight: 700;
}

.meta-value {
    margin-top: .25rem;
    font-weight: 700;
    color: #0f172a;
}

.hms-modules {
    padding: 4.25rem 0;
    background: #ffffff;
}

.hms-modules .container,
.hms-demo .container,
.hms-mobile .container,
.hms-gallery .container,
.hms-section .container {
    max-width: 1200px;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
}

.section-header h2 span {
    color: #14b8a6;
}

.section-header p {
    margin: .6rem auto 0;
    color: #64748b;
    max-width: 70ch;
    line-height: 1.7;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.module-card {
    padding: 1.25rem 1.25rem 1.15rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.m-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(20, 184, 166, 0.12);
    color: #0f172a;
}

.m-icon svg {
    fill: currentColor;
    stroke: currentColor;
}

.m-icon i {
    color: currentColor;
}

.module-card h3 {
    margin: .9rem 0 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    min-height: calc(1.08rem * 1.25 * 2);
}

.module-card p {
    margin: .45rem 0 0;
    color: #64748b;
    line-height: 1.6;
    min-height: calc(1em * 1.6 * 3);
}

.hms-demo {
    padding: 5rem 0;
    background: linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.9)), url('https://img.freepik.com/free-photo/abstract-blur-hospital-clinic-interior-background_74190-9516.jpg?t=st=1717584000&exp=1717587600&hmac=7a5f8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.demo-card {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.demo-text {
    text-align: left;
}

.demo-card h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
}

.demo-card h2 span {
    color: #14b8a6;
}

.demo-card p {
    margin-top: .6rem;
    color: #475569;
    line-height: 1.7;
}

.demo-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.demo-points {
    display: grid;
    gap: .6rem;
}

.dp {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .85rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    color: #0f172a;
    font-weight: 700;
    background: #ffffff;
}

.dp i {
    color: #14b8a6;
}

.hms-mobile {
    padding: 4.25rem 0;
    background: #ffffff;
}

.mobile-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
}

.mobile-text {
    text-align: left;
}

.mobile-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.2rem;
}

.mobile-text h2 span {
    color: #14b8a6;
}

.mobile-text p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.mobile-list {
    display: grid;
    gap: 1rem;
}

.ml {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 600;
    color: #334155;
    font-size: 1.05rem;
}

.ml i {
    color: #14b8a6;
    font-size: 1.2rem;
}

.mobile-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-image img {
    max-width: 100%;
    height: auto;
    /* border-radius: 20px; */
}

@media (max-width: 992px) {
    .mobile-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .mobile-text {
        text-align: center;
    }

    .mobile-list {
        justify-content: center;
    }
}

.hms-gallery {
    padding: 5rem 0;
    background: #f8fafc;
}

.gallery-slider {
    position: relative;
    margin-top: 2.25rem;
    padding: 0 3.25rem;
}

.gallery-viewport {
    overflow: hidden;
    border-radius: 0;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 1.25rem;
    align-items: stretch;
    will-change: transform;
}

.gallery-slide {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transform: translateY(0);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    padding: 0;
    display: block;
}

.gallery-slide:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.25);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.gallery-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    background: #ffffff;
}

.gallery-slide.has-bg {
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .gallery-track {
        grid-auto-columns: calc((100% - 1.25rem) / 2);
    }

    .gallery-slide.has-bg {
        height: 260px;
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    z-index: 20;
}

.gallery-nav:hover {
    border-color: rgba(20, 184, 166, 0.28);
    color: #14b8a6;
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

.gallery-dots {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(100, 116, 139, 0.35);
    cursor: pointer;
    padding: 0;
}

.gallery-dot.active {
    width: 26px;
    background: #14b8a6;
}

@media (max-width: 480px) {
    .gallery-nav {
        display: none;
    }

    .gallery-slide img {
        height: 220px;
    }

    .gallery-slider {
        padding: 0;
    }
}

.hms-why-choose {
    padding: 6rem 0;
    background: #ffffff;
}

.hms-why-choose .section-header {
    text-align: left;
    margin-bottom: 4rem;
}

.subheading {
    display: inline-block;
    color: #14b8a6;
    font-weight: 700;
    font-size: 1rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.hms-why-choose .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.hms-why-choose .section-header p {
    color: #475569;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.why-card {
    background: transparent;
    padding: 0 1.5rem 0 0;
    border-radius: 0;
    border-right: 1px solid #d3d3d35b;
    box-shadow: none;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.why-card:nth-child(3n) {
    border-right: none;
    padding-right: 0;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-card {
        border-right: 1px solid #d3d3d35b;
        padding-right: 1.5rem;
    }

    .why-card:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        border-right: none;
        border-bottom: 1px solid #d3d3d35b;
        padding: 0 0 2rem 0;
        margin-bottom: 2rem;
    }

    .why-card:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

.why-card:hover {
    transform: none;
    box-shadow: none;
}

.why-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 1rem;
    order: 2;
}

.why-icon-wrap {
    width: 60px;
    height: 60px;
    background: transparent;
    color: #14b8a6;
    border: 1.5px solid #14b8a6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    order: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.1);
}

.why-card:hover .why-icon-wrap {
    background: #14b8a6;
    color: #ffffff;
    transform: scale(1.05);
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    order: 3;
}

.why-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
    order: 4;
}


.custom-module-callout {
    margin-top: 6rem;
    background: #f8fafc;
    border-radius: 0;
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-left: 5px solid #14b8a6;
}


.callout-content h3 {
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.callout-content p {
    color: #64748b;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.hms-download-steps {
    padding: 4rem 0;
    background: #f0f7ff;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    gap: 1.25rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.step-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-icon-box.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.step-icon-box.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.step-icon-box.red {
    background: #fee2e2;
    color: #dc2626;
}

.step-icon-box.green {
    background: #dcfce7;
    color: #16a34a;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.btn-step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #14b8a6;
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-step:hover {
    background: #0d9488;
    transform: scale(1.03);
}

.steps-visual {
    position: sticky;
    top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-visual img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .steps-visual {
        order: -1;
    }
}

@media (max-width: 480px) {
    .step-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.hms-section {
    padding: 4.25rem 0;
    background: #ffffff;
}

.hms-section.alt {
    background: #f8fafc;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hms-hero {
        padding: 3.75rem 0 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
        margin-top: 30px;
    }

    .hero-cta .btn {
        margin: 0 !important;
    }

    .hero-cta .btn+.btn {
        margin-top: 0 !important;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .hero-image {
        max-width: 560px;
        margin: 1.25rem auto 0;
    }

    .hero-image img {
        height: 320px;
    }

    .demo-card {
        grid-template-columns: 1fr;
    }

    .mobile-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hms-hero h1 {
        font-size: 2.2rem;
    }

    .hero-image img {
        height: auto;
        max-height: 320px;
        object-fit: contain;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .demo-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .demo-actions .btn {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
    }
}

/* ==========================================================================
   Video Demo Modal Component
   ========================================================================== */
.hms-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hms-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.hms-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.hms-modal-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 920px;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.18);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.hms-video-modal.active .hms-modal-dialog {
    transform: scale(1) translateY(0);
}

.hms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.75rem;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
}

.hms-modal-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0eb8a9;
}

.hms-modal-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.hms-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hms-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.hms-modal-body {
    padding: 0;
    background: #000000;
    position: relative;
}

.hms-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #020617;
}

.hms-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hms-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-footer-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 500;
}

.modal-footer-info i {
    color: #0eb8a9;
    font-size: 1.05rem;
}

.modal-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-whatsapp-modal {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.25s ease;
}

.btn-whatsapp-modal i {
    font-size: 1.15rem;
    color: #ffffff !important;
}

.btn-whatsapp-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4) !important;
    background: linear-gradient(135deg, #1ea952 0%, #0d6e63 100%) !important;
    color: #ffffff !important;
}

/* Modal Mobile Adjustments */
@media (max-width: 640px) {
    .hms-video-modal {
        padding: 0.75rem;
    }

    .hms-modal-dialog {
        border-radius: 16px;
    }

    .hms-modal-header {
        padding: 1rem 1.15rem;
    }

    .hms-modal-title h3 {
        font-size: 1.05rem;
    }

    .hms-modal-footer {
        padding: 1rem 1.15rem;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .modal-footer-info {
        justify-content: center;
        font-size: 0.85rem;
    }

    .btn-whatsapp-modal {
        width: 100%;
        justify-content: center;
    }
}