/* =========================================================
   SINACARE APP DOWNLOAD PAGE
   ========================================================= */

.sc-app-page {

    --sc-primary: #0575bc;
    --sc-primary-dark: #075486;
    --sc-secondary: #159b9b;
    --sc-accent: #5ebc77;

    --sc-text: #193247;
    --sc-muted: #667788;

    --sc-bg: #ffffff;
    --sc-bg-soft: #f4f8fb;

    --sc-border: #e4edf3;

    --sc-radius: 15px;

    --sc-shadow:
        0 10px 35px rgba(25, 50, 71, .07);

    --sc-shadow-hover:
        0 18px 45px rgba(25, 50, 71, .13);

    direction: rtl;
    color: var(--sc-text);
    overflow: hidden;
}


/* =========================================================
   GENERAL
   ========================================================= */

.sc-app-page *,
.sc-app-page *::before,
.sc-app-page *::after {
    box-sizing: border-box;
}

.sc-app-page img {
    max-width: 100%;
    height: auto;
}

.sc-app-page a {
    text-decoration: none;
}

.sc-app-page h1,
.sc-app-page h2,
.sc-app-page h3 {
    color: var(--sc-text);
    line-height: 1.7;
}

.sc-app-page p {
    line-height: 2;
}


/* =========================================================
   HERO
   ========================================================= */

.sc-app-hero {
    position: relative;
    padding: 75px 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(21, 155, 155, .13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f6fbfd,
            #edf7fa
        );
}

.sc-app-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sc-app-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    margin-bottom: 15px;
    border-radius: 999px;
    background: rgba(5, 117, 188, .09);
    color: var(--sc-primary);
    font-size: 13px;
    font-weight: 800;
}

.sc-app-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
}

.sc-app-hero p {
    margin: 0;
    color: var(--sc-muted);
    font-size: 17px;
}


/* =========================================================
   DOWNLOAD BUTTONS
   ========================================================= */

.sc-download-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 35px;
}

.sc-download-item {
    display: block;
    width: 180px;
    padding: 7px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--sc-border);
    box-shadow: 0 8px 25px rgba(25, 50, 71, .07);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.sc-download-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--sc-shadow-hover);
}

.sc-download-item img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   SECTION
   ========================================================= */

.sc-app-section {
    padding: 80px 0;
}

.sc-app-about {
    background: #fff;
}

.sc-app-features,
.sc-app-education {
    background: var(--sc-bg-soft);
}

.sc-app-news {
    background: #fff;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.sc-section-heading {
    margin-bottom: 40px;
}

.sc-heading-center {
    text-align: center;
}

.sc-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--sc-primary);
    font-size: 13px;
    font-weight: 800;
}

.sc-section-label::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(
        90deg,
        var(--sc-primary),
        var(--sc-secondary)
    );
}

.sc-section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 900;
}


/* =========================================================
   APP CONTENT
   ========================================================= */

.sc-app-content {
    color: var(--sc-muted);
    font-size: 15px;
    line-height: 2.2;
}

.sc-app-content p {
    margin-bottom: 18px;
}

.sc-app-content img {
    border-radius: 14px;
}


/* =========================================================
   VIDEO
   ========================================================= */

.sc-video-wrapper {
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: var(--sc-shadow-hover);
}

.sc-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.sc-app-feature-card {
    height: 100%;
    padding: 30px 25px;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.sc-app-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(5, 117, 188, .2);
    box-shadow: var(--sc-shadow-hover);
}

.sc-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 15px;
    background: #eef8fc;
    color: var(--sc-primary);
    font-size: 28px;
}

.sc-app-feature-card h2 {
    margin-bottom: 13px;
    font-size: 18px;
    font-weight: 800;
}

.sc-app-feature-card p {
    margin: 0;
    color: var(--sc-muted);
    font-size: 13px;
}


/* =========================================================
   BLOG / EDUCATION
   ========================================================= */

.sc-app-post-card {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.sc-app-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sc-shadow-hover);
}

.sc-app-post-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eef3f6;
}

.sc-app-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.sc-app-post-card:hover .sc-app-post-image img {
    transform: scale(1.04);
}

.sc-app-post-content {
    padding: 10px;
}

.sc-app-post-content h3 {
    margin: 0;
    font-size: 16px;
}

.sc-app-post-content h3 a {
    color: var(--sc-text);
}

.sc-app-post-content h3 a:hover {
    color: var(--sc-primary);
}


/* =========================================================
   NEWS
   ========================================================= */

.sc-news-slider {
    padding-bottom: 35px;
}

.sc-news-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

.sc-news-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eef3f6;
}

.sc-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-news-content {
    padding: 18px;
}

.sc-news-content h3 {
    margin: 0;
    font-size: 17px;
}

.sc-news-content h3 a {
    color: var(--sc-text);
}

.sc-news-content h3 a:hover {
    color: var(--sc-primary);
}

.sc-empty-news {
    width: 100%;
    padding: 30px;
    text-align: center;
    color: var(--sc-muted);
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.sc-app-back-top {
    position: fixed;
    left: 20px;
    bottom: 25px;
    z-index: 999;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--sc-primary);
    color: #fff;
    font-size: 20px;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all .25s ease;
}

.sc-app-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .sc-app-section {
        padding: 65px 0;
    }

    .sc-app-hero {
        padding: 60px 0;
    }

    .sc-download-item {
        width: 170px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .sc-app-section {
        padding: 50px 0;
    }

    .sc-app-hero {
        padding: 45px 0 50px;
    }

    .sc-app-hero h1 {
        font-size: 29px;
    }

    .sc-app-hero p {
        font-size: 14px;
    }

    .sc-download-buttons {
        gap: 10px;
        margin-top: 25px;
    }

    .sc-download-item {
        width: calc(50% - 5px);
        max-width: 175px;
    }

    .sc-section-heading {
        margin-bottom: 28px;
    }

    .sc-section-heading h2 {
        font-size: 24px;
    }

    .sc-app-feature-card {
        padding: 23px 20px;
    }

    .sc-app-feature-card h2 {
        font-size: 17px;
    }

    .sc-app-feature-card p {
        font-size: 12px;
    }

    .sc-video-wrapper {
        border-radius: 16px;
    }

    .sc-app-back-top {
        display: none;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sc-app-page *,
    .sc-app-page *::before,
    .sc-app-page *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }

}